/* Import Claude's Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500;700&display=swap');

:root {
  /* Industrial Palette (Light Theme Optimized) */
  --yellow: #A4863D;
  --yellow-dark: #8A7031;
  --black: #0A0A0A;
  
  /* Off-whites instead of pure white */
  --bg-light: #E6E6FA; 
  --bg-gray: #D8D8EC;  
  --bg-darker: #DCDCD6; 
  --accent: #2B1E16; /* Restored deep dirt/soil brown */
  --accent-light: #3F2C20;
  --bg-dark: #1A120D; /* Restored for dark buttons/blocks */

  /* Legacy color aliases to prevent text/lines turning black */
  --gold: var(--yellow);
  --gold-light: #B8994B;
  --border-gold: var(--yellow-dark);

  --text-light: #E6E6FA;
  --text-light-muted: #DCDCD6;
  --text-dark: #0A0A0A;
  --text-muted: #555555;
  --concrete: #8a847d;

  --tape-stripe: repeating-linear-gradient(
    -45deg,
    var(--yellow) 0px,
    var(--yellow) 20px,
    var(--black) 20px,
    var(--black) 40px
  );
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { 
  scroll-behavior: smooth; 
  overflow-x: hidden;
}

body {
  background: var(--bg-light);
  color: var(--text-dark);
  font-family: 'Roboto Condensed', 'DM Sans', sans-serif;
  overflow-x: hidden;
}

/* ─── HAZARD TAPE ─── */
.hazard-tape {
  background: var(--tape-stripe);
  height: 28px;
  width: 100%;
  position: relative;
  z-index: 10;
}
.hazard-tape.thick { height: 48px; }
.hazard-tape.angled {
  transform: rotate(-1.5deg);
  margin: -5px 0;
  width: 105%;
  margin-left: -2.5%;
}

/* ─── INDUSTRIAL BUTTONS ─── */
.btn-primary {
  background: var(--yellow);
  color: var(--black);
  padding: 16px 40px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transition: all 0.25s;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-primary:hover { 
  background: var(--black); 
  color: var(--yellow);
  transform: translateY(-2px); 
}

/* Typography Reset for Modern Look */
h1,
h2,
h3,
h4 {
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.1;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

/* Gold Emphasis */
em {
  font-style: normal;
  color: var(--gold);
}

/* =========================================
   INDUSTRIAL NAVIGATION 
   (Styled for your exact HTML structure)
   ========================================= */
nav {
  position: fixed; 
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 8vw;
  height: 80px;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--yellow);
  transition: all 0.3s ease;
}

.logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}

.logo-img {
  height: 50px; 
  width: auto;
}

/* Fallback Logo Styling */
.logo-mark {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.8rem;
  color: var(--black);
  background: var(--yellow);
  padding: 4px 8px;
  line-height: 1;
}

.logo-text span {
  display: block;
}

.logo-text span:first-child {
  color: var(--yellow);
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: 0.05em;
}

.logo-text span:last-child {
  color: #f4f4f2; 
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Hide the text next to the logo on small mobile screens */
@media (max-width: 640px) {
  .company-name-text {
    display: none !important;
  }

  nav.scrolled {
    padding: 14px 5vw;
  }

  .section-dark,
  .section-gray,
  .mega-footer {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .editorial-value-card,
  .feature-card,
  .tl-content,
  .industrial-team-card {
    padding-left: 20px;
    padding-right: 20px;
  }

  .industrial-tl-block {
    padding: 24px 15px;
  }

  .timeline-stack-block {
    padding-left: 28px;
  }
}

/* 2. Scrolled State (Triggers quickly to show the background) */
nav.scrolled {
  background-color: rgba(10, 10, 10, 0.95); 
  backdrop-filter: blur(16px); 
  padding: 14px 60px; 
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border-dark);
}

/* 3. Hidden State (Glides completely out of frame) */
nav.nav-hidden {
  transform: translateY(-130%); 
  pointer-events: none; 
}

/* Links */
.nav-links { 
  display: flex; gap: 40px; list-style: none; margin: 0; padding: 0; align-items: center;
}

.nav-links > li > a, 
.dropbtn {
  color: #c4bdb4; 
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.2s;
  cursor: pointer;
  position: relative;
  padding-bottom: 4px;
  white-space: nowrap;
}

.nav-links > li > a::after,
.dropbtn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: width 0.3s;
}

.nav-links > li > a:hover,
.nav-links > li:hover > .dropbtn,
.nav-links > li > a.active,
.nav-links .dropbtn.active { 
  color: var(--yellow); 
}

.nav-links > li > a:hover::after,
.nav-links > li:hover > .dropbtn::after,
.nav-links > li > a.active::after,
.nav-links .dropbtn.active::after {
  width: 100%;
}

/* The Angled CTA Button */
a.nav-cta {
  background: var(--yellow);
  color: var(--black) !important;
  padding: 12px 28px !important;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0 !important; 
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  display: inline-block;
}

/* Force underline removal on button */
a.nav-cta::after {
  display: none !important;
}

/* Dynamic Industrial Hover State */
a.nav-cta:hover { 
  background: var(--bg-light); 
  color: var(--black) !important;
  transform: translateY(-2px); 
}

