/* ============================================================
   Roberta Conejo — Nutrição Clínica
   Visual language reverse-engineered from Lanserhof:
   radical minimalism, one humanist sans, thin+bold headings,
   sage green institutional / terracotta accent.
   ============================================================ */

:root {
  /* Palette — Warmed and adjusted for consistent corporate contrast */
  --bg:         #FAF9F6; /* Cozy off-white background */
  --bg-alt:     #F4F1EA; /* Warmed secondary background */
  --ink:        #2A2E2A;
  --body:       #51544E;
  --line:       rgba(42, 46, 42, 0.14);
  --sage-deep:  #3E5641;
  --sage:       #5C6E50;
  --terra:      #7D8F72;
  --white:      #FFFFFF;

  /* Smooth Ambient Shadows */
  --shadow-sm:  0 2px 12px rgba(0, 0, 0, 0.04);
  --shadow-md:  0 10px 30px rgba(62, 86, 65, 0.05);

  /* Universal Rounding tokens */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;

  /* Fonts */
  --font-base: 'Poppins', system-ui, sans-serif;

  --pad-x: clamp(1.5rem, 8vw, 9rem);
  --section-y: clamp(2.5rem, 4vw, 5rem);
  --maxw: 1500px;
}

* { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.72;
}

/* Universal border radius integration for layout images */
img { display: block; max-width: 100%; border-radius: var(--radius-md); }

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

::selection { background: var(--sage); color: var(--bg); }

/* ---------- Type primitives ---------- */

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--sage);
  margin: 0 0 1.6rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 40px;
  height: 2px;
  background: var(--terra);
  border-radius: 999px;
}

h1, h2, h3 { margin: 0; font-weight: 300; line-height: 1.16; letter-spacing: -0.01em; text-wrap: balance; }

h1 { font-size: clamp(2.8rem, 6.2vw, 5.2rem); line-height: 1.1; }
h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 400; }

h1 b, h2 b, h3 b, .em { font-weight: 700; color: inherit; }

p { margin: 0 0 1.2rem; color: var(--body); max-width: 62ch; }
p:last-child { margin-bottom: 0; }

.lead { font-size: clamp(1.2rem, 1.8vw, 1.5rem); color: var(--body); font-weight: 400; line-height: 1.65; }

.measure { max-width: 64ch; }

/* ---------- Layout helpers ---------- */

.wrap { padding-inline: var(--pad-x); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3.5rem, 7vw, 6rem); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: center;
  max-width: var(--maxw);
  margin-inline: auto;
}
.split--reverse .split__media { order: 2; display: flex; }
.split__text { max-width: 38rem; }

/* ---------- Circular CTA (the signature motif) ---------- */

.circle-cta {
  display: inline-flex;
  align-items: center;
  gap: 1.15rem;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
  padding: 0;
}
.circle-cta__label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.circle-cta__ring {
  flex: none;
  width: 64px; height: 64px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background .45s ease, color .45s ease, transform .45s ease;
}
.circle-cta__ring svg { width: 20px; height: 20px; }
.circle-cta:hover .circle-cta__ring { background: var(--sage); color: var(--bg); border-color: var(--sage); }
.circle-cta--terra:hover .circle-cta__ring { background: var(--terra); border-color: var(--terra); }
.circle-cta:hover .circle-cta__ring { transform: scale(1.04); }

