:root {
    --clr-primary: #5E9ACC;
    --clr-secondary: #16314C;
    --clr-off-white: #FDF9F8;
    --clr-white: #ffffff;
    --clr-black: #010101;
    --clr-grey: #555;
    --font-main: 'Manrope', sans-serif;
    --font-size-h1: clamp(32px, 5vw, 58px);
    --font-size-p: clamp(16px, 2vw, 22px);
    --gap-grid: 50px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 4rem;
}



body {
    font-family: var(--font-main);
    background-color: var(--clr-off-white);
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
    height: 100%;
}

a {
    text-decoration: none;
    color: var(--clr-black);
}

li {
    list-style: none;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    padding: 10px 5px;
    margin-bottom: 20px;
}

.section-title .tag {
    display: inline-block;
    background: var(--clr-secondary);
    color: var(--clr-off-white);
    padding: 0 16px;
    border-radius: 50px;
    font-size: 16px;
    margin-bottom: 1rem;
}

.section-title h2 {
    font-size: 38px;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--clr-grey);
    font-size: 24px;
}


.title-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
}


@media (min-width: 768px) {
    .title-column {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        align-items: center;
    }
}

.btn {
    position: relative;
    display: inline-block;
    cursor: pointer;
    outline: none;
    vertical-align: middle;
    text-decoration: none;
    background: transparent;
    font-size: 15px;
    border: none;
}

.btn {
    position: relative;
    height: fit-content;
    display: flex;
    justify-content: left;
    align-items: center;
    width: 230px;
    height: 40px;
    text-align: center;
    text-transform: uppercase;
    text-indent: 50px;
    transition: 300ms;
    font-weight: 500;
}

.btn::before {
    content: "";
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: absolute;
    left: 0;
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background-color: var(--clr-secondary);
    z-index: -1;
}

.btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 17px;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 12px;
    height: 12px;
    border-top: 2px solid var(--clr-off-white);
    border-right: 2px solid var(--clr-off-white);
    transition: 400ms;
}

.btn:hover {
    text-indent: 15px;
    color: var(--clr-off-white);
    font-weight: 600;
}

.btn:active {
    scale: 0.95;
}

.btn:hover::before {
    width: 100%;
}

.btn:hover::after {
    left: calc(100% - 25px);
}

nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1440px;
    background: rgba(22, 49, 76, 0.8);
    color: var(--clr-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-radius: 12px;
    z-index: 1000;
}

.logo img {
    height: 40px;
}

.menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.menu a {
    text-decoration: none;
    color: var(--clr-white);
    font-weight: 500;
    transition: 0.3s;
}

.menu a:hover {
    color: var(--clr-hover);
}

.toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.toggle span {
    width: 28px;
    height: 3px;
    background: var(--clr-white);
    border-radius: 2px;
    transition: 0.3s;
}

.toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.toggle.active span:nth-child(2) {
    opacity: 0;
}

.toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px);
}

.offcanvas {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: rgba(22, 49, 76, 0.95);
    transition: right 0.3s ease-in-out;
    padding: 50px 20px;
    z-index: 999;
}

.offcanvas.active {
    right: 0;
}


.menu-offcanvas {
    display: flex;
    flex-direction: column;
    margin-top: 50px;
    gap: 30px;
}


.offcanvas a {
    text-decoration: none;
    color: var(--clr-white);
    font-size: 1.2rem;
    transition: 0.3s;
}



/* Desktop mantém menu normal */
@media (max-width: 768px) {
    .menu {
        display: none;
    }

    .toggle {
        display: flex;
    }
}


.hero {
    min-height: 100vh;
    padding: 20px;
    margin-top: 100px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-grid);
    align-items: center;
}

.hero-texts {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    color: var(--clr-black);
}

.hero-texts span {
    background: var(--clr-secondary);
    color: var(--clr-off-white);
    padding: 0 16px;
    border-radius: 50px;
    font-size: 16px;
    align-self: flex-start;
}

.hero-texts h1 {
    font-size: var(--font-size-h1);
    line-height: 1.2;
    font-weight: 400;
}

.hero-texts p {
    font-size: var(--font-size-p);
    max-width: 500px;
}

.hero-image {
    height: 85vh;
    border-radius: 10px;
}

.hero-image img {
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* RESPONSIVO */
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-image {
        height: 60vh;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 40px 20px;
    }

    .hero-texts h1 {
        font-size: clamp(28px, 6vw, 40px);
    }

    .hero-texts p {
        font-size: clamp(14px, 3vw, 18px);
    }

    .hero-image {
        height: 40vh;
    }
}

.about {
    padding: 40px 20px;
}

.about .subtitle {
    display: block;
    font-size: 16px;
    margin-bottom: 10px;
}

.about .title {
    font-weight: 700;
    margin-bottom: 20px;
}

.about .description {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 18px;
    line-height: 1.6;
}

