/* ============================================
   MERIDIAN CAPCO, INC. — BRAND STYLESHEET
   Deep Forest Green / Antique Gold
   Cormorant Garamond + Jost
   ============================================ */

:root {
  --green-900: #0D1F15;
  --green-800: #132B1E;
  --green-700: #1A3828;
  --green-600: #224A34;
  --green-500: #2C6044;
  --green-400: #3A7A58;
  --green-100: #D4E6DA;
  --green-50:  #EAF2EC;
  --gold-700:  #8A6A1A;
  --gold-600:  #A87E20;
  --gold-500:  #C49728;
  --gold-400:  #D4A832;
  --gold-300:  #E0BE6A;
  --gold-100:  #F5E9C4;
  --gold-50:   #FAF4E0;
  --cream:     #FAF8F3;
  --white:     #FFFFFF;
  --gray-100:  #F4F3F0;
  --gray-200:  #E8E6E0;
  --gray-400:  #9C9A94;
  --gray-600:  #6B6960;
  --gray-800:  #3A3830;
  --text-dark: #1A1A14;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Jost', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

em { font-style: italic; }

.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 0.75rem;
  display: block;
}
.section-eyebrow.light { color: var(--gold-300); }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--green-800);
  margin-bottom: 1rem;
}
.section-title.light { color: var(--cream); }

.section-sub {
  font-size: 1rem;
  color: var(--gray-600);
  max-width: 580px;
  line-height: 1.8;
}

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .section-sub { margin: 0 auto; }

/* ============ BUTTONS ============ */
.btn-primary {
  display: inline-block;
  background: var(--green-700);
  color: var(--gold-300);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 1px solid var(--green-700);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn-primary:hover { background: var(--green-600); border-color: var(--green-600); color: var(--gold-100); }
.btn-primary.large { padding: 18px 44px; font-size: 14px; }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--green-700);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 30px;
  border: 1px solid var(--green-400);
  transition: background 0.25s, color 0.25s;
}
.btn-ghost:hover { background: var(--green-50); }

.btn-ghost-light {
  display: inline-block;
  background: transparent;
  color: var(--gold-300);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 28px;
  border: 1px solid var(--gold-600);
  transition: background 0.25s;
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.06); }

/* ============ NAVIGATION ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 72px;
  background: rgba(250, 248, 243, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-mark {
  width: 36px; height: 36px;
  background: var(--green-700);
  color: var(--gold-300);
  font-family: var(--font-serif);
  font-size: 1.3rem; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-text { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 500; color: var(--green-800); letter-spacing: 0.02em; }
.nav-links { display: flex; gap: 2.5rem; }
.nav-link { font-family: var(--font-sans); font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-600); transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--green-700); }
.nav-cta { font-family: var(--font-sans); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-300); background: var(--green-800); padding: 10px 24px; border: 1px solid var(--green-800); transition: background 0.2s; }
.nav-cta:hover { background: var(--green-700); }
.nav-hamburger { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--green-800); }
.mobile-menu { display: none; position: fixed; top: 72px; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--gray-200); z-index: 99; flex-direction: column; padding: 1rem 2rem; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: var(--font-sans); font-size: 14px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green-800); padding: 0.75rem 0; border-bottom: 1px solid var(--gray-200); }
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: block; }
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 2.5rem 80px;
  position: relative;
  overflow: hidden;
  background-color: var(--green-900); /* fallback if photo not loaded */
}

/* When photo is present, this overlay darkens it for text legibility */
.hero-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 31, 21, 0.82) 0%,
    rgba(13, 31, 21, 0.70) 60%,
    rgba(13, 31, 21, 0.88) 100%
  );
  z-index: 0;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(255,255,255,0.015) 80px),
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(255,255,255,0.015) 80px);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-eyebrow { font-family: var(--font-sans); font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 1.5rem; display: block; }
.hero-headline { font-family: var(--font-serif); font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 300; line-height: 1.08; color: var(--cream); margin-bottom: 1.75rem; letter-spacing: -0.01em; }
.hero-headline em { color: var(--gold-400); font-style: italic; }
.hero-sub { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 300; color: var(--green-100); line-height: 1.8; margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn-primary { background: var(--gold-600); border-color: var(--gold-600); color: var(--green-900); }
.hero-actions .btn-primary:hover { background: var(--gold-500); border-color: var(--gold-500); }
.hero-actions .btn-ghost { color: var(--green-100); border-color: rgba(255,255,255,0.2); }
.hero-actions .btn-ghost:hover { background: rgba(255,255,255,0.06); }

.hero-accent {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-top: 5rem;
  position: relative;
  z-index: 2;
}
.hero-accent-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 1.5rem 2.5rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  min-width: 120px;
}
.accent-num { font-family: var(--font-serif); font-size: 2.8rem; font-weight: 300; color: var(--gold-400); line-height: 1; }
.accent-label { font-family: var(--font-sans); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-100); margin-top: 0.4rem; }

