/* ══════════════════════════════════════════════
   DR. CHARLES DARWIN — Design System
   Inspired by: myhealthprac.com
   ══════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --black:   #080c10;
  --navy:    #091522;
  --dark:    #0d1e2d;
  --gold:    #987946;
  --gold-lt: #c4a35a;
  --gold-pl: #e8d4a8;
  --cream:   #f1f1f1;
  --muted:   rgba(241,241,241,0.55);
  --muted2:  rgba(241,241,241,0.3);
  --border:  rgba(255,255,255,0.08);
  --gold-bd: rgba(152,121,70,0.22);
  --radius:  3px;
  --ease:    cubic-bezier(0.25,0.1,0.25,1);
  --ease-o:  cubic-bezier(0,0,0.2,1);
}

/* ── RESET ── */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}
body {
  background: var(--black);
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: clip;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}
a { color:inherit; text-decoration:none; }
img { display:block; max-width:100%; }
ul,ol { list-style:none; }
button { background:none; border:none; cursor:pointer; color:inherit; font:inherit; }
::-webkit-scrollbar { width:0; }

/* ── TYPE ── */
h1,h2,h3,h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(52px, 7.5vw, 110px); }
h2 { font-size: clamp(38px, 5vw, 72px); }
h3 { font-size: clamp(20px, 2vw, 28px); font-weight: 500; }
h4 { font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 500; letter-spacing:0.01em; }
em { font-style: italic; color: var(--gold-pl); }

.eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  font-weight: 400;
}
.eyebrow.gold { color: var(--gold-lt); }

.body-muted {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 480px;
}

/* ── BUTTONS ── */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: all 0.3s var(--ease);
}
.btn-pill.white {
  background: var(--cream);
  color: var(--black);
  border-color: var(--cream);
}
.btn-pill.white:hover {
  background: var(--gold-pl);
  border-color: var(--gold-pl);
  transform: translateY(-2px);
}
.btn-pill.dark {
  background: var(--black);
  color: var(--cream);
  border-color: var(--cream);
}
.btn-pill.dark:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: 100px;
  border: 1px solid var(--gold-bd);
  color: var(--gold-lt);
  transition: all 0.3s var(--ease);
}
.btn-outline:hover {
  border-color: var(--gold-lt);
  background: rgba(152,121,70,0.08);
}
.btn-outline-light {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: 100px;
  border: 1px solid rgba(241,241,241,0.25);
  color: var(--muted);
  transition: all 0.3s var(--ease);
}
.btn-outline-light:hover {
  border-color: var(--cream);
  color: var(--cream);
}

/* ══ HEADER ══ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background 0.5s var(--ease), backdrop-filter 0.5s;
}
#header.solid {
  background: rgba(8,12,16,0.82);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border-bottom: 1px solid var(--border);
}
#header-inner {
  display: flex;
  align-items: center;
  padding: 16px 52px;
  gap: 40px;
  transition: padding 0.4s var(--ease);
}
#header.solid #header-inner { padding: 8px 52px; }
#logo {
  height: 120px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  transition: height 0.5s var(--ease), filter 0.3s;
  filter: brightness(1);
}
#header.solid #logo { height: 48px; }
#logo:hover { filter: brightness(0.85); }

#nav-links {
  display: flex;
  gap: 0;
  margin-left: auto;
}
#nav-links a {
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 18px;
  position: relative;
  transition: color 0.2s;
}
#nav-links a::after {
  content:'';
  position:absolute;
  bottom:4px; left:18px; right:18px;
  height:1px;
  background: var(--cream);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-o);
}
#nav-links a:hover { color: var(--cream); }
#nav-links a:hover::after { transform: scaleX(1); }

#header-cta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 24px;
  border: 1px solid var(--gold-bd);
  border-radius: 100px;
  color: var(--gold-lt);
  transition: all 0.3s;
  white-space: nowrap;
}
#header-cta:hover {
  background: rgba(152,121,70,0.08);
  border-color: var(--gold-lt);
}

#menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
}
.menu-close { display: none; }
#menu-btn.open .menu-open { display: none; }
#menu-btn.open .menu-close { display: inline; }
#menu-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* MOBILE MENU */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--black);
  display: flex;
  flex-direction: column;
  padding: 120px 40px 60px;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease-o);
  overflow-y: auto;
}
#mobile-menu.open { transform: translateY(0); }
#mobile-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
#mobile-links a {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 8vw, 52px);
  font-weight: 300;
  color: var(--cream);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, padding 0.2s;
}
#mobile-links a:hover { color: var(--gold-pl); padding-left: 12px; }
#mobile-cta-wrap {
  padding: 32px 0 24px;
}
#mobile-cta-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 16px;
}
#mobile-footer {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted2);
}

