/* ===================================================================
   Sorriso Maior — design tokens
   =================================================================== */
:root {
  --color-bg: #ffffff;
  --color-bg-alt: #fafafa;
  --color-surface: #ffffff;
  --color-text: #26241f;
  --color-text-muted: #635f56;
  --color-border: #e5e5e5;

  /* Tons exatos da logo (fil0/fil3/fil1) — não inventar variações. */
  --color-primary: #27a6e3;
  --color-primary-light: #6cc4eb;
  --color-accent: #e6cc12;

  /* Fontes reais do site atual (sorrisomaior.com.br): Montserrat + Open Sans. */
  --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display-bold: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --section-pad-y: clamp(4rem, 9vw, 7.5rem);
  --section-pad-x: clamp(1.25rem, 5vw, 4rem);
  --gap: clamp(1rem, 2.5vw, 2rem);
  --radius: 4px;
  --radius-pill: 999px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ===================================================================
   Reset
   =================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; color: var(--color-text); }
p { margin: 0 0 1em; color: var(--color-text-muted); }
button { font: inherit; cursor: pointer; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--color-primary); color: #fff;
  padding: .75rem 1.25rem; z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ===================================================================
   Reveal-on-scroll (IntersectionObserver toggles .is-visible)
   =================================================================== */
/* Hidden-until-revealed state only applies once main.js has run (html.js-reveal),
   so content stays fully visible if JS fails or is disabled. */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js-reveal [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ===================================================================
   Layout helpers
   =================================================================== */
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
/* span set on both start/end so col-start-* can override just the start
   without collapsing the end back to auto (a bare "span 4" only sets the start). */
.col-span-4 { grid-column: span 4 / span 4; }
.col-span-7 { grid-column: span 7 / span 7; }
.col-start-9 { grid-column-start: 9; }

.section { padding: var(--section-pad-y) var(--section-pad-x); max-width: 1440px; margin: 0 auto; }
.section--alt { background: var(--color-bg-alt); max-width: none; }
.section--alt > * { max-width: 1440px; margin-left: auto; margin-right: auto; }

.section-heading { max-width: 640px; margin: 0 0 3rem; }
.center { text-align: center; }
.section-heading.center { margin-left: auto; margin-right: auto; }
.section-title { font-size: clamp(1.75rem, 3.2vw, 2.75rem); }
.section-note { font-style: italic; font-size: .9rem; }

.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 600;
  margin: 0 0 .75rem;
}
.eyebrow::after {
  content: '';
  display: block;
  width: 28px; height: 3px;
  margin-top: .6rem;
  background: var(--color-accent);
  border-radius: 2px;
}
.eyebrow.center::after { margin-left: auto; margin-right: auto; }

.btn {
  display: inline-block;
  padding: .85em 1.8em;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease);
}
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { filter: brightness(.92); transform: translateY(-2px) scale(1.02); }
.btn--ghost { border-color: var(--color-text); color: var(--color-text); }
.btn--ghost:hover { border-color: var(--color-primary); color: var(--color-primary); transform: translateY(-2px) scale(1.02); }
.btn:active { transform: translateY(0) scale(.98); }

.media-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, rgba(38,36,31,.05) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #eef0f2, #e1e4e8);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: .85rem;
  text-align: center;
  padding: 1rem;
  overflow: hidden;
  transition: transform .5s var(--ease);
}
.media-placeholder:hover { transform: scale(1.03); }
.media-placeholder--tall { aspect-ratio: 3 / 4; }
.media-placeholder img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-placeholder:has(img) { padding: 0; }

/* Formas orgânicas — quebram a grade de quadrados/retângulos em alguns pontos. */
.media-placeholder--blob-a {
  border-radius: 63% 37% 54% 46% / 43% 65% 35% 57%;
  border: none;
  transition: transform .5s var(--ease), border-radius .6s var(--ease);
}
.media-placeholder--blob-a:hover { border-radius: 46% 54% 40% 60% / 58% 42% 58% 42%; }
.media-placeholder--blob-b {
  border-radius: 42% 58% 68% 32% / 45% 44% 56% 55%;
  border: none;
  transition: transform .5s var(--ease), border-radius .6s var(--ease);
}
.media-placeholder--blob-b:hover { border-radius: 58% 42% 38% 62% / 40% 60% 40% 60%; }
.map-embed {
  aspect-ratio: 16 / 7;
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ===================================================================
   Header
   =================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), padding .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--color-border); }

.site-header__inner {
  max-width: 1440px; margin: 0 auto;
  padding: 1.1rem var(--section-pad-x);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}

.brand__logo { height: 34px; width: auto; }
.brand__logo--footer { height: 30px; filter: none; }

.main-nav ul { display: flex; gap: 1.9rem; }
.main-nav a {
  font-size: .92rem; font-weight: 500; color: var(--color-text);
  position: relative; padding: .25rem 0;
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--color-primary); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.main-nav a:hover::after { transform: scaleX(1); }

