/* ================================================================
   INSTITUTO COUTINHO — Premium Design System
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

@font-face {
  font-family: 'Strong';
  src: url('../fonts/Strong.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── Variables ──────────────────────────────────────────────── */
:root {
  --white:       #FFFFFF;
  --off-white:   #FAFAF8;
  --cream:       #F5EFE6;
  --cream-deep:  #EDE4D8;
  --taupe:       #C8B8A8;
  --taupe-light: #E2D8CE;
  --dark:        #2A1208;
  --dark-mid:    #2C1A0E;
  --brown:       #4A2E1A;
  --text:        #1C120A;
  --text-2:      #6B5646;
  --text-3:      #9A8878;
  --gold:        #BF9A30;
  --gold-2:      #D4AF50;
  --gold-pale:   #E8D49A;
  --gold-dark:   #8A6E1A;

  --font-serif: 'Strong', Georgia, serif;
  --font-sans:  'Nunito', system-ui, sans-serif;

  --nav-h:    76px;
  --radius:   12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --radius-full: 999px;
  --max-w:    1240px;
  --pad-x:    clamp(24px, 6vw, 80px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:  cubic-bezier(0.7, 0, 0.84, 0);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--off-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; background: none; border: none; font: inherit; }

/* ── Typography ─────────────────────────────────────────────── */
.label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

.display {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.01em;
}

.display--hero    { font-size: clamp(3.2rem, 7.5vw, 8rem); }
.display--page    { font-size: clamp(2.8rem, 6vw, 6.5rem); }
.display--section { font-size: clamp(2.2rem, 4.5vw, 4.5rem); }
.display--card    { font-size: clamp(1.6rem, 2.5vw, 2.2rem); }

.body-lg {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 300;
  line-height: 1.9;
  color: var(--text-2);
}

.body-sm {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-2);
}

.meta {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--text-3);
}

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section { padding: 120px var(--pad-x); }
.section--sm { padding: 80px var(--pad-x); }
.section--lg { padding: 160px var(--pad-x); }

.section--dark   { background: var(--dark); }
.section--cream  { background: var(--cream); }
.section--cream2 { background: var(--cream-deep); }
.section--white  { background: var(--white); }

/* ── Gold Line ──────────────────────────────────────────────── */
.gold-line {
  width: 40px;
  height: 1px;
  background: var(--gold);
  display: block;
}

.gold-line--wide { width: 80px; }
.gold-line--center { margin: 0 auto; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 15px 36px;
  border-radius: var(--radius-full);
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn--gold {
  background: var(--gold);
  color: var(--white);
  border: 1px solid var(--gold);
}
.btn--gold::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--dark);
  transform: translateX(-101%);
  transition: transform 0.45s var(--ease-out);
  z-index: 0;
}
.btn--gold span, .btn--gold svg { position: relative; z-index: 1; }
.btn--gold:hover::after { transform: translateX(0); }
.btn--gold:hover { border-color: var(--dark); }

.btn--outline {
  background: transparent;
  color: var(--dark);
  border: 1px solid currentColor;
}
.btn--outline:hover { background: var(--dark); color: var(--white); }

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
}
.btn--outline-white:hover { background: var(--white); color: var(--dark); border-color: var(--white); }

.btn--ghost-gold {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn--ghost-gold:hover { background: var(--gold); color: var(--white); }

.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  transition: gap 0.3s ease;
}
.btn-arrow svg {
  width: 18px; height: 18px;
  transition: transform 0.3s ease;
}
.btn-arrow:hover { gap: 18px; }
.btn-arrow:hover svg { transform: translateX(4px); }

/* ── Navigation ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.5s ease, border-color 0.5s ease;
  border-bottom: 1px solid transparent;
}

.navbar--transparent {
  background: linear-gradient(to bottom, rgba(13,8,3,0.72) 0%, rgba(13,8,3,0.0) 100%);
}
.navbar--white {
  background: rgba(250,250,248,0.97);
  border-bottom-color: rgba(0,0,0,0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.navbar--always-white {
  background: rgba(250,250,248,0.97);
  border-bottom-color: rgba(0,0,0,0.06);
}

.nav-inner {
  width: 100%;
  max-width: calc(var(--max-w) + 2 * var(--pad-x));
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo__img {
  height: 40px;
  width: auto;
}

.nav-logo__text {
  line-height: 1.15;
}

.nav-logo__name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--dark);
  display: block;
  transition: color 0.3s ease;
}

.nav-logo__sub {
  font-family: var(--font-sans);
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
}

.navbar--transparent .nav-logo__name { color: var(--white); }

/* Center links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.navbar--transparent .nav-links a { color: rgba(255,255,255,0.8); }
.navbar--transparent .nav-links a:hover { color: var(--white); }

/* Right side actions */
.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.nav-cta {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: var(--gold);
  color: var(--white);
  transition: background 0.3s ease;
}
.nav-cta:hover { background: var(--dark); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 1px;
  background: var(--dark);
  transition: all 0.35s ease;
}
.navbar--transparent .hamburger span { background: var(--white); }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile Drawer */
.nav-drawer {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--off-white);
  z-index: 899;
  padding: 48px var(--pad-x) 60px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-out);
  overflow-y: auto;
}

