:root {
  --bg: #f6f1e9;
  --bg-warm: #ece2d2;
  --bg-deep: #0f1a2b;
  --ink: #1a1d24;
  --ink-soft: #4a4a4a;
  --ink-mute: #8a8275;
  --rule: #d9cdb8;
  --accent: #a98a5f;
  --accent-deep: #8a6f47;
  --stone: #d9c9a9;
  --leaf: #6f7a4f;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }

/* ---------- typography ---------- */
.serif { font-family: 'Cormorant Garamond', serif; font-weight: 400; letter-spacing: -0.005em; }
.mono  { font-family: 'JetBrains Mono', monospace; }
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.eyebrow .dash {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent-deep);
  vertical-align: middle;
  margin-right: 12px;
  transform: translateY(-2px);
}

/* ---------- layout helpers ---------- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
section { padding: 120px 0; position: relative; }
@media (max-width: 720px) {
  section { padding: 80px 0; }
  .wrap { padding: 0 24px; }
}

/* ---------- HEADER / NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 22px 40px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .35s ease, backdrop-filter .35s ease, padding .35s ease;
}
.nav.scrolled {
  background: rgba(246,241,233,0.92);
  backdrop-filter: saturate(140%) blur(10px);
  padding: 14px 40px;
  border-bottom: 1px solid rgba(217,205,184,0.6);
}
.logo {
  display: inline-flex; align-items: center;
  text-decoration: none;
}
.logo img { height: 44px; width: auto; display: block; }
.nav.scrolled .logo img { height: 36px; transition: height .35s; }
.footer-brand .logo img { height: 56px; }
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.06em;
  font-weight: 400;
  transition: color .2s;
}
.nav-links a:hover { color: var(--accent-deep); }
.nav-cta {
  border: 1px solid var(--bg-deep);
  color: var(--bg-deep);
  background: transparent;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all .25s;
  display: inline-block;
}
.nav-cta:hover { background: var(--bg-deep); color: var(--bg); }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav { padding: 16px 24px; }
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  padding-top: 140px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--bg-deep);
  margin: 32px 0 28px;
}
.hero h1 .it { font-style: italic; color: var(--accent-deep); font-weight: 300; }
.hero p.lede {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--bg-deep);
  color: var(--bg);
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .25s;
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-ghost {
  color: var(--bg-deep);
  padding: 16px 0;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--bg-deep);
  transition: all .25s;
}
.btn-ghost:hover { color: var(--accent-deep); border-color: var(--accent-deep); }

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
}
.hero-visual .stone {
  position: absolute;
  inset: 8% -10% 12% 12%;
  background: var(--stone);
  border-radius: 32px 32px 32px 80px;
  z-index: 0;
}
.hero-visual .photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  border-radius: 8px 8px 8px 80px;
  z-index: 1;
  filter: saturate(0.92);
}
.hero-visual .arc {
  position: absolute;
  right: -40px; top: 20px;
  width: 120px; height: 240px;
  z-index: 2;
  color: var(--accent);
  opacity: 0.6;
}
.hero-floats {
  position: absolute;
  bottom: 40px; left: 0;
  display: flex;
  gap: 60px;
  align-items: end;
}
.hero-stat .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  font-weight: 400;
  color: var(--bg-deep);
  line-height: 1;
}
.hero-stat .lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  margin-top: 6px;
  max-width: 160px;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero-floats { position: static; margin-top: 40px; gap: 40px; }
  .hero-visual { max-width: 480px; }
}

/* hero scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 30px; left: 40px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  text-transform: uppercase;
  display: flex; align-items: center; gap: 12px;
}
.scroll-cue .line {
  width: 60px; height: 1px; background: var(--ink-mute);
  position: relative; overflow: hidden;
}
.scroll-cue .line::after {
  content: ''; position: absolute; left: -30%; top: 0;
  width: 30%; height: 100%; background: var(--bg-deep);
  animation: scroll-line 2.4s ease-in-out infinite;
}
@keyframes scroll-line { 0% { left: -30%; } 100% { left: 100%; } }
@media (max-width: 720px) { .scroll-cue { display: none; } }

/* ---------- ABOUT / QUEM SOMOS ---------- */
.about {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 100%);
}
.about-head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  margin-bottom: 80px;
  align-items: end;
}
.about-head h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.05;
  color: var(--bg-deep);
  font-weight: 400;
  margin-top: 24px;
}
.about-head h2 .it { font-style: italic; color: var(--accent-deep); }
.about-head .copy p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 18px;
  max-width: 520px;
}
.about-head .copy p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .about-head { grid-template-columns: 1fr; gap: 32px; margin-bottom: 56px; } }

