/* =========================================================
   Dr. Matheus Couto — Coloproctologia
   Brand: verde-cipreste / areia-quente / dourado terra
   Type: Cormorant Garamond (titles) + Inter (body)
   ========================================================= */

:root {
  /* Paleta principal */
  --cipreste: #1F4032;
  --cipreste-90: rgba(31, 64, 50, 0.9);
  --cipreste-70: rgba(31, 64, 50, 0.7);
  --cipreste-50: rgba(31, 64, 50, 0.5);
  --cipreste-30: rgba(31, 64, 50, 0.3);
  --cipreste-20: rgba(31, 64, 50, 0.2);
  --cipreste-10: rgba(31, 64, 50, 0.1);

  --areia: #EDE3D4;
  --areia-claro: #F5EFE4;
  --areia-escuro: #E3D8C5;

  --dourado: #B89557;
  --dourado-claro: #C9A974;
  --dourado-escuro: #9E7E45;

  /* Tipografia */
  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Espaçamento */
  --container: 1200px;
  --gutter-d: 64px;
  --gutter-m: 24px;
  --section-d: 120px;
  --section-m: 72px;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(31, 64, 50, 0.06), 0 1px 3px rgba(31, 64, 50, 0.04);
  --shadow-md: 0 4px 12px rgba(31, 64, 50, 0.08), 0 2px 6px rgba(31, 64, 50, 0.06);
  --shadow-lg: 0 8px 24px rgba(31, 64, 50, 0.10), 0 4px 12px rgba(31, 64, 50, 0.06);

  /* Easing */
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--cipreste);
  background: var(--areia);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--dourado); }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--dourado); outline-offset: 2px; border-radius: 2px; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter-d);
}
@media (max-width: 767px) {
  .container { padding: 0 var(--gutter-m); }
  body { font-size: 16px; line-height: 1.7; }
}

/* =========================================================
   Typography
   ========================================================= */
.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dourado);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--dourado);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--cipreste);
  letter-spacing: -0.01em;
}
.h1, h1 {
  font-size: clamp(2.75rem, 4.5vw + 0.5rem, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.h2, h2 {
  font-size: clamp(2rem, 2.6vw + 0.75rem, 3rem);
  line-height: 1.15;
}
.h3, h3 {
  font-size: clamp(1.5rem, 1.2vw + 1rem, 2rem);
  line-height: 1.3;
}
.lead {
  font-size: clamp(1.125rem, 0.4vw + 1rem, 1.25rem);
  line-height: 1.6;
  color: var(--cipreste-90);
  max-width: 56ch;
  font-weight: 400;
}
.body { font-size: 17px; line-height: 1.65; }
.microcopy { font-size: 14px; color: var(--cipreste-70); }

/* Assinatura visual: linha-ponto-linha */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
  width: 80px;
}
.ornament::before, .ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--cipreste-30);
}
.ornament .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dourado);
  flex-shrink: 0;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 18px 36px;
  border-radius: 2px;
  transition: all .2s var(--ease);
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--cipreste);
  color: var(--areia);
  border-color: var(--cipreste);
}
.btn-primary:hover {
  background: var(--dourado);
  border-color: var(--dourado);
  color: var(--cipreste);
}
.btn-secondary {
  background: transparent;
  color: var(--cipreste);
  border-color: var(--cipreste);
}
.btn-secondary:hover {
  background: var(--cipreste);
  color: var(--areia);
}
.btn-compact {
  padding: 10px 18px;
  font-size: 12px;
  letter-spacing: 0.06em;
}
.btn-arrow::after {
  content: "→";
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0;
  transition: transform .2s var(--ease);
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* =========================================================
   Navbar
   ========================================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 96px;
  background: #1f3d2e;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  transition: box-shadow .2s var(--ease), height .2s var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  border-bottom-color: rgba(184, 149, 87, 0.35);
}
.navbar-inner {
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-logo img.logo-img {
  height: 82px;
  width: auto;
  display: block;
  transition: opacity .2s var(--ease);
}
.nav-logo:hover img.logo-img { opacity: 0.82; }
.nav-logo-name { display: none; }
.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}
.nav-links a {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--areia);
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--dourado);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s var(--ease);
}
.nav-links a:hover { color: var(--dourado-claro); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.navbar .nav-cta .btn-primary {
  background: var(--dourado);
  border-color: var(--dourado);
  color: var(--cipreste);
}
.navbar .nav-cta .btn-primary:hover {
  background: var(--areia);
  border-color: var(--areia);
  color: var(--cipreste);
}
.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--areia);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

