/* =====================================================================
   Ellery Voss LLP — Design System  (replicates the provided mockups)
   Static site, no build step. One stylesheet for all pages.
   ===================================================================== */

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

/* ---------- Tokens ---------- */
:root {
  --bg:        #f5f1ea;   /* page cream */
  --bg-warm:   #fbf8f3;   /* lighter cream */
  --panel:     #ece5d8;   /* card / alt section */
  --ink:       #1c1b19;   /* near-black text */
  --ink-soft:  #4a453d;   /* body copy */
  --muted:     #7c7568;   /* captions, meta */
  --line:      #d8d0c3;   /* hairlines */
  --dark:      #211e19;   /* dark bands */
  --dark-2:    #2b2722;
  --on-dark:   #ece6da;   /* text on dark */
  --on-dark-mut:#a39a88;
  --gold:      #b08d57;   /* brass accent */
  --gold-deep: #8a7045;

  --serif: 'Cormorant Garamond', 'Hoefler Text', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-weight: 400; font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(60px, 8.5vw, 124px); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

.eyebrow {
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep);
  margin: 0 0 22px; display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); display: inline-block; }
.eyebrow--plain::before { display: none; }

.display { font-size: clamp(2rem, 4vw, 3.1rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.18rem); color: var(--ink-soft); max-width: 48ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 15px 28px; border: 1px solid var(--ink); color: var(--ink);
  background: transparent; cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn .arrow { transition: transform .25s ease; }
.btn:hover { background: var(--ink); color: var(--bg-warm); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--light { border-color: rgba(236,230,218,.5); color: var(--on-dark); }
.btn--light:hover { background: var(--on-dark); color: var(--dark); border-color: var(--on-dark); }

.link-more {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep);
}
.link-more .arrow { transition: transform .25s ease; }
.link-more:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,241,234,.9); backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 170px; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand__mark { width: 36px; height: 36px; flex: none; }
.brand__name { font-family: var(--serif); font-size: 1.3rem; letter-spacing: .12em; line-height: 1; text-transform: uppercase; }

/* PNG logo image (replaces SVG mark) */
.brand__logo-img { height: 120px; width: auto; display: block; filter: contrast(1.6) brightness(0.82); }
.brand__logo-img--footer { height: 100px; filter: brightness(2.2) contrast(0.75); }

.nav { display: flex; align-items: center; gap: 40px; }
.nav a {
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); position: relative; padding-block: 6px;
}
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--gold); transition: width .25s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--ink); margin: 5px auto; transition: transform .3s ease, opacity .3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero (full-bleed background image, dark overlay) ---------- */
.hero { position: relative; overflow: hidden; min-height: min(86vh, 780px); display: flex; align-items: center; color: var(--on-dark); }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(20,18,15,0.88) 0%,
    rgba(20,18,15,0.72) 30%,
    rgba(20,18,15,0.42) 58%,
    rgba(20,18,15,0.10) 82%,
    rgba(20,18,15,0.00) 100%);
}
.hero__content { position: relative; z-index: 1; max-width: 560px; display: flex; flex-direction: column; align-items: flex-start; padding-block: clamp(80px, 10vw, 130px); }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.2rem); font-weight: 500; color: var(--on-dark); }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .lead { margin-top: 26px; color: var(--on-dark-mut); }
.hero .btn { margin-top: 38px; align-self: flex-start; border-color: rgba(236,230,218,.55); color: var(--on-dark); }
.hero .btn:hover { background: var(--on-dark); color: var(--dark); border-color: var(--on-dark); }

/* ---------- Focus areas / card grid ---------- */
.section-head { max-width: 640px; }
.section-head .display { font-size: clamp(2rem, 4vw, 3.1rem); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border-top: 1px solid var(--line); }
.feature { padding: 44px 36px 40px; border-right: 1px solid var(--line); transition: background .25s ease; }
.grid-3 .feature:last-child { border-right: 0; }
.feature:hover { background: var(--bg-warm); }
.feature__icon { width: 34px; height: 34px; color: var(--gold); margin-bottom: 18px; }
.feature h3 { font-size: 1.7rem; margin: 0 0 14px; }
.feature p { color: var(--ink-soft); font-size: .98rem; margin-bottom: 24px; }