/* Solid primary button — Welcoming and highly tactile */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--terra);
  color: var(--white);
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 1.2rem 2.1rem;
  border-radius: 99px;
  box-shadow: var(--shadow-sm);
  transition: background .4s ease, transform .4s ease, box-shadow .4s ease;
}
.btn-primary svg { width: 16px; height: 16px; }
.btn-primary:hover { background: #A8552E; transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Animated underline link */
.ulink {
  position: relative;
  font-weight: 500;
}
.ulink::after {
  content: "";
  position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s ease;
}
.ulink:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Portrait + overlay tab motif ---------- */

.portrait { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.portrait .figure, .portrait img { width:100%; }
.portrait .figure img { width: 100%; aspect-ratio: 3 / 4; display: block; border-radius: var(--radius-lg); }
.portrait--wide { width: 100%; }
.portrait--wide .figure img { aspect-ratio: 4 / 3; }
.portrait--square .figure img { aspect-ratio: 1 / 1; }

.img-tab {
  position: absolute;
  bottom: 0; left: 0;
  background: var(--sage-deep);
  color: #EEF0EA;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.95rem 1.1rem 0.95rem 1.35rem;
  border-top-right-radius: var(--radius-md); /* Internal element alignment */
}
.img-tab--right { left: auto; right: 0; border-top-right-radius: 0; border-top-left-radius: var(--radius-md); }
.img-tab__label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.13em; }
.img-tab__ring {
  flex: none;
  width: 40px; height: 40px;
  border: 1px solid rgba(238,240,234,0.55);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: background .4s ease, color .4s ease;
}
.img-tab__ring svg { width: 14px; height: 14px; }
.portrait:hover .img-tab__ring { background: #EEF0EA; color: var(--sage-deep); }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem var(--pad-x);
  background: rgba(250,249,246,0);
  transition: background .5s ease, box-shadow .5s ease, padding .5s ease;
}
.nav.is-scrolled {
  background: rgba(250,249,246,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 1.15rem;
}
.nav__brand { display: flex; align-items: center; gap: 0.75rem; flex-wrap: nowrap; line-height: 1.1; }
.nav__logo { width: clamp(38px, 5vw, 52px); height: auto; border-radius: 0; flex-shrink: 0; }
.nav__brand-text { display: flex; flex-direction: column; gap: 0.1rem; }
.nav__name { font-size: 1rem; font-weight: 700; letter-spacing: 0.03em; color: var(--ink); }
.nav__tag { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--sage); }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a { font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink); }
.nav__menu {
  display: none;
  align-items: center; gap: 0.7rem;
  background: none; border: 0; cursor: pointer; font-family: inherit;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.13em; color: var(--ink);
}
.nav__menu .bars { display: inline-flex; flex-direction: column; gap: 4px; }
.nav__menu .bars span { width: 22px; height: 1.5px; background: var(--ink); transition: transform .35s ease, opacity .3s; }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 60;
  background: var(--sage-deep); color: #EEF0EA;
  display: flex; flex-direction: column; justify-content: center;
  gap: 1.6rem; padding: var(--pad-x);
  transform: translateY(-100%);
  transition: transform .55s cubic-bezier(.7,0,.2,1);
}
.drawer.is-open { transform: translateY(0); }
.drawer a { font-size: 1.6rem; font-weight: 200; }
.drawer a b { font-weight: 600; }
.drawer__close { position: absolute; top: 1.4rem; right: var(--pad-x); background: none; border: 0; color: inherit; font-size: 1.6rem; cursor: pointer; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #243226;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media .hero__img { width: 100%; height: 100%; border-radius: 0; }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(30,34,30,0.42) 0%, rgba(30,34,30,0.12) 35%, rgba(30,34,30,0.55) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; }

.hero__lockup {
  text-align: center;
  color: #F6F5F1;
  padding-top: clamp(6rem, 14vh, 10rem);
}
.hero__rule { width: 2px; height: clamp(28px, 5vh, 48px); background: var(--terra); margin: 1.4rem auto 0; border-radius: var(--radius-sm); }

.hero__content {
  max-width: 68rem;
  margin: clamp(2rem, 5vh, 4rem) auto 0;
  text-align: center;
  color: #F6F5F1;
  padding-bottom: clamp(5rem, 10vh, 8rem);
}
.hero__name {
  color: #F6F5F1;
  font-size: clamp(3rem, 7.5vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.hero__tagline {
  color: rgba(246,245,241,0.88);
  font-size: clamp(1.2rem, 2.4vw, 1.85rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  margin: 1rem auto 0;
  max-width: 50ch;
}
.hero__sub { color: rgba(246,245,241,0.72); font-weight: 300; font-size: clamp(0.95rem, 1.4vw, 1.15rem); margin: 1.6rem auto 0; max-width: 48ch; }
.hero__cta { margin-top: 2.6rem; display: flex; justify-content: center; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 0.8rem; z-index: 3;
  transform: translateX(-50%);
  width: 58px; height: 58px;
  border: 1px solid var(--terra);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--terra);
  background: rgba(250,249,246,0.08);
  animation: bob 2.6s ease-in-out infinite;
}
.hero__scroll svg { width: 18px; height: 18px; }
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* Quiet hero variant (tweak) */
body.hero-quiet .hero::after { background: linear-gradient(180deg, rgba(30,34,30,0.18), rgba(30,34,30,0.30)); }
body.hero-quiet .hero { align-items: center; }
body.hero-quiet .hero__lockup { padding-top: clamp(5rem, 10vh, 8rem); }

/* ---------- Dark (deep sage) section ---------- */

.dark {
  background: var(--sage-deep);
  color: #E8EBE3;
}
.dark h1, .dark h2, .dark h3 { color: #F2F4EE; }
.dark h2 b, .dark h3 b { color: #fff; }
.dark p { color: rgba(232,235,227,0.82); }
.dark .eyebrow { color: var(--terra); }
.dark .eyebrow::before { background: var(--terra); }
.dark .circle-cta { color: #EEF0EA; }
.dark .circle-cta:hover .circle-cta__ring { background: #EEF0EA; color: var(--sage-deep); border-color: #EEF0EA; }

/* Section rhythm tweak: optionally lighten secondary dark sections */
body.rhythm-light .dark--optional { background: var(--bg-alt); color: var(--ink); }
body.rhythm-light .dark--optional h2, body.rhythm-light .dark--optional h3 { color: var(--ink); }
body.rhythm-light .dark--optional h2 b { color: var(--ink); }
body.rhythm-light .dark--optional p { color: var(--body); }
body.rhythm-light .dark--optional .eyebrow { color: var(--ink); }
body.rhythm-light .dark--optional .circle-cta { color: var(--ink); }

/* ---------- Section heading block ---------- */

.section-head { max-width: 1100px; margin: 0 auto 2rem; text-align: center; }
.section-head h2{margin-inline:auto;}
.section-head .eyebrow{justify-content: center;}
.section-head--center { text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head h2 { max-width: 20ch; }
.section-head--center h2 { margin-inline: auto; }

/* ---------- Pillars ---------- */

.pillars { display: grid; gap: 2rem; margin-top: 2.6rem; }
.pillar { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.pillar__n { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; color: var(--terra); }
.pillar h3 { margin: 0.5rem 0 0.4rem; font-weight: 400; }
.pillar p { font-size: 0.96rem; }
.dark .pillar { border-color: rgba(232,235,227,0.22); }

/* Pillar cards layout — used below the About split */
.pillars--cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  max-width: var(--maxw);
  margin-inline: auto;
}
.pillar--card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--terra);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.5vw, 2.2rem);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .35s ease, transform .35s ease;
}
.pillar--card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.pillar--card .pillar__n { margin-bottom: 0.8rem; display: block; }
.pillar--card h3 { font-size: clamp(1.2rem, 1.8vw, 1.55rem); font-weight: 600; margin: 0 0 0.7rem; color: var(--ink); }
.pillar--card p { font-size: clamp(0.92rem, 1.2vw, 1.05rem); margin: 0; }

/* ---------- Expertise cards ---------- */

.exp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); max-width: var(--maxw); margin-inline: auto; }
.exp-card { display: flex; flex-direction: column; background: var(--white); padding: 1.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.exp-card__media { position: relative; overflow: hidden; margin: -1.5rem; margin-bottom: 0; }
.exp-card__n { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; color: var(--terra); margin: 1.8rem 0 0.7rem; }
.exp-card h3 { font-weight: 300; }
.exp-card p { font-size: 0.95rem; margin-top: 0.8rem; }
.exp-card__list { list-style: none; padding: 0; margin: 0.9rem 0 0; }
.exp-card__list li { font-size: 0.9rem; color: var(--body); padding: 0.5rem 0; border-top: 1px solid var(--line); }

/* ---------- Services ---------- */

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 3vw, 2.6rem); max-width: var(--maxw); margin-inline: auto; }
.svc { display: flex; flex-direction: column; background: var(--white); padding: 1.2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.svc__media { position: relative; overflow: hidden; margin: -1.2rem; margin-bottom: 0; }
.svc__media .figure img { width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius-md); }
.svc__title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.svc h3 { font-weight: 300; font-size: clamp(1.3rem, 1.8vw, 1.8rem); }
.svc__idx { font-size: 0.72rem; font-weight: 700; color: var(--terra); letter-spacing: 0.1em; }
.svc p { font-size: 0.95rem; margin-top: 0.7rem; }

/* Bioimpedância highlight */
.bio { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2.5rem,6vw,6rem); align-items: center; }
.bio__media .figure img { width: 100%; aspect-ratio: 4 / 3; }
.bio__metrics { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.bio__metrics li { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255,255,255,0.06); padding: 1.1rem; border-radius: var(--radius-md); font-size: 0.95rem; }
.bio__metrics li b { display: block; font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; margin-bottom: 0.15rem; }

/* ---------- Bariátrica 3 fases ---------- */

.fases { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 3vw, 2.6rem); max-width: var(--maxw); margin-inline: auto; }
.fase { position: relative; background: var(--white); padding: 1.2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--line); overflow: hidden; }
.fase__media { position: relative; overflow: hidden; margin: -1.2rem; margin-bottom: 0; }
.fase__media .figure img { width: 100%; aspect-ratio: 1 / 1; border-radius: 0; border-top-left-radius: calc(var(--radius-lg) - 1px); border-top-right-radius: calc(var(--radius-lg) - 1px); }
.fase__phase { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; color: var(--terra); margin: 2.2rem 0 0.5rem; }
.fase h3 { font-weight: 300; }
.fase p { font-size: 0.93rem; margin-top: 0.6rem; }