@media (max-width: 1023px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-burger { display: flex; }
  .navbar-inner { padding: 0 var(--gutter-m); }
}
@media (max-width: 767px) {
  .navbar { height: 72px; }
  .nav-logo img.logo-img { height: 58px; }
}

/* Mobile menu — dropdown panel below the navbar (only mobile/tablet) */
.mobile-menu {
  position: fixed;
  top: 72px; /* navbar mobile height */
  left: 0;
  right: 0;
  background: var(--areia);
  color: var(--cipreste);
  z-index: 90;
  display: flex;
  flex-direction: column;
  padding: 12px 0 16px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
  box-shadow: 0 12px 24px rgba(31, 64, 50, 0.10);
  border-bottom: 1px solid var(--cipreste-10);
}
.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-menu-top { display: none; }
.mobile-menu-name { display: none; }

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0 var(--gutter-m);
}
.mobile-menu-links a {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cipreste);
  padding: 18px 4px;
  border-bottom: 1px solid var(--cipreste-10);
  text-align: left;
}
.mobile-menu-links a:last-child { border-bottom: 0; }
.mobile-menu-links a:hover,
.mobile-menu-links a:active { color: var(--dourado); }

.mobile-menu-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px var(--gutter-m) 0;
  margin-top: 8px;
  border-top: 1px solid var(--cipreste-10);
}
.mobile-menu-cta .btn {
  width: 100%;
  background: var(--cipreste);
  color: var(--areia);
  border-color: var(--cipreste);
  font-size: 14px;
  letter-spacing: 0.12em;
  padding: 18px 24px;
}
.mobile-menu-cta .btn:hover {
  background: var(--dourado);
  border-color: var(--dourado);
  color: var(--cipreste);
}

/* Burger → X animation when menu is open */
.nav-burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =========================================================
   Sections
   ========================================================= */
section {
  padding: var(--section-d) 0;
}
@media (max-width: 767px) {
  section { padding: var(--section-m) 0; }
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 64px;
  max-width: 720px;
}
.section-head .lead { margin-top: 8px; }
@media (max-width: 767px) {
  .section-head { margin-bottom: 40px; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding-top: calc(96px + 56px);
  padding-bottom: 120px;
  position: relative;
  overflow: hidden;
}

/* Allow the photo to bleed past the container on the right */
.hero .container {
  position: relative;
  z-index: 1;
  overflow: visible;
}

/* Subtle paper-grain texture across the whole hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.12  0 0 0 0 0.25  0 0 0 0 0.20  0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
  opacity: 0.55;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

/* Mirror the warm wash to the LEFT side */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -10%;
  right: auto;
  width: 60%;
  background: radial-gradient(ellipse at 60% 50%, rgba(31, 64, 50, 0.10) 0%, rgba(31, 64, 50, 0.04) 35%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  z-index: 2;
  order: 2;
}
.hero-photo { order: 1; }
.hero-content { display: flex; flex-direction: column; gap: 28px; position: relative; z-index: 2; }
.hero h1 { color: var(--cipreste); }
.hero h1 em {
  font-style: italic;
  color: var(--cipreste);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }

/* Photo column — large portrait, bleeds off the LEFT edge, soft mask on the right */
.hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  width: calc(100% + var(--gutter-d) + 80px);
  max-width: none;
  margin-left: calc(-1 * (var(--gutter-d) + 80px));
  margin-right: 0;
  overflow: visible;
  border-radius: 0;
  box-shadow: none;
}

.hero-photo::before { display: none; }
.hero-photo::after { display: none; }

