/* ==========================================================================
   Instituto Avyr — Landing Page de conversão
   Design system: verde profundo (confiança/saúde) + dourado (premium)
   ========================================================================== */

:root {
  /* Paleta */
  --ink:        #0e2a2b;   /* verde-petróleo profundo */
  --ink-2:      #14383a;
  --ink-3:      #1c4a4c;
  --gold:       #c9a86a;   /* dourado premium */
  --gold-soft:  #e4d3ad;
  --cream:      #f7f4ee;   /* fundo claro sofisticado */
  --cream-2:    #efe9df;
  --white:      #ffffff;
  --text:       #24312f;
  --text-soft:  #5d6b68;
  --line:       rgba(14, 42, 43, .12);
  --green-wa:   #25d366;

  /* Tipografia */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --maxw: 1160px;
  --radius: 18px;
  --shadow-sm: 0 4px 18px rgba(14, 42, 43, .08);
  --shadow-md: 0 18px 50px rgba(14, 42, 43, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.section { padding: clamp(64px, 9vw, 120px) 0; }

.eyebrow {
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 600; color: var(--gold);
}
.eyebrow.dark { color: var(--gold); }

.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-title {
  font-family: var(--serif); font-weight: 600; line-height: 1.1;
  font-size: clamp(1.9rem, 4vw, 3rem); color: var(--ink); margin: .35em 0 .25em;
  letter-spacing: -.01em;
}
.section-sub { color: var(--text-soft); font-size: 1.05rem; }
.lead { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--text-soft); }
.fine-print { font-size: .82rem; color: var(--text-soft); }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 15px; --pad-x: 28px;
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: var(--pad-y) var(--pad-x);
  font-family: var(--sans); font-size: .98rem; font-weight: 600;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn-sm { --pad-y: 11px; --pad-x: 20px; font-size: .9rem; }
.btn-lg { --pad-y: 18px; --pad-x: 36px; font-size: 1.05rem; }

.btn-primary { background: var(--gold); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(201,168,106,.4); background: #d4b678; }

.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.btn .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green-wa); box-shadow: 0 0 0 0 rgba(37,211,102,.6); animation: pulse 2.2s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.55); }
  70%  { box-shadow: 0 0 0 10px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 10px 0; transition: background .3s, padding .3s, box-shadow .3s;
}
.site-header.scrolled {
  background: rgba(14,42,43,.92); backdrop-filter: blur(10px);
  padding: 6px 0; box-shadow: 0 6px 24px rgba(0,0,0,.18);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; color: var(--white); }
.brand-logo {
  height: 88px; width: auto; object-fit: contain;
  transition: height .3s var(--ease);
}
.site-header.scrolled .brand-logo { height: 66px; }

.nav { display: flex; gap: 30px; margin-left: auto; margin-right: 24px; }
.nav a { color: rgba(255,255,255,.85); font-size: .95rem; font-weight: 500; position: relative; }
.nav a::after { content:""; position:absolute; left:0; bottom:-6px; width:0; height:2px; background: var(--gold); transition: width .25s var(--ease); }
.nav a:hover { color: #fff; }
.nav a:hover::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: 0; right: 0; height: 100vh; width: min(80vw, 320px);
  background: var(--ink); z-index: 99; transform: translateX(100%);
  transition: transform .35s var(--ease); display: flex; flex-direction: column;
  gap: 8px; padding: 100px 28px 28px; box-shadow: -20px 0 60px rgba(0,0,0,.3);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { color: rgba(255,255,255,.9); font-size: 1.1rem; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-menu .btn { margin-top: 16px; border-bottom: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  color: var(--white); overflow: hidden; padding: 120px 0 80px;
}
.hero-media {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 70% 20%, rgba(201,168,106,.22), transparent 60%),
    url("assets/clinica-hero.jpg") center 30%/cover no-repeat;
  transform: scale(1.05); animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(9,30,31,.94) 0%, rgba(12,38,39,.8) 45%, rgba(12,38,39,.35) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.hero-title {
  font-family: var(--serif); font-weight: 600; letter-spacing: -.01em;
  font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.05; margin: 18px 0 20px;
}
.hero-title .accent { color: var(--gold); }
.hero-subtitle { font-size: clamp(1.05rem, 2.2vw, 1.35rem); color: rgba(255,255,255,.85); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin: 34px 0 30px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 22px; color: rgba(255,255,255,.8); font-size: .92rem; font-weight: 500; }

.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; }
.scroll-cue span {
  display: block; width: 24px; height: 40px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; position: relative;
}
.scroll-cue span::after {
  content:""; position:absolute; top:8px; left:50%; transform: translateX(-50%);
  width: 4px; height: 8px; background: var(--gold); border-radius: 4px; animation: cue 1.6s infinite;
}
@keyframes cue { 0%{opacity:0; top:8px;} 40%{opacity:1;} 80%{opacity:0; top:20px;} 100%{opacity:0;} }

/* ---------- Seção 2: Dor ---------- */
.pain { background: var(--white); }
.pain-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center; }
.pain-media {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}
.pain-media img { width: 100%; height: 100%; object-fit: cover; }
.pain-text .lead { margin-top: 16px; }
.pain-list { margin-top: 28px; display: grid; gap: 14px; }
.pain-list li {
  position: relative; padding-left: 34px; font-size: 1.05rem; font-weight: 500; color: var(--text);
}
.pain-list li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--cream-2); border: 2px solid var(--gold);
}
.pain-list li::after {
  content: ""; position: absolute; left: 6px; top: 13px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--gold);
}