/* ══ HERO ══ */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
#video-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
#hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,12,16,0.3) 0%,
    rgba(8,12,16,0.2) 40%,
    rgba(8,12,16,0.65) 75%,
    rgba(8,12,16,0.95) 100%
  );
}
#hero-content {
  position: relative;
  z-index: 2;
  padding: 360px 52px 56px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

/* especialidades — primeiro elemento */
#hero-specs {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 0 6px;
}
.spec-tag {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-lt);
  position: relative;
}
.spec-div {
  font-size: 12px;
  color: var(--gold-bd);
}

#hero-eyebrow {
  margin-bottom: 20px;
  color: rgba(241,241,241,0.6);
}
#hero-title {
  font-size: clamp(60px, 9vw, 130px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 40px;
  max-width: 900px;
}
#hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: auto;
}
#hero-tags {
  display: flex;
  gap: 0;
  border-left: 1px solid var(--border);
}
.hero-tag {
  padding: 0 28px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tag-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--cream);
}
.tag-desc {
  font-size: 11px;
  color: var(--muted2);
  letter-spacing: 0.05em;
}
#hero-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
}
#hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 300;
  color: var(--muted);
  text-align: right;
  line-height: 1.3;
}

/* scroll indicator */
#hero-scroll {
  position: absolute;
  bottom: 56px; left: 52px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#scroll-bar {
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, var(--gold-lt), transparent);
  animation: s-pulse 2.4s ease-in-out infinite;
}
@keyframes s-pulse {
  0%   { opacity:0; transform:scaleY(0); transform-origin:top; }
  50%  { opacity:1; transform:scaleY(1); }
  100% { opacity:0; transform:scaleY(0); transform-origin:bottom; }
}

/* ══ MARQUEE ══ */
#marquee-wrap {
  overflow: hidden;
  background: var(--dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
#marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-item {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(241, 241, 241, 0.32);
  padding: 0 28px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 28px;
  animation: marquee-highlight 8s infinite ease-in-out;
  will-change: color, text-shadow, transform;
}
.marquee-item:nth-child(8n+1) { animation-delay: 0s; }
.marquee-item:nth-child(8n+2) { animation-delay: 1s; }
.marquee-item:nth-child(8n+3) { animation-delay: 2s; }
.marquee-item:nth-child(8n+4) { animation-delay: 3s; }
.marquee-item:nth-child(8n+5) { animation-delay: 4s; }
.marquee-item:nth-child(8n+6) { animation-delay: 5s; }
.marquee-item:nth-child(8n+7) { animation-delay: 6s; }
.marquee-item:nth-child(8n+8) { animation-delay: 7s; }