/* ---------- Testimonials ---------- */

.tst-section { background: var(--bg-alt); }
.tst-grid { columns: 3; column-gap: clamp(0.5rem, 1vw, 1rem); max-width: var(--maxw); margin-inline: auto; }
.tst {
  break-inside: avoid;
  margin: 0 0 clamp(1.5rem, 3vw, 2.6rem);
  padding: clamp(1.8rem, 2.5vw, 2.6rem);
  min-height: 65vh;
  background: var(--white); /* Seamless card layer contrast */
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.tst__quote { color: var(--ink); margin: 0; max-width: none; }
.tst__mark { color: var(--terra); font-size: 2.2rem; line-height: 0; display: block; height: 0.7em; opacity: 0.8; }
.tst__by { margin-top: 1.4rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--sage); font-family: var(--font-base); }

/* Per-card typeface signature */
.tf1  { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-style: italic; font-size: 1.55rem; line-height: 1.5; }
.tf2  { font-family: 'Spectral', serif; font-weight: 300; font-size: 1.2rem; line-height: 1.62; }
.tf3  { font-family: 'IBM Plex Mono', monospace; font-weight: 400; font-size: 0.98rem; line-height: 1.7; }
.tf4  { font-family: 'Libre Baskerville', serif; font-weight: 400; font-size: 1.05rem; line-height: 1.7; }
.tf5  { font-family: 'EB Garamond', serif; font-weight: 400; font-size: 1.3rem; line-height: 1.6; }
.tf6  { font-family: 'Newsreader', serif; font-weight: 300; font-style: italic; font-size: 1.35rem; line-height: 1.55; }
.tf7  { font-family: 'Hanken Grotesk', sans-serif; font-weight: 300; font-size: 1.08rem; line-height: 1.65; }
.tf8  { font-family: 'Crimson Pro', serif; font-weight: 300; font-size: 1.32rem; line-height: 1.58; }
.tf9  { font-family: 'Archivo', sans-serif; font-weight: 300; font-size: 1.02rem; line-height: 1.62; }
.tf10 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 1.62rem; line-height: 1.45; }
.tf11 { font-family: 'Spectral', serif; font-weight: 400; font-style: italic; font-size: 1.18rem; line-height: 1.62; }
.tf12 { font-family: 'IBM Plex Mono', monospace; font-weight: 300; font-size: 0.95rem; line-height: 1.72; }
.tf13 { font-family: 'EB Garamond', serif; font-weight: 500; font-style: italic; font-size: 1.34rem; line-height: 1.55; }
.tf14 { font-family: 'Newsreader', serif; font-weight: 400; font-size: 1.22rem; line-height: 1.6; }
.tf15 { font-family: 'Libre Baskerville', serif; font-weight: 400; font-style: italic; font-size: 1.0rem; line-height: 1.72; }

