/* ============================================================
   CAPITAL CONSULTING — styles.css
   Warm Editorial Luxury — Cream · Forest Green · Amber
   ============================================================ */

/* --- Variables -------------------------------------------- */
:root {
  --bg:            #F7F2EB;
  --bg-alt:        #EDE7DB;
  --bg-card:       #FDFAF5;
  --bg-dark:       #2F2B49;
  --surface:       #E4DDD0;
  --ink:           #191917;
  --green:         #2F2B49;
  --green-light:   #3D3862;
  --green-deep:    #1E1B30;
  --green-dim:     rgba(47, 43, 73, 0.07);
  --green-line:    rgba(47, 43, 73, 0.18);
  --amber:         #2F2B49;
  --amber-light:   #3D3862;
  --amber-deep:    #1E1B30;
  --amber-dim:     rgba(47, 43, 73, 0.10);
  --amber-line:    rgba(47, 43, 73, 0.25);
  --text:          #191917;
  --text-muted:    #5E5850;
  --text-dim:      #9A9490;
  --border:        rgba(25, 25, 23, 0.11);
  --border-light:  rgba(25, 25, 23, 0.06);
  --radius:        6px;
  --radius-lg:     14px;
  --max-w:         1160px;
  --nav-h:         80px;
  --ease:          cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:      cubic-bezier(0.0, 0, 0.2, 1);
  --shadow-sm:     0 1px 4px rgba(25,25,23,0.07), 0 1px 2px rgba(25,25,23,0.04);
  --shadow-md:     0 4px 20px rgba(25,25,23,0.09), 0 2px 8px rgba(25,25,23,0.05);
  --shadow-lg:     0 20px 64px rgba(25,25,23,0.13), 0 4px 16px rgba(25,25,23,0.07);
}

/* --- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
textarea { resize: vertical; }

/* --- Typography ------------------------------------------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.25rem;
}

.section-label::before { display: none; }

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}

.body-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

/* --- Layout ----------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section {
  padding: 8rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 4.5rem;
}

.section-header .section-label {
  justify-content: center;
}

.section-header .section-label::after { display: none; }

/* --- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 2.25rem;
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(47, 43, 73, 0.28);
}
.btn-primary:active { background: var(--green-deep); transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green);
}

.btn-gold {
  background: var(--amber);
  color: #ffffff;
  font-weight: 700;
}

.btn-gold:hover {
  background: var(--amber-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(47, 43, 73, 0.28);
}
.btn-gold:active { transform: translateY(0); }

.btn-full {
  width: 100%;
  justify-content: center;
}

/* --- Scroll Progress Bar ---------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(to right, var(--green), var(--amber));
  z-index: 200;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* --- Navigation ------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(247, 242, 235, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.nav.scrolled {
  box-shadow: 0 2px 24px rgba(25, 25, 23, 0.09);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: var(--nav-h);
  padding: 0 2.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  gap: 2rem;
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 72px;
  width: auto;
  display: block;
}

.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.nav-logo-text em {
  font-style: normal;
  color: var(--green);
  margin-left: 0.35rem;
  font-weight: 400;
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  flex: 1;
}

.nav-links li:last-child {
  margin-left: auto;
}

.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1.5px;
  background: var(--amber);
  transition: width 0.25s var(--ease);
}

.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 0.65rem 1.5rem !important;
  background: var(--amber) !important;
  color: #ffffff !important;
  border-radius: var(--radius) !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: var(--amber-light) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(47, 43, 73, 0.3) !important;
}

.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-menu-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.3s var(--ease);
  transform-origin: center;
}
.nav-menu-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-menu-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s ease;
}
.nav-mobile.open {
  max-height: 300px;
  padding: 1rem 0;
}

.mobile-link {
  display: block;
  padding: 0.9rem 2.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.mobile-link:hover { color: var(--ink); }
.mobile-cta { color: var(--amber) !important; font-weight: 700 !important; }

/* --- Hero -------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 2rem) 0 8rem;
  overflow: hidden;
  background: var(--bg);
}

/* Subtle dot grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(47, 43, 73, 0.12) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

/* Ambient amber glow */
.hero::after {
  content: '';
  position: absolute;
  bottom: -15%;
  right: -5%;
  width: 55%;
  height: 75%;
  background: radial-gradient(ellipse at center, rgba(47, 43, 73, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2.5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

.hero-content {
  max-width: 620px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.55); }
}

.eyebrow-text {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--green);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.4rem, 6.5vw, 5.8rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 1.75rem;
}

.hero-title em {
  font-style: italic;
  color: var(--green);
}

.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.75rem;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.35;
}

.hero-scroll-label {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-bar {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--green), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.12); }
}

/* Hero visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-graphic {
  position: relative;
  width: 100%;
  max-width: 460px;
}

.hero-svg {
  width: 100%;
  height: auto;
  animation: heroRotate 80s linear infinite;
}

@keyframes heroRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero-graphic-label {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1.25rem;
}

.hero-graphic-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  background: var(--green);
  border-radius: var(--radius);
  padding: 0.9rem 1.4rem;
  white-space: nowrap;
  box-shadow: 0 8px 28px rgba(47, 43, 73, 0.35);
}

.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.hero-graphic-stat span:last-child {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

/* --- Mission ------------------------------------------------ */
.mission {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mission-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

/* Decorative oversized quote mark */
.mission-inner::before {
  content: '\201C';
  position: absolute;
  top: -3rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Playfair Display', serif;
  font-size: 14rem;
  line-height: 1;
  color: var(--green);
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
}

.mission-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.mission-ornament-line {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--amber-line);
}