/* Interactive Click State */
a.nav-cta:active {
  transform: translateY(1px); /* Physically presses down */
}

/* ─── BUTTONS ─── */
.btn-gold {
  background: var(--gold);
  color: var(--bg-dark);
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.2s;
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.2s;
}

.btn-dark:hover {
  background: #000;
  transform: translateY(-2px);
}

/* ───  ACCENT / DIRT SECTION ─── */
.section-accent, .section-dirt {
  background: var(--accent);
  color: var(--bg-light);
  padding: 80px 8vw;
  position: relative;
}

.section-accent .section-title, .section-dirt .section-title {
  color: var(--bg-light);
}

/* Make the giant watermark fit the dark background */
.section-accent::after, .section-dirt::after {
  content: 'STANDARDS';
  position: absolute;
  left: -2%;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  font-family: 'Roboto Condensed', sans-serif;
  font-size: clamp(12rem, 25vw, 25rem);
  color: rgba(164, 134, 61, 0.05); /* Faint gold */
  pointer-events: none;
  user-select: none;
  z-index: 1; /* Pushes the watermark above section backgrounds */
}

/* ─── DARK MODE CARDS (Fixes the white border issue) ─── */
.section-accent .modern-card, .section-dirt .modern-card {
  /* No border — uses outline on hover instead to avoid overflow:hidden conflicts */
  color: var(--bg-light);
  z-index: 2;
}

.section-accent .modern-card h3, .section-dirt .modern-card h3 {
  color: var(--yellow);
}

.section-accent .modern-card p, .section-dirt .modern-card p {
  color: rgba(255, 255, 255, 0.7) !important; 
}

/* On hover, outline lights up yellow (outline ignores overflow:hidden) */
.section-accent .modern-card:hover, .section-dirt .modern-card:hover {
  outline-color: var(--yellow);
}

.section-yellow {
  background: var(--yellow);
  color: var(--black);
  padding: 80px 8vw;
  position: relative;
  text-align: center;
  overflow: hidden;
}

/* Tape overlay to give the yellow section texture */
.section-yellow::before {
  content: '';
  position: absolute; inset: 0;
  opacity: 0.05; /* Just enough to look textured */
  pointer-events: none;
}

.section-yellow .section-title {
  color: var(--black);
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.section-yellow p {
  color: #333;
  position: relative;
  z-index: 2;
}

.section-yellow .btn-primary {
  background: var(--black);
  color: var(--yellow);
  position: relative;
  z-index: 2;
  margin-top: 30px;
}

.section-yellow .btn-primary:hover {
  background: var(--bg-light);
  color: var(--black);
}

/* ─── LIGHT HERO SECTION ─── */
.modern-hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  /* Increased bottom padding to prevent content from being cut off by the slanted clip */
  padding: 140px 8vw calc(80px + 2.62vw);
  position: relative;
  overflow: hidden;
  
  
  /* Bring back the image with a light/white overlay */
  background-image: 
    linear-gradient(rgba(90, 64, 42, 0.7), rgba(59, 42, 26, 0.85) 85%), 
    url('../images/photo-1477959858617-67f85cf4f1df.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

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

/* Center and space out the hero buttons */
.hero-actions-center {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.hero-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--yellow);
  padding: 6px 16px;
  margin-bottom: 28px;
  display: inline-flex; align-items: center; gap: 10px;
}

/* Massive Roboto Condensed Fonts */
.hero-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: clamp(5rem, 12vw, 12rem);
  line-height: 0.88;
  letter-spacing: -0.01em;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 30px;
}

.hero-title .outline {
  color: var(--yellow);
}

/* Floating Bar Overlapping Hero */
.floating-bar {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-light);
  color: var(--text-dark);
  display: flex;
  gap: 40px;
  padding: 20px 40px;
  border-radius: var(--radius-pill);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  z-index: 10;
  width: 90%;
  max-width: 1000px;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border-light);
}

.float-stat {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.float-stat strong {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.float-stat span {
  font-size: 24px;
  font-weight: 800;
  color: var(--gold);
}

/* ─── SECTIONS (Light/Gray Alternating) ─── */
.section-light {
  padding: 80px 8vw;
  position: relative;
  /* Image with a very light overlay */
  background-image: 
    linear-gradient(rgba(244, 244, 242, 0.9), rgba(244, 244, 242, 0.9)), 
    url('../images/photo-yt489h52i3n385r7.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Creates a cool parallax effect */
}
.section-gray {
  background: var(--bg-gray);
  padding: 80px 8vw;
}

.section-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.92;
  color: var(--text-dark);
  margin-bottom: 50px;
}
.section-title em, .section-title .accent { 
  color: var(--yellow); 
  font-style: normal;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.intro-text h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 24px;
  color: var(--text-dark);
}

.intro-text p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.intro-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.intro-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--gold);
  opacity: 0.2;
  border-radius: var(--radius-md);
  pointer-events: none;
}

.intro-img img {
  width: 100%;
  display: block;
}

/* Find this section in style.css */
.section-dark {
  padding: 80px 60px;
  color: var(--text-light);
  text-align: center;

  /* --- NEW BACKGROUND SYSTEM --- */
  /* The linear-gradient is an opaque color drawn ABOVE the image */
  background: linear-gradient(rgba(53, 22, 4, 0.418), rgba(41, 16, 2, 0.993)),
    url('../images/photo-yt489h52i3n385r7.jpg');
  /* CHANGEME: Replace with actual image path */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* ------------------------------- */
}