.hero-portrait {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: saturate(0.92) contrast(1.02);
  /* Fade out the right side so it dissolves into the areia background */
  -webkit-mask-image: linear-gradient(to left,
    transparent 0%,
    rgba(0, 0, 0, 0.15) 8%,
    rgba(0, 0, 0, 0.6) 18%,
    #000 32%,
    #000 100%);
          mask-image: linear-gradient(to left,
    transparent 0%,
    rgba(0, 0, 0, 0.15) 8%,
    rgba(0, 0, 0, 0.6) 18%,
    #000 32%,
    #000 100%);
}
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--cipreste-70);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--dourado), transparent);
  animation: scroll-pulse 2.4s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: calc(72px + 40px); padding-bottom: 64px; }
  .hero-content { order: 2; }
  .hero-photo {
    order: 1;
    width: calc(100% + var(--gutter-m) + 24px);
    margin-left: calc(-1 * (var(--gutter-m) + 24px));
    margin-right: 0;
    max-width: none;
    aspect-ratio: 4 / 4.2;
  }
  .hero-portrait {
    -webkit-mask-image: linear-gradient(to left,
      transparent 0%,
      rgba(0, 0, 0, 0.3) 10%,
      #000 26%,
      #000 100%);
            mask-image: linear-gradient(to left,
      transparent 0%,
      rgba(0, 0, 0, 0.3) 10%,
      #000 26%,
      #000 100%);
  }
  .hero-scroll { display: none; }
  .hero::after { left: -30%; right: auto; width: 100%; }
}

/* =========================================================
   Sobre
   ========================================================= */
.sobre {
  background: var(--areia);
  position: relative;
  overflow: hidden;
}
.sobre-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.sobre-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  width: calc(100% + var(--gutter-d) + 120px);
  margin-right: calc(-1 * (var(--gutter-d) + 120px));
  overflow: visible;
  box-shadow: none;
  border-radius: 0;
  top: auto;
}
.sobre-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  filter: saturate(0.92) contrast(1.02);
  -webkit-mask-image: linear-gradient(to left,
    #000 0%,
    #000 65%,
    rgba(0, 0, 0, 0.55) 82%,
    rgba(0, 0, 0, 0.18) 92%,
    transparent 100%);
          mask-image: linear-gradient(to left,
    #000 0%,
    #000 65%,
    rgba(0, 0, 0, 0.55) 82%,
    rgba(0, 0, 0, 0.18) 92%,
    transparent 100%);
}
.sobre-text { display: flex; flex-direction: column; gap: 24px; }
.sobre-text h2 { margin-bottom: 4px; }
.sobre-text p { line-height: 1.7; max-width: 60ch; color: var(--cipreste); }
.sobre-text p strong { font-weight: 500; color: var(--cipreste); }
.credentials {
  margin-top: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--cipreste-20);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cipreste-70);
  font-weight: 500;
}
.credentials .sep { color: var(--dourado); }

@media (max-width: 1023px) {
  .sobre-grid { grid-template-columns: 1fr; gap: 32px; }
  .sobre-photo {
    position: static;
    width: calc(100% + var(--gutter-m) + 24px);
    margin-right: calc(-1 * (var(--gutter-m) + 24px));
    margin-left: 0;
    max-width: none;
    aspect-ratio: 4 / 4;
    order: -1;
  }
  .sobre-portrait {
    -webkit-mask-image: linear-gradient(to left,
      #000 0%,
      #000 70%,
      rgba(0, 0, 0, 0.4) 88%,
      transparent 100%);
            mask-image: linear-gradient(to left,
      #000 0%,
      #000 70%,
      rgba(0, 0, 0, 0.4) 88%,
      transparent 100%);
  }
}

/* Sobre — blocos extras (formação completa / nunca para de estudar) */
.sobre-extra {
  margin-top: 96px;
  padding-top: 64px;
  border-top: 1px solid var(--cipreste-20);
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 56px 64px;
  align-items: start;
}
.sobre-extra-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 56ch;
}
.sobre-extra-block h3 {
  font-size: clamp(1.5rem, 1.1vw + 1rem, 1.875rem);
  line-height: 1.2;
  color: var(--cipreste);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.sobre-extra-block p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--cipreste);
}
.sobre-extra-block p strong { font-weight: 500; color: var(--cipreste); }

/* =========================================================
   Formação — full-bleed verde-petróleo, foto como máscara
   ========================================================= */