.ethics { max-width: 70ch; margin: clamp(3rem,6vw,5rem) auto 0; text-align: center; }
.ethics p { font-size: 0.78rem; line-height: 1.7; color: #8c8f88; margin: 0 auto; max-width: none; }

.carousel-btn { width: 2.4rem; height: 2.4rem; border-radius: 50%; }

/* ---------- Contato ---------- */

.contact-split { align-items: stretch; }
.contact__media img { width: 100%; height: 100%; min-height: 340px; aspect-ratio: auto; }
.contact__rows { list-style: none; padding: 0; margin: 2rem 0 0; }
.contact__rows li { display: flex; flex-direction: column; gap: 0.2rem; padding: 1.2rem 0; border-top: 1px solid var(--line); }
.contact__k { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--terra); }
.contact__v { font-size: 1.05rem; color: var(--ink); }
.dark .contact__rows li { border-color: rgba(232,235,227,0.22); }
.dark .contact__v { color: #F2F4EE; }

.map { width: 100%; height: 100%; min-height: 500px; border: 0; border-radius: var(--radius-lg); filter: grayscale(0.4) contrast(0.95); margin-top: clamp(2.5rem,5vw,4rem); max-width: var(--maxw); margin-inline: auto; display: block; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }

/* High-contrast Receptive Booking Area */
.booking {
  max-width: var(--maxw);
  margin: clamp(2.5rem,5vw,4rem) auto 0;
  border-radius: var(--radius-lg);
  background: var(--terra);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  padding: 2.5rem;
  text-align: center;
}

.booking .eyebrow { justify-content: center; }
.booking p { margin-inline: auto; }

/* ---------- Footer ---------- */

.footer { 
  background: var(--white); 
  color: var(--body); 
  padding-block: clamp(1.5rem, 3vw, 4rem); 
  border-top: 1px solid var(--line); /* Adicionado para criar uma sutil divisão com o bloco superior */
}
.footer__top { 
  display: flex; 
  justify-content: space-between; 
  gap: 2rem; 
  flex-wrap: wrap; 
  align-items: flex-start; 
  max-width: var(--maxw); 
  margin-inline: auto; 
}
.footer__name { 
  font-size: 2rem; 
  font-weight: 200; 
  color: var(--ink); 
  letter-spacing: 0.02em; 
}
.footer__name b { 
  font-weight: 600; 
  color: var(--terra); 
}
.footer__crn { 
  font-size: 0.9rem; 
  letter-spacing: 0.14em; 
  text-transform: uppercase; 
  color: var(--sage); 
  margin-top: 0.5rem; 
  font-weight: 600;
}
.footer__summary { 
  max-width: 46ch; 
  font-size: 1.1rem; 
  color: var(--body); 
}
.footer__social { 
  display: flex; 
  gap: 0.8rem; 
  margin-top: 1.4rem; 
}
.footer__social a { 
  width: 40px; 
  height: 40px; 
  border: 1px solid var(--line); 
  border-radius: 50%; 
  display: grid; 
  place-items: center; 
  color: var(--ink);
  transition: background .4s, color .4s, border-color .4s; 
}
.footer__social a:hover { 
  background: var(--terra); 
  color: var(--white); 
  border-color: var(--terra); 
}
.footer__social svg { 
  width: 16px; 
  height: 16px; 
}
.footer__legal { 
  max-width: var(--maxw); 
  margin: 3rem auto 0; 
  font-size: 0.9rem; 
  color: #8c8f88; 
  letter-spacing: 0.03em; 
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

/* Previne scroll horizontal em qualquer tela */
html, body { overflow-x: hidden; }

/* ===== Tablet landscape / desktop pequeno (≤ 920px) ===== */
@media (max-width: 920px) {
  .nav__links { display: none; }
  .nav__menu { display: inline-flex; }
  .split, .bio, .contact-split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .exp-grid, .svc-grid, .fases { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .tst-grid { columns: 2; }
  .bio__metrics { grid-template-columns: 1fr 1fr; }
  .pillars--cards { grid-template-columns: 1fr 1fr; }
}

/* ===== Tablet retrato / celular grande (≤ 768px) ===== */
@media (max-width: 768px) {
  .exp-grid, .svc-grid, .fases { grid-template-columns: 1fr; gap: 1.8rem; }
  .pillars--cards { grid-template-columns: 1fr; }
  .tst { min-height: auto; }
  .split__text { max-width: 100%; }
  .booking { padding: 1.8rem; }
  .booking__widget bc-widget-schedules { transform: none; }
  .footer__name { font-size: 1.6rem; }
  .footer__top { flex-direction: column; gap: 1.5rem; }
  .footer__summary { max-width: 100%; }
}

/* ===== Celulares (≤ 600px) ===== */
@media (max-width: 600px) {
  body { font-size: 16px; }

  /* Headings menores para não estourar a tela */
  h1 { font-size: clamp(1.9rem, 8vw, 2.8rem); }
  h2 { font-size: clamp(1.7rem, 7vw, 2.3rem); }
  h3 { font-size: clamp(1.15rem, 5vw, 1.5rem); }

  /* Hero */
  .hero__lockup { padding-top: clamp(4.5rem, 14vh, 7rem); }
  .hero__logo { width: clamp(130px, 40vw, 180px); }
  .hero__name { font-size: clamp(1.9rem, 8vw, 2.8rem); }
  .hero__tagline { font-size: clamp(0.95rem, 4vw, 1.2rem); max-width: 100%; }
  .hero__sub { font-size: 0.88rem; margin-top: 1rem; }
  .hero__content { padding-bottom: clamp(5.5rem, 14vh, 7rem); }
  .hero__rule { height: clamp(20px, 5vh, 36px); margin-top: 1rem; }

  /* Grids */
  .tst-grid { columns: 1; }
  .bio__metrics { grid-template-columns: 1fr 1fr; }

  /* Imagens */
  .exp-card__media .figure img,
  .portrait .figure img { aspect-ratio: 4 / 3; }

  /* Seções */
  .section-head { margin-bottom: 1.5rem; }
  .map { aspect-ratio: 4 / 3; }
  .carousel-btn { width: 1.8rem; height: 1.8rem; font-size: 0.7rem; margin: 0 -1rem; }
  /* Booking */
  .booking { padding: 1.4rem; }

  /* Footer */
  .footer__name { font-size: 1.4rem; }
  .footer__legal { font-size: 0.78rem; margin-top: 2rem; }
}

/* ===== Celulares muito pequenos (≤ 390px) ===== */
@media (max-width: 390px) {
  :root { --pad-x: 1.2rem; }

  /* Oculta o texto da marca no nav para evitar sobreposição com o botão de menu */
  .nav__brand-text { display: none; }

  .hero__name { font-size: clamp(1.6rem, 9vw, 2.2rem); }
  .hero__tagline { font-size: 0.9rem; }
  .hero__logo { width: clamp(110px, 38vw, 150px); }

  h2 { font-size: clamp(1.5rem, 8vw, 1.9rem); }

  .bio__metrics { grid-template-columns: 1fr; }
  .booking { padding: 1.1rem; }
}

/* ============================================================
   FIGURE PRIMITIVE + PROFESSIONAL MOTION
   ============================================================ */

.figure { position: relative; overflow: hidden; }
.figure img { width: 100%; height: auto; display: block; }
.figure--auto img, .figure--auto { height: 100%; }

/* Image "curtain" reveal */
.figure img {
  clip-path: inset(0 0 0 0);
  transform: scale(1.06);
  transition: transform 1.3s cubic-bezier(.2,0,.1,1);
}
.reveal .figure img { transform: scale(1.12); }
.reveal.in .figure img { transform: scale(1); }

/* Gentle zoom on hover for interactive cards */
.exp-card__media, .fase .portrait, .svc__media { overflow: hidden; }
.exp-card__media .figure img,
.fase .portrait .figure img,
.svc__media .figure img {
  transition: transform 1.1s cubic-bezier(.2,0,.1,1);
}
.exp-card:hover .exp-card__media .figure img,
.fase:hover .portrait .figure img,
.svc:hover .svc__media .figure img { transform: scale(1.05); }

/* Hero image / media (when present) */
.hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Hero logo lockup */
.hero__logo {
  width: clamp(160px, 22vw, 280px);
  height: auto;
  margin: 0 auto 1.4rem;
  opacity: 0.98;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,0.45));
}

/* Hero content staggered entrance on load */
.hero__lockup, .hero__content > * {
  opacity: 0;
  transform: translateY(22px);
  animation: heroIn .9s cubic-bezier(.2,0,.1,1) forwards;
}
.hero__lockup { animation-delay: .15s; }
.hero__content .hero__name { animation-delay: .35s; }
.hero__content .hero__tagline { animation-delay: .48s; }
.hero__content .hero__sub { animation-delay: .6s; }
.hero__content .hero__cta { animation-delay: .72s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* BoaConsulta booking widget container */
.booking__widget {
  width: 100%;
  margin: 2rem auto;
  display: flex;
  justify-content: center;
  min-height: auto;
}

.booking__widget bc-widget-schedules {
  display: block;
  transform: scale(1.12);
  transform-origin: top center;
}

/* Eyebrow centring helper */
.eyebrow--center { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .hero__img { animation: none; }
  .hero__lockup, .hero__content > * { opacity: 1; transform: none; animation: none; }
  .figure img { clip-path: none; transform: none; transition: none; }
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: block;
}

.whatsapp-float__img {
  width: 72px;
  height: 72px;
  display: block;
  transition: transform .2s ease;
}

.whatsapp-float__img:hover {
  transform: scale(1.08);
}


#sobre .eyebrow {
  justify-content: center;
}