.nav-drawer.open { transform: translateX(0); }

.nav-drawer__links {
  list-style: none;
  flex: 1;
}

.nav-drawer__links li {
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.nav-drawer__links li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--dark);
  transition: color 0.3s ease;
}
.nav-drawer__links li a:hover { color: var(--gold); }

.nav-drawer__links li a svg {
  width: 20px; height: 20px;
  stroke: var(--taupe);
  fill: none;
  stroke-width: 1.5;
}

.nav-drawer__bottom {
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Progress Bar ───────────────────────────────────────────── */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--gold);
  z-index: 9999;
  transition: width 0.08s linear;
}

/* ── Page Hero (internal pages) ─────────────────────────────── */
.page-hero {
  position: relative;
  height: 56vh;
  min-height: 400px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--pad-x) 72px;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.06);
  transition: transform 12s ease-out;
}
.page-hero__bg.loaded { transform: scale(1); }

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13, 8, 3, 0.92) 0%,
    rgba(13, 8, 3, 0.55) 50%,
    rgba(13, 8, 3, 0.25) 100%
  );
}

.page-hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.page-hero__breadcrumb a { color: rgba(255,255,255,0.4); transition: color 0.3s ease; }
.page-hero__breadcrumb a:hover { color: var(--gold-2); }
.page-hero__breadcrumb span { color: rgba(255,255,255,0.2); }

.page-hero__title {
  color: var(--white);
  max-width: 740px;
}

.page-hero__title em { color: var(--gold-2); font-style: italic; }

/* ── Section Header ─────────────────────────────────────────── */
.section-header {
  margin-bottom: 72px;
}

.section-header--center { text-align: center; }
.section-header--center .gold-line { margin: 20px auto; }
.section-header--center .body-lg { max-width: 560px; margin: 0 auto; }

.section-header .label { margin-bottom: 14px; display: block; }
.section-header .gold-line { margin: 20px 0; }
.section-header .body-lg { max-width: 520px; }

/* ── Procedure Items (editorial list) ───────────────────────── */
.procedure-list {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.procedure-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: start;
  padding: 44px 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  gap: 32px;
  transition: background 0.3s ease;
  cursor: default;
}

.procedure-item:hover .procedure-item__title { color: var(--gold); }

.procedure-item__num {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--taupe);
  letter-spacing: 0.06em;
  padding-top: 4px;
}

.procedure-item__body {}

.procedure-item__title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 300;
  color: var(--dark);
  margin-bottom: 10px;
  transition: color 0.3s ease;
  line-height: 1.15;
}

.procedure-item__desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.8;
  max-width: 540px;
}

.procedure-item__action {
  display: flex;
  align-items: center;
  padding-top: 6px;
  flex-shrink: 0;
}

/* ── Feature Card (split layout) ────────────────────────────── */
.feature-split {
  max-width: calc(var(--max-w) + 2 * var(--pad-x));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.feature-split--reverse { direction: rtl; }
.feature-split--reverse > * { direction: ltr; }

.feature-split__img {
  overflow: hidden;
  position: relative;
}
.feature-split__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s var(--ease-out);
}
.feature-split:hover .feature-split__img img { transform: scale(1.03); }

.feature-split__content {
  padding: 80px clamp(40px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--dark);
  color: var(--white);
}

.feature-split__content .label { color: var(--gold-2); }
.feature-split__content .display--section { color: var(--white); }
.feature-split__content .body-lg { color: rgba(255,255,255,0.65); }

.feature-split__content--light {
  background: var(--cream);
}
.feature-split__content--light .display--section { color: var(--dark); }
.feature-split__content--light .body-lg { color: var(--text-2); }

/* ── Cards Grid (modern) ────────────────────────────────────── */
.cards-modern {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(0,0,0,0.06);
}