.formacao {
  position: relative;
  isolation: isolate;
  background: var(--cipreste);
  color: var(--areia);
  overflow: hidden;
}
.formacao::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/curso-laser.jpg");
  background-size: cover;
  background-position: 50% 28%;
  opacity: 0.18;
  filter: saturate(0.55) contrast(1.05);
  /* máscara radial parcial — desfaz nas bordas para integrar ao verde */
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,0.85) 35%,
    rgba(0,0,0,0.4) 70%,
    rgba(0,0,0,0) 100%);
          mask-image: radial-gradient(ellipse at 50% 45%,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,0.85) 35%,
    rgba(0,0,0,0.4) 70%,
    rgba(0,0,0,0) 100%);
  z-index: -1;
  pointer-events: none;
}

.formacao .sobre-extra {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.formacao .sobre-extra-block h3 {
  color: var(--areia);
}
.formacao .sobre-extra-block p {
  color: rgba(237, 227, 212, 0.88);
}
.formacao .sobre-extra-block p strong {
  color: var(--dourado-claro);
  font-weight: 500;
}

@media (max-width: 1023px) {
  .formacao::before {
    background-position: 50% 30%;
    opacity: 0.14;
  }
  .formacao .sobre-extra {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* =========================================================
   Áreas de atuação
   ========================================================= */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.area-card {
  background: var(--areia-claro);
  border: 1px solid var(--cipreste-20);
  border-radius: 4px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease);
  position: relative;
  min-height: 240px;
}
.area-card:hover {
  background: var(--cipreste);
  border-color: var(--cipreste);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.area-card .area-num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 14px;
  color: var(--dourado);
  letter-spacing: 0.1em;
  transition: color .3s var(--ease);
}
.area-card:hover .area-num { color: var(--dourado-claro); }
.area-card .area-icon {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin-bottom: 4px;
  /* Blend the icon's cream PNG background into the card */
  mix-blend-mode: multiply;
  transition: transform .45s var(--ease), filter .35s var(--ease);
  transform-origin: center bottom;
  align-self: flex-start;
}
.area-card:hover .area-icon {
  transform: scale(1.08) rotate(-3deg);
  /* On the dark cipreste hover bg, switch blend to screen so light areas of the icon show */
  mix-blend-mode: screen;
  filter: brightness(1.06) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}
.area-card h3 {
  font-size: 24px;
  line-height: 1.2;
  transition: color .3s var(--ease);
}
.area-card:hover h3 { color: var(--areia); }
.area-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--cipreste-90);
  transition: color .3s var(--ease);
}
.area-card:hover p { color: rgba(237, 227, 212, 0.88); }

@media (max-width: 1023px) {
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .areas-grid { grid-template-columns: 1fr; }
  .area-card { padding: 24px; min-height: 0; }
}

/* =========================================================
   Como é a consulta
   ========================================================= */
.consulta {
  background: var(--cipreste);
  color: var(--areia);
}
.consulta .eyebrow { color: var(--dourado-claro); }
.consulta .eyebrow::before { background: var(--dourado-claro); }
.consulta h2 { color: var(--areia); }
.consulta .lead { color: rgba(237, 227, 212, 0.85); }
.consulta .section-head { margin-bottom: 56px; }

.consulta-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  position: relative;
  margin-top: 32px;
}
/* Dashed connector — single line across the row of numbers */
.consulta-steps::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  height: 0;
  border-top: 1px dashed rgba(184, 149, 87, 0.55);
  z-index: 0;
  pointer-events: none;
}
.consulta-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.consulta-step .step-num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 60px;
  line-height: 1;
  color: var(--dourado);
  letter-spacing: -0.02em;
  /* Cover the dashed line under each number */
  display: inline-block;
  background: var(--cipreste);
  padding-right: 16px;
  align-self: flex-start;
}
.consulta-step h3 {
  font-size: 28px;
  color: var(--areia);
}
.consulta-step p {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(237, 227, 212, 0.82);
  max-width: 30ch;
}

/* Linha tracejada conectando passos — usa o ::before do .consulta-steps */
.consulta-steps::after { display: none; }

