/* ==========================================================
   Andréa Gracindo — Fonoaudióloga
   Paleta original do site: navy #13204a · azul-claro #a3bac6 · dourado #d4c188
   ========================================================== */

:root {
  --navy: #13204a;
  --navy-deep: #00244d;
  --navy-soft: #2b4f8f;
  --blue-grey: #a3bac6;
  --gold: #d4c188;
  --gold-deep: #b99b4e;
  --cream: #f0f3f5;
  --white: #ffffff;
  --ink: #1c2333;
  --ink-soft: #55607a;
  --line: rgba(19, 32, 74, 0.10);

  --font-title: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 12px rgba(19, 32, 74, 0.06);
  --shadow: 0 12px 40px rgba(19, 32, 74, 0.10);
  --shadow-lg: 0 24px 70px rgba(19, 32, 74, 0.16);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 78px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy); color: var(--white);
  padding: 12px 20px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- Tipografia ---------- */
h1, h2, h3 { font-family: var(--font-title); font-weight: 600; line-height: 1.18; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 14px;
}
.eyebrow.light { color: var(--gold); }

.lead { font-size: clamp(1rem, 1.6vw, 1.13rem); color: var(--ink-soft); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), color 0.25s var(--ease);
  text-align: center;
}
.btn-sm  { padding: 10px 20px; font-size: 0.82rem; }
.btn-lg  { padding: 17px 38px; font-size: 0.95rem; }

.btn-primary { background: var(--navy); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-gold { background: var(--gold); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-gold:hover { background: #e2d3a4; transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); background: rgba(19, 32, 74, 0.04); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.header.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong {
  font-family: var(--font-title);
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}
.brand-text small {
  font-size: 0.65rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav > a:not(.btn) {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.25s var(--ease);
}
.nav > a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.28s var(--ease);
}
.nav > a:not(.btn):hover { color: var(--navy); }
.nav > a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  padding: 0 10px;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--navy); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.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); }

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--header-h) + 70px) 0 80px;
  background:
    radial-gradient(120% 90% at 88% 20%, rgba(163, 186, 198, 0.30) 0%, transparent 62%),
    linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 60px;
}

.hero h1 { color: var(--navy); margin-bottom: 22px; }
.hero .lead { max-width: 34rem; margin-bottom: 34px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero-media { position: relative; display: flex; justify-content: center; }
.hero-media::before {
  content: '';
  position: absolute;
  inset: auto 0 4% 0;
  height: 82%;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: 260px 260px var(--radius-lg) var(--radius-lg);
  z-index: 0;
}
.hero-media img {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  filter: drop-shadow(0 26px 46px rgba(19, 32, 74, 0.28));
}

/* ---------- Seções ---------- */
.section { padding: 96px 0; }

.section-head { max-width: 44rem; margin: 0 auto 54px; text-align: center; }
.section-head h2 { color: var(--navy); }
.section-sub { margin-top: 14px; color: var(--ink-soft); }
.section-cta { display: flex; justify-content: center; margin-top: 54px; }

/* ---------- Sobre ---------- */
.sobre { background: var(--white); }
.sobre-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}

.sobre-media { position: relative; position: sticky; top: calc(var(--header-h) + 32px); }
.sobre-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.sobre-media::after {
  content: '';
  position: absolute;
  right: -18px; bottom: -18px;
  width: 130px; height: 130px;
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.sobre-copy h2 { color: var(--navy); margin-bottom: 26px; }
.sobre-copy p { color: var(--ink-soft); margin-bottom: 18px; }
.sobre-nota {
  font-weight: 600;
  color: var(--navy) !important;
  padding: 14px 20px;
  background: var(--cream);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 26px 0 30px !important;
}

/* ---------- Serviços ---------- */
.servicos { background: var(--cream); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(212, 193, 136, 0.55); }

.card h3 {
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.card h3::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 44px; height: 2px;
  background: var(--gold);
}

.card-sintoma { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 16px; }
.card-intervencao {
  font-size: 0.9rem;
  color: var(--ink);
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.card-intervencao strong { color: var(--navy); font-weight: 600; }

/* ---------- Diferenciais ---------- */
.diferenciais {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
}
.diferenciais .section-head h2 { color: var(--white); }

.dif-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
}

.dif { text-align: center; padding: 8px; }
.dif-icon {
  display: grid;
  place-items: center;
  width: 68px; height: 68px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(212, 193, 136, 0.12);
  border: 1px solid rgba(212, 193, 136, 0.35);
  color: var(--gold);
}
.dif-icon svg { width: 30px; height: 30px; }
.dif h3 { color: var(--white); margin-bottom: 10px; }
.dif p { color: rgba(255, 255, 255, 0.72); font-size: 0.9rem; }

/* ---------- Depoimentos ---------- */
.depoimentos { background: var(--white); }

.depo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
  align-items: start;
}