.cards-modern--4 { grid-template-columns: repeat(4, 1fr); }
.cards-modern--2 { grid-template-columns: repeat(2, 1fr); }

/* Último card sozinho na linha ocupa as 2 colunas com texto centralizado */
.cards-modern--2 .card-modern:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  text-align: center;
  align-items: center;
}

.card-modern {
  padding: 48px 36px;
  background: var(--off-white);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: background 0.35s ease;
}

.card-modern::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s var(--ease-out);
}

.card-modern:hover { background: var(--white); }
.card-modern:hover::before { transform: scaleY(1); }

.card-modern--cream { background: var(--cream); }
.card-modern--cream:hover { background: var(--off-white); }

.card-modern__num {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 200;
  color: var(--taupe-light);
  line-height: 1;
  margin-bottom: 20px;
  display: block;
}

.card-modern__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.2;
}

.card-modern__desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 28px;
}

/* ── Quote Block ─────────────────────────────────────────────── */
.quote-block {
  padding: 100px var(--pad-x);
  background: var(--dark);
  text-align: center;
}

.quote-block blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 300;
  font-style: italic;
  color: var(--white);
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.45;
}

.quote-block blockquote em { color: var(--gold-2); font-style: normal; }

.quote-block cite {
  display: block;
  margin-top: 28px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
}

/* ── Stats Row ──────────────────────────────────────────────── */
.stats-row {
  padding: 16px var(--pad-x);
  background: var(--gold);
}

.stats-row__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
  align-items: center;
}

.stats-row .reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stats-row .stat__label {
  margin-top: auto;
  padding-top: 4px;
}

.stat__num--score {
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  letter-spacing: 0.08em;
}

.stat__num {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 300;
  color: var(--white);
  display: block;
  line-height: 1.1;
}
.stat__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 6px;
  display: block;
}

.stat__stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  line-height: 1;
}
.stat__stars svg {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.25));
}

/* ── Photo Placeholder ──────────────────────────────────────── */
.photo-placeholder {
  background: var(--cream-deep);
  border: 1.5px dashed var(--taupe);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-3);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  padding: 20px;
  min-height: 200px;
  width: 100%;
  height: 100%;
}
.photo-placeholder svg {
  width: 32px;
  height: 32px;
  stroke: var(--taupe);
  flex-shrink: 0;
}
.photo-placeholder--hero {
  min-height: 100%;
  background: linear-gradient(135deg, var(--cream-deep) 0%, var(--taupe-light) 100%);
}

/* ── Gallery Grid ───────────────────────────────────────────── */
.gallery-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--taupe-light);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream);
  aspect-ratio: 3/4;
}

.gallery-item__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.gallery-item:hover .gallery-item__img { transform: scale(1.05); }

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,8,3,0.75) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }

.gallery-item__tag {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-2);
  border: 1px solid var(--gold-2);
  display: inline-block;
  padding: 5px 12px;
  margin-bottom: 10px;
  width: fit-content;
}

.gallery-item__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--white);
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--cream);
}

.gallery-placeholder svg {
  width: 44px; height: 44px;
  stroke: var(--taupe);
  fill: none;
  stroke-width: 0.8;
}

.gallery-placeholder__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
}

.gallery-placeholder__proc {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 300;
  color: var(--gold);
  font-style: italic;
}

/* ── Contact Section ────────────────────────────────────────── */
.contact-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.contact-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.contact-item__icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(191,154,48,0.2);
}

.contact-item__icon svg {
  width: 19px; height: 19px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-item__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 6px;
  display: block;
}

.contact-item__value {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.7;
}

.contact-item__value a { transition: color 0.3s ease; }
.contact-item__value a:hover { color: var(--gold); }

.map-wrap {
  height: 420px;
  overflow: hidden;
  position: relative;
}

.map-wrap iframe {
  width: 100%; height: 100%;
  border: 0;
  filter: grayscale(40%) contrast(95%);
  display: block;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  padding: 80px var(--pad-x) 40px;
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 40px;
}

.footer__brand-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.06em;
}

.footer__brand-sub {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 20px;
  margin-top: 4px;
}

.footer__brand-text {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.35);
  line-height: 1.9;
  max-width: 300px;
}

.footer__col-title {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
  display: block;
}

.footer__links { list-style: none; }
.footer__links li { margin-bottom: 10px; }
.footer__links li a {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  transition: color 0.3s ease;
}
.footer__links li a:hover { color: var(--gold-2); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 300;
  color: rgba(255,255,255,0.2);
}

