/* =====================================================================
   Amanda Dermatologia — base.css
   Design system gerado com o motor ui-ux-pro-max.
   Direção: "Minimal Single Column" + calma minimalista.
   Paleta da identidade da Dra. Amanda Tiodózio (manual da marca):
     rosé nude #B0897A (assinatura), mauve-taupe #7C6B67 (texto de acento),
     charcoal #413C3A, creme #FAF6F3, cinza quente #C1BFC0.
   Display serifado (Fraunces) + Inter. Motion sutil e lento.
   ===================================================================== */

/* ---- Tokens ---------------------------------------------------------- */
:root {
  /* Cores — identidade da marca */
  --bg:            #FAF6F3;  /* creme (fundo da marca) */
  --bg-warm:       #F0E7E1;  /* creme rosado (faixas alternadas) */
  --surface:       #FFFFFF;  /* cartões */
  --text:          #3B3634;  /* charcoal quente da marca (#413C3A) */
  --text-muted:    #665F5D;  /* cinza quente (AA ≥4.7:1 sobre --bg e --bg-warm) */
  --accent:        #B0897A;  /* rosé nude — assinatura decorativa (ícones/detalhes) */
  --accent-hover:  #9C7365;  /* rosé nude escuro */
  --accent-ink:    #7C6B67;  /* mauve-taupe da marca — texto e preenchimento de botão (AA 5:1) */
  --accent-ink-hover: #675752; /* mauve-taupe escuro (hover de botão) */
  --accent-soft:   #F1E7E1;  /* tinta rosé (fundos leves) */
  --on-accent:     #FFFFFF;
  --border:        #E9DFD7;  /* borda quente */
  --border-strong: #DBCDC2;
  --warm-grey:     #C1BFC0;  /* cinza quente da marca */
  --star:          #C9A227;  /* dourado suave p/ estrelas */

  /* Tipografia */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-eyebrow: 0.8125rem;   /* 13px */
  --fs-sm:      0.9375rem;   /* 15px */
  --fs-base:    1.0625rem;   /* 17px */
  --fs-lg:      1.25rem;     /* 20px */
  --fs-h4:      1.25rem;
  --fs-h3:      1.5rem;
  --fs-h2:      clamp(1.9rem, 1.2rem + 2.6vw, 2.75rem);
  --fs-hero:    clamp(2.4rem, 1.4rem + 4.4vw, 4rem);

  /* Espaçamento (escala espaçosa — density 3/10) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6rem;
  --section-y: clamp(3.5rem, 2rem + 6vw, 6rem);

  /* Raios */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Sombras (sutis) */
  --shadow-xs: 0 1px 2px rgba(46, 42, 43, 0.04);
  --shadow-sm: 0 2px 10px rgba(46, 42, 43, 0.05);
  --shadow-md: 0 10px 30px rgba(46, 42, 43, 0.07);
  --shadow-lg: 0 20px 50px rgba(46, 42, 43, 0.10);

  --maxw: 1140px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1); /* ease-out suave */
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 var(--space-2);
}

p { margin: 0 0 var(--space-2); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ---- Layout ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 0.5rem + 3vw, 2.5rem);
}

/* ---- Botões ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 220ms var(--ease),
              color 220ms var(--ease),
              border-color 220ms var(--ease),
              box-shadow 220ms var(--ease),
              transform 220ms var(--ease);
  min-height: 44px; /* touch target */
}
.btn i { font-size: 1.05em; }

.btn-primary {
  background: var(--accent-ink);
  color: var(--on-accent);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--accent-ink-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--accent-ink);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.btn-sm {
  padding: 0.6rem 1.1rem;
  font-size: var(--fs-sm);
  min-height: 40px;
}

/* ---- Header ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 244, 0.82);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 260ms var(--ease), border-color 260ms var(--ease),
              background-color 260ms var(--ease);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
  background: rgba(251, 248, 244, 0.94);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  margin-right: auto;
  text-decoration: none;
}
.brand-logo {
  display: block;
  height: 52px;
  width: auto;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-text strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand-text small {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-ink);
  padding-left: 0.1em;
}
.nav {
  display: flex;
  gap: var(--space-3);
}
.nav a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4rem 0.15rem;
  position: relative;
  transition: color 200ms var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0.15rem; right: 0.15rem; bottom: -2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }

/* ---- Placeholder (.ph) ---------------------------------------------- */
.ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  height: 100%;
  min-height: 240px;
  padding: var(--space-4);
  text-align: center;
  color: var(--accent);
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(176,137,122,0.04) 14px 28px),
    var(--accent-soft);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
}
.ph i { font-size: 2rem; opacity: 0.75; }
.ph span { font-size: var(--fs-sm); font-weight: 500; color: var(--text-muted); }

/* ---- Hero ------------------------------------------------------------ */
.hero {
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 5.5rem) var(--section-y);
  background:
    radial-gradient(1200px 500px at 78% -8%, var(--accent-soft), transparent 60%),
    var(--bg);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
}
.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: var(--space-2);
}
.hero-title {
  font-size: var(--fs-hero);
  font-weight: 400;
  margin-bottom: var(--space-3);
}
.hero-sub {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  max-width: 34ch;
  margin-bottom: var(--space-4);
}
.hero-photo {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--surface);
  aspect-ratio: 4 / 5;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo .ph { min-height: 100%; border-radius: 0; }

/* ---- Trust bar ------------------------------------------------------- */
.trust {
  background: var(--surface);
  border-block: 1px solid var(--border);
  padding-block: var(--space-3);
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-3) var(--space-5);
}
.trust-seal {
  width: 72px;
  height: auto;
  display: block;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text);
}
.trust-item i {
  color: var(--accent);
  font-size: 1.2rem;
}

