/* ============================================
   Distillery Consulting — Main Stylesheet
   ============================================ */

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

/* === CSS Custom Properties === */
:root {
  --gold: #C9A84C;
  --gold-deep: #A07828;
  --gold-light: #E8D08A;
  --copper: #B87333;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.16), 0 4px 12px rgba(0,0,0,0.10);

  --nav-height: 90px;
  --max-width: 1200px;
  --section-pad: 100px;
}

/* Light Mode (default) */
:root, [data-theme="light"] {
  --bg:           #FAFAF7;
  --bg-alt:       #F2EEE6;
  --bg-card:      #FFFFFF;
  --surface:      #FFFFFF;
  --border:       rgba(0,0,0,0.08);
  --border-gold:  rgba(201,168,76,0.35);
  --text:         #111111;
  --text-muted:   #666666;
  --text-subtle:  #999999;
  --nav-bg:       rgba(250,250,247,0.90);
  --nav-shadow:   0 1px 0 rgba(0,0,0,0.06);
  --logo-show:    block;
  --logo-hide:    none;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #0E0E0C;
    --bg-alt:       #161614;
    --bg-card:      #1C1C1A;
    --surface:      #242420;
    --border:       rgba(255,255,255,0.07);
    --border-gold:  rgba(201,168,76,0.25);
    --text:         #F0EDE6;
    --text-muted:   #A09888;
    --text-subtle:  #666055;
    --nav-bg:       rgba(14,14,12,0.92);
    --nav-shadow:   0 1px 0 rgba(255,255,255,0.04);
    --logo-show:    none;
    --logo-hide:    block;
  }
}

[data-theme="dark"] {
  --bg:           #0E0E0C;
  --bg-alt:       #161614;
  --bg-card:      #1C1C1A;
  --surface:      #242420;
  --border:       rgba(255,255,255,0.07);
  --border-gold:  rgba(201,168,76,0.25);
  --text:         #F0EDE6;
  --text-muted:   #A09888;
  --text-subtle:  #666055;
  --nav-bg:       rgba(14,14,12,0.92);
  --nav-shadow:   0 1px 0 rgba(255,255,255,0.04);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { color: var(--text-muted); }

/* === Utilities === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-pad) 0; }
.section-sm { padding: 60px 0; }

.gold { color: var(--gold); }
.text-center { text-align: center; }

.label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.divider-gold {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 20px 0;
}

.divider-gold.center { margin-left: auto; margin-right: auto; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: #0E0E0C;
}
.btn-primary:hover {
  background: var(--gold-light);
  color: #0E0E0C;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost:hover { color: var(--gold-light); gap: 12px; }

/* Arrow icon */
.btn .arrow { transition: transform var(--transition); }
.btn:hover .arrow { transform: translateX(4px); }

/* === Navigation === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--nav-shadow);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { height: 56px; width: auto; }

.nav-logo-light { display: block; }
.nav-logo-dark  { display: none; }

@media (prefers-color-scheme: dark) {
  .nav-logo-light { display: none; }
  .nav-logo-dark  { display: block; }
}

[data-theme="dark"] .nav-logo-light { display: none; }
[data-theme="dark"] .nav-logo-dark  { display: block; }
[data-theme="light"] .nav-logo-light { display: block; }
[data-theme="light"] .nav-logo-dark  { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

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

.nav-cta { margin-left: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: all var(--transition);
}

/* Mobile nav open state */
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === Hero === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-video,
.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(14,14,12,0.88) 0%,
    rgba(14,14,12,0.70) 40%,
    rgba(14,14,12,0.46) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-content .label { color: var(--gold); }

.hero h1 {
  color: #F0EDE6;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: 1.125rem;
  color: rgba(240,237,230,0.75);
  max-width: 540px;
  margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(240,237,230,0.45);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

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

/* === Section Headers === */
.section-header { margin-bottom: 60px; }
.section-header.center { text-align: center; }
.section-header.center .divider-gold { margin-left: auto; margin-right: auto; }

/* === Philosophy Strip === */
.philosophy {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  background: #0A0906;
}

.philosophy::before {
  content: '"';
  font-family: 'Playfair Display', serif;
  font-size: 20rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.04;
  position: absolute;
  top: -40px;
  left: 20px;
  pointer-events: none;
}

.philosophy-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-style: italic;
  color: var(--text);
  text-align: center;
  max-width: 860px;
  margin: 0 auto 24px;
  line-height: 1.4;
}

.philosophy-attr {
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* === Pillars === */
.pillar-intro {
  max-width: 680px;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 40px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pillar {
  background: var(--bg-card);
  padding: 40px 32px;
  transition: background var(--transition);
}

.pillar:hover { background: var(--surface); }

.pillar-number {
  font-family: 'Playfair Display', serif;
  font-size: 0.75rem;
  color: var(--gold);
  opacity: 0.6;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.pillar h4 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--text);
}

.pillar p {
  font-size: 0.875rem;
  line-height: 1.65;
}

/* === Services Overview === */
/* === Services Carousel === */
.services-carousel-wrapper {
  position: relative;
  padding: 0 56px;
}
.services-carousel { overflow: hidden; }
.services-track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  align-items: stretch;
}
.svc-btn {
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - 24px));
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  background: var(--bg-card);
  color: var(--gold);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), opacity var(--transition);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.svc-btn:hover { background: var(--gold); color: #0E0E0C; }
.svc-btn:disabled { opacity: 0.25; cursor: default; pointer-events: none; }
.svc-prev { left: 0; }
.svc-next { right: 0; }
.svc-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.svc-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}
.svc-dot.active {
  background: var(--gold);
  transform: scale(1.4);
}