.consulta-note {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid rgba(184, 149, 87, 0.3);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 1vw + 1rem, 1.625rem);
  line-height: 1.4;
  color: var(--areia);
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.consulta-note strong {
  font-weight: 500;
  color: var(--dourado-claro);
  font-style: normal;
  font-family: var(--sans);
  letter-spacing: 0.04em;
}

/* Two-topic note list (replaces single consulta-note when multiple topics) */
.consulta-notes {
  list-style: none;
  margin: 80px auto 0;
  padding-top: 32px;
  border-top: 1px solid rgba(184, 149, 87, 0.3);
  max-width: 880px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
}
.consulta-notes li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.0625rem, 0.5vw + 0.95rem, 1.25rem);
  line-height: 1.45;
  color: var(--areia);
}
.consulta-notes .cn-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  color: var(--dourado-claro);
  margin-top: 2px;
}
.consulta-notes strong {
  font-weight: 500;
  color: var(--dourado-claro);
  font-style: normal;
  font-family: var(--sans);
  letter-spacing: 0.04em;
  text-transform: none;
}
@media (max-width: 767px) {
  .consulta-notes {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 56px;
  }
}

@media (max-width: 1023px) {
  .consulta-steps { grid-template-columns: 1fr; gap: 32px; }
  .consulta-steps::before { display: none; }
  .consulta-step .step-num { background: transparent; padding-right: 0; }
}

/* =========================================================
   Para o paciente (FAQ)
   ========================================================= */
.paciente-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 48px; }
.paciente-head > div:first-child { flex: 1; max-width: 720px; }
.faq {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--cipreste-20);
}
.faq-item {
  border-bottom: 1px solid var(--cipreste-20);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  text-align: left;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  color: var(--cipreste);
  line-height: 1.3;
  transition: color .2s var(--ease);
}
.faq-q:hover { color: var(--dourado); }
.faq-q .plus {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  position: relative;
  color: var(--dourado);
}
.faq-q .plus::before, .faq-q .plus::after {
  content: "";
  position: absolute;
  background: currentColor;
  top: 50%;
  left: 50%;
}
.faq-q .plus::before {
  width: 14px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}
.faq-q .plus::after {
  width: 1.5px;
  height: 14px;
  transform: translate(-50%, -50%);
  transition: transform .25s var(--ease);
}
.faq-item.open .faq-q .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s var(--ease);
}
.faq-a-inner {
  padding: 0 0 28px 0;
  max-width: 64ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--cipreste-90);
}
.faq-item.open .faq-a { max-height: 2000px; }

/* Convênios list inside FAQ */
.convenios-intro { margin-top: 16px; margin-bottom: 10px; color: var(--cipreste); }
.convenios-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 32px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--cipreste-90);
}
.convenios-list li {
  position: relative;
  padding-left: 16px;
}
.convenios-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 1px;
  background: var(--dourado);
}
@media (max-width: 600px) {
  .convenios-list { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 767px) {
  .paciente-head { flex-direction: column; align-items: flex-start; }
  .faq-q { font-size: 18px; padding: 22px 0; }
}

/* =========================================================
   Contato
   ========================================================= */
.contato { background: var(--areia); }
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contato-info { display: flex; flex-direction: column; gap: 28px; }
.contato-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 4px 0;
}
.contato-item .ci-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--dourado);
  margin-top: 4px;
}
.contato-item .ci-label {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--cipreste-70);
  margin-bottom: 4px;
  display: block;
}
.contato-item .ci-val {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--cipreste);
  line-height: 1.3;
}
.contato-item .ci-val small {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--cipreste-70);
  line-height: 1.5;
  margin-top: 2px;
}
.contato-item a.ci-val:hover { color: var(--dourado); }

.contato-form {
  background: var(--areia-claro);
  border: 1px solid var(--cipreste-20);
  border-radius: 4px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contato-form h3 { font-size: 26px; margin-bottom: 4px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--cipreste-70);
}
.field input, .field textarea {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--cipreste);
  background: #FFFFFF;
  border: 1px solid var(--cipreste-20);
  border-radius: 2px;
  padding: 14px 16px;
  transition: border-color .2s var(--ease);
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--dourado);
}
.field textarea { min-height: 100px; }
.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
  color: var(--cipreste-70);
  cursor: pointer;
}
.checkbox input { margin-top: 3px; accent-color: var(--cipreste); flex-shrink: 0; }
.checkbox a { color: var(--cipreste); text-decoration: underline; text-decoration-color: var(--dourado); text-underline-offset: 2px; }
.form-submit { margin-top: 4px; }