.site-header__actions { display: flex; align-items: center; gap: 1.25rem; }
.phone-link { font-size: .88rem; font-weight: 500; color: var(--color-text-muted); white-space: nowrap; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: .5rem;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--color-text); display: block; }

/* ===================================================================
   Hero
   =================================================================== */
.hero {
  position: relative;
  display: flex; align-items: center;
  min-height: 82vh;
  width: 100%;
  overflow: hidden;
}
.hero__inner {
  position: relative; z-index: 1; width: 100%;
  max-width: 1440px; margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) var(--section-pad-x) var(--section-pad-y);
}
.hero__bg { position: absolute; inset: -100px; z-index: 0; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  filter: blur(4px);
}
.hero__bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.85) 0%, rgba(255,255,255,.6) 22%, rgba(255,255,255,.4) 38%, rgba(255,255,255,.18) 58%, rgba(255,255,255,0) 78%), rgba(255,255,255,.22);
}
.hero__text { position: relative; z-index: 1; max-width: 660px; }
.hero h1 {
  font-family: var(--font-display-bold);
  font-weight: 800;
  font-size: clamp(3rem, 6vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -.02em;
}
.hero__lede { font-size: 1.05rem; max-width: 44ch; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.75rem; }

/* Cascading entrance: each hero line follows the last instead of arriving all at once. */
.hero__text > .eyebrow[data-reveal] { transition-delay: 0ms; }
.hero__text > h1[data-reveal] { transition-delay: 90ms; }
.hero__text > .hero__lede[data-reveal] { transition-delay: 180ms; }
.hero__text > .hero__cta[data-reveal] { transition-delay: 270ms; }

/* ===================================================================
   Statement band — full-bleed, oversized type (Halo-style impact block)
   =================================================================== */
.statement {
  position: relative;
  z-index: 1;
  background: var(--color-primary);
  padding: clamp(3rem, 9vw, 6rem) var(--section-pad-x) clamp(4.5rem, 11vw, 7.5rem);
}
.statement__wave {
  position: absolute; left: 0; right: 0;
  line-height: 0;
}
.statement__wave--top { top: calc(-1 * clamp(36px, 7vw, 70px) + 1px); }
.statement__wave--bottom { bottom: -1px; }
.statement__wave svg {
  display: block; width: 100%; height: clamp(36px, 7vw, 70px);
}
.statement__text {
  max-width: 1440px;
  margin: 0 auto;
  color: #fff;
  font-family: var(--font-display-bold);
  font-weight: 800;
  font-size: clamp(2.1rem, 6vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  text-align: center;
}

/* ===================================================================
   Asymmetric about block (Grand Street-style offset columns)
   =================================================================== */
.asym-block { align-items: start; }
.asym-block__text { margin-top: 4rem; }
.asym-block__text h2 { font-size: clamp(1.5rem, 2.4vw, 2.15rem); }

.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  margin-top: 4.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}
.stat {
  display: flex; flex-direction: column; gap: .35rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--color-border);
}
.stat:first-child { padding-left: 0; border-left: none; }
.stat__number {
  font-family: var(--font-display-bold);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.stat__label { font-size: .82rem; color: var(--color-text-muted); }

/* ===================================================================
   Values grid
   =================================================================== */
.values-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap);
  max-width: 1440px; margin: 0 auto; padding: 0 var(--section-pad-x);
}
.value-card { text-align: left; }
.value-card__icon { width: 38px; height: 38px; color: var(--color-primary); margin-bottom: 1rem; }
.value-card h3 { font-size: 1.05rem; margin-bottom: .4em; }
.value-card p { font-size: .9rem; }

/* ===================================================================
   Services — asymmetric gallery grid
   =================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.service-card--lg { grid-column: span 2; }
.service-card .media-placeholder { margin-bottom: 1.1rem; }
.service-card h3 { font-size: 1.1rem; margin-bottom: .35em; }
.service-card p { font-size: .88rem; }

/* ===================================================================
   Before / after results
   =================================================================== */
.results-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(var(--gap) * 1.4);
}
.result-pair { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.result-pair--offset { margin-top: 3.5rem; }
.result-pair figcaption {
  grid-column: 1 / -1; margin-top: .85rem;
  font-size: .85rem; color: var(--color-text-muted); text-align: center;
}

/* ===================================================================
   Team
   =================================================================== */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.team-card { text-align: center; }
.team-card__avatar {
  width: 84px; height: 84px; margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--color-primary), var(--color-primary-light));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.4rem;
  overflow: hidden;
}
.team-card__avatar--photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 1.02rem; margin-bottom: .2em; }
.team-card p { font-size: .85rem; }

