/* ============================================================
   styles.css — Dra. Aline Fante O. Carderelli
   CSS compartilhado entre todas as páginas do site.
   CSS page-specific permanece inline em cada arquivo HTML.
   ============================================================ */

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Cores */
  --cream: #F7F6F2;
  --charcoal: #3A3A3A;
  --charcoal-60: rgba(58,58,58,0.6);
  --charcoal-30: rgba(58,58,58,0.3);
  --charcoal-10: rgba(58,58,58,0.08);
  --gold: #C9A96E;
  --gold-light: #E8D9BC;
  --white: #FEFEFE;
  --green-wa: #25D366;

  /* Tipografia */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', Helvetica, sans-serif;

  /* Transição e sombras */
  --transition: 0.4s cubic-bezier(0.4,0,0.2,1);
  --shadow: 0 4px 40px rgba(58,58,58,0.08);
  --shadow-lg: 0 20px 80px rgba(58,58,58,0.12);

  /* Escala tipográfica */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.5rem;

  /* Escala de espaçamento */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* Border-radius */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-full: 100px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  overflow-x: hidden;
  touch-action: manipulation;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, a { -webkit-tap-highlight-color: transparent; }


/* ===== UTILITIES ===== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* SKIP LINK (acessibilidade) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--charcoal);
  color: var(--cream);
  padding: 0.75rem 1rem;
  z-index: 1000;
  font-family: var(--sans);
  font-size: 0.85rem;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* FOCUS-VISIBLE GLOBAL */
:where(a, button, input, textarea, select):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}


/* ===== ANIMAÇÕES ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes lineGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes floatPulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-6px) scale(1.02); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ===== NAV BASE ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247,246,242,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--charcoal-10);
  transition: box-shadow var(--transition);
}
nav.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.02em;
  font-weight: 400;
  line-height: 1.3;
}

.nav-logo span {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal-60);
  font-weight: 300;
}

/* NAV DAS PÁGINAS DE SERVIÇO */
.nav-right { display: flex; align-items: center; gap: 1.25rem; }

.nav-back {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--charcoal-60);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--transition);
}
.nav-back:hover { color: var(--gold); }

.nav-cta-btn {
  background: var(--charcoal);
  color: var(--cream);
  border: 1px solid var(--gold);
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background var(--transition);
  cursor: pointer;
}
.nav-cta-btn:hover { background: var(--gold); }
.nav-cta-btn svg { width: 14px; height: 14px; fill: currentColor; }


/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding-top: 96px;
  padding-bottom: 0.5rem;
}

.breadcrumb-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--charcoal-60);
}
.breadcrumb-inner a { color: var(--charcoal-60); }
.breadcrumb-inner a:hover { color: var(--gold); }
.breadcrumb-sep { color: var(--charcoal-30); }


/* ===== SECTION COMMONS ===== */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }

.section-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}


/* ===== BOTÕES ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--charcoal);
  color: var(--cream);
  padding: 1rem 2rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--gold); transform: translateY(-1px); }
.btn-primary svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--charcoal-60);
  border-bottom: 1px solid var(--charcoal-30);
  padding-bottom: 0.1rem;
  transition: color var(--transition), border-color var(--transition);
}
.btn-ghost:hover { color: var(--charcoal); border-color: var(--charcoal); }

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--gold);
  color: var(--white);
  padding: 1rem 2rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
}
.btn-gold:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-gold svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--cream);
  background: rgba(255,255,255,0.06);
  padding: 1rem 2rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }
.btn-outline-light svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }


/* ===== LOCALIZAÇÃO (páginas de serviço) ===== */
.locations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.loc-card {
  padding: 2.25rem;
  background: var(--white);
  border: 1px solid var(--charcoal-10);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.loc-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.loc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
}

.loc-city { font-family: var(--serif); font-size: 1.5rem; font-weight: 300; margin-bottom: 0.25rem; }
.loc-clinic {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.loc-detail { display: flex; align-items: flex-start; gap: 0.7rem; margin-bottom: 0.85rem; }
.loc-detail svg {
  width: 15px; height: 15px;
  stroke: var(--charcoal-60);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  flex-shrink: 0;
  margin-top: 2px;
}
.loc-detail-text {
  font-family: var(--sans);
  font-size: 0.84rem;
  color: var(--charcoal-60);
  font-weight: 300;
  line-height: 1.5;
}
.loc-detail-text a {
  color: var(--charcoal);
  border-bottom: 1px solid var(--charcoal-30);
  transition: color var(--transition), border-color var(--transition);
}
.loc-detail-text a:hover { color: var(--gold); border-color: var(--gold); }

.loc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green-wa);
  color: white;
  padding: 0.72rem 1.2rem;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-top: 1.5rem;
  transition: opacity var(--transition);
}
.loc-btn:hover { opacity: 0.9; }
.loc-btn svg { width: 15px; height: 15px; fill: white; flex-shrink: 0; }


/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 3rem auto 0; }
.faq-item { border-bottom: 1px solid var(--charcoal-10); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  text-align: left;
  gap: 1rem;
}

.faq-q-text {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--charcoal);
  font-weight: 400;
  line-height: 1.4;
}

.faq-icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  border: 1px solid var(--charcoal-30);
  border-radius: 50%;
  position: relative;
  transition: border-color var(--transition), background var(--transition);
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--charcoal);
  transition: transform var(--transition), opacity var(--transition);
}
.faq-icon::before { top: 50%; left: 6px; right: 6px; height: 1px; transform: translateY(-50%); }
.faq-icon::after  { left: 50%; top: 6px; bottom: 6px; width: 1px; transform: translateX(-50%); }