.service-card {
  flex: 0 0 calc(33.333% - 16px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.service-card p { flex: 1; font-size: 0.9rem; margin-bottom: 24px; }
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-gold);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 120px; height: 120px;
  background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(201,168,76,0.05));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.service-icon img { width: 80px; height: 80px; object-fit: contain; }

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: rgba(201,168,76,0.08);
  border: 1px solid var(--border-gold);
  border-radius: 100px;
  color: var(--gold);
}

/* === Stats Bar === */
.stats-bar {
  position: relative;
  padding: 72px 0;
  overflow: hidden;
  background: #0A0906;
}

.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/corpus.jpg');
  background-size: cover;
  background-position: center 60%;
  opacity: 0.28;
}

.stats-bar .container { position: relative; z-index: 1; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 48px;
  text-align: center;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240,237,230,0.5);
}

/* === Testimonial === */
.testimonial-section { background: var(--bg-alt); }

.testimonial-card {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  line-height: 0.6;
  color: var(--gold);
  opacity: 0.5;
  margin-bottom: 32px;
  display: block;
}

.testimonial-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 32px;
}

.testimonial-attr {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.testimonial-attr span { color: var(--gold); }

/* === Testimonial Carousel === */
.testimonial-slider { position: relative; }

.testimonial-track { display: grid; }

.testimonial-slide {
  grid-column: 1;
  grid-row: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.testimonial-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.testimonial-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
}

.testimonial-prev,
.testimonial-next {
  background: transparent;
  border: 1px solid rgba(240,237,230,0.18);
  color: rgba(240,237,230,0.45);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
  padding: 0;
  line-height: 1;
}

.testimonial-prev:hover,
.testimonial-next:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(240,237,230,0.20);
  border: 1px solid rgba(240,237,230,0.25);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
}

.dot.active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.35);
}

.dot:hover:not(.active) { background: rgba(240,237,230,0.40); border-color: rgba(240,237,230,0.50); }

.testimonial-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.75;
  text-decoration: none;
  transition: opacity var(--transition), color var(--transition);
}

.testimonial-link:hover { opacity: 1; color: var(--gold-light); }

/* Ensure dark fallback while image loads */
.testimonial-section.img-bg-section { background: #0A0906; }

/* === Navigation Banner === */
.nav-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 990;
  background: #0A0906;
  border-top: 1px solid rgba(201,168,76,0.25);
  transform: translateY(110%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 32px rgba(0,0,0,0.50);
}

.nav-banner.visible { transform: translateY(0); }

.nav-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-banner-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240,237,230,0.45);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  flex-wrap: wrap;
}

.nav-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(240,237,230,0.12);
  color: rgba(240,237,230,0.65);
  background: transparent;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-banner-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.06);
}

.nav-banner-primary {
  background: var(--gold);
  color: #0E0E0C;
  border-color: var(--gold);
}

.nav-banner-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: #0E0E0C;
}