/* ---------- Dark CTA band (stone texture) ---------- */
.cta-band { position: relative; background: var(--dark); color: var(--on-dark); overflow: hidden; }
.cta-band__bg { position: absolute; inset: 0; z-index: 0; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.cta-band__bg::after { content: ""; position: absolute; inset: 0; background: rgba(20,18,15,0.93); }
.cta-band .container { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 48px; padding-block: clamp(56px, 7vw, 96px); flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 400; max-width: 16ch; }
.cta-band h2 em { font-style: italic; color: var(--gold); }
.cta-band__text { max-width: 46ch; }
.cta-band__text p { color: var(--on-dark-mut); }

/* ---------- About: dark jurisdiction map ---------- */
.jurisdiction { position: relative; overflow: hidden; background: var(--dark); color: var(--on-dark); }
.jurisdiction__map { position: absolute; inset: 0; z-index: 0; }
.jurisdiction__map img { width: 100%; height: 100%; object-fit: cover; }
.jurisdiction__map::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,18,15,.92) 0%, rgba(20,18,15,.62) 45%, rgba(20,18,15,.35) 100%); }
.jurisdiction .container { position: relative; z-index: 1; }
.jurisdiction h1 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.4rem); max-width: 16ch; }
.jurisdiction .eyebrow { color: var(--gold); }
.jurisdiction .lead { color: rgba(236,230,218,.8); }
.jur-tags { display: flex; flex-wrap: wrap; gap: 0; margin-top: 40px; }
.jur-tags span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); padding: 0 22px; position: relative; }
.jur-tags span:first-child { padding-left: 0; }
.jur-tags span:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 2px; bottom: 2px; width: 1px; background: rgba(236,230,218,.22); }

/* ---------- Two-column prose ---------- */
.split { display: grid; grid-template-columns: minmax(0, 40ch) 1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.split h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 500; }
.split .body { color: var(--ink-soft); font-size: 1.05rem; }
.split .body p + p { margin-top: 1.1em; }

/* ---------- Approach: 4-col feature grid ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 54px; border-top: 1px solid var(--line); }
.grid-4 .feature { padding: 38px 28px; border-right: 1px solid var(--line); }
.grid-4 .feature:last-child { border-right: 0; }
.grid-4 .feature h3 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.grid-4 .feature p { font-size: .94rem; margin-bottom: 0; }
.grid-4 .feature__icon { width: 30px; height: 30px; color: var(--gold-deep); }

/* ---------- Practice areas ---------- */
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.filter {
  font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid var(--line); background: transparent; color: var(--ink-soft); padding: 11px 18px; cursor: pointer; transition: all .2s ease;
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg-warm); }

.practice { border-top: 1px solid var(--line); padding-block: clamp(40px, 5vw, 64px); }
.practice__grid { display: grid; grid-template-columns: minmax(0, 34ch) 1fr; gap: clamp(28px, 6vw, 80px); align-items: start; }

.practice__head { padding-top: 0; }
.practice__head .num { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.1rem; display: block; margin-bottom: 14px; }
.practice__head .feature__icon { width: 32px; height: 32px; color: var(--gold-deep); margin-bottom: 16px; }
.practice__head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; }
.practice__head p { color: var(--ink-soft); margin-top: 16px; font-size: .98rem; }

/* Added top margin to drop the list below the icon height and align it with the h2 text top */
.service-list { 
  columns: 2; 
  column-gap: 48px; 
  margin-top: 66px; 
}

/* Balanced text line heights for crisp grid alignments */
.service-list li { 
  break-inside: avoid; 
  padding: 14px 0 14px 22px; 
  border-bottom: 1px solid var(--line); 
  position: relative; 
  color: var(--ink-soft); 
  font-size: .96rem;
  line-height: 1.3;
}

/* Strips out extra top padding from the first row of list items */
.service-list li:first-child,
.service-list li:nth-child(4) { 
  padding-top: 0; 
}