.section-dark h2 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 16px;
}

.section-dark>p {
  color: var(--text-light);
  margin-bottom: 60px;
  font-size: 16px;
}

/* ─── INDUSTRIAL CARDS (Fixed Symmetry) ─── */
.modern-grid {
  display: grid;
  /* Force exactly 3 columns on desktop */
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  
  /* Constrain the width and center the grid */
  max-width: 1200px;
  margin: 0 auto; 
}

/* Modifier for a 2-column layout on desktop */
.modern-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
}

/* =========================================
   ABOUT PAGE: INDUSTRIAL TWEAKS
   ========================================= */

/* Industrial Timeline Blocks */
.industrial-tl-block {
  background: var(--bg-light);
  border: 2px solid var(--black);
  padding: 32px 36px;
  position: relative;
  transition: transform 0.3s, border-color 0.3s;
  box-shadow: 6px 6px 0px rgba(10, 10, 10, 0.1); /* Hard structural shadow */
}

.industrial-tl-block:hover {
  transform: translate(-4px, -4px);
  box-shadow: 10px 10px 0px rgba(164, 134, 61, 0.8); /* Yellow hard shadow on hover */
  border-color: var(--yellow);
}

/* Industrial Rivet Dots for Timeline */
.tl-dot.industrial-rivet {
  background: var(--yellow);
  border: 3px solid var(--black);
  box-shadow: none;
  width: 18px;
  height: 18px;
  margin-left: -2px; /* Centers the wider rivet */
}

/* Team Cards */
.industrial-team-card {
  background: var(--bg-light);
  border: 2px solid var(--black);
  padding: 40px 30px;
  position: relative;
  transition: transform 0.3s, border-color 0.3s;
  text-align: left;
  display: flex;
  flex-direction: column;
  z-index: 20; /* Safely clears the background watermark */
}

.industrial-team-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
  z-index: 2;
}

.industrial-team-card:hover {
  transform: translateY(-8px);
  border-color: var(--black);
}

.industrial-team-card:hover::after { 
  transform: scaleX(1); 
}

/* Ensure the new team cards follow the centered flex grid rules */
.centered-flex-grid .industrial-team-card {
  flex: 1 1 300px; /* Tells the card to grow/shrink based on space */
  max-width: 360px; /* Prevents them from stretching too wide */
  width: 100%;
}

/* Team Initials Badge */
.industrial-team-badge {
  display: inline-flex;
  align-items: center;
  padding: 0px 40px;
  justify-content: center;
  width: 60px; 
  height: 60px;
  background: var(--black);
  color: var(--yellow);
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
}

/* ─── PREMIUM IMAGE CARDS ─── */
.modern-card {
  position: relative;
  min-height: 420px;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 8px;
  /* outline renders outside the element on top of everything — doesn't interact
     with overflow:hidden, so it won't cause any background bleed */
  outline: 2px solid transparent;
  outline-offset: 0px;
  overflow: hidden;
  transition: transform 0.4s ease, outline-color 0.4s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  /* Forces GPU rasterization — eliminates sub-pixel anti-alias fringe at corners */
  will-change: transform;
  transform: translateZ(0);
}

/* The Dark Gradient Overlay */
.modern-card::before {
  content: '';
  position: absolute;
  /* 1px inset so the gradient never touches the very edge pixel that the
     browser anti-aliases — the background-image handles that outer pixel */
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.1) 0%,
    rgba(10, 10, 10, 0.85) 70%,
    rgba(10, 10, 10, 0.95) 100%
  );
  z-index: 0;
  transition: background 0.4s ease;
  /* pointer-events:none so text remains interactive */
  pointer-events: none;
}

/* Yellow Bottom Border Animation */
.modern-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 2;
}

/* Hover Animations */
.modern-card:hover {
  transform: translateY(-10px) translateZ(0);
  /* outline sits outside/on top of the element — no interaction with overflow:hidden */
  outline-color: var(--yellow);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.modern-card:hover::after { 
  transform: scaleX(1); 
}

/* Darken the overlay slightly on hover for drama */
.modern-card:hover::before {
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.3) 0%,
    rgba(10, 10, 10, 0.9) 70%,
    rgba(10, 10, 10, 1) 100%
  );
}

/* ─── CARD TEXT STYLING (Forced Light Mode) ─── */
.modern-card .card-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: block;
  position: relative;
  z-index: 1;
  text-shadow: 0 4px 10px rgba(0,0,0,0.5); 
}

.modern-card h3 {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 2.2rem;
  letter-spacing: 0.05em;
  margin-bottom: 15px;
  color: var(--bg-light); /* Pure off-white */
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  position: relative;
  z-index: 1;
}

.modern-card p {
  color: rgba(255, 255, 255, 0.75) !important; /* Soft white/gray */
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

/* ─── RESPONSIVE GRID BEHAVIOR ─── */
@media (max-width: 1024px) {
  .modern-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
  }
}

@media (max-width: 640px) {
  .modern-grid,
  .modern-grid.two-col {
    grid-template-columns: 1fr; /* 1 column on mobile phones */
  }
}


