:root {
    --cream: #F3EAD8;
    --cream-deep: #E9DCC3;

    --green-light: #BFD6B4;
    --green-mid: #7FA372;
    --green-dark: #445E39;

    --ink: #33352C;
    --ink-soft: #6B6B5E;

    --footer-dark: #263323;

    --font-display: "Fraunces", serif;
    --font-body: "Jost", sans-serif;

    --radius: 18px;
    --container: 1160px;
}


*,
*::before,
*::after {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;

    -webkit-font-smoothing: antialiased;

    transition: background-color .8s ease;
}


body.at-end {
    background: var(--cream-deep);
}


img {
    max-width: 100%;
    display: block;
}


a {
    color: inherit;
    text-decoration: none;
}


h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--ink);
    margin: 0;
}


.eyebrow {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .72rem;
    color: var(--green-dark);
    font-weight: 600;
    margin: 0 0 .9rem;
}


.eyebrow.center {
    text-align: center;
}


.section-title.center {
    text-align: center;
    margin: 0 auto 3.2rem;
    max-width: 640px;
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: .55rem;

    padding: .85rem 1.5rem;

    border-radius: 999px;

    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 500;

    border: 1px solid transparent;

    cursor: pointer;

    transition:
        transform .25s ease,
        background-color .25s ease,
        color .25s ease,
        border-color .25s ease;
}


.btn-primary {
    background: var(--green-mid);
    color: var(--cream);
}


.btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
}


.btn-ghost {
    border-color: var(--green-mid);
    color: var(--green-dark);
    background: transparent;
}


.btn-ghost:hover {
    background: var(--green-light);
    border-color: var(--green-light);
    transform: translateY(-2px);
}


/* =========================================
   VINE
========================================= */

.vine-rail {
    position: fixed;

    top: 0;
    right: 0;

    width: 90px;
    height: 100vh;

    pointer-events: none;

    z-index: 20;

    opacity: 0;

    transform: translateX(30px);

    transition:
        opacity .6s ease,
        transform .6s ease;
}


.vine-rail.visible {
    opacity: 1;
    transform: translateX(0);
}


.vine-rail::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to left,
            rgba(127, 163, 114, .16),
            rgba(127, 163, 114, 0) 70%
        );
}


.vine-svg {
    width: 100%;
    height: 100%;

    position: relative;
}


#vinePath {
    fill: none;

    stroke: var(--green-dark);

    stroke-width: 2.6;

    stroke-linecap: round;

    /* o valor real e medido e aplicado pelo script (getTotalLength) */
    stroke-dasharray: 2400;
    stroke-dashoffset: 2400;
}


.vine-leaves .leaf {
    fill: var(--green-mid);

    opacity: 0;

    transition: opacity .6s ease;
}


.vine-leaves .leaf.show {
    opacity: 1;
}


@media (max-width: 900px) {

    .vine-rail {
        display: none;
    }

}


/* =========================================
   HEADER
========================================= */

.site-header {
    position: sticky;

    top: 0;

    z-index: 30;

    background: rgba(243, 234, 216, .88);

    backdrop-filter: blur(10px);

    border-bottom:
        1px solid rgba(127, 163, 114, .25);
}


.header-inner {
    max-width: var(--container);

    margin: 0 auto;

    padding: 1rem 1.5rem;

    display: flex;

    align-items: center;

    gap: 2rem;
}


.logo {
    display: flex;

    align-items: center;

    margin-right: auto;
}


.logo-img {
    height: 90px;

    width: auto;

    object-fit: contain;
}


.main-nav ul {
    list-style: none;

    display: flex;

    gap: .5rem;

    margin: 0;
    padding: 0;
}


.nav-link {
    display: flex;

    align-items: center;

    gap: .45rem;

    padding: .55rem .9rem;

    border-radius: 999px;

    color: var(--ink-soft);

    font-size: .92rem;

    font-weight: 500;

    transition:
        transform .25s ease,
        color .25s ease,
        background-color .25s ease;
}


.nav-icon {
    width: 18px;
    height: 18px;

    flex-shrink: 0;
}


.nav-link:hover,
.nav-link:focus-visible {
    color: var(--cream);

    background: var(--green-dark);

    transform: scale(1.05);
}


.nav-link.active {
    color: var(--green-dark);

    background: var(--green-light);
}


.header-whats {
    display: flex;

    align-items: center;

    gap: .5rem;

    padding: .55rem 1rem;

    border-radius: 999px;

    border: 1px solid var(--green-mid);

    color: var(--green-dark);

    font-weight: 500;

    font-size: .88rem;

    white-space: nowrap;

    transition:
        background-color .25s ease,
        color .25s ease,
        transform .25s ease;
}