.nav-banner-close {
  background: none;
  border: none;
  color: rgba(240,237,230,0.30);
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
  flex-shrink: 0;
  margin-left: 4px;
}

.nav-banner-close:hover { color: rgba(240,237,230,0.75); }

@media (max-width: 900px) { .nav-banner-label { display: none; } }

@media (max-width: 600px) {
  .nav-banner-inner { padding: 10px 16px; }
  .nav-banner-btn:not(.nav-banner-primary) { display: none; }
  .nav-banner-primary { flex: 1; justify-content: center; }
}

/* === Recent Work Portfolio Links === */
.recent-work { margin-top: 28px; }

.recent-work-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.recent-work-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.recent-work-link:hover {
  border-color: var(--border-gold);
  color: var(--gold);
  background: rgba(201,168,76,0.04);
}

/* === CTA Band === */
.cta-band {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: #0A0906;
}

.cta-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,9,6,0.88) 0%,
    rgba(10,9,6,0.78) 50%,
    rgba(10,9,6,0.88) 100%
  );
  z-index: 1;
}

.cta-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.10) 0%, transparent 70%);
}

.cta-band .container { position: relative; z-index: 2; }

.cta-band h2 { color: #F0EDE6; margin-bottom: 16px; }
.cta-band p  { color: rgba(240,237,230,0.6); max-width: 480px; margin: 0 auto 40px; }

/* === Shared: Section Video Background === */
.section-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.section-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* === Section Image Background (mirrors .section-video) === */
.section-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* === Full dark image background sections === */
.img-bg-section { position: relative; overflow: hidden; background: #0A0906; }
.img-bg-section > .container { position: relative; z-index: 2; }
.img-bg-section .label    { color: var(--gold); }
.img-bg-section h2,
.img-bg-section h3        { color: #F0EDE6; }
.img-bg-section p         { color: rgba(240,237,230,0.72); }
.img-bg-section strong    { color: #F0EDE6; }
.img-bg-section .divider-gold { opacity: 0.6; }

/* Testimonial overrides in dark image section */
.testimonial-section.img-bg-section .testimonial-text { color: rgba(240,237,230,0.90); }
.testimonial-section.img-bg-section .testimonial-attr { color: rgba(240,237,230,0.55); }
.testimonial-section.img-bg-section .testimonial-attr span { color: var(--gold); }
.testimonial-section.img-bg-section .testimonial-quote-mark { opacity: 0.60; }

/* === Subtle image texture sections (preserves bg color, no text overrides) === */
.img-texture-section { position: relative; overflow: hidden; }
.img-texture-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--texture-image);
  background-size: cover;
  background-position: center;
  opacity: 0.10;
  z-index: 0;
}
.img-texture-section > .container { position: relative; z-index: 1; }

/* Force light text on video-background sections */
.video-bg-section { position: relative; overflow: hidden; }
.video-bg-section > .container { position: relative; z-index: 2; }
.video-bg-section .label    { color: var(--gold); }
.video-bg-section h1,
.video-bg-section h2        { color: #F0EDE6; }
.video-bg-section p         { color: rgba(240,237,230,0.72); }
.video-bg-section strong    { color: #F0EDE6; }
.video-bg-section .divider-gold { opacity: 0.6; }

/* Philosophy with video */
.philosophy > .container { position: relative; z-index: 2; }
.philosophy .philosophy-quote { color: #F0EDE6; }
.philosophy .philosophy-attr  { color: var(--gold); }

/* About hero with video */
.about-hero > .container { position: relative; z-index: 2; }
.about-hero .about-intro h1    { color: #F0EDE6; }
.about-hero .about-intro p     { color: rgba(240,237,230,0.72); }
.about-hero .about-intro strong { color: #F0EDE6; }

/* === About Page === */
.about-hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 80px;
  background: #0A0906;
  position: relative;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-portrait {
  position: relative;
}

.portrait-frame {
  aspect-ratio: 3/4;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-gold);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.portrait-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-subtle);
}

.portrait-initials {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.4;
}

.portrait-accent {
  position: absolute;
  bottom: -16px; right: -16px;
  width: 120px; height: 120px;
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  opacity: 0.25;
  z-index: -1;
}

.credentials-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.credential-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.credential-item::before {
  content: '◆';
  color: var(--gold);
  font-size: 0.55rem;
  margin-top: 5px;
  flex-shrink: 0;
}

/* === Speaking Section === */
.speaking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.speaking-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform var(--transition), border-color var(--transition);
}

.speaking-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold);
}

.speaking-icon { width: 7rem; height: 7rem; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; }
.speaking-icon img { width: 100%; height: 100%; object-fit: contain; }
.speaking-card h4 { margin-bottom: 10px; }
.speaking-card p { font-size: 0.875rem; }

/* === Approach Section === */
.approach-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
}

.approach-step {
  display: flex;
  gap: 32px;
  padding-bottom: 48px;
  position: relative;
}

.approach-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 44px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  opacity: 0.3;
}