.m-dot { color: var(--gold); }
@keyframes marquee-highlight {
  0%, 100% {
    color: rgba(241, 241, 241, 0.32);
    transform: scale(1);
  }
  12.5% {
    color: var(--gold-pl);
    text-shadow: 0 0 12px rgba(232, 212, 168, 0.6), 0 0 4px rgba(232, 212, 168, 0.4);
    transform: scale(1.06);
  }
  25%, 90% {
    color: rgba(241, 241, 241, 0.32);
    transform: scale(1);
  }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══ SHARED LAYOUT ══ */
.section-dark { background: var(--navy); }
.light-section {
  background: linear-gradient(135deg, #ffffff 0%, #faf9f6 50%, #f2f0ea 100%);
  color: #080c10;
}
.light-section h2 {
  color: #080c10;
}
.light-section em {
  color: #8c6a3c; /* Antique gold for high readability on light backgrounds */
}
.light-section .body-block p,
.light-section p {
  color: #1a2432;
}
.light-section .stat-l {
  color: #4a5468;
}
.light-section .stat-line {
  background: rgba(8, 12, 16, 0.12);
}
.light-section .split-photo {
  filter: drop-shadow(0 20px 40px rgba(8, 12, 16, 0.08));
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px 52px;
}
.split-50 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  padding: 0;
  max-width: 100%;
}
.photo-col {
  position: relative;
  overflow: hidden;
  background: #06101a;
  min-height: 640px;
}
/* sobre e metodo — fundo transparente para herdar o gradiente continuo */
#sobre .photo-col, #metodo .photo-col {
  background: transparent;
}


.split-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.12));
  will-change: transform;
  transition: transform 8s ease;
}
.text-col {
  padding: 100px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.text-col h2 { margin-bottom: 32px; }
.section-head { margin-bottom: 64px; }
.section-head h2 { margin-top: 8px; }

.body-block p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
  max-width: 480px;
}
.body-block { margin-bottom: 44px; }

/* stats */
.stats-row {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 44px;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-n {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  font-weight: 400;
  color: var(--gold-lt);
  line-height: 1;
}
.stat-l { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; }
.stat-line { width: 1px; height: 36px; background: var(--border); }

/* ══ INSTAGRAM CARD — Sobre ══ */
#sobre-insta-card {
  display: block;
  text-decoration: none;
  margin-bottom: 36px;
  max-width: 420px;
}
#sobre-insta-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border-radius: 100px; /* pill shape */
  background: linear-gradient(135deg, rgba(8,12,16,0.04) 0%, rgba(152,121,70,0.06) 100%);
  border: 1px solid rgba(152,121,70,0.18);
  box-shadow: 0 2px 20px rgba(152,121,70,0.06), inset 0 1px 0 rgba(255,255,255,0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease), background 0.35s var(--ease);
}
#sobre-insta-card:hover #sobre-insta-inner {
  border-color: rgba(152,121,70,0.45);
  box-shadow: 0 6px 28px rgba(152,121,70,0.12), inset 0 1px 0 rgba(255,255,255,0.6);
  background: linear-gradient(135deg, rgba(8,12,16,0.06) 0%, rgba(152,121,70,0.10) 100%);
  transform: translateY(-1px);
}
#sobre-insta-avatar {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}
#sobre-insta-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: none;
}
#sobre-insta-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background: linear-gradient(135deg, #c4a35a, #987946, #e8d4a8) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;
}
#sobre-insta-info {
  flex: 1;
  min-width: 0;
}
#sobre-insta-handle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}
#sobre-insta-icon {
  width: 14px;
  height: 14px;
  color: var(--gold);
  flex-shrink: 0;
}
#sobre-insta-username {
  font-size: 13px;
  font-weight: 600;
  color: #080c10;
  letter-spacing: 0.01em;
}
#sobre-insta-name {
  font-size: 11.5px;
  color: #4a5468;
  font-weight: 400;
  margin-bottom: 4px;
}
#sobre-insta-bio {
  font-size: 10.5px;
  color: #6b7280;
  line-height: 1.5;
  font-weight: 300;
}
#sobre-insta-arrow {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(152,121,70,0.08);
  border: 1px solid rgba(152,121,70,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
#sobre-insta-card:hover #sobre-insta-arrow {
  background: rgba(152,121,70,0.16);
  border-color: rgba(152,121,70,0.4);
}
#sobre-insta-arrow svg {
  width: 14px;
  height: 14px;
}

