/* ==========================================================================
   POLISHING, CONTRAST & ACCESSIBILITY ENHANCEMENTS
   ========================================================================== */

/* 1. Header Contrast & Polished Backdrop */
.header {
  transition: background 0.35s cubic-bezier(0.22, 1, 0.36, 1), 
              backdrop-filter 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.header.scrolled {
  background: rgba(5, 7, 5, 0.94) !important;
  backdrop-filter: blur(18px) saturate(120%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(120%) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}
.header .desktop-nav a {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  font-weight: 600 !important;
}
.header.scrolled .desktop-nav a {
  text-shadow: none;
}

/* 2. Text Readability & Contrast across Sections */
.v24-intro-copy > p,
.c25-approach-copy > p,
.c25-career-head p,
.i26-copy > p {
  color: #37413b !important; /* Rich readable slate green on ivory, WCAG AA compliant */
  font-weight: 450;
  line-height: 1.75;
}

.v24-pillars small,
.i26-rule small,
.c25-step p {
  color: #4a544e !important;
  font-weight: 500;
}

.v24-news-meta p,
.i26-story-copy p,
.i26-feature-copy p,
.c25-career-copy p,
.v24-event-copy p {
  color: #d8ded8 !important; /* Crisp readability on dark overlays */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.v24-news-meta small,
.i26-story-copy small,
.i26-feature-copy small,
.c25-career-copy small {
  color: var(--copper2) !important;
  letter-spacing: 0.16em !important;
  font-weight: 600 !important;
}

/* 3. Closing Sections Contrast (Burgundy / Copper Call-to-actions) */
.v24-closing {
  background: linear-gradient(135deg, #122c1f 0%, #0d2117 60%, #1d1017 100%) !important;
  border-top: 1px solid rgba(226, 185, 59, 0.22);
  color: #ffffff !important;
}
.v24-closing h2 span {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.v24-closing h2 em {
  color: var(--v24-copper2) !important;
  text-shadow: 0 2px 10px rgba(226, 185, 59, 0.25);
}
.v24-closing p {
  color: rgba(240, 245, 240, 0.92) !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
}
.v24-contact-line {
  border-bottom-color: rgba(255, 255, 255, 0.2) !important;
}
.v24-contact-line svg {
  color: var(--v24-copper2) !important;
}
.v24-contact-line small {
  color: rgba(255, 255, 255, 0.75) !important;
}
.v24-contact-line b {
  color: #ffffff !important;
  letter-spacing: 0.04em;
}
.v24-big-cta {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1.5px solid var(--v24-copper2) !important;
  color: #ffffff !important;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.v24-big-cta:hover,
.v24-big-cta:focus-visible {
  background: var(--v24-copper2) !important;
  color: #070907 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(226, 185, 59, 0.3);
}

/* 4. Interactive Tabs Ergonomics & Visual Stability */
.i26-feature-visual,
.c25-career-visual {
  background: #0b0f0c !important;
}
.i26-feature-visual:after,
.c25-career-visual:after {
  background: linear-gradient(0deg, rgba(6, 9, 6, 0.94) 0%, rgba(6, 9, 6, 0.45) 55%, transparent 100%) !important;
}
.i26-feature-btn,
.c25-career-btn {
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.i26-feature-btn:focus-visible,
.c25-career-btn:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: -2px;
}

/* 5. Mobile & Touch Ergonomics */
@media (max-width: 768px) {
  .nav {
    height: 64px !important;
  }
  .brand-logo-img {
    height: 32px !important;
  }
  .menu-btn {
    width: 44px !important;
    height: 44px !important;
  }
  .i26-feature-nav,
  .c25-career-list {
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .i26-feature-btn,
  .c25-career-btn {
    scroll-snap-align: start;
    min-width: 170px !important;
    min-height: 84px !important;
    padding: 14px 16px !important;
  }
}

/* 6. Form Fields Polish & Touch Target Accessibility */
.field input,
.field textarea,
.field select {
  font-size: 15px !important; /* Prevents auto-zoom on iOS */
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.24) !important;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--copper2) !important;
  box-shadow: 0 1px 0 var(--copper2);
}
.modal .field input,
.modal .field textarea,
.modal .field select {
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.28) !important;
  color: #0b0f0c !important;
}
.modal .field input:focus,
.modal .field textarea:focus,
.modal .field select:focus {
  border-color: #8B1538 !important;
  box-shadow: 0 1px 0 #8B1538;
}

/* 7. Subtle focus-visible outlines for keyboard accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--copper2) !important;
  outline-offset: 3px !important;
}


/* Micro-polish on kickers & secondary labels */
.v24-kicker,
.c25-kicker,
.i26-kicker {
  color: var(--copper2) !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.c25-hero-side p,
.c25-hero-side b {
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}

.c25-step p {
  color: #b2bcb4 !important;
}

.modal .eyebrow {
  color: #7a152e !important; /* Elegant burgundy on light modal */
  font-weight: 700 !important;
  letter-spacing: 0.16em !important;
}

.modal .field label {
  color: #49544d !important;
  font-weight: 600 !important;
}

.modal .field select:focus {
  border-bottom-color: #8B1538 !important;
  box-shadow: 0 1px 0 #8B1538 !important;
}

/* Ensure team card images are always crisp and rendered */
.v24-team-card {
  background: #0d120e !important;
}
.v24-team-card img {
  opacity: 1 !important;
}


/* Authentic EM Consulting Brand Logo Styling */
.brand {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
}

.brand-logo-img {
  height: 46px !important;
  width: auto !important;
  max-width: 140px;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.brand:hover .brand-logo-img {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.08);
}

.v24-footer .brand-logo-img,
.footer .brand-logo-img {
  height: 44px !important;
}

.menu-top .brand-logo-img {
  height: 44px !important;
}

@media (max-width: 768px) {
  .brand-logo-img {
    height: 38px !important;
  }
}