.modern-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.card-link {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s;
}

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

/* ─── ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }



/* ─── SECTION: GRAY FEATURES (VALUES) ─── */
.section-gray {
  background: transparent;
  padding: 80px 60px;
}

.features-header {
  max-width: 1200px;
  margin: 0 auto 60px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.features-header h2 {
  font-size: 40px;
  color: var(--text-dark);
  max-width: 500px;
}

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

.feature-card {
  background: var(--bg-light);
  padding: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 40px;
  left: -2px;
  width: 4px;
  height: 30px;
  background: var(--gold);
  border-radius: 0 4px 4px 0;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── INDUSTRIAL BACKGROUND WATERMARKS ─── */
#services, #values {
  position: relative;
  overflow-x: clip; /* Prevents horizontal scrollbars without making it a scroll container */
  overflow-y: visible; /* Allows the watermark to bleed into other sections vertically */
}

/* Ensure the cards and text stay ABOVE the massive background letters */
#services > *, #values > * {
  position: relative;
  z-index: 2;
}

/* Giant "SERVICES" text rotated on the right side */
#services::before {
  content: 'SERVICES';
  position: absolute;
  right: -23.5%;
  top: 75%;
  transform: translateY(-50%) rotate(90deg);
  font-family: 'Roboto Condensed', sans-serif;
  font-size: clamp(12rem, 25vw, 25rem); /* Scales with screen size */
  color: rgba(10, 10, 10, 0.411); /* Very faint dark gray */
  pointer-events: none;
  user-select: none;
  line-height: 1;
  white-space: nowrap;
  z-index: 1; /* Pushes the watermark above section backgrounds */
}

/* Blueprint Grid for the Core Values section */
#values::before {
  content: '';
  position: absolute; 
  inset: 0;
  background-image:
    linear-gradient(rgba(10, 10, 10, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 10, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
  pointer-events: none;
}

/* Giant "STANDARDS" text rotated on the left side of Core Values */
#values::after {
  content: 'STANDARDS';
  position: absolute;
  left: -34%;
  top: 25%;
  transform: translateY(-50%) rotate(-90deg);
  font-family: 'Roboto Condensed', sans-serif;
  font-size: clamp(12rem, 25vw, 25rem);
  color: rgba(164, 135, 61, 0.37); /* Faint gold/yellow */
  pointer-events: none;
  user-select: none;
  line-height: 1;
  white-space: nowrap;
  z-index: 1; /* Pushes the watermark above adjacent section backgrounds */
}