/* ══ FRASE ══ */
#frase {
  background: var(--black);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: center;
  padding: 100px 52px;
}
#frase-content { max-width: 860px; text-align: center; }
.frase-line {
  width: 40px; height: 1px;
  background: var(--gold);
  margin: 0 auto 40px;
}
blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 3.8vw, 48px);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.35;
  margin-bottom: 28px;
}
cite {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-lt);
  font-style: normal;
}

/* ══ ESPECIALIDADES ══ */
#especialidades .section-inner { padding-top: 80px; padding-bottom: 0; }
#espec-list { margin-top: 0; }
.espec-row {
  display: grid;
  grid-template-columns: 80px 1fr 260px;
  gap: 0 40px;
  align-items: center;
  padding: 44px 0;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.espec-row:last-child { border-bottom: 1px solid var(--border); margin-bottom: 80px; }
.espec-row::before {
  content:'';
  position:absolute;
  inset:0;
  background: rgba(152,121,70,0.03);
  opacity:0;
  transition: opacity 0.4s;
}
.espec-row:hover::before,
.espec-row.active-scroll::before { opacity:1; }
.espec-n {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 300;
  color: var(--border);
  line-height: 1;
  transition: color 0.5s var(--ease-o);
}
.espec-row:hover .espec-n,
.espec-row.active-scroll .espec-n { color: var(--gold); }
.espec-text h3 { margin-bottom: 12px; transition: color 0.5s var(--ease-o); }
.espec-row:hover .espec-text h3,
.espec-row.active-scroll .espec-text h3 { color: var(--gold-pl); }
.espec-text p { font-size: 14.5px; color: var(--muted); line-height: 1.75; max-width: 520px; }
.espec-img-col {
  height: 200px;
  overflow: hidden;
  border-radius: 2px;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.55s var(--ease-o), transform 0.55s var(--ease-o);
}
.espec-row:hover .espec-img-col,
.espec-row.active-scroll .espec-img-col {
  opacity: 1;
  transform: translateX(0);
}
.espec-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.4));
}
.espec-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 2px;
  display: block;
}

/* ══ MÉTODO ══ */
#metodo {
  background: linear-gradient(135deg, #091522 0%, #0d1e2d 50%, #080c10 100%);
  color: var(--cream);
  position: relative;
}

#metodo-scroll-wrap {
  position: relative;
  height: 250vh; /* scroll depth for animation */
}

#metodo-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

#metodo-sticky .section-inner {
  width: 100%;
  max-width: 1280px;
  padding: 0 52px;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

#metodo-header {
  position: absolute;
  top: 80px;
  left: 52px;
  text-align: left;
  margin-bottom: 0px;
  z-index: 10;
}

#arch-container {
  position: relative;
  width: 90em;
  height: 45em;
  margin: 0 auto;
  font-size: 1.15vw; /* responsive base size */
  --arch-radius: 45em;
  --arch-size: 90em;
  --arch-top: 5.5em;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

@media (max-width: 1200px) {
  #arch-container {
    font-size: 1.3vw;
  }
  #metodo-header {
    top: 60px;
  }
}

@media (max-width: 991px) {
  #arch-container {
    font-size: 1.6vw;
  }
  #metodo-header {
    top: 50px;
    left: 40px;
  }
  #metodo-sticky .section-inner {
    padding: 0 40px;
  }
}

@media (max-width: 640px) {
  #arch-container {
    width: 65em;
    height: 42em;
    font-size: 2.2vw;
    --arch-radius: 32.5em;
    --arch-size: 65em;
    --arch-top: 4.5em;
  }
  #metodo-header {
    position: relative;
    top: auto;
    left: auto;
    text-align: center;
    margin-top: 80px;
    margin-bottom: 20px;
  }
  #metodo-sticky {
    justify-content: center;
  }
  #metodo-sticky .section-inner {
    padding: 0 24px;
    justify-content: center;
  }
}

