/* ── FONTES LOCAIS ── */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cormorant-garamond_normal_400.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/cormorant-garamond_normal_600.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cormorant-garamond_italic_400.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/cormorant-garamond_italic_600.woff2') format('woff2');
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/libre-franklin_normal_300.woff2') format('woff2');
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/libre-franklin_normal_400.woff2') format('woff2');
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/libre-franklin_normal_500.woff2') format('woff2');
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/libre-franklin_italic_300.woff2') format('woff2');
}

/* ── TOKENS ── */
:root {
  --axolotl:       #6B7051;
  --white-coffee:  #EAE1D2;
  --caput:         #562A17;
  --dark-vanilla:  #CBB9A0;
  --boy-red:       #7B6348;
  --cola:          #3E2F28;
  --black-olive:   #40403F;
  --gainsboro:     #DCDBDB;

  --font-body: 'Libre Franklin', sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --radius: 12px;
  --max-w: 900px;
  --transition: 0.2s ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
*:focus-visible { outline: 2px solid var(--axolotl); outline-offset: 2px; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--black-olive);
  background: var(--white-coffee);
  line-height: 1.65;
  font-size: 16px;
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ── UTILITIES ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}
.section-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--boy-red);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--cola);
  margin-bottom: 40px;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--caput);
  color: var(--white-coffee);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  padding: 14px 28px;
  border-radius: 100px;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn-primary:hover { background: var(--cola); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--boy-red);
  color: var(--boy-red);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  padding: 12px 24px;
  border-radius: 100px;
  transition: background var(--transition), color var(--transition);
}
.btn-outline:hover { background: var(--boy-red); color: var(--white-coffee); }

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--white-coffee);
  border-bottom: 1px solid rgba(86,42,23,0.08);
}
.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo img {
  display: block;
  height: 28px;
  width: auto;
}
.nav-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  font-weight: 400;
  color: var(--boy-red);
  opacity: 0.8;
  display: none; /* mobile: oculto */
}
@media (min-width: 520px) {
  .nav-tagline { display: inline; }
}
@media (min-width: 900px) {
  .nav-tagline {
    font-size: 17px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}
.nav-cta {
  font-size: 13px;
  font-weight: 400;
  color: var(--caput);
  border: 1px solid var(--caput);
  padding: 8px 16px;
  border-radius: 100px;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--caput); color: var(--white-coffee); }

/* ── HERO ── */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 60px 20px;
  background: var(--white-coffee);
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}
.hero-label {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--boy-red);
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--caput);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: clamp(0.95rem, 2.8vw, 1.05rem);
  font-weight: 400;
  color: var(--black-olive);
  max-width: 460px;
  margin-bottom: 36px;
  line-height: 1.75;
}

/* ── FILOSOFIA ── */
.filosofia {
  padding: 80px 0;
  background: var(--axolotl);
}
.filosofia .section-label { color: var(--dark-vanilla); }
.filosofia .section-title { color: var(--white-coffee); }
.filosofia-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.filosofia-card {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 28px 24px;
  color: rgba(234,225,210,0.88);
  font-size: 15px;
  line-height: 1.75;
}
.filosofia-card.destaque {
  background: rgba(86,42,23,0.35);
  border: 1px solid rgba(234,225,210,0.15);
}
.filosofia-quote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  font-weight: 600;
  font-style: italic;
  color: var(--white-coffee);
  line-height: 1.5;
}

/* ── CONDIÇÕES ── */
.condicoes {
  padding: 40px 0;
  background: var(--white-coffee);
  border-top: 1px solid rgba(86,42,23,0.06);
}
.condicoes-intro {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--boy-red);
  margin-bottom: 16px;
}
.condicoes-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.condicoes-tags span {
  font-size: 13px;
  font-weight: 400;
  color: var(--cola);
  background: rgba(107,112,81,0.1);
  border: 1px solid rgba(107,112,81,0.2);
  padding: 6px 14px;
  border-radius: 100px;
  line-height: 1;
}

/* ── EQUIPE ── */
.equipe {
  padding: 80px 0;
  background: var(--white-coffee);
  position: relative;
  overflow: hidden;
}
.equipe-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.medico-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid rgba(203,185,160,0.4);
}
.medico-card:first-child {
  padding-top: 0;
  border-top: none;
}
.medico-foto {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--axolotl);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
/* Placeholder initials when photo not loaded */
.medico-foto::after {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 2.5rem;
  font-weight: 300;
  color: rgba(234,225,210,0.5);
  letter-spacing: 0.05em;
  pointer-events: none;
}
.medico-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
  position: relative;
  z-index: 1;
}
.medico-foto[data-initials="GM"] img,
.medico-foto[data-initials="AT"] img,
.medico-foto[data-initials="TH"] img,
.medico-foto[data-initials="BP"] img {
  object-position: center bottom;
}
.medico-foto[data-initials="AT"] img {
  transform: scale(1.18);
  transform-origin: center bottom;
}
.medico-foto[data-initials="GM"] img {
  transform: scale(1.18);
  transform-origin: center 80%;
}
.medico-foto[data-initials="TH"] img {
  transform: scale(1.18);
  transform-origin: center 60%;
}
.medico-info h3 {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--caput);
  margin-bottom: 4px;
}
.medico-crm {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--boy-red);
  margin-bottom: 10px;
}
.medico-bio {
  font-size: 14px;
  color: var(--black-olive);
  line-height: 1.7;
}