.header-whats svg {
    width: 17px;
    height: 17px;
}


.header-whats:hover {
    background: var(--green-dark);

    color: var(--cream);

    transform: scale(1.05);
}


.nav-toggle {
    display: none;

    flex-direction: column;

    gap: 5px;

    background: none;

    border: none;

    cursor: pointer;

    padding: .4rem;
}


.nav-toggle span {
    width: 22px;
    height: 2px;

    background: var(--ink);

    border-radius: 2px;
}


@media (max-width: 860px) {

    .header-whats span {
        display: none;
    }

}


@media (max-width: 720px) {

    .main-nav {
        position: fixed;

        top: 112px;

        left: 0;
        right: 0;

        background: var(--cream);

        border-bottom:
            1px solid rgba(127, 163, 114, .25);

        max-height: 0;

        overflow: hidden;

        transition: max-height .35s ease;
    }


    .main-nav.open {
        max-height: 300px;
    }


    .main-nav ul {
        flex-direction: column;

        padding: .5rem 1.5rem 1.2rem;
    }


    .nav-toggle {
        display: flex;
    }

}


/* =========================================
   ABOUT / KELLY
========================================= */

.about {
    max-width: var(--container);

    margin: 0 auto;

    padding: 4rem 1.5rem 5rem;
}


.about-inner {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 4rem;

    align-items: center;

    background: var(--cream-deep);

    border-radius: var(--radius);

    padding: 3rem;

    border:
        1px solid rgba(127, 163, 114, .22);

    overflow: hidden;
}


.about-image {
    position: relative;

    display: flex;

    justify-content: center;

    align-items: flex-end;

    min-height: 420px;
}


.about-shape {
    position: absolute;

    bottom: 0;

    width: 300px;

    height: 350px;

    /* verde solido e escuro, alinhado ao do logo (antes: --green-light) */
    background: var(--green-dark);

    border-radius: 200px 200px 0 0;

    z-index: 1;
}


.kelly-img {
    position: relative;

    z-index: 2;

    width: auto;

    max-width: 100%;

    max-height: 500px;

    height: auto;

    object-fit: contain;

    filter:
        drop-shadow(
            0 15px 25px rgba(38, 51, 35, .15)
        );
}


.about-text h2 {
    font-size: clamp(2rem, 3vw, 2.6rem);

    margin-bottom: 1.2rem;
}


.about-text p {
    color: var(--ink-soft);

    font-size: 1.05rem;

    margin-bottom: 1rem;

    line-height: 1.7;
}


@media (max-width: 860px) {

    .about-inner {
        grid-template-columns: 1fr;

        gap: 2rem;

        padding: 2rem 1.5rem 0;

        text-align: center;
    }


    .about-image {
        order: 2;

        min-height: 330px;
    }


    .about-text .eyebrow {
        text-align: center;
    }


    .about-shape {
        width: 220px;

        height: 260px;
    }


    .kelly-img {
        max-height: 400px;
    }

}


/* =========================================
   SERVICES
========================================= */

.services {
    max-width: var(--container);

    margin: 0 auto;

    padding: 5rem 1.5rem;
}


.services-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 1.4rem;
}


.service-card {
    background: var(--cream);

    border:
        1px solid rgba(127, 163, 114, .28);

    border-radius: var(--radius);

    padding: 2rem 1.7rem;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}


.service-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 18px 32px -20px
        rgba(68, 94, 57, .45);

    border-color: var(--green-mid);
}


.service-icon {
    width: 46px;
    height: 46px;

    border-radius: 50%;

    background: var(--green-light);

    color: var(--green-dark);

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 1.1rem;
}


.service-icon svg {
    width: 22px;
    height: 22px;
}


.service-card h3 {
    font-size: 1.15rem;

    margin-bottom: .55rem;
}


.service-card p {
    color: var(--ink-soft);

    font-size: .93rem;

    margin: 0;
}


.services-more {
    margin: 2.4rem auto 0;

    max-width: 720px;

    text-align: center;

    padding: 1.8rem 2rem;

    border-radius: var(--radius);

    border: 1px dashed var(--green-mid);

    background: var(--cream-deep);

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 1.1rem;
}


.services-more p {
    margin: 0;

    color: var(--ink-soft);

    font-size: .96rem;

    line-height: 1.6;
}