.contato-map {
  height: 100%;
  min-height: 480px;
  background: var(--areia-escuro);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cipreste-70);
  border: 1px solid var(--cipreste-20);
}
.contato-grid--map {
  align-items: stretch;
}
.contato-grid--map .contato-info {
  justify-content: center;
}

/* Two locations stacked */
.contato-locais {
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.contato-local + .contato-local {
  padding-top: 64px;
  border-top: 1px solid var(--cipreste-20);
}
.local-tag {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dourado);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--dourado);
  border-radius: 2px;
  align-self: flex-start;
  margin-bottom: 4px;
}

/* Photo-background variant for location cards */
.contato-info--photo {
  position: relative;
  isolation: isolate;
  padding: 48px 40px;
  border-radius: 4px;
  overflow: hidden;
  background-image:
    linear-gradient(135deg, rgba(31, 64, 50, 0.92) 0%, rgba(31, 64, 50, 0.78) 55%, rgba(31, 64, 50, 0.88) 100%),
    var(--local-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--areia);
  min-height: 480px;
}
/* Subtle vignette + grain to deepen the mask */
.contato-info--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, transparent 0%, rgba(0,0,0,0.18) 70%, rgba(0,0,0,0.32) 100%);
  pointer-events: none;
  z-index: -1;
}
.contato-info--photo > * { position: relative; z-index: 1; }

/* Recolor inner elements for legibility on the dark photo */
.contato-info--photo .contato-item .ci-icon { color: var(--dourado-claro); }
.contato-info--photo .contato-item .ci-label { color: rgba(237, 227, 212, 0.72); }
.contato-info--photo .contato-item .ci-val { color: var(--areia); }
.contato-info--photo .contato-item .ci-val small { color: rgba(237, 227, 212, 0.78); }
.contato-info--photo .contato-item a.ci-val:hover { color: var(--dourado-claro); }

/* Button on photo background: invert to dourado so it pops */
.contato-info--photo .btn-primary {
  background: var(--dourado);
  color: var(--cipreste);
  border-color: var(--dourado);
}
.contato-info--photo .btn-primary:hover {
  background: var(--areia);
  border-color: var(--areia);
  color: var(--cipreste);
}

@media (max-width: 767px) {
  .contato-info--photo { padding: 32px 24px; min-height: 0; }
}
.contato-map .map-placeholder {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
}
.contato-map iframe { width: 100%; height: 100%; border: 0; }

@media (max-width: 1023px) {
  .contato-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 767px) {
  .contato-form { padding: 28px 24px; }
  .contato-map { min-height: 280px; height: 280px; }
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--cipreste);
  color: var(--areia);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 64px;
}
.footer-brand .footer-logo { margin-bottom: 24px; }
.footer-brand p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(237, 227, 212, 0.75);
  max-width: 36ch;
}
.footer h4 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--dourado);
  margin-bottom: 20px;
}
.footer-list { display: flex; flex-direction: column; gap: 12px; }
.footer-list a, .footer-list span {
  font-size: 14px;
  color: rgba(237, 227, 212, 0.85);
}
.footer-list a:hover { color: var(--dourado); }
.footer-bottom {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(184, 149, 87, 0.3);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(237, 227, 212, 0.65);
}
.footer-bottom a { color: rgba(237, 227, 212, 0.85); }
.footer-disclaimer {
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(237, 227, 212, 0.55);
  text-transform: uppercase;
  text-align: center;
}

@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   WhatsApp flutuante + barra inferior mobile
   ========================================================= */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 90;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.whatsapp-float:hover {
  background: #1DA851;
  color: #FFFFFF;
  transform: scale(1.05);
}
.whatsapp-float svg { width: 28px; height: 28px; }
@media (max-width: 767px) {
  .whatsapp-float {
    width: 56px; height: 56px;
    bottom: 80px;
    right: 16px;
  }
}