/* Dash horizontal line bullets rules */
.service-list li::before { 
  content: ""; 
  position: absolute; 
  left: 0; 
  top: 22px; 
  width: 8px; 
  height: 1px; 
  background: var(--gold); 
}

/* Adjusts the dash bullet height specifically for the first row elements */
.service-list li:first-child::before,
.service-list li:nth-child(4)::before {
  top: 9px;
}

/* Responsive adjustment for stacked mobile layouts */
@media (max-width: 760px) {
  .service-list {
    margin-top: 24px; /* Pulls up closer below the description on smaller viewports */
  }
}
/* ---------- Intelligence ---------- */
.intel-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); max-width: 16ch; }

.tag-pill {
  display: inline-block; font-family: var(--sans); font-size: 10px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep);
  border: 1px solid var(--gold); padding: 5px 11px;
}

.featured { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding-block: clamp(32px, 4vw, 52px); }
.featured__label { font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 20px; }
.featured .tag-pill { margin-bottom: 22px; }
.featured h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 500; max-width: 20ch; }
.featured p { color: var(--ink-soft); margin: 18px 0 26px; max-width: 60ch; }

.intel-list { border-top: 1px solid var(--line); }
.intel-item {
  display: grid; grid-template-columns: 190px 1fr auto; gap: 40px; align-items: start;
  padding: 30px 4px; border-bottom: 1px solid var(--line); transition: background .2s ease;
}
.intel-item:hover { background: var(--bg-warm); }
.intel-item__meta .tag-pill { margin-bottom: 16px; }
.intel-item__cat { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.intel-item__date { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.intel-item__title { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.intel-item__desc { color: var(--ink-soft); font-size: .94rem; max-width: 54ch; }
.intel-item .link-more { white-space: nowrap; padding-top: 6px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 7vw, 96px); align-items: start; }
.contact-detail { margin-bottom: 34px; }
.contact-detail h3 { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.contact-detail p, .contact-detail a { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); }
.contact-detail a:hover { color: var(--gold-deep); }

.form { display: grid; gap: 22px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--bg-warm); border: 1px solid var(--line); padding: 14px 16px; width: 100%; transition: border-color .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 140px; }
.form .btn { justify-self: start; margin-top: 4px; }

/* ---------- About: Our Approach with image ---------- */
.approach-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(36px, 5.5vw, 72px);
  align-items: stretch;
}
.approach-image { position: relative; overflow: hidden; min-height: 360px; }
.approach-image img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center center;
  display: block;
}
.approach-content .section-head { max-width: 100%; }
.approach-content .grid-4 { margin-top: 40px; }
.approach-content .grid-4 .feature { padding: 30px 18px; }

/* ---------- Footer (replicates mockup) ---------- */
/* Changed the default color rule from var(--on-dark-mut) to var(--on-dark) to unify all columns */
.site-footer { background: var(--dark); color: var(--on-dark); }

/* Main layout row holding the footer elements */
.site-footer__top { 
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 48px; 
  padding-block: 44px; 
}

.site-footer .brand__name { color: var(--on-dark); }

.foot-brand {
  display: flex;
  flex-direction: column;
}

/* Tightened line distance with uniform color profile */
.foot-tagline {
  margin-top: 2px;
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--on-dark);
  max-width: 30ch;
  line-height: 1.05;
}
.foot-tagline:first-of-type {
  margin-top: 10px;
}

/* Middle copy matches font, line distance, and crisp color layout rules */
.foot-serve { 
  font-family: var(--serif);
  font-size: 1.15rem; 
  line-height: 1.05; 
  color: var(--on-dark); 
  white-space: nowrap; 
  margin-top: 132px; /* Keeps the baseline aligned perfectly with the left column text */
}

/* Contact Column Right Side Box */
.foot-contact-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 132px; /* Keeps height consistent across all three items */
}

/* Kept the structural uppercase tracking labels clean and clear */
.foot-contact-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--on-dark);
}

.foot-links { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.foot-links a { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark); transition: color .2s ease; }
.foot-links a:hover { color: var(--gold); }