.depo {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 34px 30px 28px;
  position: relative;
  border: 1px solid transparent;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.depo:hover { border-color: rgba(212, 193, 136, 0.5); transform: translateY(-4px); }

.depo::before {
  content: '\201C';
  font-family: var(--font-title);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.5;
  position: absolute;
  top: 10px; left: 22px;
}

.depo blockquote {
  position: relative;
  font-size: 0.93rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 20px;
  padding-top: 18px;
}

.depo figcaption {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ---------- Contato ---------- */
.contato {
  background:
    linear-gradient(150deg, rgba(19, 32, 74, 0.96) 0%, rgba(0, 36, 77, 0.96) 100%),
    var(--navy);
  color: var(--white);
}

.contato-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.contato h2 { color: var(--white); margin-bottom: 18px; }
.contato-sub { color: rgba(255, 255, 255, 0.72); margin-bottom: 32px; max-width: 30rem; }

.contato-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.contato-info li {
  padding-left: 18px;
  border-left: 2px solid rgba(212, 193, 136, 0.55);
}
.info-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.info-valor { display: block; font-size: 0.92rem; color: rgba(255, 255, 255, 0.88); line-height: 1.65; }
.info-valor a:hover { color: var(--gold); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.65); padding: 40px 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-mark { width: 38px; height: 38px; object-fit: contain; opacity: 0.9; }
.footer-copy { font-size: 0.8rem; }
.footer-nav { display: flex; gap: 22px; font-size: 0.8rem; }
.footer-nav a:hover { color: var(--gold); }

/* ---------- WhatsApp flutuante ---------- */
.wpp-float {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.42);
  z-index: 90;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.wpp-float svg { width: 29px; height: 29px; }
.wpp-float:hover { transform: scale(1.08); box-shadow: 0 12px 34px rgba(37, 211, 102, 0.55); }

/* ---------- Animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ==========================================================
   TABLET
   ========================================================== */
@media (max-width: 1024px) {
  .section { padding: 76px 0; }

  .hero { padding-top: calc(var(--header-h) + 48px); }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-actions, .hero-meta { justify-content: center; }
  .hero-media { order: -1; width: min(100%, 430px); margin-inline: auto; }
  .hero-media img { width: min(78%, 300px); }

  .sobre-inner { grid-template-columns: 1fr; gap: 44px; }
  .sobre-media { position: static; max-width: 340px; margin-inline: auto; }
  .sobre-media::after { display: none; }

  .contato-inner { grid-template-columns: 1fr; gap: 46px; text-align: center; }
  .contato-sub { margin-inline: auto; }
  .contato-info { text-align: left; }
}

/* ==========================================================
   MENU COMPACTO (tablet + mobile)
   Colapsa cedo: a partir daqui o menu horizontal não cabe
   ao lado do nome sem quebrar linha.
   ========================================================== */
@media (max-width: 960px) {
  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 10px 24px 26px;
    transform: translateY(-130%);
    transition: transform 0.35s var(--ease);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.open { transform: translateY(0); }

  .nav > a:not(.btn) {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
    color: var(--navy);
  }
  .nav > a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 18px; }
}

/* ==========================================================
   MOBILE
   ========================================================== */
@media (max-width: 760px) {
  :root { --header-h: 68px; }

  .brand-mark { width: 36px; height: 36px; }
  .brand-text strong { font-size: 1.05rem; }
  .brand-text small { font-size: 0.58rem; }

  .section { padding: 62px 0; }
  .section-head { margin-bottom: 38px; }
  .section-cta { margin-top: 38px; }

  .hero { padding: calc(var(--header-h) + 34px) 0 58px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  .card { padding: 26px 22px; }
  .depo { padding: 30px 24px 24px; }
  .contato-info { grid-template-columns: 1fr; gap: 22px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }

  .wpp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

/* ---------- Acessibilidade: movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