/* ===================================================================
   Testimonials
   =================================================================== */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.testimonial-card {
  margin: 0; background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 2rem;
}
.testimonial-card p { color: var(--color-text); font-family: var(--font-display); font-size: 1.1rem; }
.testimonial-card cite { font-style: normal; font-size: .82rem; color: var(--color-text-muted); }

/* ===================================================================
   FAQ
   =================================================================== */
.faq-list { max-width: 760px; }
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
}
.faq-item summary {
  cursor: pointer; font-weight: 600; font-size: 1rem;
  display: flex; justify-content: space-between; align-items: center;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--color-primary); transition: transform .3s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: .9rem; font-size: .92rem; }

/* ===================================================================
   Contact
   =================================================================== */
.contact-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: calc(var(--gap) * 2);
  max-width: 1440px; margin: 0 auto;
}
.contact-list { margin-top: 1.75rem; display: flex; flex-direction: column; gap: 1rem; }
.contact-list li { display: flex; flex-direction: column; gap: .15rem; font-size: .92rem; }
.contact-list strong { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--color-primary); }
.contact-list a { text-decoration: underline; text-decoration-color: var(--color-border); text-underline-offset: 3px; }
.contact-list a:hover { color: var(--color-primary); text-decoration-color: var(--color-primary); }

.contact-form {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 2rem;
  display: flex; flex-direction: column; gap: 1.1rem;
}
.contact-form label { display: flex; flex-direction: column; gap: .4rem; font-size: .85rem; font-weight: 500; }
.contact-form input, .contact-form textarea {
  font: inherit; padding: .7em .8em; border: 1px solid var(--color-border);
  border-radius: var(--radius); background: var(--color-bg-alt);
  color: var(--color-text);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.contact-form button { align-self: flex-start; margin-top: .25rem; }

/* ===================================================================
   Footer
   =================================================================== */
.site-footer { border-top: 1px solid var(--color-border); padding: 3rem var(--section-pad-x) 1.5rem; }
.site-footer__inner {
  max-width: 1440px; margin: 0 auto 1.5rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
}
.site-footer__inner nav ul { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-footer__inner nav a { font-size: .88rem; color: var(--color-text-muted); }
.site-footer__social { display: flex; gap: 1.25rem; }
.site-footer__social a { font-size: .85rem; color: var(--color-text-muted); }
.site-footer__legal { max-width: 1440px; margin: 0 auto; font-size: .78rem; color: var(--color-text-muted); text-align: center; }

/* ===================================================================
   Botão flutuante do WhatsApp
   =================================================================== */
.whatsapp-float {
  position: fixed; right: clamp(1rem, 4vw, 2rem); bottom: clamp(1rem, 4vw, 2rem);
  z-index: 60;
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  background: #25d366;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .4);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 28px rgba(37, 211, 102, .5); }
.whatsapp-float:active { transform: translateY(0) scale(.96); }
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { transition: none; }
}
@media (max-width: 560px) {
  .whatsapp-float { width: 50px; height: 50px; right: 1rem; bottom: 1rem; }
  .whatsapp-float svg { width: 26px; height: 26px; }
  /* Reserva espaço pro botão não cobrir a última linha do rodapé. */
  .site-footer { padding-bottom: 4.5rem; }
}

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 980px) {
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-8px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 0; padding: .5rem var(--section-pad-x) 1.5rem; }
  .main-nav a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--color-border); }
  .nav-toggle { display: flex; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-toggle span { transition: transform .25s var(--ease), opacity .25s var(--ease); }
  .phone-link { display: none; }

  .hero { min-height: auto; }
  .hero__bg::after { background: linear-gradient(180deg, #fff 0%, #fff 55%, rgba(255,255,255,.9) 75%, rgba(255,255,255,.55) 100%); }

  .grid-12, .asym-block { grid-template-columns: 1fr; }
  .col-span-4, .col-span-7 { grid-column: span 1; }
  .col-start-9 { grid-column-start: 1; }
  .asym-block__text { margin-top: 2rem; }

  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); padding: 0 var(--section-pad-x); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card--lg { grid-column: span 2; }
  .results-grid { grid-template-columns: 1fr; }
  .result-pair--offset { margin-top: 0; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .values-grid, .stats-row, .team-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 1.25rem; }
  .stat {
    border-left: none; padding-left: 0;
    border-top: 1px solid var(--color-border); padding-top: 1.25rem;
  }
  .stat:first-child { border-top: none; padding-top: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card--lg { grid-column: span 1; }
  .result-pair { grid-template-columns: 1fr 1fr; }

  .site-header__inner { padding-top: .85rem; padding-bottom: .85rem; gap: .75rem; }
  .site-header__actions { gap: .5rem; }
  .site-header__actions .btn--primary { font-size: .75rem; padding: .65em .9em; }
  .brand__logo { height: 26px; }

  html { scroll-padding-top: 66px; }
}
