/* ==========================
   Base / Tokens
========================== */

:root{
    /* Colors */
    --bg: #FBF9F7;
    --bg-alt: #F3ECDE;
    --text: #333;
    --title: #382925;
    --muted: rgba(56, 41, 37, 0.70);
    --brand: #8B6B36;
    --accent: #4CC3C8;
    --white: #fff;

    /* Effects */
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.10);
    --shadow-md: 0 4px 10px rgba(0,0,0,0.12);
    --radius-sm: 5px;
    --radius-md: 10px;
    --radius-lg: 20px;
    --radius-pill: 50px;

    /* Typography */
    --font-ui: "Montserrat", "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --font-title: "Alex Brush", cursive;
    --font-menu: "Cinzel", serif;

    /* Layout */
    --header-h: 6rem;
    --header-h-lg: 8rem;

    --container-pad: 1rem;
}

html { scroll-behavior: smooth; }

*,
*::before,
*::after { box-sizing: border-box; }

body{
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-ui);
    margin: 0;
    padding: 0;
}

a{
    color: inherit;
    text-decoration: none;
}

/* Headings */
h2{
    color: var(--title);
    font-family: var(--font-title);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 100;
    text-align: center;
    margin: 0;
}

h3{
    color: var(--title);
    font-family: var(--font-ui);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

h4{
    font-family: var(--font-ui);
    font-size: 2rem;
    font-weight: 400;
    margin: 3rem 0 0;
    text-align: center;
}


/* ==========================
   Header / Menus
========================== */

header{
    align-items: center;
    background-color: var(--bg);
    display: grid;
    height: var(--header-h);
    padding: 0 var(--container-pad);
    position: relative; /* importante pro nav absoluto */
    z-index: 1000;
}

.logo-img{
    width: 150px;
    height: auto;
    cursor: pointer;
}

/* Menu Horizontal (desktop) */
#menu-horizontal{ display: none; }

/* Menu Hamburger (mobile) */
#menu-hamburger{
    align-items: center;
    display: grid;
    grid-template-columns: 1fr auto;
}

.hamburger{
    align-items: center;
    background-color: var(--brand);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: grid;
    height: 2rem;
    justify-items: center;
    width: 2rem;
}

.menu-icon{
    color: var(--bg);
    font-size: 1.3rem;
}

/* NAV: fechado por padrão */
#menu-hamburger nav{
    background-color: #FBF9F7;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    left: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    top: 6rem; /* igual ao original */
    transition: max-height 0.7s, opacity 0.1s ease; /* igual ao original */
    width: 100%;
    z-index: 100;
  }
  
  /* Navegação aberta (ORIGINAL) */
  #menu-hamburger nav.open{
    max-height: 500px; /* igual ao original */
    opacity: 1;
  }

/* Menu list */
#nav-menu{ padding: 1rem; }

.nav-menu{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-items{
    color: var(--text);
    cursor: pointer;
    font-family: var(--font-menu);
    font-size: 1rem;
    padding: 0.5rem;
    text-align: left;
    transition: color 0.25s ease;
}

.nav-items:hover{ color: var(--accent); }

/* CTA */
.book-now{
    margin: 1rem 0;
    text-align: center;
}

.book-now button{
    background-color: var(--brand);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--bg);
    cursor: pointer;
    font-family: var(--font-ui);
    font-size: 1rem;
    padding: 0.6rem 1.1rem;
    transition: 0.25s ease;
    white-space: nowrap; /* <<< evita quebrar em 2 linhas */
}

.book-now button:hover{
    background-color: var(--bg);
    color: var(--brand);
    border-color: var(--brand);
}


/* ==========================
   Carousel
========================== */

.carousel{
    box-shadow: var(--shadow-md);
    margin: 0 auto;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: clamp(360px, 65vh, 700px);
}

.carousel-images{
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
  }
  
  /* cada slide (picture) precisa ocupar 100% */
  .carousel-images picture{
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: block;
  }
  
  /* a imagem dentro do picture ocupa o slide todo */
  .carousel-images picture img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .carousel-images a{
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: block;
  }

  .carousel-images a picture,
.carousel-images a img{
  width: 100%;
  height: 100%;
  display: block;
}
  

/* controls */
.carousel-button{
    align-items: center;
    background-color: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 2rem;
    height: 40px;
    justify-content: center;
    opacity: 0.85;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.2s ease;
    width: 40px;
    z-index: 10;
}