.step-number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  background: rgba(201,168,76,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  color: var(--gold);
  flex-shrink: 0;
}

.step-content h4 { margin-bottom: 8px; padding-top: 8px; }
.step-content p  { font-size: 0.875rem; }

/* === Services Page === */
.page-hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
  background: #0A0906;
}

.services-detail {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.service-detail-block {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border);
}

.service-detail-block:last-child { border-bottom: none; }

.service-detail-meta .label { display: block; margin-bottom: 8px; }

.service-detail-meta h3 { margin-bottom: 16px; }

.service-number {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.1;
  line-height: 1;
  margin-top: -8px;
}

/* === Service Capability Table === */
.service-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 28px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-gold);
}

.service-table thead tr {
  background: linear-gradient(90deg, rgba(201,168,76,0.12), rgba(201,168,76,0.05));
  border-bottom: 1px solid var(--border-gold);
}

.service-table th {
  padding: 12px 18px;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.service-table th:first-child { width: 34%; }

.service-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.service-table tbody tr:last-child {
  border-bottom: none;
}

.service-table tbody tr:nth-child(even) {
  background: rgba(201,168,76,0.025);
}

.service-table tbody tr:hover {
  background: rgba(201,168,76,0.07);
}

.service-table td {
  padding: 14px 18px;
  vertical-align: top;
  font-size: 0.875rem;
  line-height: 1.6;
}

.service-table td:first-child {
  font-weight: 600;
  color: var(--text);
  border-right: 1px solid var(--border);
}

.service-table td:last-child {
  color: var(--text-muted);
}

/* Left gold accent line on capability cell */
.service-table td:first-child {
  position: relative;
  padding-left: 22px;
}

.service-table td:first-child::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--gold);
  opacity: 0;
  border-radius: 2px;
  transition: opacity var(--transition);
}

.service-table tbody tr:hover td:first-child::before {
  opacity: 1;
}

@media (max-width: 640px) {
  .service-table thead { display: none; }
  .service-table tbody tr {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
  }
  .service-table td {
    display: block;
    padding: 4px 16px;
    border-right: none !important;
  }
  .service-table td:first-child {
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: var(--gold);
    padding-bottom: 6px;
    padding-left: 16px;
  }
  .service-table td:first-child::before { display: none; }
}

/* === Specialties === */
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.specialty-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition);
}

.specialty-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold);
}

.specialty-icon { width: 7rem; height: 7rem; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; }
.specialty-icon img { width: 100%; height: 100%; object-fit: contain; }
.specialty-card h4 { margin-bottom: 10px; }
.specialty-card p  { font-size: 0.85rem; }

/* === Contact Form === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}

.contact-info-block { position: sticky; top: calc(var(--nav-height) + 32px); }

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-info-icon {
  width: 56px; height: 56px;
  background: rgba(201,168,76,0.08);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon img { width: 36px; height: 36px; object-fit: contain; }

.contact-info-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 4px;
}

.contact-info-value {
  font-size: 0.9rem;
  color: var(--text);
}

/* === Form Styles === */
.inquiry-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full { grid-column: 1 / -1; }

label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.required-mark { color: var(--gold); }

input, textarea, select {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}

input.error, textarea.error, select.error {
  border-color: #E05252;
}

textarea { resize: vertical; min-height: 140px; }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9A84C' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.field-error {
  font-size: 0.75rem;
  color: #E05252;
  display: none;
}

.field-error.visible { display: block; }

/* Honeypot - visually hidden */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
}

.form-footer {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px;
}

.form-success.visible { display: block; }

.form-success-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