.gallery-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
}

.gallery {
    display: flex;
    gap: 20px;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.gallery img {
    flex: 0 0 auto;
    width: 400px;
    height: 500px;
    object-fit: cover;
}

.gallery-wrapper.is-hovering .gallery {
    transition: none;
}

.services {
    background: var(--clr-off-white);
    text-align: center;
    padding: 40px 20px;
}

.services-content {
    display: grid;
    grid-template-columns: 1fr;
    margin: 0 auto;
    align-items: center;
    max-width: 1200px;
    gap: 20px;
}

@media (min-width: 992px) {
    .services-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

.services__image {
    position: relative;
}

.services__image img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
    border-radius: 10px;
}

.services__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.services__list button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.8rem;
    padding: 1rem 1.2rem;
    width: 100%;
    font-size: 1.1rem;
    color: #333;
    background: #fff;
    border: none;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    text-align: left;
    transition: background 0.3s, transform 0.2s;
}

.services__list button:last-child {
    border-bottom: none;
}

.services__list button:hover {
    background: #f9f9f9;
    transform: translateX(3px);
}

.services__list .icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.services__list span {
    flex: 1;
    font-weight: 500;
}

@media (max-width: 768px) {
    .services__image img {
        width: 100%;
        height: 300px;
    }
}

.ticker {
    width: 100%;
    overflow: hidden;
    position: relative;
    -webkit-mask: linear-gradient(90deg, transparent, white 15%, white 85%, transparent);
    mask: linear-gradient(90deg, transparent, white 15%, white 85%, transparent);
}

.ticker__track {
    display: flex;
    width: max-content;
    animation: scroll var(--_duration, 40s) var(--_direction, forwards) linear infinite;
}

.ticker__list {
    display: flex;
    gap: 1rem;
    margin-right: 2rem;
}

.ticker img {
    width: 450px;
    height: 500px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: opacity 0.8s ease-in-out;
}

.ticker[data-speed="fast"] {
    --_duration: 20s;
}

.ticker[data-speed="slow"] {
    --_duration: 60s;
}

.ticker[data-direction="left"] {
    --_direction: forwards;
}

.ticker[data-direction="right"] {
    --_direction: reverse;
}

.ticker:hover .ticker__track {
    animation-play-state: paused;
}

@keyframes scroll {
    to {
        transform: translateX(-50%);
    }
}

.stats {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat .number {
    font-size: 80px;
    display: block;
    color: var(--clr-black);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-number {
    display: flex;
    align-items: center;
    justify-content: center;
}

.percentage {
    font-size: 80px;
}

.stat h3 {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.stat p {
    font-size: 0.95rem;
    color: var(--clr-grey);
}

.testimonials {
    padding: 40px 20px;
}

.testimonials-marquee {
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.testimonials-track {
    display: flex;
    gap: 32px;
    animation: scroll-testimonials 60s linear infinite;
    width: max-content;
}

@keyframes scroll-testimonials {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.card.testimonial {
    background-color: var(--clr-white);
    border-radius: 16px;
    padding: 2rem;
    width: 380px;
    min-height: 260px;
    text-align: left;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stars {
    color: var(--clr-primary);
    margin-bottom: 16px;
    display: flex;
    gap: 0.3rem;
}

.stars svg {
    width: 20px;
    height: 20px;
    stroke: var(--clr-primary);
    fill: var(--clr-primary);
}

.testimonial-text {
    font-size: 16px;
    color: var(--clr-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.testimonial-author {
    font-weight: 600;
    color: var(--clr-secondary);
    font-size: 0.95rem;
    margin-top: auto;
}

.budget {
    padding: 100px 20px;
    background: var(--clr-off-white);
}

.budget .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    align-items: center;
}

.budget-texts .tag {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.budget-texts h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--clr-black);
}

.budget-texts p {
    font-size: 18px;
    color: var(--clr-grey);
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-whatsapp {
    display: inline-block;
    background: var(--clr-secondary);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding: 16px 28px;
    border-radius: 12px;
    text-decoration: none;
    align-self: flex-start;
}



.budget-image img {
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 900px) {
    .budget .grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .budget-image {
        margin-top: 30px;
    }
}

.footer {
    background: var(--clr-secondary);
    color: var(--clr-off-white);
    padding: 3rem 1.5rem 1rem;
    margin-top: 4rem;
    max-width: 1440px;
    margin: 0 auto;
    border-radius: 10px 10px 0 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--clr-off-white);
    max-width: 280px;
    font-size: 0.9rem;
}

.footer-links h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--clr-off-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--clr-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--clr-off-white);
}

/* Responsividade */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {

    body,
    .hero-texts,
    .about,
    .services-content,
    .budget-texts,
    .testimonial-text {
        text-align: left;
    }

    .section-title {
        text-align: left;
    }
}