#arch-plumb {
  position: absolute;
  left: 50%;
  top: var(--arch-top);
  height: 11em;
  width: 1px;
  background: rgba(241, 241, 241, 0.35);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
}

#arch-track-wrap {
  position: absolute;
  left: 50%;
  top: var(--arch-top);
  width: var(--arch-size);
  height: var(--arch-size);
  transform: translate(-50%, 0);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: 0;
}

#arch-wheel {
  position: absolute;
  width: var(--arch-size);
  height: var(--arch-size);
  border-radius: 50%;
  left: 50%;
  top: var(--arch-top);
  transform: translate(-50%, 0) rotate(45deg);
  transform-origin: center center;
  will-change: transform;
  z-index: 2;
  transition: transform 0.1s ease-out; /* minor damping to prevent scrolling jitter */
}

.arch-node {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: rotate(var(--angle)) translateY(calc(-1 * var(--arch-radius))) rotate(calc(-1 * var(--angle) - var(--wheel-rotation, 0deg)));
  transform-origin: center center;
  z-index: 10;
  will-change: transform;
}

.arch-node-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  position: absolute;
  transform: translate(-50%, -50%);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
  z-index: 12;
}

.arch-node.active .arch-node-dot {
  background-color: #ffb937;
  box-shadow: 0 0 12px #ffb937, 0 0 4px #ffb937;
  transform: translate(-50%, -50%) scale(1.2);
}

.arch-node-bubble {
  width: 3.4em;
  height: 3.4em;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #091522;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: -1.7em;
  bottom: 2em; /* floats outside the circle */
  font-family: 'Inter', sans-serif;
  font-size: 1.05em;
  font-weight: 400;
  cursor: pointer;
  transition: border-color 0.35s var(--ease), color 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.arch-node-bubble:hover {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--cream);
}

.arch-node.active .arch-node-bubble {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--cream);
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

#arch-center {
  position: absolute;
  top: 18.5em;
  left: 50%;
  transform: translate(-50%, 0);
  text-align: center;
  width: 38em;
  z-index: 5;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

#arch-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3em;
  color: var(--cream);
  margin-bottom: 0.5em;
  line-height: 1.15;
}

#arch-desc {
  font-size: 1.45em;
  color: var(--muted);
  line-height: 1.65;
  max-width: 30ch;
  margin: 0 auto;
}

@media (max-width: 640px) {
  #metodo-scroll-wrap {
    height: 140vh; /* shorter scroll height to avoid massive empty space below the section */
  }
  #arch-container {
    width: 60em;
    height: 48em; /* increased height from 38em to 48em to accommodate description text */
    font-size: 3vw; /* scaled font-size from 1.35vw to 3vw to make active bubble fit */
    --arch-radius: 30em;
    --arch-size: 60em;
    --arch-top: 7em; /* pushed down to prevent bubbles from being clipped at the top container border */
    max-width: 100vw;
  }
  .arch-node-bubble {
    font-size: 12px;
  }
  #arch-center {
    top: 15.5em;
    width: 90vw;
    font-size: 14px;
  }
  #arch-title {
    font-size: 2.2em;
    margin-bottom: 0.3em;
  }
  #arch-desc {
    font-size: 1.25em;
    max-width: 25ch;
  }
}

/* ══ DEPOIMENTOS ══ */
#deps { padding: 100px 0; }
#deps .section-inner { padding-top: 0; }
#deps-videos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 64px;
}
.video-card {
  position: relative;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  height: 520px;
}
.insta-embed {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 2px;
}
@media (max-width: 800px) {
  #deps-videos {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto 48px;
  }
  .video-card {
    height: 480px;
  }
}
#deps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.dep-card {
  background: var(--navy);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  transition: background 0.3s;
}
.dep-card:hover { background: var(--dark); }
.dep-card p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  line-height: 1.6;
  flex: 1;
}
.dep-card footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.dep-card footer strong { font-size: 13px; font-weight: 500; }
.dep-card footer span { font-size: 11px; color: var(--muted2); letter-spacing: 0.07em; }