/* === Footer === */
.footer {
  background: #0A0A08;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand .footer-logo { height: 80px; width: auto; margin-bottom: 20px; }

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(240,237,230,0.4);
  max-width: 280px;
  line-height: 1.7;
}

.footer-col h5 {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240,237,230,0.35);
  margin-bottom: 20px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(240,237,230,0.55);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }

.footer-contact-item {
  font-size: 0.875rem;
  color: rgba(240,237,230,0.45);
  margin-bottom: 10px;
  line-height: 1.5;
}

.footer-contact-item a {
  color: rgba(240,237,230,0.45);
}
.footer-contact-item a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(240,237,230,0.25);
}

.footer-bottom a {
  color: rgba(240,237,230,0.25);
  transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--gold); }

.footer-tagline {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(201,168,76,0.4);
  font-style: italic;
}

/* === Scroll Animations === */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* === Responsive === */
@media (max-width: 1024px) {
  :root { --section-pad: 80px; }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .grant-overview-grid { grid-template-columns: 1fr !important; gap: 48px !important; }
  .contact-info-block { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .service-detail-block { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 64px;
    --nav-height: 72px;
  }
  .service-card { flex: 0 0 calc(50% - 12px); }
  .services-carousel-wrapper { padding: 0 44px; }
  .nav-logo { height: 42px; }
  .footer-brand .footer-logo { height: 56px; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 4px;
  }

  .nav-links.open a {
    display: block;
    padding: 12px 8px;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-toggle { display: flex; }
  .nav-cta { display: none; }

  .hero-actions { flex-direction: column; align-items: flex-start; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .form-grid { grid-template-columns: 1fr; }
  .inquiry-form { padding: 28px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-brand { grid-column: 1; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  .pillars-grid { grid-template-columns: 1fr; }
  .service-card { flex: 0 0 100%; }
  .services-carousel-wrapper { padding: 0 36px; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* === Misc decorative === */
.gold-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.3;
  margin: 64px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(201,168,76,0.08);
  border: 1px solid var(--border-gold);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 24px;
}

.spirit-gift {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(201,168,76,0.06), rgba(201,168,76,0.02));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  margin-top: 48px;
}

.spirit-gift-icon { width: 7rem; height: 7rem; flex-shrink: 0; margin-top: 2px; display: flex; align-items: center; justify-content: center; }
.spirit-gift-icon img { width: 100%; height: 100%; object-fit: contain; }
.spirit-gift-text h4 { color: var(--gold); margin-bottom: 8px; }
.spirit-gift-text p  { font-size: 0.875rem; }

/* Page transition */
body { animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* === Service Selector === */
.service-selector { background: var(--bg-alt); }

.selector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
}

.selector-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 28px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
}

.selector-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

.selector-card:hover {
  border-color: var(--border-gold);
  background: var(--surface);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: var(--text);
}

.selector-card:hover::before { transform: scaleX(1); }

.selector-card-discovery {
  grid-column: 1 / -1;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  padding: 20px 28px;
}

.selector-icon { width: 6rem; height: 6rem; display: flex; align-items: center; justify-content: center; }
.selector-icon img { width: 100%; height: 100%; object-fit: contain; }

.selector-label {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.selector-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .selector-grid { grid-template-columns: 1fr 1fr; }
  .selector-card-discovery { flex-direction: column; }
}

@media (max-width: 480px) {
  .selector-grid { grid-template-columns: 1fr; }
}

/* === Service Page Styles === */
.service-page-hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
  background: #0A0906;
}

.service-page-hero > .container { position: relative; z-index: 2; }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.problem-card {
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-md);
}

.problem-card h4 { font-size: 0.95rem; margin-bottom: 6px; }
.problem-card p  { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

.help-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.help-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: rgba(240,237,230,0.80);
}

.help-list li::before {
  content: '◆';
  color: var(--gold);
  font-size: 0.6rem;
  flex-shrink: 0;
  margin-top: 6px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.process-step {
  text-align: center;
  padding: 28px 20px;
}

.process-step-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--gold);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 12px;
}

.process-step h4 { font-size: 0.95rem; margin-bottom: 8px; }
.process-step p  { font-size: 0.85rem; color: var(--text-muted); }

/* Service page form section */
.service-form-section {
  background: var(--bg-alt);
}