/* ─── TICKER / MARQUEE (Angled) ─── */
.parallax-text {
  white-space: nowrap;
  overflow: hidden;
  padding: 20px 0;
  background: var(--black);
  border-bottom: 4px solid var(--yellow);
  
  /* Matches the hazard tape angle perfectly */
  transform: rotate(-1.5deg);
  width: 105%;
  margin-left: -2.5%;
  
  /* Pulls it up tight against the hazard tape above it */
  margin-top: -5px; 
  margin-bottom: 60px; /* Space before the next section */
  position: relative;
  z-index: 5;
  
  /* Optional: Box shadow to make the angled banner pop off the background */
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.parallax-track {
  display: inline-flex;
  animation: ticker 25s linear infinite;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.2em;
  color: var(--bg-light); /* Keeps the text light against the black banner */
  gap: 60px;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.parallax-track span.sep { 
  color: var(--yellow); 
}

/* ─── MEGA FOOTER ─── */
.mega-footer {
  background: rgba(10, 10, 10, 0.95);
  color: var(--text-light);
  padding: 80px 60px 40px;
  position: relative;
  overflow: hidden;
  border-top: 2px solid var(--gold);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto 100px;
  position: relative;
  z-index: 2;
}

.footer-brand h4 {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--gold);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 250px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 80px;
}

.link-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-group strong {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.link-group a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.8;
  transition: color 0.2s;
}

.link-group a:hover {
  color: var(--gold);
  opacity: 1;
}

.footer-massive-text {
  font-size: 18vw;
  font-weight: 800;
  color: rgba(164, 134, 61, 0.03);
  /* Faint gold */
  text-align: center;
  line-height: 0.7;
  user-select: none;
  pointer-events: none;
  position: absolute;
  bottom: -2vw;
  left: 0;
  right: 0;
  font-family: 'Roboto Condensed', sans-serif;
  letter-spacing: 5px;
}

/* =========================================
   DROPDOWN MENU 
   ========================================= */
.dropdown {
  position: relative;
}

.dropbtn {
  display: flex;
  align-items: center;
  gap: 6px;
}

.arrow {
  font-size: 0.6rem;
  transition: transform 0.3s ease;
}

.dropdown:hover .arrow {
  transform: rotate(180deg);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(10, 10, 10, 0.98);
  border-top: 2px solid var(--yellow);
  list-style: none;
  padding: 10px 0;
  margin: 0;
  min-width: 260px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 1001;
  max-height: 80vh;
  overflow-y: auto;
}

.dropdown:hover .dropdown-content {
  display: block;
  animation: fadeSlideUp 0.2s ease forwards;
}

.dropdown-content li {
  width: 100%;
}

/* Fix the row issue by forcing a vertical stack */
.dropdown-content.locked {
  display: flex;
  flex-direction: column; /* <-- THIS FIXES THE ROW ISSUE */
  animation: fadeSlideUp 0.3s ease forwards;
}

/* Keep the arrow rotated UP when the dropdown is locked */
.dropdown:has(.locked) .arrow {
  transform: rotate(180deg);
}

/* Keep the parent text YELLOW when the dropdown is locked */
.dropdown:has(.locked) .dropbtn {
  color: var(--yellow);
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-content a {
  display: block;
  padding: 12px 24px !important;
  color: #c4bdb4 !important; /* Overrides any base link styles */
  text-decoration: none;
  font-size: 0.8rem !important;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.2s;
  border: none !important;
}

.dropdown-content a:hover,
.dropdown-content a.active {
  background: rgba(164, 134, 61, 0.1) !important;
  color: var(--yellow) !important;
  padding-left: 28px !important; /* Slight indent on hover */
}

/* Remove the bottom gold line effect from main nav for dropdown items */
.dropdown-content a::after {
  display: none;
}

@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(164, 134, 61, 0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(164, 134, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(164, 134, 61, 0); }
}

.dropbtn.triggered {
  animation: pulseRing 0.6s ease-out;
  border-radius: 4px;
}

/* ─── MOBILE NAVIGATION ─── */

@keyframes fadeDim {
    from { opacity: 0; }
    to { opacity: 1; }
}

body.menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    animation: fadeDim 0.3s ease forwards;
    pointer-events: auto; /* Ensures clicks on the background are caught */
}

.menu-toggle {
  visibility: hidden;
}

/* ─── UNIFIED MOBILE NAVIGATION (1024px) ─── */
@media (max-width: 1024px) {
    /* --- Hamburger Button (MK Dreza Structure) --- */
    .menu-toggle {
      visibility: visible;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 32px;
        height: 22px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1002;
        
        /* Force it to stay on the right side of the nav */
        position: absolute;
        right: 5%; 
        top: 50%;
        transform: translateY(-50%);
    }

    .menu-toggle .bar {
        display: block;
        height: 3px;
        width: 100%;
        background-color: #FFFFFF; /* Hardcoded white to guarantee visibility */
        border-radius: 4px;
        transition: all 0.3s ease;
    }

    /* Hamburger to X Animation */
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(9.5px) rotate(45deg); background-color: var(--yellow);}
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; background-color: var(--yellow);}
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); background-color: var(--yellow);}

    /* Navigation Drawer - Extends to Bottom */
    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        height: 100vh;
        height: 100dvh;
        width: 85vw;
        max-width: 350px;
        background: rgba(10, 10, 10, 0.98); /* Changed to dark industrial background */
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        gap: 15px;
        padding: 100px 25px 40px 25px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        border-left: 1px solid var(--border-dark);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto; 
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        z-index: 1001;
    }

    .nav-links.active {
        transform: translateX(0); /* Slide in */
    }

    /* Removes the containing block trap when the mobile menu is open */
    body.menu-open nav {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transform: none !important;
        transition: none !important;
    }

    /* Force Dropdowns to Stack Vertically */
    nav .dropdown {
        width: 100%;
        display: block;
        position: static; 
    }

    nav .nav-links a:not(.dropdown-content a), 
    nav .dropbtn {
        width: 100%;
        display: flex;
        justify-content: space-between; 
        align-items: center;
        padding: 12px 0;
        color: var(--text-light);
        text-decoration: none;
        font-size: 1.1rem;
        transition: color 0.2s ease;
    }

    nav .nav-links a:not(.dropdown-content a):hover, 
    nav .dropbtn:hover,
    nav .dropbtn.active,
    nav .nav-links a:not(.dropdown-content a).active {
        color: var(--yellow);
    }

    /* Disable hover gold lines on mobile */
    .nav-links a:hover::after,
    .nav-links a.active::after {
        width: 0;
    }

    /* Sub-Navigation (The Smooth Accordion) */
    nav .dropdown-content {
        position: static !important; 
        display: flex !important; 
        flex-direction: column;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 0 !important;
        visibility: hidden;
        transition: max-height 0.4s ease-in-out, opacity 0.3s ease, padding 0.3s ease;
        
        /* Strip Desktop Styles */
        background: transparent !important;
        backdrop-filter: none !important;         
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        min-width: auto !important;
    }

    .dropdown-content::-webkit-scrollbar { width: 6px; }
.dropdown-content::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); }
.dropdown-content::-webkit-scrollbar-thumb { background: var(--yellow); border-radius: 10px; }


    /* The Active/Open State */
    nav .dropdown-content.locked {
        animation: none !important;
        max-height: 1500px; /* Increased to fit all 14 service items smoothly */
        opacity: 1 !important;
        visibility: visible;
        padding: 5px 0 15px 0 !important; 
    }

    nav .dropdown-content a {
        padding: 12px 0 12px 20px !important; /* Indentation */
        font-size: 0.95rem;
        display: block;
        width: 100%;
        color: #c4bdb4 !important;
        border-left: 1px solid rgba(255, 255, 255, 0.15) !important; 
        margin-left: 10px; 
    }

    nav .dropdown-content a:hover,
    nav .dropdown-content a.active {
        color: var(--gold) !important;
        border-left: 2px solid var(--gold) !important; 
        color: var(--yellow) !important;
        border-left: 2px solid var(--yellow) !important; 
    }

    /* Kill Desktop Hovers */
    nav .dropdown:hover .dropdown-content:not(.locked) {
        max-height: 0 !important;
        opacity: 0 !important;
        padding: 0 !important;
        visibility: hidden; 
    }

    /* Disable arrow rotation on hover for mobile unless it's locked open */
    nav .dropdown:hover:not(:has(.locked)) .arrow {
        transform: rotate(0deg);
    }

    /* Center the CTA Button */
    .nav-cta {
        width: 100%;
        text-align: center;
        margin-top: 15px;
    }
}