/* ══ FAQ ══ */
#faq { background: var(--black); padding: 100px 0; }
.faq-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
  padding-top: 0;
  padding-bottom: 0;
}
#faq-left { padding-top: 4px; }
#faq-left h2 { margin-bottom: 20px; }
#faq-left .body-muted { margin-bottom: 36px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  text-align: left;
  font-size: 15px;
  font-weight: 400;
  color: var(--cream);
  transition: color 0.2s;
}
.faq-q:hover { color: var(--gold-pl); }
.faq-q svg {
  width: 18px; height: 18px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease-o);
}
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-o);
}
.faq-a p { font-size: 14px; color: var(--muted); line-height: 1.8; }
.faq-item.open .faq-a { max-height: 260px; padding-bottom: 24px; }

/* ══ CTA ══ */
#cta {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--black);
}
#cta-video-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
}
#cta-photo {
  height: 110%;
  width: auto;
  object-fit: contain;
  object-position: bottom right;
  opacity: 0.18;
  will-change: transform;
  filter: drop-shadow(0 0 80px rgba(0,0,0,1));
}
#cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(8,12,16,0.97) 40%, rgba(8,12,16,0.3) 100%);
}
#cta-content {
  position: relative;
  z-index: 2;
  padding: 80px 100px;
  max-width: 720px;
}
#cta-content h2 { margin: 8px 0 20px; }
#cta-content .body-muted { margin-bottom: 40px; }
#cta-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
#cta-meta {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted2);
}

/* ══ FOOTER ══ */
#footer {
  background: #040810;
  border-top: 1px solid var(--border);
  padding: 52px 52px 32px;
}
#footer-inner {
  display: flex;
  align-items: flex-start;
  gap: 80px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
#footer-brand { flex: 1; }
#footer-logo {
  height: 200px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
  transition: height 0.5s var(--ease);
}
#footer-brand p {
  font-size: 13px;
  color: var(--muted2);
}
#footer-nav, #footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
}
#footer-nav a, #footer-contact a {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
#footer-nav a:hover, #footer-contact a:hover { color: var(--gold-lt); }
#footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
#footer-bottom span {
  font-size: 12px;
  color: var(--muted2);
  letter-spacing: 0.05em;
}
#footer-credit {
  border-top: 1px solid rgba(255,255,255,0.04);
  padding-top: 14px;
  margin-top: 4px;
  text-align: center;
}
#footer-credit span {
  font-size: 11px;
  color: var(--muted2);
  letter-spacing: 0.05em;
}
#footer-credit-link {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.25s;
}
#footer-credit-link:hover {
  color: var(--gold-lt);
}

/* ══ WA FLOAT ══ */
#wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 300;
  width: 52px; height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  opacity: 0;
  transform: scale(0.7) translateY(16px);
  transition: opacity 0.4s, transform 0.4s var(--ease-o), box-shadow 0.3s;
}
#wa-float.show { opacity: 1; transform: scale(1) translateY(0); }
#wa-float:hover { transform: scale(1.1) translateY(-2px); box-shadow: 0 8px 28px rgba(37,211,102,0.5); }
#wa-float svg { width: 24px; height: 24px; }