/* ============ PHOTO BAND ============ */
/* Full-width cinematic strip with photo background + text overlay */
.photo-band {
  position: relative;
  min-height: 380px;
  background-size: cover;
  background-position: center;
  background-color: var(--green-800); /* fallback */
  display: flex;
  align-items: center;
}
.photo-band-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 31, 21, 0.80) 0%,
    rgba(26, 56, 40, 0.65) 100%
  );
}
.photo-band-content {
  position: relative;
  z-index: 1;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.photo-band-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  max-width: 680px;
  line-height: 1.4;
  margin-bottom: 2rem;
}

/* ============ SECTIONS ============ */
.section { padding: 6rem 0; }

/* ============ DIVISIONS GRID (homepage preview) ============ */
.divisions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--gray-200);
  border: 1px solid var(--gray-200);
}
.division-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background 0.2s;
  cursor: pointer;
}
.division-card:hover { background: var(--green-50); }
.division-card:hover .division-arrow { color: var(--gold-600); transform: translateX(4px); }
.division-icon { color: var(--green-600); margin-bottom: 1.25rem; }
.division-name { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 500; color: var(--green-800); margin-bottom: 0.4rem; }
.division-tagline { font-family: var(--font-sans); font-size: 0.85rem; color: var(--gray-600); font-style: italic; flex: 1; }
.division-arrow { display: inline-block; margin-top: 1.5rem; font-size: 1.1rem; color: var(--green-400); transition: color 0.2s, transform 0.2s; }
.section-cta { text-align: center; margin-top: 3rem; }

/* ============ PHILOSOPHY STRIP ============ */
.philosophy-strip { background: var(--green-800); padding: 6rem 0; }
.philosophy-content { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.philosophy-text .section-title { margin-bottom: 1.25rem; }
.philosophy-body { font-family: var(--font-sans); font-size: 0.95rem; color: var(--green-100); line-height: 1.9; margin-bottom: 1.25rem; }
.philosophy-pillars { display: flex; flex-direction: column; gap: 2rem; padding-top: 0.5rem; }
.pillar { border-left: 2px solid var(--gold-700); padding-left: 1.5rem; }
.pillar-num { font-family: var(--font-sans); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; color: var(--gold-500); display: block; margin-bottom: 0.3rem; }
.pillar-title { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 500; color: var(--cream); margin-bottom: 0.4rem; }
.pillar-body { font-size: 0.875rem; color: var(--green-100); line-height: 1.7; }
@media (max-width: 768px) {
  .philosophy-content { grid-template-columns: 1fr; gap: 3rem; }
}

/* ============ QUOTE ============ */
.quote-section { padding: 5rem 0; background: var(--gold-50); border-top: 1px solid var(--gold-100); border-bottom: 1px solid var(--gold-100); }
.site-quote { text-align: center; max-width: 680px; margin: 0 auto; }
.site-quote p { font-family: var(--font-serif); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 300; color: var(--green-800); line-height: 1.5; font-style: italic; margin-bottom: 1rem; }
.site-quote cite { font-family: var(--font-sans); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-600); font-style: normal; }

/* ============ CTA BAND ============ */
.cta-band { background: var(--green-900); padding: 5rem 0; text-align: center; }
.cta-headline { font-family: var(--font-serif); font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 300; color: var(--cream); margin-bottom: 1rem; }
.cta-sub { font-size: 0.95rem; color: var(--green-100); margin-bottom: 2.5rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-band .btn-primary { background: var(--gold-600); border-color: var(--gold-600); color: var(--green-900); }
.cta-band .btn-primary:hover { background: var(--gold-500); border-color: var(--gold-500); }

/* ============ FOOTER ============ */
.footer { background: var(--green-900); border-top: 1px solid rgba(255,255,255,0.06); padding: 4rem 0 2rem; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 3rem; margin-bottom: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { width: 44px; height: 44px; background: var(--green-700); color: var(--gold-300); font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500; display: flex; align-items: center; justify-content: center; }
.footer-company { font-family: var(--font-serif); font-size: 1.1rem; color: var(--cream); font-weight: 500; }
.footer-sub-tag { font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.1em; color: var(--green-100); text-transform: uppercase; margin-top: 2px; }
.footer-links { display: flex; gap: 4rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col h5 { font-family: var(--font-sans); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 0.5rem; }
.footer-col a { font-size: 0.875rem; color: var(--green-100); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-300); }
.footer-bottom { text-align: center; font-size: 12px; color: var(--gray-600); letter-spacing: 0.04em; }
@media (max-width: 768px) {
  .footer-top { flex-direction: column; }
  .footer-links { gap: 2rem; }
}

/* ============ PAGE HERO (interior pages) ============ */
.page-hero {
  background: var(--green-900);
  padding: 160px 2.5rem 80px;
  text-align: center;
}

/* Photo version of page-hero */
.photo-page-hero {
  position: relative;
  background-size: cover;
  background-position: center;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 31, 21, 0.85) 0%,
    rgba(13, 31, 21, 0.72) 100%
  );
  z-index: 0;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
}