/* ─── COMBINED LAYOUT ADJUSTMENTS (900px) ─── */
@media (max-width: 900px) {
  /* Grid & Section Fixes */
  .intro-grid { 
    grid-template-columns: 1fr; 
    gap: 40px;
  }
  .section-light { padding-top: 120px; }
  .features-grid { grid-template-columns: 1fr; }
  
  .features-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  /* Floating Bar Fixes */
  .floating-bar {
    flex-direction: column;
    gap: 20px !important;
    text-align: center;
    border-radius: var(--radius-md);
    bottom: -120px;
    padding: 30px;
  }
  .float-stat { align-items: center; }

  /* Footer Fixes */
  .footer-top { flex-direction: column; gap: 40px; }
  .footer-links { flex-direction: column; gap: 40px; }

  /* Timeline Fixes */
  .timeline::before { left: 20px; }
  .tl-entry {
    grid-template-columns: 40px 1fr;
    gap: 20px;
  }
  .tl-dot {
    grid-column: 1;
    margin-left: 13px;
  }
  .tl-entry.left .tl-content,
  .tl-entry.right .tl-content { grid-column: 2; }
  .tl-empty { display: none; }

  /* Editorial Layout Fixes */
  .editorial-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .editorial-hero-content { padding: 160px 40px 80px 40px; }
  .editorial-hero-image { height: 400px; }
  .editorial-hero-image::before {
    top: 0; left: 0; right: 0; bottom: auto;
    height: 2px; width: 100%;
  }

  /* Split Content Fixes */
  .modern-split {
    display: flex !important;
    flex-direction: column !important;
    gap: 40px !important;
  }
  .split-image { aspect-ratio: 16 / 9; }
  .modern-split.reverse .split-image { order: -1; }

  /* Forms */
  .modern-input { padding-right: 10px; }
  .form-row-new,
  .checkbox-group-modern { 
    grid-template-columns: 1fr !important; 
    gap: 15px; 
  }

  .contact-sidebar {
    position: static !important;
    width: 100% !important;
    margin-bottom: 20px;
  }
  .contact-sidebar-block,
  .contact-form-block {
    padding: 25px !important;
  }
  .requirement-selector {
    padding: 15px !important;
  }
  .contact-number-grid {
    grid-template-columns: 1fr !important;
    gap: 15px;
  }
}

/* ─── ABOUT PAGE TIMELINE ─── */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold) 10%, var(--gold) 90%, transparent);
  opacity: 0.5;
  transform: translateX(-50%);
}

.tl-entry {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 0 32px;
  padding: 0 0 64px;
  position: relative;
}

.tl-content {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  padding: 32px 36px;
  border-radius: var(--radius-md);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.tl-content:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  border-color: var(--gold);
}

.tl-entry.left .tl-content {
  grid-column: 1;
  grid-row: 1;
}

.tl-entry.left .tl-empty {
  grid-column: 3;
  grid-row: 1;
}

.tl-entry.right .tl-content {
  grid-column: 3;
  grid-row: 1;
}

.tl-entry.right .tl-empty {
  grid-column: 1;
  grid-row: 1;
}

.tl-dot {
  grid-column: 2;
  grid-row: 1;
  width: 14px;
  height: 14px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--bg-light);
  box-shadow: 0 0 0 1px var(--gold);
  flex-shrink: 0;
  margin-top: 36px;
}

.tl-date {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}

.tl-date::before {
  content: '◆';
  font-size: 6px;
}

.tl-content h3 {
  font-size: 24px;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.tl-content p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
}

.tl-tag {
  display: inline-block;
  margin-top: 16px;
  background: rgba(164, 134, 61, 0.1);
  border: 1px solid var(--border-gold);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}

.team-initials {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(164, 134, 61, 0.1);
  border: 1px solid rgba(164, 134, 61, 0.3);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--gold);
}

/* Centered Flex Grid for odd numbers of cards */
.centered-flex-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.centered-flex-grid .modern-card {
  flex: 1 1 300px;
  /* Allows cards to grow and shrink, with a base width of 300px */
  max-width: 360px;
  /* Prevents the bottom row from stretching too wide */
}