/* ══ REVEAL ══ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-o), transform 0.8s var(--ease-o);
}
[data-reveal="left"] {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.9s var(--ease-o), transform 0.9s var(--ease-o);
}
[data-reveal="right"] {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.9s var(--ease-o), transform 0.9s var(--ease-o);
}
[data-reveal].in,[data-reveal="left"].in,[data-reveal="right"].in {
  opacity: 1;
  transform: translate(0);
}
[data-d="1"] { transition-delay: 0.1s; }
[data-d="2"] { transition-delay: 0.2s; }
[data-d="3"] { transition-delay: 0.3s; }
[data-d="4"] { transition-delay: 0.4s; }

/* ══ RESPONSIVE ══ */
@media (max-width: 1100px) {
  #logo { height: 90px; }
  #header.solid #logo { height: 42px; }
  #footer-logo { height: 120px; }
  #header-inner { padding: 16px 32px; }
  #header.solid #header-inner { padding: 6px 32px; }
  #header-cta { display: none; }
  #nav-links { display: none; }
  #menu-btn { display: flex; }

  #hero-content { padding: 260px 32px 48px; }
  #hero-scroll { left: 32px; }
  #hero-bottom { flex-direction: column; align-items: flex-start; }
  #hero-cta-wrap { align-items: flex-start; }
  #hero-sub { text-align: left; }
  #hero-tags { flex-wrap: wrap; }

  .section-inner { padding: 80px 32px; }
  .split-50 { grid-template-columns: 1fr; }
  .photo-col { min-height: 60vw; max-height: 480px; }
  .text-col { padding: 64px 32px; }

  #espec-list .espec-row {
    grid-template-columns: 64px 1fr;
    grid-template-rows: auto auto;
    flex-wrap: wrap;
  }
  .espec-img-col {
    grid-column: 1 / -1; /* span full width below text */
    height: 220px;
    opacity: 1 !important;
    transform: none !important;
    margin-top: 16px;
  }
  .espec-video {
    object-fit: cover;
  }

  #deps-grid { grid-template-columns: 1fr 1fr; }

  .faq-inner { grid-template-columns: 1fr; gap: 48px; }

  #cta-content { padding: 80px 32px; }
  #footer { padding: 48px 32px 28px; }
  #footer-inner { flex-wrap: wrap; gap: 48px; }
}

@media (max-width: 640px) {
  #logo { height: 70px; }
  #header.solid #logo { height: 36px; }
  #footer-logo { height: 80px; }
  #header-inner { padding: 10px 20px; }
  #header.solid #header-inner { padding: 4px 20px; }
  
  #hero {
    height: auto;
    min-height: 100vh;
  }
  #hero-video {
    transform: scale(2.2);
    transform-origin: 25% 75%; /* zooms and shifts the video to crop out the baked-in text */
  }
  #hero-content { 
    padding: 190px 20px 40px;
    justify-content: flex-start;
  }
  #hero-title {
    margin-bottom: 32px;
  }
  #hero-title br {
    display: none;
  }
  h1 { font-size: clamp(32px, 8.5vw, 44px); }

  /* Oculta as tags de especialidade do topo — já aparecem no marquee */
  #hero-specs { display: none; }

  /* Oculta o parágrafo longo — muito texto para mobile */
  #hero-sub { display: none; }

  /* Hero-tags: exibe em linha horizontal compacta */
  #hero-tags {
    flex-direction: row;
    flex-wrap: nowrap;
    border-left: none;
    gap: 0;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 24px;
  }
  .hero-tag {
    border: none;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 0;
  }
  .hero-tag:not(:last-child)::after {
    content: '·';
    color: var(--gold);
    margin: 0 8px;
    font-size: 13px;
  }
  /* Oculta as descrições — mantém apenas os labels */
  .tag-desc { display: none; }
  .tag-label {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
  }
  
  .section-inner {
    padding: 60px 20px;
  }
  .text-col {
    padding: 40px 20px;
  }
  
  .espec-row {
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
    gap: 0 16px;
    padding: 24px 0;
  }
  .espec-n {
    font-size: 36px;
  }
  .espec-img-col {
    height: 180px;
    margin-top: 12px;
  }
  
  .video-card {
    height: 420px;
  }
  #deps-grid { grid-template-columns: 1fr; }
  .stats-row { flex-wrap: wrap; gap: 20px; }
  .stat-line { display: none; }
  #cta-btns { flex-direction: column; }
  #cta-overlay {
    background: rgba(8, 12, 16, 0.9);
  }
  #footer-bottom { flex-direction: column; }
}