/* ---- Section head ---------------------------------------------------- */
.section-head {
  max-width: 52ch;
  margin: 0 auto var(--space-5);
  text-align: center;
}
.section-head h2 {
  font-size: var(--fs-h2);
  font-weight: 400;
}
.section-head p {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  margin: 0;
}

/* ---- Serviços -------------------------------------------------------- */
.services { padding-block: var(--section-y); }
.services-group {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  text-align: center;
  color: var(--text);
  margin: var(--space-5) 0 var(--space-3);
}
.services-group:first-of-type { margin-top: 0; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-3);
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-xs);
  transition: box-shadow 240ms var(--ease), transform 240ms var(--ease),
              border-color 240ms var(--ease);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--border-strong);
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--space-2);
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.35rem;
}
.card h4 {
  font-size: var(--fs-h4);
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}
.card p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin: 0;
}

/* ---- Sobre ----------------------------------------------------------- */
.about {
  padding-block: var(--section-y);
  background: var(--bg-warm);
}
.about-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
}
.about-photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--surface);
  aspect-ratio: 4 / 5;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo .ph { min-height: 100%; border-radius: 0; }
.about-copy h2 {
  font-size: var(--fs-h2);
  font-weight: 400;
  margin-bottom: var(--space-3);
}
.about-copy p { color: var(--text-muted); }
.credentials {
  list-style: none;
  margin: var(--space-3) 0 var(--space-2);
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.credentials li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: var(--fs-sm);
  color: var(--text);
}
.credentials li i {
  color: var(--accent);
  margin-top: 0.2rem;
}
.crm {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin: 0;
}

/* ---- Galeria --------------------------------------------------------- */
.gallery { padding-block: var(--section-y); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-3);
}
.gallery-item {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease);
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .ph { min-height: 100%; border-radius: 0; }

/* ---- Depoimentos ----------------------------------------------------- */
.testimonials {
  padding-block: var(--section-y);
  background: var(--bg-warm);
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-3);
}
.testi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--space-4);
  margin: 0;
  box-shadow: var(--shadow-xs);
}
.testi-stars {
  color: var(--star);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-2);
}
.testi blockquote {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--text);
}
.testi figcaption {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
}

/* ---- FAQ ------------------------------------------------------------- */
.faq { padding-block: var(--section-y); }
.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: grid;
  gap: var(--space-2);
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0 var(--space-3);
  box-shadow: var(--shadow-xs);
  transition: box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}
.faq-item[open] {
  box-shadow: var(--shadow-sm);
  border-color: var(--border-strong);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "\002B"; /* + */
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 240ms var(--ease);
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer {
  padding-bottom: var(--space-3);
}
.faq-answer p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

/* ---- Contato --------------------------------------------------------- */
.contact {
  padding-block: var(--section-y);
  background: var(--bg-warm);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: stretch;
}
.contact-info h2 {
  font-size: var(--fs-h2);
  font-weight: 400;
  margin-bottom: var(--space-3);
}
.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: var(--fs-base);
  color: var(--text);
  margin-bottom: var(--space-2);
}
.contact-line i {
  color: var(--accent);
  margin-top: 0.25rem;
  width: 1.1rem;
  text-align: center;
}
.contact-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.contact-map {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 320px;
  background: var(--surface);
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

/* ---- Footer ---------------------------------------------------------- */
.site-footer {
  background: var(--text);
  color: #EDE7E2;
  padding-block: var(--space-4);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.footer-social {
  display: flex;
  gap: 0.75rem;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08);
  color: #EDE7E2;
  font-size: 1.15rem;
  transition: background-color 220ms var(--ease), color 220ms var(--ease);
}
.footer-social a:hover {
  background: var(--accent);
  color: var(--on-accent);
}

/* ---- WhatsApp flutuante ---------------------------------------------- */
.wa-float {
  position: fixed;
  right: clamp(1rem, 0.5rem + 2vw, 1.75rem);
  bottom: clamp(1rem, 0.5rem + 2vw, 1.75rem);
  z-index: 200;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: var(--r-pill);
  background: #25D366;
  color: #fff;
  font-size: 1.85rem;
  box-shadow: var(--shadow-md);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.wa-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: var(--shadow-lg);
}

/* ---- GLightbox override (calma) ------------------------------------- */
.glightbox { cursor: zoom-in; }

/* ---- Responsivo (~820px: uma coluna) --------------------------------- */
@media (max-width: 820px) {
  .nav { display: none; }
  .hero-inner,
  .about-inner,
  .contact-inner {
    grid-template-columns: 1fr;
  }
  .hero-copy { order: 1; }
  .hero-photo { order: 2; max-width: 460px; margin-inline: auto; width: 100%; }
  .about-photo { max-width: 460px; margin-inline: auto; width: 100%; }
  .hero-sub { max-width: none; }
  .contact-map { min-height: 280px; }
}

@media (max-width: 480px) {
  .header-inner { min-height: 64px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .trust-inner { gap: var(--space-3) var(--space-4); }
}

/* ---- Movimento reduzido --------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover,
  .btn-primary:hover,
  .wa-float:hover,
  .gallery-item:hover img { transform: none; }
  /* AOS: garantir visibilidade mesmo sem animação */
  [data-aos] { opacity: 1 !important; transform: none !important; }
}

/* ---- Fallback sem AOS (JS/CDN falhou) -------------------------------- */
/* base.js adiciona .no-aos ao <html> quando a lib AOS não carrega, e o
   <noscript> no <head> cobre o caso de JS desativado — assim o conteúdo
   nunca fica invisível (opacity:0 do aos.css) para usuários ou crawlers. */
html.no-aos [data-aos] { opacity: 1 !important; transform: none !important; }