@media (max-width: 1080px) {

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 560px) {

    .services-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================
   RESULTS
========================================= */

.results {
    max-width: var(--container);

    margin: 0 auto;

    padding: 5rem 1.5rem 6rem;
}


.carousel {
    position: relative;

    max-width: 880px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    gap: 1.2rem;

    padding: 2.6rem 1rem;
}


/* BUG: .carousel-corner era usado no HTML mas nao tinha regra nenhuma.
   Sem estilo, o <svg> virava item flex com a largura padrao de elemento
   substituido (~300px) e espremia o .carousel-track (flex-basis:0) ate 2px,
   deixando o carrossel "Antes & depois" em branco. Como ornamento de canto,
   ele precisa sair do fluxo. */
.carousel-corner {
    position: absolute;
    width: 44px;
    height: 44px;
    color: var(--green-mid);
    opacity: .55;
    pointer-events: none;
}

.carousel-corner.tl {
    top: 10px;
    left: 10px;
}

.carousel-arrow {
    flex-shrink: 0;

    width: 48px;
    height: 48px;

    border-radius: 50%;

    border:
        1px solid var(--green-mid);

    background: var(--cream);

    color: var(--green-dark);

    display: flex;

    align-items: center;
    justify-content: center;

    cursor: pointer;

    font-size: 2rem;

    line-height: 1;

    transition:
        transform .25s ease,
        background-color .25s ease,
        color .25s ease;
}


.carousel-arrow:hover {
    background: var(--green-dark);

    color: var(--cream);

    transform: scale(1.1);
}


.carousel-track {
    position: relative;

    flex: 1;

    min-height: 420px;

    overflow: hidden;

    border-radius: var(--radius);

    background: var(--cream-deep);

    border:
        1px solid rgba(127, 163, 114, .3);
}


.carousel-slide {
    position: absolute;

    inset: 0;

    display: grid;

    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    padding: 1.6rem;

    opacity: 0;

    transform: translateX(36px) scale(.97);

    pointer-events: none;

    transition:
        opacity .7s ease,
        transform .7s ease;
}


.carousel-slide.active {
    opacity: 1;

    transform: translateX(0) scale(1);

    pointer-events: auto;
}


.result-photo {
    margin: 0;

    position: relative;

    border-radius: 14px;

    overflow: hidden;

    aspect-ratio: 3 / 4;

    box-shadow:
        0 20px 40px -24px
        rgba(38, 51, 35, .5);
}


.result-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.result-photo figcaption {
    position: absolute;

    left: 0;
    bottom: 0;
    right: 0;

    padding: .5rem 0;

    text-align: center;

    font-family: var(--font-display);

    font-style: italic;

    font-size: .95rem;

    color: var(--cream);

    background:
        linear-gradient(
            to top,
            rgba(38, 51, 35, .75),
            rgba(38, 51, 35, 0)
        );
}


.carousel-divider {
    width: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--green-mid);

    font-size: 1.5rem;
}


.carousel-dots {
    display: flex;

    justify-content: center;

    gap: .6rem;

    margin-top: 1.6rem;
}


.dot {
    width: 10px;
    height: 10px;

    border-radius: 50%;

    border: none;

    background: var(--green-light);

    cursor: pointer;

    padding: 0;
}


.dot:hover {
    transform: scale(1.2);
}


.dot.active {
    background: var(--green-dark);
}


@media (max-width: 720px) {

    .carousel {
        gap: .5rem;

        padding:
            1.6rem 0;
    }


    .carousel-arrow {
        width: 40px;
        height: 40px;

        font-size: 1.6rem;
    }


    .carousel-track {
        min-height: 320px;
    }


    .carousel-slide {
        padding: 1rem .4rem;
    }


    .carousel-divider {
        width: 22px;
    }

}


/* =========================================
   CLIENTS
========================================= */

.clients {
    background: var(--cream-deep);

    /* a secao passou a conter so a chamada final (os depoimentos sairam),
       entao o respiro de 5rem deixava uma faixa vazia grande demais */
    padding: 3.2rem 1.5rem 3.4rem;
}


.avatar {
    width: 40px;
    height: 40px;

    border-radius: 50%;

    background: var(--green-mid);

    color: var(--cream);

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: .8rem;

    font-weight: 600;

    flex-shrink: 0;
}


.clients-cta {
    max-width: var(--container);

    margin: 0 auto;

    text-align: center;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 1.1rem;
}


.clients-cta p {
    font-family: var(--font-display);

    font-size: 1.4rem;

    margin: 0;
}


@media (max-width: 720px) {

}


/* =========================================
   FINALE
========================================= */

.finale {
    position: relative;

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    color: var(--cream);

    padding: 4rem 1.5rem;
}


.finale-bg {
    position: absolute;

    inset: 0;

    background-image:
        url("./depois-2.png");

    background-size: cover;

    background-position: center 30%;

    transform: scale(1.03);
}


