/* =========================================================
   Clínica Vitrálle — Template One Page Premium
   Avanthy Sites · style.css (base + desktop)
   ========================================================= */

:root {
  /* Paleta */
  --ink:          #1b2320;
  --ink-soft:     #4a544f;
  --muted:        #8a938e;
  --bg:           #fbfaf7;
  --bg-soft:      #f3f0ea;
  --bg-dark:      #16201c;
  --line:         #e4dfd6;
  --brand:        #2f5d4f;
  --brand-deep:   #1f4237;
  --brand-soft:   #e7efe9;
  --gold:         #b08a4f;
  --white:        #ffffff;
  --whats:        #1ea952;

  /* Tipografia */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body:    "Jost", -apple-system, "Segoe UI", sans-serif;

  /* Escala */
  --container: 1200px;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 2px 14px rgba(27, 35, 32, .06);
  --shadow-md: 0 18px 50px -24px rgba(27, 35, 32, .30);
  --shadow-lg: 0 40px 90px -40px rgba(27, 35, 32, .45);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.72;
  -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: 400; line-height: 1.12; margin: 0; letter-spacing: -.01em; }

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }

/* ---------- Tipografia utilitária ---------- */
.eyebrow {
  font-size: .74rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin: 0 0 18px;
}
.title { font-size: clamp(2rem, 3.4vw, 3.1rem); margin-bottom: 20px; }
.lead { font-size: 1.09rem; color: var(--ink-soft); margin: 0 0 22px; }
p { margin: 0 0 18px; color: var(--ink-soft); }

/* ---------- Botões ---------- */
.btn {
  --btn-bg: var(--brand); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; border: 1px solid transparent; border-radius: 999px;
  font-family: var(--font-body); font-size: .9rem; font-weight: 500;
  letter-spacing: .05em; cursor: pointer;
  transition: transform .35s var(--ease), background .3s var(--ease), color .3s var(--ease), box-shadow .35s var(--ease);
}
.btn--solid { background: var(--btn-bg); color: var(--btn-fg); box-shadow: var(--shadow-sm); }
.btn--solid:hover { background: var(--brand-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.14); }
.btn--outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--outline:hover { background: var(--brand); color: #fff; }
.btn--light { background: #fff; color: var(--brand-deep); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--lg { padding: 16px 32px; font-size: .95rem; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 500; font-size: .92rem; letter-spacing: .04em; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(5px); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  padding: 20px 0; transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.header__inner { display: flex; align-items: center; gap: 28px; }
.header.is-stuck { background: rgba(251,250,247,.94); backdrop-filter: blur(14px); padding: 12px 0; box-shadow: 0 1px 0 var(--line); }

.brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.header.is-stuck .brand { color: var(--ink); }
.brand__mark {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid currentColor; font-family: var(--font-display);
  font-size: 1.25rem; letter-spacing: .04em;
}
.brand__text strong { display: block; font-family: var(--font-display); font-size: 1.32rem; font-weight: 500; line-height: 1; }
.brand__text small { display: block; font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; opacity: .75; margin-top: 4px; }
.brand--light { color: #fff; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 26px; }
.nav__list a {
  font-size: .84rem; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.88); position: relative; padding-bottom: 3px;
}
.header.is-stuck .nav__list a { color: var(--ink-soft); }
.nav__list a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width .3s var(--ease);
}
.nav__list a:hover::after, .nav__list a.is-active::after { width: 100%; }
.nav__list a.is-active { color: var(--gold); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 1.5px; background: currentColor; margin: 5px 0; transition: transform .3s var(--ease), opacity .3s var(--ease); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 160px 0 90px; color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15,26,22,.92) 0%, rgba(15,26,22,.78) 42%, rgba(15,26,22,.28) 100%);
}
.hero__inner { position: relative; z-index: 2; }
.hero__content { max-width: 660px; }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4.3rem); margin-bottom: 24px; color: #fff; }
.hero .eyebrow { color: rgba(255,255,255,.72); }
.hero__lead { font-size: 1.14rem; color: rgba(255,255,255,.84); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 52px; }
.hero__badges { display: flex; gap: 46px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.22); }
.hero__badges strong { display: block; font-family: var(--font-display); font-size: 1.9rem; color: #fff; }
.hero__badges span { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.62); }

/* ---------- Seções ---------- */
.section { padding: 118px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: #fff; }
.section--dark p, .section--dark .lead { color: rgba(255,255,255,.72); }
.section__head { max-width: 680px; margin: 0 auto 62px; text-align: center; }
.section__head--left { margin-inline: 0; text-align: left; }

.grid { display: grid; gap: 32px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--faq { grid-template-columns: .85fr 1.15fr; }
.grid--gap-xl { gap: 72px; }
.align-center { align-items: center; }

/* ---------- Sobre ---------- */
.sobre__img { position: relative; }
.sobre__img img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.sobre__stat {
  position: absolute; right: -28px; bottom: 46px; background: #fff;
  padding: 22px 26px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); max-width: 210px;
}
.sobre__stat strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--brand); line-height: 1; }
.sobre__stat span { font-size: .78rem; color: var(--ink-soft); letter-spacing: .04em; }