/* ─── EDITORIAL HERO (Reusable Master Template) ─── */
.editorial-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 55vh;
  background-color: var(--bg-darker);
  /* Fallback base color */
  color: var(--text-light);
  position: relative;
  border-bottom: 1px solid var(--border-dark);

  /* THE MAGIC: Keeps the gradient fixed, but injects the image from HTML */
  background-image: linear-gradient(rgba(0, 0, 0, 0.753), rgba(0, 0, 0, 0.877)), var(--hero-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.editorial-hero-content {
  /* Made the left/right padding symmetrical so it stays perfectly centered */
  padding: 140px 20px 80px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 800px;
  /* Constrains the width so text doesn't stretch too far */
  z-index: 2;
}

.editorial-hero .hero-title {
  margin-bottom: 24px;
  font-size: clamp(48px, 6vw, 80px);
}

.editorial-hero-desc {
  font-size: 18px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 600px;
}

/* ─── MODERN SPLIT LAYOUT (For Service Detail Pages) ─── */
.modern-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.split-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.split-text {
  padding: 20px 0;
}

.split-text h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 24px;
}

.split-text p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  opacity: 0.8;
  /* Ensures text looks good on both light and dark backgrounds */
}

/* ─── SERVICE DETAIL COMPONENTS (Light Theme Optimized) ─── */

.service-list-card {
  background: #FFFFFF;
  /* White card for light sections */
  border: 1px solid #EEEEEE;
  /* Very subtle border */
  padding: 40px;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  /* Soft shadow */
}