.carousel-button:hover{ opacity: 1; }
.carousel-button.prev{ left: 10px; }
.carousel-button.next{ right: 10px; }

.carousel-indicators{
    bottom: 18px;
    display: flex;
    gap: 10px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
}

.indicator{
    background-color: var(--brand);
    border: 2px solid var(--accent);
    border-radius: 50%;
    cursor: pointer;
    height: 12px;
    width: 12px;
    opacity: 0.75;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.indicator.active{
    background-color: var(--accent);
    opacity: 1;
    transform: scale(1.05);
}

.carousel-images a{
    cursor: pointer;
  }

/* ==========================
   Fade-in for Sections
========================== */

section {
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 700ms ease, transform 700ms ease;
    will-change: opacity, transform;
  }
  
  section.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Acessibilidade: respeita quem desativa animações */
  @media (prefers-reduced-motion: reduce) {
    section {
      opacity: 1;
      transform: none;
      transition: none;
    }
  }

  /* ==========================
  Especialidades
========================== */

/* ==========================
   Especialidade (Home) + Outros serviços (card)
========================== */

#especialidade{
  background-color: var(--bg-alt);
  padding: clamp(2.2rem, 4vw, 3.5rem) var(--container-pad);
}

#especialidade .focus-wrap{
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 1.6rem;
}

/* Left column */
#especialidade .focus-left{
  text-align: center;

}

#especialidade .focus-text{
  max-width: 760px;
  margin: 1rem auto 0;
  color: var(--muted);
  font-family: var(--font-ui);
  line-height: 1.7rem;
}

#especialidade .focus-text p{
  margin: 0 0 0.9rem;
}

#especialidade .focus-highlights{
  list-style: none;
  padding: 0;
  margin: 1.1rem auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

#especialidade .focus-highlights li{
  background-color: rgba(251, 249, 247, 0.75);
  border: 1px solid rgba(139, 107, 54, 0.30);
  border-radius: var(--radius-pill);
  color: var(--title);
  font-family: var(--font-ui);
  font-weight: 500;
  padding: 0.65rem 1.1rem;
  white-space: nowrap;
}

#especialidade .focus-cta{
  margin-top: 1.1rem;
  display: flex;
  justify-content: center;
}

/* Right column: card */
#especialidade .focus-right{
  display: block;
}

#especialidade .focus-card{
  background-color: var(--bg);
  border: 1px solid rgba(139, 107, 54, 0.45);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.4rem 1.2rem;
  text-align: center;
}

#especialidade .focus-card h3{
  color: var(--brand);
  margin-bottom: 0.6rem;
}

#especialidade .focus-card p{
  margin: 0 0 1rem;
  color: var(--muted);
  font-family: var(--font-ui);
  line-height: 1.6rem;
}

#especialidade .focus-card-actions{
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.text-bold {
  font-weight: bold;
}

/* ==========================
   Serviços (Página interna / Específicos)
========================== */
.servicoes-card-container {    
    padding: 1rem;
}

.servicos-card-img {
  width: 100%;
  border-radius: var(--radius-lg);
}

.servicos-header{
    position: relative;
    width: 100%;
}

.servicos-header img{
    width: 100%;
    height: 10rem;
    object-fit: cover;
    object-position: center;
    opacity: 0.6;
}

.text-overlay{
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 10px 20px;
}

.servicos-individuais{
    padding: 2rem 0;
    background-color: var(--bg-alt);
}

.servico{
    background-color: var(--bg);
    border: 1px solid var(--brand);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin: 1rem;
}

.servicos-individuais h3{
    color: var(--brand);
    text-align: center;
}

.servicos-individuais p{
    color: var(--brand);
    font-family: var(--font-ui);
    line-height: 1.6rem;
    text-align: left;
    padding: 0 1rem;
    margin: 0 0 0.8rem;
}


/* ==========================
   Serviços (Home #services)
========================== */

#services{ background-color: var(--bg-alt); }

#services h2{
    padding-top: 2rem;
    margin: 0;
}

