/* ══════════════════════════════════════════════════════════
   MELLO & RIBEIRO — INSTITUCIONAL
   Premium editorial design
   ══════════════════════════════════════════════════════════ */

:root {
  /* Palette */
  --cream:        #f5f3ee;
  --cream-dark:   #eae7df;
  --olive:        #6d784a;
  --olive-dark:   #37391e;
  --olive-hover:  #8a9660;
  --black:        #101014;
  --white:        #fbfbf0;
  --text-dark:    #1a1a1a;
  --text-body:    #4a4a4a;
  --text-muted:   #8a8a8a;
  --text-on-dark: #d4d2cc;
  --border-light: rgba(16,16,20,0.08);
  --border-dark:  rgba(251,251,240,0.1);

  /* Type */
  --font-serif: 'DM Serif Text', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;
  --font-mono:  'Fragment Mono', 'Courier New', monospace;

  /* Spacing */
  --section-pad: clamp(80px, 10vw, 160px);
  --gap:         clamp(24px, 3vw, 48px);

  /* Misc */
  --ease:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 24px;
  --radius-lg: 40px;
}

/* ── Reset ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overscroll-behavior: none; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img {
  display: block;
  max-width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
button { font: inherit; cursor: pointer; border: none; background: none; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Container ──────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* ── Navbar ──────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.5s var(--ease);
}

.navbar.scrolled {
  background: rgba(245, 243, 238, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}

.navbar-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--olive);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo img {
  height: 52px;
  width: auto;
  margin: -10px 0;
  filter: none;
  transition: filter 0.4s var(--ease);
}

.navbar.scrolled .navbar-logo img {
  filter: invert(1) brightness(0.2);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.navbar-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-on-dark);
  position: relative;
  transition: color 0.3s;
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0;
  height: 1.5px;
  background: var(--olive-hover);
  transition: width 0.4s var(--ease-out);
}

.navbar-link:hover {
  color: var(--white);
}

.navbar-link:hover::after {
  width: 100%;
}

.navbar.scrolled .navbar-link {
  color: var(--text-body);
}

.navbar.scrolled .navbar-link::after {
  background: var(--olive);
}

.navbar.scrolled .navbar-link:hover {
  color: var(--text-dark);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
  transform-origin: center;
}

.navbar.scrolled .menu-toggle span,
.menu-toggle.active span {
  background: var(--text-dark);
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ───────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
  padding-bottom: 60px;
  overflow: hidden;
  background: var(--olive-dark);
}

.hero-bg {
  position: absolute;
  top: -15%;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  will-change: transform;
}

.hero-bg picture,
.hero-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  background: rgba(251, 251, 240, 0.1);
  border: 1px solid rgba(251, 251, 240, 0.2);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 32px;
}

.hero-badge-dot {
  width: 8px; height: 8px;
  background: var(--olive);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--white);
  margin-bottom: 24px;
  text-wrap: balance;
}

.hero-title .word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
  padding-right: 0.14em;
  margin-right: -0.14em;
}

.hero-title .word {
  display: inline-block;
  will-change: transform;
}

.hero-desc {
  font-size: clamp(16px, 1.2vw, 18px);
  color: var(--text-on-dark);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  background: var(--olive);
  padding: 14px 28px;
  border-radius: 999px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.hero-cta::before,
.faq-cta::before,
.footer-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--olive-hover);
  transform: translateX(-101%);
  transition: transform 0.4s var(--ease-out);
  border-radius: 999px;
}

.hero-cta:hover::before,
.faq-cta:hover::before,
.footer-cta:hover::before { transform: translateX(0); }

.hero-cta span, .hero-cta .cta-arrow,
.faq-cta span, .faq-cta .cta-arrow,
.footer-cta span, .footer-cta .cta-arrow { position: relative; z-index: 1; }

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(109, 120, 74, 0.25);
}

.cta-arrow {
  width: 28px; height: 28px;
  background: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--olive);
  transition: transform 0.3s;
}

.hero-cta:hover .cta-arrow,
.faq-cta:hover .cta-arrow,
.footer-cta:hover .cta-arrow { transform: rotate(45deg); }

/* ── About (Dark) ───────────────────────── */
.about {
  background: var(--olive-dark);
  padding: var(--section-pad) 0;
  position: relative;
}

.about::after,
.testimonials::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.about-header {
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: var(--gap);
  margin-bottom: clamp(60px, 8vw, 100px);
}