/* ---------- Seção 3: Soluções ---------- */
.solutions { background: var(--cream); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-media { position: relative; overflow: hidden; height: 220px; }
.card-media::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(to top, rgba(14,42,43,.28), transparent 55%);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 30px 32px 34px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--text-soft); margin-bottom: 18px; flex: 1; }
.card-link { color: var(--ink); font-weight: 600; font-size: .92rem; border-bottom: 1px solid var(--gold); padding-bottom: 2px; align-self: flex-start; transition: color .2s; }
.card-link:hover { color: var(--gold); }

/* ---------- Seção 4: Autoridade ---------- */
.authority { background: var(--ink); color: var(--white); }
.authority-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.authority-media {
  border-radius: var(--radius); min-height: 520px; box-shadow: var(--shadow-md);
  background:
    linear-gradient(160deg, rgba(201,168,106,.12), transparent),
    url("assets/clinica-recepcao.jpg") center/cover no-repeat;
  border: 1px solid rgba(255,255,255,.12);
}
.authority .section-title { color: var(--white); }
.authority .lead { color: rgba(255,255,255,.8); }
.check-list { margin: 26px 0 32px; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 36px; font-size: 1.05rem; font-weight: 500; }
.check-list li::before {
  content:"✔"; position:absolute; left: 0; top: -1px; width: 24px; height: 24px;
  display: grid; place-items: center; font-size: .75rem; color: var(--ink);
  background: var(--gold); border-radius: 50%;
}

/* ---------- Seção 5: Depoimentos ---------- */
.testimonials { background: var(--cream); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; position: relative;
}
.quote::before {
  content:"“"; font-family: var(--serif); font-size: 5rem; color: var(--gold-soft);
  position: absolute; top: 6px; right: 22px; line-height: 1;
}
.stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 14px; }
.quote blockquote { font-size: 1.02rem; color: var(--text); font-style: italic; margin-bottom: 18px; }
.quote figcaption { font-weight: 600; color: var(--ink); font-size: .95rem; }
.testimonials .fine-print { margin-top: 30px; }

/* ---------- Galeria: Nosso Espaço ---------- */
.gallery { background: var(--white); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; gap: 18px;
}
.g-item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); margin: 0;
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.g-item:hover img { transform: scale(1.06); }
.g-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 26px 20px 16px; color: #fff; font-size: .95rem; font-weight: 500;
  background: linear-gradient(to top, rgba(10,32,33,.82), transparent);
}
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }
.gallery .fine-print { margin-top: 22px; }

/* ---------- Seção 6: FAQ ---------- */
.faq { background: var(--white); }
.accordion { display: grid; gap: 14px; }
.acc-item { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--cream); transition: box-shadow .3s; }
.acc-item.active { box-shadow: var(--shadow-sm); background: var(--white); }
.acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: none; border: 0; cursor: pointer; padding: 22px 26px; text-align: left;
  font-family: var(--sans); font-size: 1.08rem; font-weight: 600; color: var(--ink);
}
.acc-icon { position: relative; width: 18px; height: 18px; flex: none; }
.acc-icon::before, .acc-icon::after {
  content:""; position:absolute; background: var(--gold); border-radius: 2px; transition: transform .3s var(--ease);
}
.acc-icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.acc-icon::after  { top: 0; left: 8px; width: 2px; height: 18px; }
.acc-item.active .acc-icon::after { transform: rotate(90deg); opacity: 0; }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.acc-panel p { padding: 0 26px 24px; color: var(--text-soft); }

/* ---------- Seção 7: CTA final + footer ---------- */
.final-cta {
  background: linear-gradient(120deg, var(--ink) 0%, var(--ink-3) 100%);
  color: var(--white); padding: clamp(70px, 9vw, 110px) 0; position: relative; overflow: hidden;
}
.final-cta::after {
  content:""; position:absolute; inset:0; background: radial-gradient(700px 320px at 50% 0%, rgba(201,168,106,.18), transparent 70%);
}
.final-cta .container { position: relative; z-index: 2; }
.final-title { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.1; max-width: 780px; margin: 0 auto .5em; }
.final-sub { color: rgba(255,255,255,.82); font-size: 1.1rem; margin-bottom: 34px; }

.site-footer { background: #0a2021; color: rgba(255,255,255,.75); padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.footer-logo { width: 100%; max-width: 340px; height: auto; object-fit: contain; }
.footer-col h4 { color: #fff; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col p { margin-bottom: 10px; font-size: .94rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-direction: column; gap: 8px;
}
.footer-bottom .fine-print { color: rgba(255,255,255,.55); }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; background: var(--green-wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,.45);
  transition: transform .25s var(--ease); opacity: 0; transform: scale(.6) translateY(20px);
  pointer-events: none;
}
.whatsapp-float.show { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; }
.whatsapp-float:hover { transform: scale(1.08) translateY(0); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 960px) {
  .nav { display: none; }
  .header-inner > .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .authority-inner { grid-template-columns: 1fr; gap: 34px; }
  .authority-media { min-height: 320px; order: -1; }
  .quotes { grid-template-columns: 1fr; }
  .pain-inner { grid-template-columns: 1fr; gap: 34px; }
  .pain-media { order: -1; aspect-ratio: 16 / 10; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .g-wide { grid-column: span 2; }
}
@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero { padding-top: 110px; }
  .hero-actions .btn { width: 100%; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .g-tall, .g-wide { grid-row: auto; grid-column: auto; }
  .brand-logo { height: 58px; max-width: 62vw; }
}
@media (max-width: 460px) {
  .container { padding: 0 18px; }
}

/* Acessibilidade: respeita preferência de menos movimento */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