.services-list{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

.service{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.service img{
    border-radius: 50%;
    width: 100%;
    max-width: 420px;
    height: 400px;
    object-fit: cover;
    overflow: hidden;
}

button.know-more{
    align-self: center;
    background-color: var(--bg);
    border: 1px solid var(--brand);
    border-radius: var(--radius-pill);
    color: var(--brand);
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
    padding: 10px 20px;
    transition: 0.25s ease;
}

button.know-more:hover{
    background-color: var(--brand);
    border-color: var(--bg);
    color: var(--bg);
}


/* ==========================
   About
========================== */

#about-us{
    background-color: var(--bg);
    padding: 1rem;
}

#about-us p{
    color: var(--muted);
    font-family: var(--font-ui);
    line-height: 1.6rem;
    text-align: center;
}

.about-img{
    border-radius: var(--radius-md);
    width: 100%;
}

.about-right-img{ display: none; }

.certificates{
    background-color: var(--white);
    border: 1px solid rgba(0,0,0,0.16);
    border-radius: 60px;
    display: flex;
    font-size: 0.8rem;
    margin-top: 1rem;
    padding: 14px;
}

.icon{
    align-self: center;
    width: 20px;
    height: 20px;
    margin: 0 1rem;
}


/* ==========================
   Contact
========================== */

#contact h2{ margin: 1rem 0; }

.contact-method{
    align-items: center;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    text-align: center;
}

.contact-method a:visited{ color: var(--title); }

.contact-icons{
    width: 3rem;
    height: 3rem;
    padding: 0;
}


/* ==========================
   Reviews
========================== */

#reviews{ padding: 1rem; }
#reviews h2{ margin-bottom: 0; }


/* ==========================
   Footer
========================== */

#footer{
    background-color: var(--bg-alt);
    padding: 1rem;
    text-align: center;
}

.links h3,
.logo-description h3{
    font-family: var(--font-ui);
    font-weight: 300;
    margin-top: 0;
}

.quick-links,
.contact-info{
    font-family: var(--font-ui);
    font-weight: 200;
    list-style: none;
    margin: 0;
    padding: 0;
}

.quick-links li{
    margin: 0;
    padding: 0 0 1rem 0;
}

.quick-links li a:visited{ color: var(--text); }

.footer{
    font-family: var(--font-ui);
    padding: 1rem 0;
    text-align: center;
}

.description-footer{ display: none; }

.footer small{ margin-top: 1rem; }


/* ==========================
   Fixed WhatsApp Button
========================== */

.fixed-button{
    align-items: center;
    background-color: #25D366;
    bottom: 20px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.20);
    cursor: pointer;
    display: flex;
    height: 80px;
    justify-content: center;
    position: fixed;
    right: 20px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    width: 80px;
    z-index: 1000;
}

.fixed-button:hover{
    background-color: #1DA851;
    transform: translateY(-1px);
}

.fixed-button .icon{
    color: var(--white);
    font-weight: bold;
    height: 2rem;
    width: 2rem;
    line-height: 1;
}


/* ==========================
   Responsive
========================== */

/* tablet+ */
@media (min-width: 768px){
    .hamburger{
        height: 2.5rem;
        width: 2.5rem;
    }

    .servicoes-card-container {
      display: none;
    }

    .menu-icon{ font-size: 1.5rem; }
}