.about-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  background: rgba(251, 251, 240, 0.1);
  border: 1px solid rgba(251, 251, 240, 0.15);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.about-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.2;
  color: rgba(251, 251, 240, 0.5);
}

.about-text {
  font-size: clamp(16px, 1.2vw, 18px);
  color: var(--text-on-dark);
  line-height: 1.8;
  align-self: center;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-dark);
}

.stat-item {
  padding: clamp(60px, 8vw, 120px) 0;
}

.stat-item:not(:first-child) {
  padding-left: clamp(24px, 4vw, 48px);
}

.stat-item:not(:last-child) {
  border-right: 1px solid var(--border-dark);
  padding-right: clamp(24px, 4vw, 48px);
}

.stat-number {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(48px, 6vw, 80px);
  line-height: 1;
  color: var(--white);
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--white);
  margin-bottom: 8px;
}

.stat-desc {
  font-size: 14px;
  color: var(--text-on-dark);
  line-height: 1.5;
  opacity: 0.6;
}

/* ── Services ───────────────────────────── */
.services {
  background: var(--cream);
  padding: var(--section-pad) 0;
}

.services-header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.services-label {
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  background: var(--olive);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.services-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.services-desc {
  font-size: clamp(16px, 1.2vw, 18px);
  color: var(--text-body);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.services-grid {
  display: flex;
  flex-direction: column;
}

.service-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  grid-template-areas: "num name" ". desc";
  row-gap: 16px;
  column-gap: var(--gap);
  padding: clamp(32px, 4vw, 48px) clamp(32px, 4vw, 48px);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -20px rgba(16, 16, 20, 0.12);
}

.scroll-stack-end {
  width: 100%;
  height: clamp(160px, 20vw, 320px);
}

.service-num {
  grid-area: num;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--olive);
  letter-spacing: 0.1em;
  padding-top: 10px;
}

.service-name {
  grid-area: name;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(28px, 3vw, 40px);
  color: var(--text-dark);
  line-height: 1.2;
}

.service-divider {
  display: none;
}

.service-desc {
  grid-area: desc;
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.6;
  max-width: 600px;
}

/* ── Testimonials ───────────────────────── */
.testimonials {
  background: var(--olive-dark);
  padding: var(--section-pad) 0;
  overflow: hidden;
  position: relative;
}

.testimonials-header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.testimonials-label {
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  background: rgba(251, 251, 240, 0.1);
  border: 1px solid rgba(251, 251, 240, 0.15);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.testimonials-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.1;
  color: var(--white);
}

.testimonials-track {
  display: flex;
  width: max-content;
  gap: 24px;
  animation: scroll-x 40s linear infinite;
}

@media (hover: hover) and (pointer: fine) {
  .testimonials-track:hover {
    animation-play-state: paused;
  }
}

@keyframes scroll-x {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 12px)); }
}