/* ── DEPOIMENTOS ── */
.depoimentos {
  padding: 80px 0;
  background: #F0EAE0;
}
.depo-slider-wrap {
  -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
  mask-image: linear-gradient(to right, black 80%, transparent 100%);
}
.depo-slider {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding-bottom: 16px;
  padding-right: 40px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.depo-slider::-webkit-scrollbar { display: none; }
.depo-card {
  flex: 0 0 85vw;
  max-width: 340px;
  background: var(--white-coffee);
  border-radius: var(--radius);
  padding: 28px 24px;
  scroll-snap-align: start;
  border: 1px solid rgba(86,42,23,0.08);
  display: flex;
  flex-direction: column;
}
.depo-texto {
  font-size: 15px;
  font-weight: 300;
  font-style: italic;
  color: var(--cola);
  line-height: 1.7;
  margin-bottom: 16px;
}
.depo-autor {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--boy-red);
  margin: 0;
}
.depo-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
}
.depo-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.depo-avatar svg {
  display: block;
}
.depo-autor-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.depo-data {
  font-size: 11px;
  color: var(--boy-red);
  opacity: 0.6;
  margin: 0 0 0 auto;
  letter-spacing: 0.03em;
}
.depo-dots {
  display: flex;
  gap: 6px;
  margin: 20px 0 28px;
}
.depo-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dark-vanilla);
  transition: background 0.2s;
  cursor: pointer;
}
.depo-dots span.active { background: var(--caput); }

/* ── CONTATO ── */
.contato {
  padding: 80px 0;
  background: var(--caput);
}
.contato .section-label { color: var(--dark-vanilla); }
.contato .section-title { color: var(--white-coffee); margin-bottom: 16px; }
.contato-sub {
  font-size: 1rem;
  color: rgba(234,225,210,0.8);
  margin-bottom: 36px;
  line-height: 1.75;
}
.contato-acoes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 36px;
}
.contato .btn-primary { background: var(--white-coffee); color: var(--caput); }
.contato .btn-primary:hover { background: var(--dark-vanilla); }
.contato .btn-outline { border-color: rgba(234,225,210,0.5); color: var(--white-coffee); }
.contato .btn-outline:hover { background: rgba(234,225,210,0.15); }
.contato-endereco {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(234,225,210,0.65);
}

/* ── ESPAÇO / GALERIA ── */
.espaco {
  padding: 80px 0 0;
  background: var(--white-coffee);
}
.espaco-slider {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 32px 20px 40px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.espaco-slider::-webkit-scrollbar { display: none; }
.espaco-item {
  flex: 0 0 72vw;
  max-width: 300px;
  height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--espaco-bg, var(--axolotl));
  position: relative;
  scroll-snap-align: start;
}
.espaco-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* gradiente sobre a foto para legibilidade do label */
.espaco-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 45%, rgba(30,20,15,0.55) 100%);
  pointer-events: none;
}
.espaco-label {
  display: none;
}
@media (min-width: 600px) {
  .espaco-item { flex: 0 0 44vw; max-width: 340px; height: 260px; }
  .espaco-slider { padding-left: 40px; }
}
@media (min-width: 900px) {
  .espaco-item { flex: 0 0 30vw; max-width: 360px; height: 280px; }
}

/* ── DEPOIMENTOS — count ── */
.depo-count {
  font-size: 12px;
  color: var(--boy-red);
  letter-spacing: 0.05em;
  margin-top: -28px;
  margin-bottom: 32px;
}

/* ── FAQ ── */
.faq {
  padding: 80px 0;
  background: var(--white-coffee);
}
.faq-list {
  border-top: 1px solid rgba(86,42,23,0.1);
}
.faq-item {
  border-bottom: 1px solid rgba(86,42,23,0.1);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--cola);
  cursor: pointer;
  line-height: 1.4;
}
.faq-question:hover { color: var(--caput); }
.faq-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--boy-red);
  transition: transform 0.25s ease;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 500px;
}
.faq-answer p {
  font-size: 14px;
  color: var(--black-olive);
  line-height: 1.8;
  padding-bottom: 20px;
}