.service-list-card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.service-list-card h3 {
  color: var(--text-dark);
  /* Dark text for readability */
  margin-bottom: 24px;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Premium Diamond Bullet List */
.premium-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.premium-list li {
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

/* .premium-list li::before {
  content: '◆';
  color: var(--gold);
  font-size: 10px;
  margin-top: 4px;
  flex-shrink: 0;
} */

/* Slogan Band Styling */
.slogan-band {
  background: var(--gold);
  color: var(--bg-darker);
  padding: 30px 20px;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.slogan-band a {
  color: var(--bg-darker);
  text-decoration: underline;
  transition: opacity 0.2s;
}

.slogan-band a:hover {
  opacity: 0.7;
}

/* ─── CONTACT PAGE SPECIFIC ─── */
/* Default Desktop Row Layout */
.form-row-new {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.contact-number-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 20px;
}

.contact-sidebar-block {
  margin-bottom: 30px;
  padding: 30px;
}

.contact-form-block {
  padding: 50px;
}

/* Modern Label Styling */
.modern-label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.info-item-new {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.info-item-new .gold-dot {
  color: var(--gold);
  font-size: 25px;
  margin-top: 4px;
}

.info-item-new strong {
  display: block;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.info-item-new p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── 1. INPUT BORDERS (Make them visible) ─── */
.editorial-form input, 
.editorial-form select, 
.editorial-form textarea {
    width: 100% !important;
    padding: 14px 18px !important;
    background: #ffffff !important; /* Pure white makes the box stand out */
    border: 1px solid #a0a0a0 !important; /* Darkened the border significantly */
    border-radius: 8px !important;
    font-family: inherit !important;
    font-size: 14px !important;
    color: #111 !important;
    display: block;
    box-sizing: border-box;
    transition: all 0.3s ease; /* Smooth transition for focus */
}

/* ─── 2. CHECKBOX LAYOUT & SPACING ─── */
.checkbox-group-modern {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px 15px !important; /* Tighter top/bottom spacing, comfortable left/right */
    margin-bottom: 25px;
}

.modern-check {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important; /* Pulled the text slightly closer to the box */
    font-size: 13px !important;
    cursor: pointer;
}

/* ─── 3. CHECKBOX INTERACTIVE TEXT ─── */
/* Default state (Muted) */
.modern-check span {
    color: var(--text-muted); 
    font-weight: 400;
    transition: color 0.2s, font-weight 0.2s;
}

/* Checked state (High Contrast) */
.modern-check input[type="checkbox"]:checked + span {
    color: var(--text-dark); /* Turns dark black */
    font-weight: 700; /* Turns bold */
}

/* Optional: Make the checkbox itself gold when clicked */
.modern-check input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    cursor: pointer;
    accent-color: var(--gold); 
}

/* ─── 4. RED ASTERISK CLASS ─── */
.req-star {
    color: #e63946; /* Vibrant Red */
    margin-left: 3px;
}

.status-alert.success {
  background: #f0fdf4;
  color: #166534;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  border: 1px solid #bbf7d0;
}

/* --- BEHAVIOR SHIELD ANIMATIONS --- */
@keyframes bs-spin { 100% { transform: rotate(360deg); } }
@keyframes bs-pop { 0% { transform: scale(0.7); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.bs-trigger:hover .bs-checkbox { border-color: var(--yellow) !important; }

/* --- SUBTLE ARCHITECTURAL GRID BACKGROUND --- */

/* --- ABSOLUTE MOBILE STACKING FOR CONTACT PAGE --- */
@media (max-width: 1024px) {
  #contact-page .modern-split {
    display: flex !important;
    flex-direction: column !important;
    gap: 40px !important;
  }
  #contact-page .contact-sidebar,
  #contact-page .contact-form-column {
    position: static !important;
    width: 100% !important;
  }
}
.bg-grid {
  background-color: var(--bg-light);
}

/* --- TIMELINE: DARK BLOCKS --- */
.tl-content.dark-block {
  background: var(--bg-dark);
  color: var(--text-light);
  border: 1px solid var(--border-dark);
  /* Hard, structural drop shadow instead of a soft blur */
  box-shadow: 8px 8px 0px rgba(164, 134, 61, 0.2); 
  border-radius: 0; /* Removing rounded corners makes it feel like cut stone/steel */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tl-content.dark-block:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0px rgba(164, 134, 61, 0.4);
  border-color: var(--gold);
}

.tl-content.dark-block h3 {
  color: var(--text-light);
}

.tl-content.dark-block p {
  color: rgba(255, 255, 255, 0.7);
}

.outline-tag {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}

/* --- EDITORIAL VALUE CARDS --- */
.editorial-value-card {
  background: var(--bg-light);
  padding: 50px 40px;
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--gold); /* Heavy structural header */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease;
  z-index: 1;
}

.editorial-value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* The Massive Background Numbers */
.value-watermark {
  position: absolute;
  bottom: -25px;
  right: -10px;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 160px;
  line-height: 1;
  color: var(--bg-gray); /* Very faint grey so it doesn't ruin readability */
  z-index: 0;
  user-select: none;
  transition: color 0.3s ease;
}

.editorial-value-card:hover .value-watermark {
  color: rgba(164, 134, 61, 0.1); /* Fades to a faint gold on hover */
}

/* Keep text readable over the watermark */
.value-content {
  position: relative;
  z-index: 2;
}

.value-content .card-icon {
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 20px;
  font-size: 40px;
}

.value-content h3 {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.value-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* --- LIGHT IMMERSIVE PARALLAX BACKGROUND --- */
.story-parallax-bg {
  position: relative;
  padding: 140px 20px 120px;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  /* background-attachment: fixed;  */
  overflow: hidden;
}

.story-overlay-light {
  position: absolute;
  inset: 0;
  /* Smoother transition: Solid white at the very edges, 
     evenly translucent (75% white) across the whole middle */
  background: linear-gradient(
    to bottom, 
    rgb(197, 196, 196) 0%, 
    rgba(197, 196, 196, 0.75) 40%, 
    rgba(197, 196, 196, 0.75) 60%, 
    rgba(197, 196, 196, 1) 100%
  );
  z-index: 1;
}

/* --- REFINED LIGHT CARDS --- */
.tl-content.light-glass-block {
  background: #ffffff; /* Solid, crisp white */
  color: var(--text-dark);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-md); /* Brings back the soft modern corners */
  
  /* A premium, soft neutral shadow instead of the harsh gold */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05), 0 5px 15px rgba(0, 0, 0, 0.02); 
  
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.tl-content.light-glass-block:hover {
  /* Floats gently upward on hover */
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
  border-color: var(--gold);
}

.tl-content.light-glass-block h3 {
  color: var(--text-dark);
}

.tl-content.light-glass-block p {
  color: var(--text-muted);
  line-height: 1.8;
}

.tl-dot {
  width: 14px;
  height: 14px;
  background: var(--gold);
  border-radius: 50%;
  /* Removed the white border so it looks clean against the photo */
  border: 2px solid var(--gold); 
  box-shadow: 0 0 0 4px rgba(110, 88, 50, 0.344); /* Soft gold glow */
  flex-shrink: 0;
  margin-top: 36px;
  position: relative;
  z-index: 3;
}

/* Update the tag for light mode */
.outline-tag {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 6px 12px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-block;
  margin-top: 15px;
}

/* =========================================
   ABOUT PAGE: ASYMMETRIC TIMELINE (Whitespace Fix)
   ========================================= */
.timeline-split {
  display: grid;
  grid-template-columns: 1fr 1.5fr; /* 40% Left, 60% Right */
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 20;
}

/* Left Column: Stays fixed on screen while right side scrolls */
.timeline-sticky-header {
  position: sticky;
  top: 140px; /* Sits comfortably below the nav bar */
  align-self: start;
  z-index: 20;
}

/* Right Column: Stacked blocks */
.timeline-stack {
  display: flex;
  flex-direction: column;
  gap: 60px;
  position: relative;
}

/* Heavy yellow vertical steel beam (Pushed to back) */
.timeline-stack::before {
  content: '';
  position: absolute;
  top: 10px; 
  bottom: 0;
  left: 7px;
  width: 6px;
  background: var(--yellow);
  border: 1px solid var(--black);
  z-index: 0; /* Changed from 1 to 0 to push it behind the dots */
}

.timeline-stack-block {
  position: relative;
  padding-left: 60px; 
  z-index: 20; /* Safely clears the background watermark */
}

/* Force the rivet dot to perfectly align and sit ON TOP of the line */
.timeline-stack-dot {
  position: absolute;
  left: 1px; /* Tweaked from 0 to 1px to perfectly center it on the line */
  top: 0;
  z-index: 10 !important; /* Forces the dot to the absolute front */
  width: 20px !important;
  height: 20px !important;
  margin-left: 0 !important;
  border-width: 3px !important;
}

/* Adjust tag for the new dark blocks */
.industrial-tl-block .tl-tag {
  display: inline-block;
  margin-top: 20px;
}

/* Mobile Breakpoint */
@media (max-width: 900px) {
  .timeline-split {
    grid-template-columns: 1fr; /* Stack vertically on phones */
    gap: 50px;
  }
  .timeline-sticky-header {
    position: static; /* Disable sticky on mobile */
  }
}