.testimonial-card {
  flex-shrink: 0;
  width: 380px;
  background: rgba(251, 251, 240, 0.04);
  border: 1px solid rgba(251, 251, 240, 0.08);
  border-radius: var(--radius);
  padding: 32px;
  transition: background 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
  --mx: 50%;
  --my: 50%;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(138, 150, 96, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.testimonial-card:hover {
  background: rgba(251, 251, 240, 0.07);
  border-color: rgba(109, 120, 74, 0.3);
}

.testimonial-card:hover::before {
  opacity: 1;
}

.testimonial-card > * {
  position: relative;
}

.testimonial-text {
  font-size: 15px;
  color: var(--text-on-dark);
  line-height: 1.7;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px; height: 40px;
  background: var(--olive-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}

.testimonial-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

/* ── FAQ ────────────────────────────────── */
.faq {
  background: var(--cream);
  padding: var(--section-pad) 0;
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: clamp(40px, 6vw, 80px);
}

.faq-intro {
  position: sticky;
  top: 120px;
  align-self: start;
}

.faq-label {
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  background: var(--olive);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.faq-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.faq-desc {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 32px;
}

.faq-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  background: var(--olive);
  padding: 14px 28px;
  border-radius: 999px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.faq-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(109, 120, 74, 0.25);
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.faq-item:hover,
.faq-item.active {
  border-color: rgba(109, 120, 74, 0.3);
  box-shadow: 0 2px 12px rgba(16, 16, 20, 0.04);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  background: var(--white);
  transition: background 0.3s;
}

.faq-question:hover {
  background: var(--cream-dark);
}

.faq-icon {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  color: var(--olive);
  font-size: 20px;
  transition: transform 0.3s var(--ease-out);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease);
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.7;
  background: var(--white);
}

/* ── Footer ─────────────────────────────── */
.footer {
  background: var(--olive-dark);
  padding: var(--section-pad) 0 40px;
  border-top: 1px solid var(--border-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: var(--gap);
  margin-bottom: clamp(60px, 8vw, 100px);
}

.footer-brand-logo {
  height: 68px;
  margin-bottom: 20px;
}

.footer-brand-text {
  font-size: 16px;
  color: var(--text-on-dark);
  line-height: 1.7;
  max-width: 380px;
  margin-bottom: 28px;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: var(--olive);
  padding: 12px 24px;
  border-radius: 999px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.footer-cta:hover {
  transform: translateY(-1px);
}

.footer-brand-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(251, 251, 240, 0.08);
  border: 1px solid rgba(251, 251, 240, 0.15);
  color: var(--white);
  transition: all 0.3s var(--ease);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-social:hover {
  background: var(--olive-hover);
  border-color: var(--olive-hover);
  transform: translateY(-1px);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.footer-contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--olive-hover);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-contact-value {
  font-size: 15px;
  color: var(--white);
  transition: color 0.3s;
  overflow-wrap: break-word;
}

a.footer-contact-value:hover {
  color: var(--olive-hover);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-dark);
  font-size: 13px;
  color: var(--text-on-dark);
}

/* ── Reveal Animations ──────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Responsive ─────────────────────────── */
@media (max-width: 900px) {
  .hero {
    min-height: 115vh;
    min-height: 115svh;
    align-items: flex-start;
    padding-top: 15vh;
    padding-bottom: 60px;
  }
  .hero-bg {
    top: 0;
  }
  .about-header { grid-template-columns: 1fr; text-align: center; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { text-align: center; }
  .stat-item:not(:first-child) { padding-left: 0; }
  .stat-item:not(:last-child) { border-right: none; border-bottom: 1px solid var(--border-dark); padding-right: 0; padding-bottom: var(--gap); }
  .services-grid { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-intro { position: static; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { text-align: center; }
  .footer-brand-logo { margin-left: auto; margin-right: auto; }
  .footer-brand-text { margin-left: auto; margin-right: auto; }
  .footer-brand-actions { justify-content: center; }
  .footer-col { text-align: center; }
  .navbar-links { display: none; }
  .menu-toggle { display: flex; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 1100px) {
  .footer-brand { text-align: center; }
  .footer-brand-logo { margin-left: auto; margin-right: auto; }
  .footer-brand-text { margin-left: auto; margin-right: auto; }
  .footer-brand-actions { justify-content: center; }
}

@media (max-width: 1024px) {
  .testimonials-track { animation-duration: 34s; }
}

/* Hero banner bleeds slightly past the fold on tablet, same as LP */
@media (min-width: 901px) and (max-width: 1024px) {
  .hero {
    min-height: 115vh;
    min-height: 115svh;
  }
}

/* Mobile nav panel */
.mobile-nav {
  position: fixed;
  top: 0; right: 0;
  width: 65vw;
  min-width: 260px;
  max-width: 380px;
  height: 100vh;
  background: var(--cream);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-out);
  box-shadow: -10px 0 40px rgba(16, 16, 20, 0.15);
  border-left: 1px solid var(--border-light);
}

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

.mobile-nav a {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 32px;
  color: var(--text-dark);
  transition: color 0.3s;
}

.mobile-nav a:hover {
  color: var(--olive);
}

/* ── Modal ────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 16, 20, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
  padding: 20px;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--cream);
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius);
  padding: 40px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.4s var(--ease-out);
}

.modal-overlay.open .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--text-muted);
  transition: color 0.3s;
}

.modal-close:hover {
  color: var(--text-dark);
}

.modal-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 28px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 15px;
  color: var(--text-body);
  margin-bottom: 24px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-input {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.3s;
}

.modal-input:focus {
  border-color: var(--olive);
}

textarea.modal-input {
  resize: vertical;
  min-height: 100px;
}

.modal-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  background: var(--olive);
  padding: 14px 28px;
  border-radius: 999px;
  transition: all 0.3s;
  margin-top: 8px;
}

/* ── Magnetic buttons (JS-driven, transform via inline style) ── */
.hero-cta,
.footer-cta,
.faq-cta,
.modal-submit {
  will-change: transform;
}

/* ── Reduced motion ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-title .word {
    transform: none !important;
  }

  .hero-bg img {
    height: 100%;
  }
}

.modal-submit:hover {
  background: var(--olive-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(109, 120, 74, 0.25);
}