.page-hero-eyebrow { font-family: var(--font-sans); font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 1.25rem; display: block; }
.page-hero h1, .page-hero-inner h1 { font-family: var(--font-serif); font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 300; color: var(--cream); line-height: 1.1; margin-bottom: 1.5rem; }
.page-hero h1 em, .page-hero-inner h1 em { color: var(--gold-400); }
.page-hero p, .page-hero-inner p { font-size: 1rem; color: var(--green-100); max-width: 560px; margin: 0 auto; line-height: 1.8; }

/* ============ ABOUT PAGE ============ */
.about-story { padding: 6rem 0; background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.about-grid .section-title { font-size: 2.2rem; }
.about-body { font-size: 1rem; color: var(--gray-600); line-height: 1.9; margin-bottom: 1.25rem; }
.about-values { background: var(--green-50); border: 1px solid var(--green-100); padding: 2rem; }
.about-value { padding: 1.25rem 0; border-bottom: 1px solid var(--green-100); }
.about-value:last-child { border-bottom: none; }
.about-value h4 { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 500; color: var(--green-800); margin-bottom: 0.3rem; }
.about-value p { font-size: 0.875rem; color: var(--gray-600); line-height: 1.7; }
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ============ DIVISIONS PAGE ============ */
.divisions-page-list { padding: 4rem 0 6rem; }
.division-section { padding: 5rem 0; border-bottom: 1px solid var(--gray-200); }
.division-section:last-child { border-bottom: none; }
.division-section-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: center; }
.division-section-inner.reverse { direction: rtl; }
.division-section-inner.reverse > * { direction: ltr; }
.division-big-icon { display: flex; align-items: center; justify-content: center; width: 100px; height: 100px; background: var(--green-50); border: 1px solid var(--green-100); color: var(--green-600); margin-bottom: 2rem; }
.division-label { font-family: var(--font-sans); font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-600); display: block; margin-bottom: 0.75rem; }
.division-title { font-family: var(--font-serif); font-size: 2.4rem; font-weight: 400; color: var(--green-800); margin-bottom: 0.6rem; }
.division-tagline-lg { font-family: var(--font-serif); font-size: 1.1rem; font-style: italic; color: var(--gold-600); margin-bottom: 1.5rem; }
.division-desc { font-size: 0.95rem; color: var(--gray-600); line-height: 1.9; margin-bottom: 1.25rem; }
.division-features { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 2rem; }
.division-feature { display: flex; align-items: flex-start; gap: 10px; font-size: 0.875rem; color: var(--gray-800); line-height: 1.5; }
.division-feature::before { content: ''; display: inline-block; width: 4px; height: 4px; background: var(--gold-500); margin-top: 7px; flex-shrink: 0; }

/* Division visual panel — base (no photo) */
.division-visual {
  background: var(--green-900);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.division-visual-pattern {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,0.015) 21px);
}

/* Division visual panel — photo version */
/* When images/[division]-photo.jpg is added, this shows photo + overlay */
.photo-visual {
  background-size: cover;
  background-position: center;
}
.division-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13, 31, 21, 0.92) 0%,
    rgba(13, 31, 21, 0.50) 55%,
    rgba(13, 31, 21, 0.30) 100%
  );
  z-index: 0;
}
.division-visual-quote {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 300;
  font-style: italic;
  color: var(--gold-300);
  line-height: 1.4;
}
.division-visual-tag {
  position: relative;
  z-index: 1;
  margin-top: 0.75rem;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-100);
}

@media (max-width: 900px) {
  .division-section-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .division-section-inner.reverse { direction: ltr; }
  .division-visual { min-height: 260px; }
}

/* ============ CONTACT PAGE ============ */
.contact-section { padding: 5rem 0 6rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 5rem; align-items: start; }
.contact-info-block { margin-bottom: 2.5rem; }
.contact-info-block h4 { font-family: var(--font-serif); font-size: 1rem; font-weight: 500; color: var(--green-800); margin-bottom: 0.25rem; }
.contact-info-block p { font-size: 0.9rem; color: var(--gray-600); }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-family: var(--font-sans); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-600); }
.form-group input, .form-group select, .form-group textarea { font-family: var(--font-sans); font-size: 14px; color: var(--text-dark); background: var(--white); border: 1px solid var(--gray-200); padding: 12px 14px; outline: none; transition: border-color 0.2s; appearance: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--green-400); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 12px; color: var(--gray-400); line-height: 1.6; }
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============ GOLD RULE ============ */
.gold-rule { display: block; width: 48px; height: 2px; background: var(--gold-500); margin: 1.5rem 0; }
.gold-rule.center { margin: 1.5rem auto; }

/* ============ LOGO IMAGE ============ */
.nav-logo-img {
  height: 90px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-logo-img {
  height: 107px;
  width: auto;
  display: block;
  object-fit: contain;
}