/* ── WHATSAPP FLUTUANTE ── */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 300;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,0.4);
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s;
  pointer-events: none;
}
.wa-float.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.wa-float:hover { background: #1da851; transform: translateY(-2px) scale(1); }
.wa-float:active { transform: scale(0.95); }

/* ── MAPA ── */
.mapa {
  background: var(--white-coffee);
}
.mapa-info {
  padding: 60px 0 32px;
}
.mapa-endereco {
  font-size: 1rem;
  color: var(--cola);
  line-height: 1.75;
  margin-bottom: 24px;
}
.mapa-btn {
  display: inline-flex;
}
.mapa-iframe-wrap {
  width: 100%;
  height: 280px;
  overflow: hidden;
  filter: grayscale(20%) contrast(0.95);
}
.mapa-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
@media (min-width: 600px) {
  .mapa-iframe-wrap { height: 380px; }
}
@media (min-width: 900px) {
  .mapa-iframe-wrap { height: 420px; }
}

/* ── FOOTER ── */
.footer {
  padding: 24px 20px;
  background: var(--cola);
  text-align: center;
  font-size: 12px;
  color: rgba(234,225,210,0.5);
  line-height: 1.8;
}

/* ── TABLET (≥ 600px) ── */
@media (min-width: 600px) {
  .filosofia-grid {
    grid-template-columns: 1fr 1fr;
  }
  .equipe-grid {
    grid-template-columns: 1fr 1fr;
  }
  .medico-card {
    flex-direction: column;
  }
  .contato-acoes {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .depo-card {
    flex: 0 0 45vw;
  }
}

/* ── DESKTOP (≥ 900px) ── */
@media (min-width: 900px) {
  .nav { padding: 18px 40px; }
  .hero { padding: 80px 40px; }
  .filosofia-grid {
    grid-template-columns: 1fr 1fr;
  }
  .equipe-grid {
    grid-template-columns: 1fr 1fr;
  }
  .medico-card {
    flex-direction: row;
    align-items: flex-start;
    border-top: none;
    padding-top: 0;
  }
  .medico-foto {
    flex: 0 0 195px;
    width: 195px;
    aspect-ratio: 3/4;
  }
  .depo-card { flex: 0 0 340px; }
  .nav-tagline { font-size: 21px; }
  .container { padding: 0 40px; }
}

/* ── LIGHTBOX ── */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44, 41, 38, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox-overlay.active {
  display: flex;
}
.lightbox-overlay img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.4);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white-coffee);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
  padding: 4px 8px;
}
.lightbox-close:hover { opacity: 1; }
.espaco-item { cursor: zoom-in; }

/* ── DECORATIVE ELEMENTS ── */
.deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.deco img, .deco svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Hero */
.hero { position: relative; overflow: hidden; }

/* Gradient fade hero → seção seguinte */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--white-coffee));
  pointer-events: none;
  z-index: 1;
}

/* Fundo fotográfico com overlay cream */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(234,225,210,0.91) 0%,
      rgba(234,225,210,0.83) 50%,
      rgba(234,225,210,0.91) 100%
    ),
    url('images/hero-bg.webp') center/cover no-repeat;
  z-index: 0;
}

/* Deco hero — mobile first */
.deco-hero-retrato {
  width: 155px;
  top: -8px;
  right: -14px;
  opacity: 0.82;
  z-index: 1;
}
.deco-hero-star {
  width: 44px;
  bottom: 64px;
  left: 22px;
  opacity: 0.75;
  z-index: 1;
}

@media (min-width: 600px) {
  .deco-hero-retrato { width: 210px; right: -16px; }
  .deco-hero-star    { width: 52px; bottom: 72px; left: 28px; }
}
@media (min-width: 900px) {
  .deco-hero-retrato { width: 280px; top: -12px; right: -20px; }
  .deco-hero-star    { width: 58px; bottom: 80px; left: 40px; }
}

/* Filosofia */
.filosofia { position: relative; overflow: hidden; }
.deco-fil-figura  { width: 120px; top: -10px; right: -20px; opacity: 0.4; }
.deco-fil-paisagem { width: 180px; bottom: -16px; left: -24px; opacity: 0.25; }

/* Organic divider */
.organic-divider {
  display: block;
  height: 60px;
  background: var(--white-coffee);
  margin-top: -1px;
  overflow: hidden;
}
.organic-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Equipe */
.deco-eq-onda { width: 260px; top: 0px; right: -20px; opacity: 0.4; }

/* Espaco */
.espaco { position: relative; overflow: hidden; }
.deco-espaco-figura { width: 130px; top: 14px; right: -10px; opacity: 0.35; }

/* Depoimentos */
.depoimentos { position: relative; overflow: hidden; }
.deco-dep-flores  { width: 200px; bottom: 10px; right: -20px; opacity: 0.22; }
.deco-dep-estrela { width: 60px; top: 32px; right: 18px; opacity: 0.5; }
.deco-dep-traco   { width: 150px; bottom: 40px; left: -12px; opacity: 0.28; }

/* Contato */
.contato { position: relative; overflow: hidden; }
.deco-ct-linha { width: 90px; top: 30px; right: 16px; opacity: 0.45; }
.deco-ct-linha img { filter: invert(1) sepia(0.2) brightness(1.1); }
.deco-ct-onda  { width: 320px; bottom: -12px; right: -50px; opacity: 0.18; }

/* Ensure container content is above decos */
.filosofia .container,
.equipe .container,
.espaco .container,
.depoimentos .container,
.contato .container { position: relative; z-index: 1; }

/* Hero inner acima do fundo e das ilustrações */
.hero-inner { position: relative; z-index: 2; }

/* ── FADE-IN SCROLL ── */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .fade-in { opacity: 1; transform: none; }
}