.check-list { margin: 26px 0 30px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; color: var(--ink-soft); font-size: .98rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 8px;
  border-left: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold);
  transform: rotate(-45deg);
}

/* ---------- Cards / especialidades ---------- */
.cards .card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 40px 34px; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); font-size: 1.1rem; margin-bottom: 22px;
}
.card h3 { font-size: 1.45rem; margin-bottom: 12px; }
.card p { font-size: .96rem; margin-bottom: 18px; }
.card__tag { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }

/* ---------- Equipe ---------- */
.team__card { text-align: left; }
.team__photo { overflow: hidden; border-radius: var(--radius-lg); margin-bottom: 22px; background: var(--bg-soft); }
.team__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .8s var(--ease); }
.team__card:hover .team__photo img { transform: scale(1.05); }
.team__card h3 { font-size: 1.55rem; margin-bottom: 4px; }
.team__role { color: var(--brand); font-size: .86rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.team__bio { font-size: .96rem; margin-bottom: 12px; }
.team__crm { font-size: .78rem; color: var(--muted); letter-spacing: .06em; }

/* ---------- Estrutura ---------- */
.gallery { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 22px; }
.gallery__item { margin: 0; }
.gallery__item img { width: 100%; height: 380px; object-fit: cover; border-radius: var(--radius-lg); }
.gallery__item:first-child img { height: 460px; }
.gallery__item figcaption { margin-top: 14px; font-size: .88rem; color: rgba(255,255,255,.62); }

/* ---------- Diferenciais ---------- */
.diffs .diff { padding: 30px 26px 30px 0; border-top: 1px solid var(--line); }
.diff__num { font-family: var(--font-display); font-size: 1rem; color: var(--gold); letter-spacing: .12em; }
.diff h3 { font-size: 1.28rem; margin: 10px 0 8px; }
.diff p { font-size: .93rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--brand); color: #fff; padding: 70px 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-band h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.8); margin: 0; }

/* ---------- Depoimentos ---------- */
.quote { margin: 0; background: #fff; border-radius: var(--radius-lg); padding: 38px 34px; border: 1px solid var(--line); }
.stars { color: var(--gold); letter-spacing: .18em; font-size: .9rem; margin-bottom: 16px; }
.quote p { font-family: var(--font-display); font-size: 1.24rem; line-height: 1.5; color: var(--ink); }
.quote footer strong { display: block; font-size: .95rem; font-weight: 500; color: var(--ink); }
.quote footer span { font-size: .8rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--font-display); font-size: 1.28rem; color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--gold); font-family: var(--font-body); font-weight: 300;
  transition: transform .3s var(--ease);
}
.faq__item[open] summary::after { content: "–"; }
.faq__body { padding: 0 40px 24px 0; }
.faq__body p { margin: 0; font-size: .98rem; }

/* ---------- Formulário ---------- */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); }
.form__row { margin-bottom: 20px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); font-family: var(--font-body); font-size: .98rem; color: var(--ink);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); background: #fff; }
.form textarea { resize: vertical; }
.form__error { display: block; min-height: 16px; font-size: .76rem; color: #b4433a; margin-top: 5px; }
.form .is-invalid { border-color: #b4433a; }
.form__note { font-size: .76rem; color: var(--muted); text-align: center; margin: 14px 0 0; }
.form__success { margin-top: 14px; padding: 12px 16px; border-radius: var(--radius); background: var(--brand-soft); color: var(--brand-deep); font-size: .9rem; text-align: center; }

.contact-list { display: grid; gap: 20px; margin-top: 34px; }
.contact-list li { display: grid; gap: 2px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.contact-list span { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.contact-list a, .contact-list p { font-size: 1.05rem; color: var(--ink); margin: 0; }
.contact-list a:hover { color: var(--brand); }

/* ---------- Mapa ---------- */
.localizacao { padding-bottom: 0; }
.map { position: relative; margin-top: 20px; }
.map iframe { width: 100%; height: 460px; border: 0; display: block; filter: grayscale(.35) contrast(1.02); }
.map__card {
  position: absolute; left: max(24px, calc((100vw - var(--container)) / 2)); top: 50%; transform: translateY(-50%);
  background: #fff; padding: 34px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); max-width: 340px;
}
.map__card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.map__card p { font-size: .94rem; margin-bottom: 20px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-dark); color: rgba(255,255,255,.72); padding: 86px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 44px; }
.footer h4 { font-family: var(--font-body); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; font-weight: 500; }
.footer ul { display: grid; gap: 10px; font-size: .92rem; }
.footer a:hover { color: #fff; }
.footer__about { font-size: .92rem; margin-top: 20px; max-width: 320px; color: rgba(255,255,255,.6); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 60px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: .82rem; color: rgba(255,255,255,.5);
}
.footer__bottom p { margin: 0; color: inherit; }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 70;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--whats); color: #fff;
  box-shadow: 0 12px 30px -8px rgba(30,169,82,.6);
  transition: transform .35s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Animações de entrada ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