.finale-overlay {
    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            ellipse at center,
            rgba(38, 51, 35, .55) 0%,
            rgba(38, 51, 35, .86) 72%
        ),
        linear-gradient(
            180deg,
            rgba(38, 51, 35, .75),
            rgba(38, 51, 35, .94)
        );
}


.finale-content {
    position: relative;

    z-index: 2;

    text-align: center;

    max-width: 560px;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: .6rem;
}


.finale-logo {
    width: 240px;

    height: auto;

    margin-bottom: 1rem;

    filter:
        drop-shadow(
            0 8px 20px rgba(0, 0, 0, .35)
        );
}


.finale-role {
    text-transform: uppercase;

    letter-spacing: .18em;

    font-size: .75rem;

    color: var(--green-light);

    margin: 0 0 .6rem;
}


.finale-content h2 {
    font-family: var(--font-display);

    font-weight: 500;

    font-size:
        clamp(1.6rem, 3.4vw, 2.3rem);

    color: var(--cream);

    margin: 0 0 1.6rem;

    line-height: 1.25;
}


.finale-phone {
    margin-top: 1rem;

    font-size: .92rem;

    color:
        rgba(243, 234, 216, .75);
}


@media (max-width: 720px) {

    .finale-logo {
        width: 120px;
    }

}


/* =========================================
   FOOTER
========================================= */

.site-footer {
    background: var(--footer-dark);

    color: var(--cream);

    padding: 1.4rem 1.5rem;
}


.footer-copy {
    max-width: var(--container);

    margin: 0 auto;

    text-align: center;

    font-size: .78rem;

    color:
        rgba(243, 234, 216, .55);
}


/* =========================================
   ACCESSIBILITY
========================================= */

:focus-visible {
    outline:
        2px solid var(--green-dark);

    outline-offset: 2px;
}


@media (prefers-reduced-motion: reduce) {

    * {
        animation-duration: .001ms !important;

        transition-duration: .001ms !important;
    }


    html {
        scroll-behavior: auto;
    }

}

/* ===========================================================
   Ajustes de refatoracao
   =========================================================== */

/* antes o script escrevia box-shadow inline a cada quadro de scroll */
.site-header {
  transition: box-shadow .3s ease;
}

.site-header.rolado {
  box-shadow: 0 8px 24px -18px rgba(38, 51, 35, .5);
}

/* trava o fundo enquanto o menu mobile esta aberto */
body.nav-aberta {
  overflow: hidden;
}

/* o carrossel recebe foco para navegar pelas setas do teclado */
#carousel:focus-visible {
  outline: 2px solid var(--verde, #263323);
  outline-offset: 6px;
}

/* sem isto o atributo height do HTML fixa a altura e anula aspect-ratio */
img {
  height: auto;
}


/* ===========================================================
   HERO com video
   =========================================================== */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  /* o cabecalho creme e sticky e fica acima: o hero ocupa o resto da tela.
     --header-h e medido pelo script e escrito no :root. */
  min-height: calc(100vh - var(--header-h, 78px));
  min-height: calc(100svh - var(--header-h, 78px));
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem 5rem;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background: #17140f;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* garante contraste do texto sobre qualquer quadro do video */
.hero-veu {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
      rgba(20, 17, 13, .58) 0%,
      rgba(20, 17, 13, .42) 45%,
      rgba(38, 51, 35, .82) 100%);
}

.hero-conteudo {
  max-width: 44rem;
}

.hero .eyebrow {
  color: var(--green-light);
  justify-content: center;
}

.hero-titulo {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  line-height: 1.12;
  font-size: clamp(2.2rem, 5.5vw, 3.9rem);
  color: #fff;
  margin: .6rem 0 1.1rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: rgba(255, 255, 255, .9);
  max-width: 34rem;
  margin: 0 auto 2.2rem;
}

.hero-acoes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .85rem;
}

.btn-claro {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.btn-claro:hover {
  background: #fff;
  color: var(--green-dark);
  border-color: #fff;
}

.hero-seta {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  translate: -50% 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .45);
  transition: background .3s ease, border-color .3s ease;
}

.hero-seta:hover {
  background: rgba(255, 255, 255, .16);
  border-color: #fff;
}

.hero-seta span {
  width: 10px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  rotate: 45deg;
  translate: 0 -2px;
  animation: heroDescer 1.8s ease-in-out infinite;
}

@keyframes heroDescer {

  0%,
  100% {
    translate: 0 -3px;
    opacity: .65;
  }

  50% {
    translate: 0 2px;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-seta span {
    animation: none;
  }
}