.foot-social { display: flex; gap: 10px; }
.foot-social a { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border: 1px solid rgba(236,230,218,.25); color: var(--on-dark); }
.foot-social a:hover { border-color: var(--gold); color: var(--gold); }
.foot-social svg { width: 14px; height: 14px; }

/* Ribbon stays low-profile and muted below the core split layout area */
.site-footer__bottom { 
  border-top: 1px solid rgba(236,230,218,.08); 
  display: flex; 
  justify-content: space-between; 
  gap: 16px; 
  flex-wrap: wrap; 
  padding-block: 16px; 
  font-size: .78rem; 
  letter-spacing: .04em; 
  color: var(--on-dark-mut); 
}

/* Responsive adjustment for screens that can't fit the single long line */
@media (max-width: 1120px) {
  .foot-serve {
    white-space: normal; /* Safe fallback to prevent breaking off the edge of smaller desktop viewports */
    max-width: 24ch;
  }
}

@media (max-width: 980px) {
  .site-footer__top { flex-direction: column; gap: 32px; }
  .foot-serve, .foot-contact-container { margin-top: 0; }
  .foot-serve { white-space: normal; max-width: 100%; }
}
/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { min-height: min(70vh, 560px); }
  .hero__content { max-width: 100%; padding-block: clamp(60px, 8vw, 100px); }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-4 .feature:nth-child(2) { border-right: 0; }
  .grid-4 .feature:nth-child(1), .grid-4 .feature:nth-child(2) { border-bottom: 1px solid var(--line); }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .approach-grid { grid-template-columns: 1fr; }
  .approach-image { min-height: 280px; }
  .approach-image img { position: absolute; inset: 0; width: 100%; height: 100%; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 170px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg-warm); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 22px; transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  .nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav a { width: 100%; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
  .nav a::after { display: none; }

  .grid-3 { grid-template-columns: 1fr; }
  .feature { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .grid-3 .feature:last-child { border-bottom: 0; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-4 .feature { border-right: 0; border-bottom: 1px solid var(--line); }

  .split { grid-template-columns: 1fr; gap: 20px; }
  .practice__grid { grid-template-columns: 1fr; gap: 20px; }
  .service-list { columns: 1; }

  .intel-item { grid-template-columns: 1fr; gap: 14px; padding: 24px 4px; }
  .intel-item__meta { display: flex; align-items: center; gap: 14px; }
  .intel-item__meta .tag-pill { margin-bottom: 0; }
  .intel-item .link-more { justify-self: start; }

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

  .cta-band .container { flex-direction: column; align-items: flex-start; }
  .jur-tags span:first-child { padding-left: 0; }
  .site-footer__top { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }



/* ---------- Practice Areas Light Hero Customizations ---------- */

/* 1. Force full-bleed background layout using the existing markup structure */
.hero--light-bg .hero__grid {
  display: block;
}

.hero--light-bg .hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero--light-bg .hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* 2. Completely strip out the dark background color overlay gradient */
.hero--light-bg.hero::after,
.hero--light-bg .hero__bg::after {
  display: none !important;
  background: none !important;
}

/* 3. Shift the text box all the way to the left container edge */
.hero--light-bg .hero__content {
  position: relative;
  z-index: 1;
  margin-left: 0;
  padding-left: var(--gutter); /* Aligns perfectly with header brand logo */
  max-width: 650px; /* Limits width so text doesn't span the whole screen */
}

/* 4. Drastically increase contrast by switching text colors from white to dark ink */
.hero--light-bg h1 {
  color: var(--ink) !important;
}

.hero--light-bg h1 em {
  color: var(--gold-deep) !important; /* Richer gold tone for readability */
}

.hero--light-bg .lead {
  color: var(--ink-soft) !important;
  font-weight: 500; /* Slight weight boost to prevent text disappearing in shadows */
}

.hero--light-bg .eyebrow {
  color: var(--gold-deep);
}

/* ---------- Enhanced Layout: Our Approach (Horizontal Variant) ---------- */

.approach-section {
  padding-block: clamp(60px, 8.5vw, 124px);
  background: var(--bg);
  overflow: hidden;
}

.approach-split-container {
  display: grid;
  /* 38% gives the wide image enough room to scale beautifully without shrinking the text */
  grid-template-columns: 38% 1fr; 
  align-items: center;
}

/* Container for the image */
.approach-side-media {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.approach-side-media img {
  width: 100%;
  height: auto;
  /* Contain ensures the entire wide image is visible—no cropping, no zoom */
  object-fit: contain; 
}

/* Content Space Alignment */
.approach-main-content {
  padding-left: clamp(32px, 5vw, 64px);
  padding-right: var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.approach-main-content .section-head {
  max-width: 100%;
  margin-bottom: 48px;
}

.approach-main-content .display {
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  line-height: 1.2;
}

/* 4 columns layout with vertical dividers */
.approach-features-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.approach-card {
  padding-inline: 18px;
  border-right: 1px solid var(--line);
}

.approach-card:first-child {
  padding-left: 0; 
}

.approach-card:last-child {
  border-right: none; 
  padding-right: 0;
}

.approach-card .feature__icon {
  width: 32px;
  height: 32px;
  color: var(--gold-deep);
  margin-bottom: 16px;
}

.approach-card h3 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
}

.approach-card p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 1024px) {
  .approach-split-container {
    grid-template-columns: 1fr; /* Stack vertically on tablets so the wide image has full room */
  }
  .approach-side-media {
    max-width: 500px;
    margin: 0 auto 40px auto;
  }
  .approach-main-content {
    padding-inline: var(--gutter);
  }
  .approach-features-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 0;
  }
  .approach-card {
    border-right: none;
    padding-inline: 16px;
  }
  .approach-card:nth-child(odd) {
    padding-left: 0;
  }
}

@media (max-width: 760px) {
  .approach-features-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .approach-card {
    padding: 0 !important;
  }
}

/* =====================================================================
   Intelligence Page: 50/50 Full-Bleed Proportional Grid Overrides
   ===================================================================== */

/* Master grid spans 100% of the screen width, sitting right under the header line */
.hero--light-bg.hero {
  background: var(--bg);
  min-height: auto; 
  padding: 0;
  color: var(--ink);
  display: grid;
  grid-template-columns: 1fr 1fr; /* Split screen exactly down the center line */
  align-items: stretch;
}

/* Clear any inherited dark theme background masks completely */
.hero--light-bg.hero::after,
.hero--light-bg .hero__bg::after {
  display: none !important;
  content: none !important;
}

/* Left text side column alignment wrapper */
.hero__content-col {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Pushes content container toward the left layout margin line */
  padding: clamp(60px, 8vw, 110px) var(--gutter);
}

/* Matches the site's default interior text width limits */
.hero__content-inner {
  width: 100%;
  max-width: 540px; /* Prevents text elements from breaking layout rows */
}

.hero--light-bg .hero__content-inner h1 {
  color: var(--ink) !important;
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: 24px;
}

.hero--light-bg .hero__content-inner .lead {
  color: var(--ink-soft) !important;
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  line-height: 1.6;
  margin-top: 0;
}

.hero--light-bg .hero__content-inner .eyebrow {
  color: var(--gold-deep) !important;
  margin-bottom: 24px;
}

/* Right side full-bleed image container */
.hero__media-col {
  width: 100%;
  height: 100%;
}

.hero__media-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Responsive Optimization Breakpoints ---------- */
@media (max-width: 980px) {
  .hero--light-bg.hero {
    grid-template-columns: 1fr; /* Switch cleanly to a vertical layout column on tablets */
  }

  .hero__content-col {
    justify-content: flex-start;
    padding-block: 48px;
  }

  .hero__content-inner {
    max-width: 100%;
  }

  .hero__media-col {
    height: 450px; /* Safe landscape ratio for tablet displays */
  }
}

@media (max-width: 760px) {
  .hero__content-col {
    padding-block: 36px;
  }
  
  .hero__media-col {
    height: 320px; /* Scale aspect bounding box down for mobile views */
  }
}