/* ── WhatsApp Float ─────────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 30px; right: 30px;
  z-index: 9000;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,0.4);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
  text-decoration: none;
}

.wa-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 10px 36px rgba(37,211,102,0.5);
}

.wa-float svg { width: 28px; height: 28px; fill: var(--white); }

.wa-float__pulse {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: rgba(37,211,102,0.3);
  animation: waPulse 2.5s ease infinite;
}

@keyframes waPulse {
  0%   { transform: scale(1); opacity: 0.8; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* ── Image Break ────────────────────────────────────────────── */
.img-break {
  width: 100%;
  height: clamp(200px, 28vw, 420px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  position: relative;
}

.img-break img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.img-break__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,8,3,0.3);
}

/* ── Animations ─────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal--d1 { transition-delay: 0.1s; }
.reveal--d2 { transition-delay: 0.2s; }
.reveal--d3 { transition-delay: 0.3s; }
.reveal--d4 { transition-delay: 0.4s; }
.reveal--d5 { transition-delay: 0.5s; }
.reveal--d6 { transition-delay: 0.6s; }

.reveal-line {
  overflow: hidden;
}

.reveal-line__inner {
  display: block;
  transform: translateY(100%);
  transition: transform 1s var(--ease-out);
}

.reveal-line.visible .reveal-line__inner { transform: translateY(0); }

/* ── Horizontal Rule ────────────────────────────────────────── */
hr.section-rule {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.06);
  margin: 0;
}

hr.section-rule--dark {
  border-top-color: rgba(255,255,255,0.06);
}

/* ── CTA Strip ──────────────────────────────────────────────── */
.cta-strip {
  background: var(--cream);
  padding: 80px var(--pad-x);
  text-align: center;
}

.cta-strip__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--dark);
  margin-bottom: 16px;
}

.cta-strip__title em { font-style: italic; color: var(--gold); }

.cta-strip__sub {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-2);
  margin-bottom: 40px;
}

/* ── Diferentials Grid ──────────────────────────────────────── */
.diferenciais-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  background: rgba(0,0,0,0.05);
}

.diferencial-card {
  background: var(--off-white);
  padding: 44px 28px;
  text-align: center;
  transition: background 0.3s ease;
}
.diferencial-card:hover { background: var(--white); }