.mission-statement {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 2rem;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 1;
}

.mission-divider {
  width: 40px;
  height: 1.5px;
  background: var(--amber);
  margin: 2rem auto;
  opacity: 0.6;
}

.mission-body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.9;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* --- Services ---------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.5rem;
  transition: border-color 0.3s, box-shadow 0.35s, transform 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

/* Animated left-edge accent */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(to bottom, var(--green), var(--amber));
  transition: height 0.45s var(--ease);
  border-radius: 0 0 3px 0;
}

/* Top shimmer on hover */
.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--green-dim), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  border-color: rgba(47, 43, 73, 0.15);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.service-card:hover::before {
  height: 100%;
}

.service-card:hover::after {
  opacity: 1;
}

.service-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--amber);
  opacity: 0.75;
  margin-bottom: 1.25rem;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.card-header .service-icon,
.card-header .process-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.service-icon {
  margin-bottom: 1.35rem;
}

.service-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0;
  letter-spacing: -0.01em;
}

.service-body {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.service-list li {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  padding-left: 1.1rem;
  position: relative;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.45;
}

/* --- Stats -------------------------------------------------- */
.stats-section {
  background: var(--green) !important;
  padding: 7rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-block {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  position: relative;
}

.stat-block + .stat-block::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.75rem, 4.5vw, 4.25rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat-suffix {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
  margin-left: -0.1rem;
  align-self: flex-start;
  margin-top: 0.25rem;
}

.stat-block .stat-label {
  width: 100%;
  text-align: center;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.8rem;
}

/* --- Process (Grid) ---------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 860px;
  margin: 0 auto;
}

.process-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
}

.process-icon {
  margin-bottom: 1.35rem;
}

.process-phase {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0;
  margin-bottom: 0.75rem;
}

.process-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

/* --- Pillars ----------------------------------------------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.pillar {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: border-color 0.3s, transform 0.35s var(--ease), box-shadow 0.35s;
  position: relative;
}

/* Top edge reveal on hover */
.pillar::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
  background: linear-gradient(to right, var(--green), var(--amber));
  border-radius: 0 0 2px 2px;
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
  transform-origin: left center;
}

.pillar:hover {
  border-color: rgba(47, 43, 73, 0.14);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.pillar:hover::before {
  transform: scaleX(1);
}

.pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-dim);
  border: 1px solid var(--green-line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: background 0.3s, border-color 0.3s;
}

.pillar:hover .pillar-icon {
  background: rgba(47, 43, 73, 0.13);
  border-color: rgba(47, 43, 73, 0.28);
}

.pillar-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.85rem;
}

.pillar-body {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.78;
}

/* --- Contact ----------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: start;
}

.contact-info .section-label {
  margin-bottom: 1rem;
}

.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-divider {
  width: 40px;
  height: 1.5px;
  background: var(--amber-line);
  margin-bottom: 1.5rem;
}

.contact-promise {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.75;
}

.contact-promise strong {
  color: var(--text-muted);
}

/* --- Form -------------------------------------------------- */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: var(--shadow-md);
}

.form-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.label-opt {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.63rem;
  color: var(--text-dim);
  opacity: 0.7;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 43, 73, 0.09);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #c84040;
  box-shadow: 0 0 0 3px rgba(200, 64, 64, 0.09);
}

.form-note {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 1rem;
  text-align: center;
}

/* Form success */
.form-success {
  text-align: center;
  padding: 3rem 1rem;
}

.success-check {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.success-check-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-dim);
  border: 1.5px solid var(--green-line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-success h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1rem;
}

.form-success p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Footer ------------------------------------------------- */
.footer {
  background: var(--green);
  border-top: none;
  padding: 6rem 0 3.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo-wrap {
  display: block;
}

.footer-logo-img {
  height: 88px;
  width: auto;
  display: block;
  margin-bottom: 1rem;
}

.footer-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  display: block;
  margin-bottom: 1rem;
}

.footer-logo-text em {
  font-style: normal;
  color: var(--amber-light);
  margin-left: 0.35rem;
  font-weight: 400;
  font-size: 1.1rem;
}

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.85;
}

.footer-col-title {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.35rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-nav a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

.footer-nav a:hover { color: #ffffff; }

.footer-contact-col p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.9;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
  gap: 1rem;
}

/* --- Reveal animations ------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

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

/* Staggered children */
.services-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.services-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.services-grid .reveal:nth-child(4) { transition-delay: 0.3s; }

.pillars-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.pillars-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.pillars-grid .reveal:nth-child(4) { transition-delay: 0.24s; }

/* --- Responsive -------------------------------------------- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr 0.9fr;
    gap: 3.5rem;
  }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: flex; margin-left: auto; }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-content { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-subtitle { margin: 0 auto 2.5rem; }
  .hero-visual { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .services-grid .reveal { transition-delay: 0s !important; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-block + .stat-block::before { display: none; }

  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid .reveal { transition-delay: 0s !important; }

  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.5rem; }


  .process-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .section { padding: 5rem 0; }
  .container { padding: 0 1.5rem; }
  .hero-title { font-size: 3rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .pillars-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 2rem; }
}