.faq-item.open .faq-icon { background: var(--gold); border-color: var(--gold); }
.faq-item.open .faq-icon::before,
.faq-item.open .faq-icon::after { background: white; }
.faq-item.open .faq-icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}
.faq-answer-inner {
  padding-bottom: 1.5rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--charcoal-60);
  line-height: 1.8;
  font-weight: 300;
}
.faq-answer-inner a { color: var(--gold); border-bottom: 1px solid var(--gold-light); }


/* ===== CTA FINAL (páginas de serviço) ===== */
.cta-final {
  background: var(--charcoal);
  overflow: hidden;
  position: relative;
}
.cta-final::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(201,169,110,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}

.cta-title {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.cta-title em { font-style: italic; color: var(--gold); }

.cta-sub {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: rgba(247,246,242,0.6);
  font-weight: 300;
  line-height: 1.7;
  max-width: 480px;
}

.cta-btns {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-shrink: 0;
}


/* ===== OUTRAS CIDADES (páginas de serviço) ===== */
.outras-cidades {
  background: var(--cream);
  border-top: 1px solid var(--charcoal-10);
}

.outras-cidades-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1.5rem 0;
}

.outras-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal-60);
}

.outras-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.outras-links a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--charcoal-60);
  transition: color var(--transition);
}
.outras-links a:hover { color: var(--gold); }
.outras-links a svg {
  width: 13px; height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  flex-shrink: 0;
}


/* ===== FOOTER ===== */
footer {
  background: var(--charcoal);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem 3rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: rgba(247,246,242,0.6);
  flex-shrink: 0;
}
.footer-logo span {
  display: block;
  font-family: var(--sans);
  font-size: 0.67rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247,246,242,0.3);
  margin-top: 0.2rem;
}

/* Endereços das clínicas no rodapé */
.footer-addresses {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-addr-item {
  font-family: var(--sans);
  font-size: 0.73rem;
  color: rgba(247,246,242,0.25);
  line-height: 1.55;
  font-weight: 300;
}
.footer-addr-item strong {
  color: rgba(247,246,242,0.45);
  font-weight: 400;
}
.footer-addr-item a {
  color: rgba(247,246,242,0.25);
  transition: color 0.3s;
}
.footer-addr-item a:hover { color: var(--gold); }

.footer-note {
  font-family: var(--sans);
  font-size: 0.73rem;
  color: rgba(247,246,242,0.25);
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

/* Links do rodapé (Instagram + Política) */
.footer-ig-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(247,246,242,0.3);
  font-size: 0.72rem;
  transition: color 0.3s;
}
.footer-ig-link:hover { color: rgba(247,246,242,0.6); }
.footer-ig-link svg {
  width: 14px; height: 14px;
  flex-shrink: 0;
}

.footer-pp-link {
  font-size: 0.68rem;
  color: rgba(247,246,242,0.18);
  text-decoration: underline;
  text-decoration-color: rgba(247,246,242,0.1);
  transition: color 0.3s;
}
.footer-pp-link:hover { color: rgba(247,246,242,0.4); }


/* ===== WHATSAPP FLOAT ===== */
.wa-float {
  position: fixed;
  bottom: calc(2rem + env(safe-area-inset-bottom));
  right: calc(2rem + env(safe-area-inset-right));
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.wa-float-opts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s;
}
.wa-float.open .wa-float-opts {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.wa-opt-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid rgba(37,211,102,0.2);
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem 0.5rem 0.6rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s, background 0.2s;
  white-space: nowrap;
}
.wa-opt-btn:hover { transform: translateX(-3px); background: #f0fdf4; }

.wa-opt-icon {
  width: 2rem; height: 2rem;
  background: var(--green-wa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wa-opt-icon svg { width: 13px; height: 13px; fill: white; }

.wa-opt-label { display: flex; flex-direction: column; }
.wa-opt-city {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.2;
}
.wa-opt-sub {
  font-family: var(--sans);
  font-size: 0.63rem;
  color: var(--charcoal-60);
  font-weight: 300;
}

.wa-main-btn {
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background: var(--green-wa);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.3s, background 0.3s;
  animation: floatPulse 3s ease-in-out infinite;
  position: relative;
  border: none;
  cursor: pointer;
}
.wa-float.open .wa-main-btn {
  background: #1a9a50;
  animation: none;
  transform: rotate(45deg);
}
.wa-main-btn svg {
  width: 22px; height: 22px;
  fill: white;
  transition: opacity 0.2s;
}
.wa-icon-close { position: absolute; opacity: 0; }
.wa-float.open .wa-icon-close { opacity: 1; }
.wa-float.open .wa-icon-default { opacity: 0; }


/* ===== TIPOGRAFIA NUMÉRICA ===== */
.crm-badge,
.credential-value,
[data-numeric] {
  font-variant-numeric: tabular-nums;
}


/* ===== RESPONSIVO (partes compartilhadas) ===== */
@media (max-width: 900px) {
  .locations-grid { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .cta-btns { flex-direction: row; flex-wrap: wrap; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-note { text-align: center; }
}

@media (max-width: 580px) {
  .btn-primary, .btn-gold { width: 100%; justify-content: center; }
  .wa-float {
    bottom: calc(1.5rem + env(safe-area-inset-bottom));
    right: calc(1.5rem + env(safe-area-inset-right));
  }
  .nav-back { display: none; }
}