.diferencial-card__icon {
  width: 40px; height: 40px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.diferencial-card__icon svg {
  width: 26px; height: 26px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.diferencial-card__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.2;
}

.diferencial-card__desc {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.75;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .diferenciais-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .cards-modern--4 { grid-template-columns: repeat(2, 1fr); }
}

/* ── Tablet ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Layout */
  .feature-split { grid-template-columns: 1fr; }
  .feature-split__img { height: 340px; }
  .feature-split--reverse { direction: ltr; }
  .feature-split__content { padding: 56px var(--pad-x); }

  /* Grids */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards-modern { grid-template-columns: repeat(2, 1fr); }
  .stats-row__inner { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .diferenciais-grid { grid-template-columns: repeat(2, 1fr); }

  /* Procedure list */
  .procedure-item { grid-template-columns: 48px 1fr; gap: 20px; }
  .procedure-item__action { display: none; }
  .procedure-item__title { font-size: 1.2rem; }

  /* Page hero */
  .page-hero { height: 46vh; min-height: 300px; padding-bottom: 48px; }

  /* Sections */
  .section { padding: 80px var(--pad-x); }
  .section--lg { padding: 100px var(--pad-x); }
  .section-header { margin-bottom: 48px; }

  /* Stats */
  .stats-row { padding: 16px var(--pad-x); }

  /* Quote */
  .quote-block { padding: 72px var(--pad-x); }

  /* CTA strip */
  .cta-strip { padding: 72px var(--pad-x); }

  /* Map */
  .map-wrap { height: 300px; }

  /* Contact */
  .contact-item { gap: 14px; }

  /* Footer */
  .footer { padding: 60px var(--pad-x) 32px; }

  /* Nav */
  .nav-inner { grid-template-columns: auto auto; }
  .nav-links { display: none; }
  .nav-actions .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-actions { justify-content: flex-end; }
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 600px) {
  :root {
    --nav-h: 62px;
    --pad-x: 20px;
  }

  /* Sections */
  .section { padding: 64px var(--pad-x); }
  .section--sm { padding: 56px var(--pad-x); }
  .section--lg { padding: 80px var(--pad-x); }
  .section-header { margin-bottom: 36px; }
  .section-header .body-lg { font-size: 0.95rem; }

  /* Page hero */
  .page-hero { height: 40vh; min-height: 260px; padding-bottom: 36px; }
  .page-hero__title.display--page { font-size: clamp(2rem, 11vw, 3.2rem); }
  .page-hero__breadcrumb { margin-bottom: 14px; font-size: 9px; }

  /* Grids */
  .cards-modern { grid-template-columns: 1fr; }
  .cards-modern--2 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .diferenciais-grid { grid-template-columns: 1fr; }
  .stats-row__inner { grid-template-columns: 1fr 1fr; gap: 20px; }

  /* Cards */
  .card-modern { padding: 36px 24px; }
  .card-modern__num { font-size: 2.8rem; margin-bottom: 14px; }
  .card-modern__title { font-size: 1.25rem; }

  /* Procedure list */
  .procedure-item { grid-template-columns: 36px 1fr; gap: 14px; padding: 28px 0; }
  .procedure-item__num { font-size: 0.9rem; }
  .procedure-item__title { font-size: 1.1rem; }
  .procedure-item__desc { font-size: 12px; }

  /* Feature split */
  .feature-split__img { height: 260px; }
  .feature-split__content { padding: 48px var(--pad-x); }

  /* Quote */
  .quote-block { padding: 60px var(--pad-x); }
  .quote-block blockquote { font-size: clamp(1.2rem, 5.5vw, 1.7rem); }

  /* CTA strip */
  .cta-strip { padding: 60px var(--pad-x); }
  .cta-strip__title { font-size: clamp(1.5rem, 7vw, 2.2rem); }

  /* Stats */
  .stats-row { padding: 20px var(--pad-x); }
  .stat__num { font-size: clamp(1.6rem, 7vw, 2.4rem); }

  /* Buttons */
  .btn { padding: 14px 24px; font-size: 10px; letter-spacing: 0.16em; }

  /* Image break */
  .img-break { height: clamp(140px, 40vw, 220px); }

  /* Map */
  .map-wrap { height: 240px; }

  /* Contact */
  .contact-item__icon { width: 38px; height: 38px; }
  .contact-item__icon svg { width: 16px; height: 16px; }
  .contact-item__value { font-size: 13px; }

  /* Footer */
  .footer { padding: 52px var(--pad-x) 28px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; font-size: 10px; }

  /* Nav logo: hide subtitle text to save space */
  .nav-logo__sub { display: none; }
  .nav-logo__name { font-size: 0.9rem; }
  .nav-logo__img { height: 32px; }

  /* Differentials */
  .diferencial-card { padding: 32px 20px; }
  .diferencial-card__title { font-size: 1rem; }

  /* Gallery */
  .gallery-item { aspect-ratio: 4/3; }

  /* WA float */
  .wa-float { bottom: 20px; right: 20px; width: 50px; height: 50px; }
  .wa-float svg { width: 24px; height: 24px; }

  /* Gold line */
  .gold-line { margin: 14px 0; }

  /* CTA groups — stack on mobile */
  .cta-strip > div[style*="flex"],
  .cta-strip > .reveal > a + a {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-strip .btn { width: 100%; justify-content: center; text-align: center; }

  /* Nav drawer fonts */
  .nav-drawer__links li a { font-size: 1.3rem; padding: 18px 0; }

  /* Sections with inline style padding — override */
  [style*="padding: 80px var(--pad-x)"] { padding: 60px var(--pad-x) !important; }
  [style*="padding: 100px var(--pad-x)"] { padding: 72px var(--pad-x) !important; }
  [style*="padding: 120px var(--pad-x)"] { padding: 80px var(--pad-x) !important; }
}

/* ── Small phones ───────────────────────────────────────────── */
@media (max-width: 390px) {
  :root { --pad-x: 16px; }

  .display--hero    { font-size: clamp(2rem, 12vw, 2.8rem); }
  .display--page    { font-size: clamp(1.8rem, 11vw, 2.6rem); }
  .display--section { font-size: clamp(1.5rem, 9vw, 2.2rem); }

  .procedure-item { grid-template-columns: 30px 1fr; gap: 12px; }
  .stats-row__inner { gap: 16px; }
  .diferenciais-grid { grid-template-columns: 1fr; }
  .card-modern { padding: 28px 16px; }
  .feature-split__img { height: 220px; }
  .btn { padding: 13px 18px; letter-spacing: 0.12em; }

  /* Reduce section padding further */
  .section { padding: 52px var(--pad-x); }
  .quote-block { padding: 52px var(--pad-x); }
  .cta-strip { padding: 52px var(--pad-x); }
  .stats-row { padding: 16px var(--pad-x); }
}