/* desktop */
@media (min-width: 1024px){

    header{
        height: var(--header-h-lg);
    }

    #menu-hamburger{ display: none; }

    #menu-horizontal{
        display: flex;
        align-items: center;
        width: 100%;
    }

    .book-now{
        margin: 0;
        text-align: right;
    }

    .menu{
        flex: 1;
    }

    .menu-list{
        display: flex;
        justify-content: center;
        gap: 3rem;
    }

    .menu-list li{
        list-style: none;
        color: var(--text);
        cursor: pointer;
        font-family: var(--font-menu);
        font-size: 1.2rem;
        padding: 0.5rem;
        text-align: center;
        transition: color 0.25s ease;
    }

    .menu-list li:hover{ color: var(--accent); }

    .logo-img{
        width: 200px;
        margin-left: 6rem;
    }

    /* Especialidades */

    #especialidade .focus-wrap{
        grid-template-columns: 1.65fr 1fr; /* texto maior, card menor */
        align-items: start;
        gap: 2rem;
      }
    
      #especialidade .focus-left{
        text-align: left;
      }

       #especialidade .focus-right{
        padding-top: 1.5rem; /* desce o card; ajuste fino abaixo */
        }
    
      #especialidade .focus-text{
        margin-left: 0;
        margin-right: 0;
        text-align: left;
      }
    
      #especialidade .focus-highlights{
        justify-content: flex-start;
      }
    
      #especialidade .focus-cta{
        justify-content: center;
      }
    
      #especialidade .focus-card{
        text-align: left;
        margin-top: 0;
      }
    
      #especialidade .focus-card-actions{
        justify-content: flex-start;
      }

    /* Serviços internos (cards) */
    .servicos-individuais{
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
        justify-items: center;
        padding: 2rem 1rem;
    }

    .servico{
        width: 100%;
        max-width: 420px;
        min-height: 25rem;
        margin: 0;
    }
    

    /* About */
    #about-us .container{
        margin-top: 2rem;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .img-content{
        display: grid;
        place-items: center;
    }

    .about-img{
        width: 60%;
        height: auto;
    }

    .about-right-img{ display: block; }

    #about-us p,
    .about-right p{
        text-align: left;
    }

    .certificates-container{
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    /* Footer */
    .footer-wraper{
        text-align: center;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1rem;
    }

    hr{ display: none; }

    .description-footer{
        display: block;
        font-family: var(--font-ui);
        font-weight: 200;
    }

    .description-footer img{
        width: 150px;
        height: auto;
    }
}

/* ==========================
   Premium Motion Pack (CSS)
   - keep HTML unchanged
========================== */

/* Motion tokens */
:root{
  --ease-out: cubic-bezier(.2,.8,.2,1);
  --ease-soft: cubic-bezier(.22,.61,.36,1);
  --dur-fast: 180ms;
  --dur-med: 420ms;
  --dur-slow: 760ms;

  /* reveal defaults */
  --reveal-y: 16px;
  --reveal-blur: 6px;
  --reveal-delay: 0ms;
}

/* Respect accessibility */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================
   1) Reveal on scroll (sections + blocks)
========================== */

.reveal{
  opacity: 0;
  transform: translate3d(0, var(--reveal-y), 0);
  filter: blur(var(--reveal-blur));
  transition:
    opacity var(--dur-slow) var(--ease-soft),
    transform var(--dur-slow) var(--ease-out),
    filter var(--dur-slow) var(--ease-soft);
  will-change: opacity, transform, filter;
  transition-delay: var(--reveal-delay);
}

.reveal.is-visible{
  opacity: 1;
  transform: translate3d(0,0,0);
  filter: blur(0);
}

/* Stagger helper: JS sets --stagger on children */
.stagger > .reveal{
  transition-delay: calc(var(--stagger, 0) * 90ms);
}

/* Slightly different reveal flavor */
.reveal--soft{
  --reveal-y: 10px;
  --reveal-blur: 4px;
}

/* ==========================
   3) Buttons: refined hover / press
========================== */

.book-now button,
button.know-more{
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}

/* ==========================
   4) Desktop menu underline animation
========================== */

@media (min-width: 1024px){
  .menu-list li a{
    position: relative;
    display: inline-block;
    padding-bottom: 6px;
  }

  .menu-list li a::after{
    content: "";
    position: absolute;
    left: 10%;
    bottom: 0;
    width: 80%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--dur-fast) var(--ease-out);
    border-radius: 2px;
  }

  .menu-list li:hover a::after{
    transform: scaleX(1);
  }
}

/* ==========================
   5) Header sticky with subtle state (optional but nice)
   JS toggles .is-scrolled on header
========================== */

header{
  transition:
    box-shadow var(--dur-fast) var(--ease-out),
    backdrop-filter var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out);
}

header.is-scrolled{
  position: sticky;
  top: 0;
  z-index: 200;
  background-color: rgba(251,249,247,0.86);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.10);
}

/* ==========================
   6) WhatsApp fixed button: better feedback
========================== */

.fixed-button{
  transition:
    background-color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

@media (hover: hover){
  .fixed-button:hover{
    transform: translate3d(0,-2px,0) scale(1.02);
    box-shadow: 0 18px 30px rgba(0,0,0,0.18);
  }
}

.fixed-button:active{
  transform: scale(0.98);
}

/* ==========================
   7) Servicos header parallax
========================== */
.servicos-header img{
  transform: translateZ(0);
  transition: transform var(--dur-slow) var(--ease-soft);
}

.servicos-header:hover img{
  transform: scale(1.02);
}