/* carousel */
.carousel {
  position: relative;
}
.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 auto;
  width: min(620px, 80vw);
  aspect-ratio: 4/3;
  position: relative;
  scroll-snap-align: start;
  border-radius: 4px;
  overflow: hidden;
  background: #ddd;
}
.slide img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s ease;
}
.slide:hover img { transform: scale(1.03); }
.slide .cap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px;
  background: linear-gradient(180deg, transparent 0%, rgba(15,26,43,0.7) 100%);
  color: var(--bg);
}
.slide .cap-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  opacity: 0.8;
  margin-bottom: 6px;
}
.slide .cap-ttl {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 400;
}

.carousel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
}
.carousel-counter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
}
.carousel-counter b { color: var(--bg-deep); font-weight: 500; }
.carousel-buttons { display: flex; gap: 12px; }
.carousel-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--bg-deep);
  cursor: pointer;
  display: grid; place-items: center;
  transition: all .25s;
}
.carousel-btn:hover { background: var(--bg-deep); color: var(--bg); border-color: var(--bg-deep); }
.carousel-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ---------- ESPECIALIDADES ---------- */
.specs { background: var(--bg-deep); color: var(--bg); }
.specs-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 72px;
}
.specs-head h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.05;
  font-weight: 400;
  margin-top: 24px;
}
.specs-head h2 .it { font-style: italic; color: var(--accent); }
.specs-head .eyebrow { color: var(--accent); }
.specs-head .eyebrow .dash { background: var(--accent); }
.specs-head p {
  color: rgba(246,241,233,0.7);
  font-size: 16px;
  line-height: 1.75;
  max-width: 480px;
}
@media (max-width: 900px) { .specs-head { grid-template-columns: 1fr; gap: 32px; margin-bottom: 48px; } }

.specs-list {
  border-top: 1px solid rgba(217,205,184,0.18);
}
.spec-row {
  display: grid;
  grid-template-columns: 60px 1fr 1.2fr 80px;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(217,205,184,0.18);
  align-items: center;
  transition: padding .35s ease;
  cursor: pointer;
}
.spec-row:hover { padding-left: 16px; }
.spec-row:hover .spec-name { color: var(--accent); }
.spec-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.15em;
}
.spec-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 400;
  transition: color .25s;
}
.spec-desc {
  color: rgba(246,241,233,0.6);
  font-size: 14px;
  line-height: 1.65;
}
.spec-arrow {
  justify-self: end;
  color: var(--accent);
  opacity: 0.6;
  transition: transform .25s, opacity .25s;
}
.spec-row:hover .spec-arrow { transform: translateX(8px); opacity: 1; }
@media (max-width: 900px) {
  .spec-row { grid-template-columns: 40px 1fr; gap: 16px; padding: 24px 0; }
  .spec-row .spec-desc, .spec-row .spec-arrow { display: none; }
  .spec-name { font-size: 26px; }
}

/* ---------- CORPO CLINICO ---------- */
.team-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 80px;
}
.team-head h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.05;
  color: var(--bg-deep);
  font-weight: 400;
  margin-top: 24px;
}
.team-head h2 .it { font-style: italic; color: var(--accent-deep); }
.team-head p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
  max-width: 480px;
}
@media (max-width: 900px) { .team-head { grid-template-columns: 1fr; gap: 32px; margin-bottom: 48px; } }

.team-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 56px;
  overflow-x: auto;
  scrollbar-width: none;
}
.team-tabs::-webkit-scrollbar { display: none; }
.team-tab {
  background: transparent;
  border: none;
  padding: 18px 28px 18px 0;
  margin-right: 32px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color .25s;
}
.team-tab:hover { color: var(--bg-deep); }
.team-tab.active { color: var(--bg-deep); font-weight: 500; }
.team-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 32px;
  height: 2px;
  background: var(--accent-deep);
}
.team-tab .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--accent-deep);
  margin-right: 8px;
  vertical-align: top;
  letter-spacing: 0.15em;
}