.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--cipreste);
  z-index: 80;
  padding: 10px 12px;
  gap: 8px;
  border-top: 1px solid rgba(184, 149, 87, 0.3);
}
.mobile-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--areia);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 16px;
  border-radius: 2px;
  border: 1px solid rgba(237, 227, 212, 0.2);
  min-height: 44px;
}
.mobile-bar a.primary {
  background: var(--dourado);
  color: var(--cipreste);
  border-color: var(--dourado);
}
.mobile-bar a:hover { color: var(--areia); }
.mobile-bar a.primary:hover { color: var(--cipreste); }
.mobile-bar svg { width: 16px; height: 16px; }



/* =========================================================
   Logo block (footer)
   ========================================================= */
.footer-logo-img {
  width: 280px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 24px;
}
.logo-lockup { display: none; }

/* =========================================================
   Cookie banner
   ========================================================= */
.cookies {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 540px;
  background: var(--cipreste);
  color: var(--areia);
  padding: 20px 24px;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  gap: 16px;
  z-index: 95;
  font-size: 13px;
  line-height: 1.5;
}
.cookies.show { display: flex; }
.cookies a { color: var(--dourado); text-decoration: underline; }
.cookies-actions { display: flex; gap: 8px; }
.cookies-actions .btn {
  padding: 10px 18px;
  font-size: 11px;
  flex: 1;
}
.cookies-actions .btn-primary { background: var(--dourado); border-color: var(--dourado); color: var(--cipreste); }
.cookies-actions .btn-primary:hover { background: var(--areia); border-color: var(--areia); }
.cookies-actions .btn-secondary { border-color: rgba(237, 227, 212, 0.4); color: var(--areia); }
.cookies-actions .btn-secondary:hover { background: rgba(237, 227, 212, 0.1); color: var(--areia); }

@media (max-width: 767px) {
  .cookies { bottom: 80px; left: 16px; right: 16px; }
}

/* =========================================================
   Inner pages
   ========================================================= */
.page-hero {
  padding-top: calc(96px + 48px);
  padding-bottom: 48px;
  background: var(--areia);
  border-bottom: 1px solid var(--cipreste-10);
}
.page-hero .container { max-width: 880px; }
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero h1 { font-size: clamp(2.25rem, 3vw + 1rem, 3.5rem); line-height: 1.1; }
.page-hero .lead { margin-top: 20px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--cipreste-70);
  margin-bottom: 32px;
}
.back-link:hover { color: var(--dourado); }
.back-link::before { content: "←"; }

.prose {
  max-width: 720px;
  margin: 0 auto;
}
.prose h2 {
  font-size: 32px;
  line-height: 1.2;
  margin-top: 56px;
  margin-bottom: 20px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 22px;
  line-height: 1.3;
  margin-top: 32px;
  margin-bottom: 12px;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.prose p {
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 16px;
  color: var(--cipreste);
}
.prose ul, .prose ol {
  margin: 0 0 20px 24px;
  padding: 0;
}
.prose ul { list-style: none; }
.prose ul li::before {
  content: "·";
  color: var(--dourado);
  font-weight: 700;
  display: inline-block;
  width: 16px;
  margin-left: -16px;
}
.prose ol { list-style: decimal; }
.prose li {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 8px;
  color: var(--cipreste);
}
.prose strong { font-weight: 500; color: var(--cipreste); }
.prose .callout {
  background: var(--areia-claro);
  border-left: 2px solid var(--dourado);
  padding: 24px 28px;
  margin: 32px 0;
  font-style: italic;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  color: var(--cipreste);
}

/* =========================================================
   Modificadores tipográficos (caixa alta / negrito)
   ========================================================= */
.is-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.is-uppercase-bold {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.is-bold { font-weight: 600; }

/* =========================================================
   Tweaks panel root mount
   ========================================================= */
#tweaks-root { position: fixed; bottom: 24px; right: 96px; z-index: 200; }

/* =========================================================
   Utilities
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Photo placeholder — sutil em verde-cipreste com mark de paciente */
.photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--cipreste) 0%, #2A5544 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(237, 227, 212, 0.5);
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  text-align: center;
  padding: 24px;
  position: relative;
}
.photo-placeholder::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(237, 227, 212, 0.15);
}
.photo-placeholder span { position: relative; z-index: 1; }