.team-stage {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 80px;
  align-items: start;
  min-height: 600px;
}
@media (max-width: 900px) { .team-stage { grid-template-columns: 1fr; gap: 40px; } }

.doc-photo-wrap {
  position: relative;
  aspect-ratio: 4/5;
}
.doc-photo-wrap .stone {
  position: absolute;
  inset: 6% -8% 10% 8%;
  background: var(--stone);
  border-radius: 24px 24px 24px 60px;
  z-index: 0;
  transition: background .5s ease;
}
.doc-photo-wrap .photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  border-radius: 6px 6px 6px 60px;
  z-index: 1;
  transition: opacity .35s ease;
}
.doc-photo-wrap .arc-line {
  position: absolute;
  right: -30px; top: 30%;
  width: 80px; height: 200px;
  z-index: 2;
  color: var(--accent);
  opacity: 0.5;
}

.doc-info .eyebrow { margin-bottom: 16px; display: block; }
.doc-info h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 400;
  color: var(--bg-deep);
  line-height: 1.05;
  margin-bottom: 8px;
}
.doc-info h3 .it { font-style: italic; }
.doc-role {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 32px;
}
.doc-bio p {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.doc-meta {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}
.doc-meta .lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.doc-meta .val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--bg-deep);
}

/* ---------- CONTATO ---------- */
.contact { background: var(--bg-warm); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }

.contact h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  color: var(--bg-deep);
  font-weight: 400;
  margin: 24px 0 32px;
}
.contact h2 .it { font-style: italic; color: var(--accent-deep); }

.contact-card {
  background: var(--bg);
  padding: 40px;
  border-radius: 4px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  align-items: start;
}
.contact-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-deep);
  color: var(--accent);
  display: grid; place-items: center;
}
.contact-card .lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.contact-card .val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--bg-deep);
  line-height: 1.4;
}
.contact-card .val a { color: inherit; text-decoration: none; }
.contact-card .val a:hover { color: var(--accent-deep); }
.contact-card .sub {
  color: var(--ink-soft);
  font-size: 14px;
  margin-top: 4px;
}

.map-wrap {
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  background: var(--bg-deep);
  background-size: cover;
  background-position: center;
}
.map-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,26,43,0.2) 0%, rgba(15,26,43,0.85) 100%);
}
.map-pin {
  position: absolute;
  bottom: 32px; left: 32px; right: 32px;
  z-index: 2;
  color: var(--bg);
}
.map-pin .eyebrow { color: var(--accent); }
.map-pin .eyebrow .dash { background: var(--accent); }
.map-pin .ttl {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 400;
  margin-top: 12px;
  margin-bottom: 8px;
}
.map-pin .addr { font-size: 14px; opacity: 0.85; line-height: 1.6; }
.map-pin .open-map {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px;
  color: var(--bg);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(246,241,233,0.4);
  padding-bottom: 6px;
  transition: border-color .25s;
}
.map-pin .open-map:hover { border-color: var(--accent); }

/* ---------- FOOTER ---------- */
footer {
  background: var(--bg-deep);
  color: var(--bg);
  padding: 80px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(217,205,184,0.18);
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

.footer-brand .logo { color: var(--bg); margin-bottom: 16px; }
.footer-brand p {
  color: rgba(246,241,233,0.6);
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
}
.footer-col .h {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.footer-col a, .footer-col .ln {
  color: rgba(246,241,233,0.85);
  text-decoration: none;
  font-size: 14px;
  display: block;
  margin-bottom: 10px;
  line-height: 1.5;
  transition: color .2s;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom .legal {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(246,241,233,0.5);
  line-height: 1.7;
}
.footer-bottom .resp {
  text-align: right;
  font-size: 12px;
  color: rgba(246,241,233,0.6);
  line-height: 1.6;
}
.footer-bottom .resp .name { color: var(--bg); font-weight: 500; }
@media (max-width: 720px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom .resp { text-align: left; }
}

/* ---------- decorative arc SVG (used inline) ---------- */
.arc-svg { width: 100%; height: 100%; }

/* fade in on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}
