/* 
  ================================================
  CR NEXUS - HOMEPAGE LAYOUT STYLESHEET
  ================================================
*/

/* 1. Design Tokens & Root Variables */
:root {
  /* Brand Palette */
  --navy: #14233D;
  --orange: #FF6C00;
  --orange-2: #FFA94D;
  --cream: #FFF1E8;
  --white: #FFFFFF;

  /* Accessible orange tokens (WCAG 2.1 AA).
     --orange stays vivid and is for DECORATION ONLY: borders, icon strokes,
     rules, dividers, decorative fills. Never put text on it or make text of it.
     --orange-ink : orange TEXT. #B84600 = 5.37:1 on white, 4.86:1 on cream.
     --orange-cta : orange BUTTON FILL carrying white text. 5.37:1 with #FFF.
     Vivid #FF6C00 measures 2.84:1 on white and 2.84:1 under white text — both fail. */
  --orange-ink: #B84600;
  --orange-cta: #B84600;
  /* Hover must go DARKER, not lighter. The old hovers (#FFA94D, #ff7e1a,
     #E85D00, #e56100) all lightened the fill, dropping white text as low as
     1.90:1. #8F3600 gives 7.79:1 with white. */
  --orange-cta-hover: #8F3600;
  
  /* Additional UI Palette */
  --bg-light: #F8FAFC;
  --bg-dark: #0A111F;
  --border-color: #E2E8F0;
  --text-dark: #1E293B;
  --text-secondary: #475569;
  --text-muted: #64748B;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(20, 35, 61, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(20, 35, 61, 0.08), 0 2px 4px -1px rgba(20, 35, 61, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(20, 35, 61, 0.06), 0 4px 6px -2px rgba(20, 35, 61, 0.04);
  --shadow-premium: 0 20px 40px rgba(20, 35, 61, 0.1);
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. Base Reset & Defaults */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
  background: var(--navy);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--orange);
}

/* 3. Top Announcement Bar */
.announcement-bar {
  background-color: var(--cream);
  border-bottom: 1px solid rgba(20, 35, 61, 0.05);
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1001;
}

.announcement-text {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
}

/* 4. Sticky Header Navigation */
.global-header {
  position: sticky;
  top: 0;
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
  z-index: 1000;
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}

/* Scrolled state shadow */
.global-header.header-scrolled {
  padding: 1rem 0;
  box-shadow: 0 10px 30px rgba(20, 35, 61, 0.06);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Brand logo styling */
.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.header-brand:hover {
  opacity: 0.95;
}

.header-brand svg {
  width: 152px !important;
  height: 38px !important;
  display: block;
}

.header-logo-text {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.header-logo-text .cr {
  color: var(--orange-ink);
}

.header-logo-text .nexus {
  color: var(--navy);
}

/* Desktop Navigation Link Area */
.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  margin-left: 3.5rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 22px;
  align-items: center;
}

.nav-item a {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--navy);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  position: relative;
  padding: 6px 0;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

/* Slide-in underline active indicators */
.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--orange-cta);
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item a:hover {
  color: var(--orange-ink);
}

.nav-item a:hover::after,
.nav-item.active a::after {
  width: 100%;
}

.nav-item.active a {
  color: var(--orange-ink);
}

/* Header Action Controls */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Search Icon Trigger */
.search-trigger {
  background: transparent;
  border: none;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.search-trigger:hover {
  color: var(--orange-ink);
  transform: scale(1.05);
}

.search-trigger svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}

/* Primary CTA Button */
.btn-cta {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background-color: var(--orange-cta);
  color: var(--white);
  border: none;
  padding: 12px 26px;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 10px rgba(255, 108, 0, 0.2);
}

.btn-cta:hover {
  background-color: var(--orange-cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(255, 108, 0, 0.3);
}

.btn-cta:active {
  transform: translateY(0);
}

/* Hamburger Toggle Menu */
.hamburger-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.hamburger-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--navy);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.hamburger-toggle.menu-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-toggle.menu-open span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger-toggle.menu-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* 5. Mobile Navigation Drawer Overlay */
.mobile-nav-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(20, 35, 61, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-panel.menu-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  list-style: none;
  gap: 1.8rem;
  text-align: center;
}

.mobile-menu-item a {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: #FFFFFF;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 6px 0;
  transition: var(--transition-smooth);
  display: inline-block;
}

.mobile-menu-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--orange-cta);
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-item a:hover,
.mobile-menu-item.active a {
  color: var(--orange-ink);
}

.mobile-menu-item a:hover::after,
.mobile-menu-item.active a::after {
  width: 100%;
}

.mobile-nav-panel .btn-cta {
  font-size: 1rem;
  padding: 14px 40px;
  width: 80%;
  max-width: 300px;
}

/* 6. Hero Section */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  /* JPEG first as the universal fallback; image-set upgrades to WebP where
     supported. Source was 677KB — the WebP is 66KB, the recompressed JPEG 104KB. */
  background-image: url('assets/hero-bg-3d.jpg');
  background-image: -webkit-image-set(url('assets/hero-bg-3d.webp') type('image/webp'), url('assets/hero-bg-3d.jpg') type('image/jpeg'));
  background-image: image-set(url('assets/hero-bg-3d.webp') type('image/webp'), url('assets/hero-bg-3d.jpg') type('image/jpeg'));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Phones get the 768px-wide crop: 28KB instead of 66KB. */
@media (max-width: 768px) {
  .hero-section {
    background-image: url('assets/hero-bg-3d-768.jpg');
    background-image: -webkit-image-set(url('assets/hero-bg-3d-768.webp') type('image/webp'), url('assets/hero-bg-3d-768.jpg') type('image/jpeg'));
    background-image: image-set(url('assets/hero-bg-3d-768.webp') type('image/webp'), url('assets/hero-bg-3d-768.jpg') type('image/jpeg'));
  }
}

/* Visual high-contrast gradient overlay (Cream fade to transparent image) */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
              rgba(255, 241, 232, 0.98) 0%, 
              rgba(255, 241, 232, 0.95) 40%, 
              rgba(255, 241, 232, 0.7) 65%, 
              rgba(255, 241, 232, 0.1) 100%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 3rem 0;
}

/* Left Hero Content */
.hero-content {
  width: 65%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-tagline {
  font-family: 'Archivo', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange-ink);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: 'Archivo', sans-serif;
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -2px;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2.2rem;
  max-width: 650px;
}

.hero-content .btn-cta {
  padding: 14px 32px;
  font-size: 0.85rem;
}



/* 7. Fullscreen Search Overlay Modal */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(20, 35, 61, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.search-active {
  opacity: 1;
  visibility: visible;
}

.search-modal-container {
  width: 90%;
  max-width: 650px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}

/* Search input styling */
.search-box-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box-wrap input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 3px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-family: 'Archivo', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  padding: 12px 60px 12px 0;
  outline: none;
  transition: border-bottom-color 0.3s ease;
}

.search-box-wrap input:focus {
  border-bottom-color: var(--orange);
}

.search-box-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.search-box-wrap button {
  position: absolute;
  right: 0;
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-box-wrap button:hover {
  color: var(--orange-ink);
}

.search-box-wrap button svg {
  width: 28px;
  height: 28px;
}

.search-hint {
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Close search button overlay */
.btn-close-search {
  position: absolute;
  top: 40px;
  right: 40px;
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-close-search:hover {
  color: var(--orange-ink);
  transform: rotate(90deg);
}

.btn-close-search svg {
  width: 32px;
  height: 32px;
}

/* 8. Responsive Breakpoints */
@media (max-width: 992px) {
  /* Hero Stacking */
  .hero-section {
    padding: 3rem 0;
  }
  .hero-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 4rem;
  }
  .hero-content {
    width: 100%;
  }
  .hero-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 1200px) {
  .desktop-nav {
    margin-left: 1.5rem;
  }
  .nav-menu {
    gap: 16px;
  }
  .nav-item a {
    font-size: 0.76rem;
  }
}

@media (max-width: 1024px) {
  /* Collapse Nav */
  .desktop-nav {
    display: none;
  }
  .hamburger-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  
  .hero-title {
    font-size: 2.2rem;
  }
}

/* =================================================
   STEP 2 - HOMEPAGE EXTENSIONS (A, B, C)
   ================================================= */

/* General Section Utilities */
.section-padding {
  padding: 6.5rem 0;
}

.section-tagline {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange-ink);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0.8rem;
  display: inline-block;
}

.section-heading {
  font-family: 'Archivo', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
  max-width: 700px;
}

/* SECTION A: Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 3.5rem;
}

.service-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-card:hover {
  border-color: var(--orange);
  transform: translateY(-6px);
  box-shadow: var(--shadow-premium);
}

.service-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background-color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-ink);
  margin-bottom: 1.8rem;
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon-box {
  background-color: var(--orange-cta);
  color: var(--white);
}

.service-icon {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  font-family: 'Archivo', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.8rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* SECTION B: Credibility Block */
.credibility-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4.5rem;
}

.credibility-image-box {
  width: 50%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--border-color);
  display: flex;
}

.credibility-image-box img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.credibility-image-box:hover img {
  transform: scale(1.03);
}

.credibility-content {
  width: 45%;
}

.credibility-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2rem;
}

/* Large Accent Stat Box */
.accent-stat-box {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-left: 4px solid var(--orange);
  padding-left: 1.5rem;
  margin-top: 1.5rem;
}

.accent-stat-header {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.accent-stat-header .stat-number {
  font-family: 'Archivo', sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.accent-stat-header .stat-suffix {
  font-family: 'Archivo', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--orange-ink);
  text-transform: uppercase;
}

.stat-caption {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* SECTION C: Stats Counter */
.stats-section {
  background-color: var(--navy);
  padding: 5.5rem 0;
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stats-subtitle {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange-2);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 3.5rem;
  display: inline-block;
}

.stats-grid {
  display: flex;
  width: 100%;
  justify-content: space-around;
  gap: 2rem;
  flex-wrap: wrap;
}

.counter-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 220px;
}

.counter-number {
  font-family: 'Archivo', sans-serif;
  font-size: 4.2rem;
  font-weight: 800;
  color: var(--orange-ink);
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.counter-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive Overrides for Step 2 */
@media (max-width: 992px) {
  .credibility-container {
    flex-direction: column;
    gap: 3.5rem;
  }
  .credibility-image-box, 
  .credibility-content {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .section-heading {
    font-size: 2.1rem;
  }
  .stats-grid {
    gap: 3rem;
  }
}

/* =================================================
   STEP 3 - HOMEPAGE EXTENSIONS (D, E, F, G, H, Footer)
   ================================================= */

/* SECTION D: Testimonials Section */
.testimonials-section {
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 3.5rem;
}

.testimonial-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-premium);
  border-color: var(--orange);
}

.testimonial-text {
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 1.8rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--navy);
  color: var(--orange-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: 'Space Mono', monospace;
  border: 1px solid rgba(255, 108, 0, 0.1);
}

.author-info h4 {
  font-family: 'Archivo', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy);
}

.author-info span {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: var(--orange-ink);
  text-transform: uppercase;
  font-weight: 700;
}







/* GLOBAL SITE FOOTER */
.site-footer,
.global-footer {
  background-color: var(--navy);
  padding: 5.5rem 0 0 0;
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 4rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.col-logo {
  gap: 1.2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}



.footer-blurb {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.footer-tagline {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  /* The footer is dark navy in BOTH themes, so this one keeps the vivid orange:
     #FF6C00 on #14233D is 5.55:1, whereas the darkened ink would be 2.93:1. */
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

.footer-col h3 {
  font-family: 'Archivo', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 8px;
  width: fit-content;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--orange-ink);
  padding-left: 4px;
}

.col-contact {
  gap: 1rem;
}

.contact-item {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 0.8rem;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-smooth);
}

.footer-socials a:hover {
  border-color: var(--orange);
  color: var(--orange-ink);
  background: rgba(255, 108, 0, 0.05);
  transform: translateY(-2px);
}

.footer-socials svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  background-color: #0d1727;
  padding: 1.5rem 0;
  text-align: center;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}



/* Footer Map Section Restyling */
.footer-map-section {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-map-header h3 {
  font-family: 'Archivo', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 8px;
  width: fit-content;
  margin: 0;
}

.footer-map-wrapper {
  margin: 0 auto;
  max-width: 960px;
  width: 100%;
  box-sizing: border-box;
}

.footer-map-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  height: 300px;
  background-color: #0b1526; /* Dark background placeholder while loading */
}

.footer-map-card iframe {
  border: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.map-directions-pill {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  padding: 10px 18px;
  font-size: 0.8rem;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255, 108, 0, 0.4);
  z-index: 10;
  background-color: var(--orange-cta);
  color: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.map-directions-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 108, 0, 0.6);
  background-color: var(--orange-cta-hover); /* slightly lighter orange */
}

/* Floating Map Location Card */
.map-location-card {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background-color: var(--white);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
  max-width: calc(100% - 190px); /* Leave room for Get Directions button */
  box-sizing: border-box;
  transition: transform 0.2s ease;
}

.map-location-card:hover {
  transform: translateY(-2px);
}

.location-card-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.location-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0; /* allows child overflow/truncation */
}

.location-card-title {
  font-family: 'Archivo', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  /* Was var(--navy), which is not theme-aware: navy on the dark card gave
     1.20:1 in dark mode. --text-dark is navy in light, cream in dark. */
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.location-card-addr {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.location-card-link {
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.2s ease;
  text-decoration: none;
  padding-left: 2px;
}

.location-card-link:hover {
  color: var(--orange-ink);
}

@media (max-width: 768px) {
  .footer-map-section {
    padding: 2.5rem 0;
  }
  .footer-map-card {
    height: 260px;
  }
  .map-directions-pill {
    bottom: 15px;
    right: 15px;
    padding: 8px 14px;
    font-size: 0.75rem;
  }
  .map-location-card {
    bottom: 15px;
    left: 15px;
    padding: 8px 10px;
    gap: 8px;
    max-width: calc(100% - 150px);
  }
  .location-card-title {
    font-size: 0.75rem;
  }
  .location-card-addr {
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  .map-location-card {
    max-width: calc(100% - 135px);
  }
  .location-card-addr {
    max-width: 90px;
  }
}

/* Additional Responsive Breakpoints for Step 3 */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-footer,
  .global-footer {
    padding-top: 4rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 3rem;
  }
}

/* ==================================================
   ENQUIRY FORM MODAL STYLES
   ================================================== */
body.modal-open {
  overflow: hidden;
}

.enquiry-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(20, 35, 61, 0.75); /* Dark navy translucent overlay */
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10005; /* Above everything else */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.enquiry-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.enquiry-modal-container {
  background-color: var(--white);
  border-radius: 16px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
  width: 90%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-sizing: border-box;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.enquiry-modal-overlay.active .enquiry-modal-container {
  transform: translateY(0) scale(1);
}

.enquiry-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--navy);
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.2s ease;
  z-index: 10;
}

.enquiry-modal-close:hover {
  color: var(--orange-ink);
  transform: rotate(90deg);
}

.enquiry-modal-close svg {
  width: 22px;
  height: 22px;
}

.enquiry-modal-content {
  padding: 1.8rem 2.2rem;
}

.enquiry-modal-content h2 {
  font-family: 'Archivo', sans-serif;
  color: var(--navy);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.enquiry-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

#enquiry-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

@media (max-width: 576px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
}

#enquiry-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

#enquiry-form .required {
  color: var(--orange-ink);
}

#enquiry-form input,
#enquiry-form select,
#enquiry-form textarea {
  font-family: 'Inter', sans-serif;
  padding: 10px 14px;
  border: 1.5px solid rgba(20, 35, 61, 0.15);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--navy);
  outline: none;
  background-color: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

#enquiry-form input::placeholder,
#enquiry-form textarea::placeholder {
  color: rgba(20, 35, 61, 0.4);
}

#enquiry-form input:focus,
#enquiry-form select:focus,
#enquiry-form textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 108, 0, 0.15);
}

#enquiry-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314233D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

.error-feedback {
  font-size: 0.78rem;
  color: #ff4d4d;
  display: none;
  font-weight: 500;
}

.form-group.has-error input,
.form-group.has-error select {
  border-color: #ff4d4d;
}

.form-group.has-error .error-feedback {
  display: block;
}

.btn-submit-enquiry {
  background-color: var(--orange-cta);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  margin-top: 0.25rem;
  box-shadow: 0 4px 12px rgba(255, 108, 0, 0.2);
}

.btn-submit-enquiry:hover {
  background-color: var(--orange-cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 108, 0, 0.35);
}

.btn-submit-enquiry:disabled {
  background-color: rgba(20, 35, 61, 0.15) !important;
  color: rgba(20, 35, 61, 0.4) !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Modal Status Message Cards */
.enquiry-status-msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 0;
  animation: fadeIn 0.3s ease;
}

.status-icon {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.enquiry-status-msg h3 {
  font-family: 'Archivo', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.8rem;
}

.enquiry-status-msg p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 320px;
}

.btn-status-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 12px 28px;
  font-size: 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === PUBLICATIONS === */
.publications-hero {
  background-color: var(--navy);
  padding: 6.5rem 0 5.5rem 0;
  position: relative;
  overflow: hidden;
}

.publications-hero-kicker {
  font-family: 'Archivo', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange-2);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  display: block;
}

.publications-hero-title {
  font-family: 'Archivo', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--white);
  margin-bottom: 1.2rem;
}

.publications-hero-desc {
  font-size: 1.1rem;
  color: var(--cream);
  line-height: 1.6;
  max-width: 650px;
}

.publications-section {
  background-color: var(--bg-light);
  padding: 6.5rem 0;
}

.publications-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.publication-card {
  background-color: var(--white);
  border-radius: 16px;
  border-left: 4px solid var(--orange);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.publication-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-premium);
}

/* The badge keeps a cream background in BOTH themes, so its text needs the
   fixed dark orange (4.86:1 on cream) rather than the theme-aware ink. */
.publication-year-badge {
  align-self: flex-start;
  background-color: var(--cream);
  color: var(--orange-cta);
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
  display: inline-block;
  text-transform: uppercase;
}

.publication-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 0.8rem;
}

.publication-authors {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.publication-authors strong {
  font-weight: 700;
  color: var(--navy);
}

.publication-venue {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.8rem;
  line-height: 1.4;
}

.publication-btn-container {
  margin-top: auto;
}

.publication-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  height: 44px;
  padding: 0 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
  box-sizing: border-box;
}

.publication-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
  fill: none;
}

.publication-btn-orange {
  background-color: var(--orange-cta);
  color: var(--white);
  border: 1px solid var(--orange);
  box-shadow: 0 4px 10px rgba(255, 108, 0, 0.15);
}

.publication-btn-orange:hover {
  background-color: var(--orange-cta-hover);
  border-color: var(--orange-cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(255, 108, 0, 0.25);
}

.publication-btn-orange:active {
  transform: translateY(0);
}

.publication-btn-navy {
  background-color: transparent;
  /* var(--navy) is fixed, so this outline button vanished on the dark card
     (1.20:1). --text-dark tracks the theme. */
  color: var(--text-dark);
  border: 2px solid var(--text-dark);
}

.publication-btn-navy:hover {
  background-color: var(--text-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(20, 35, 61, 0.15);
}

.publication-btn-navy:active {
  transform: translateY(0);
}

@media (max-width: 900px) {
  .publications-hero-title {
    font-size: 2.5rem;
  }
  .publications-section {
    padding: 4.5rem 0;
  }
  .publications-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .publication-card {
    padding: 2rem 1.5rem;
  }
}

/* =================================================
   RESEARCH SERVICES SECTION STYLES
   ================================================= */

/* Tagline / kicker */
#services .section-tagline {
  font-family: 'Archivo', sans-serif !important;
}

/* Heading */
#services .section-heading {
  font-family: 'Archivo', sans-serif !important;
}

/* Section Description */
#services .section-description {
  font-family: 'Archivo', sans-serif !important;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: -0.8rem;
  margin-bottom: 2.5rem;
  max-width: 650px;
}

/* Grid layout with 2 columns on desktop (>=900px) */
.services-grid-v2 {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 28px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch !important;
}

@media (max-width: 900px) {
  .services-grid-v2 {
    grid-template-columns: 1fr !important;
  }
}

/* Premium 2-column card styling */
.service-card-v2 {
  width: 100% !important;
  float: none !important;
  background-color: #FFF9F4 !important; /* Soft warm tinted background */
  border: 1px solid #ECECEC !important;
  border-radius: 16px !important;
  padding: 32px !important;
  box-shadow: 0 8px 24px rgba(20,35,61,0.06) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  height: 100% !important;
  position: relative !important;
  box-sizing: border-box !important;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
              background-color 0.3s ease,
              box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.service-card-v2:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 36px rgba(20, 35, 61, 0.12) !important;
  background-color: #FFFFFF !important; /* Brighten to pure white on hover */
}

/* Small square icon badge at top-left */
.service-card-v2 .service-icon-box {
  width: 44px !important;
  height: 44px !important;
  border-radius: 8px !important;
  background-color: #FFF1E8 !important; /* Soft-orange background */
  color: var(--orange-ink) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 1.25rem !important;
  box-shadow: none !important;
  transition: transform 0.3s ease !important;
}

.service-card-v2:hover .service-icon-box {
  transform: scale(1.05) !important;
}

.service-card-v2 .service-icon {
  width: 20px !important;
  height: 20px !important;
  stroke: #FF6C00 !important;
}

/* Card title */
.service-card-v2 h3 {
  font-family: 'Archivo', sans-serif !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: #14233D !important;
  margin-bottom: 0.6rem !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
  width: auto !important;
}

/* Card short description */
.service-card-desc {
  font-family: 'Archivo', sans-serif !important;
  font-weight: 400 !important;
  font-size: 0.95rem !important;
  color: #64748B !important;
  line-height: 1.5 !important;
  margin-bottom: 1.5rem !important;
}

/* Checklist layout */
.service-card-v2 ul {
  list-style: none !important;
  list-style-type: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
  padding: 0 !important;
  margin: 16px 0 2rem 0 !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.85rem !important;
}

.service-card-v2 li {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-family: 'Archivo', sans-serif !important;
  font-weight: 400 !important;
  font-size: 0.95rem !important;
  color: #334155 !important;
  line-height: 1.5 !important;
  text-align: left !important;
  margin-bottom: 8px !important;
  transition: color 0.2s ease !important;
}

.service-card-v2 li:hover {
  color: #14233D !important;
}

/* Circular check badge (check inside circle) */
.service-card-v2 .circular-check-badge {
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background-color: #FFF1E8 !important; /* Soft-orange background */
  color: var(--orange-ink) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.service-card-v2 .circular-check-badge svg {
  display: block !important;
  stroke-width: 4 !important;
  width: 10px !important;
  height: 10px !important;
  color: var(--orange-ink) !important;
}

/* Full-width solid orange discuss button at the bottom */
.service-card-v2 .btn-discuss {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  padding: 12px !important;
  border: 1.5px solid #FF6C00 !important;
  border-radius: 10px !important;
  background-color: var(--orange-cta) !important; /* Solid orange fill, AA-safe under white text */
  color: #FFFFFF !important; /* White text */
  text-decoration: none !important;
  font-family: 'Archivo', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  transition: all 0.3s ease !important;
  margin-top: auto !important; /* Push button to bottom of equal-height card */
}

.service-card-v2 .btn-discuss:hover {
  background-color: #E85D00 !important; /* Deeper orange on hover */
  border-color: #E85D00 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(232, 93, 0, 0.2) !important;
  text-decoration: none !important;
}

/* =================================================
   WHY CHOOSE US SECTION STYLES
   ================================================= */

#why-choose-us .section-tagline {
  font-family: 'Archivo', sans-serif !important;
}

#why-choose-us .section-heading {
  font-family: 'Archivo', sans-serif !important;
}

#why-choose-us .section-description {
  font-family: 'Archivo', sans-serif !important;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: -0.8rem;
  margin-bottom: 2.5rem;
  max-width: 650px;
}

.why-choose-us-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 24px !important;
  margin-top: 3.5rem;
  width: 100%;
}

@media (min-width: 640px) {
  .why-choose-us-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (min-width: 1024px) {
  .why-choose-us-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* Trust Tile Cards */
.trust-tile {
  background-color: #FFF9F4 !important; /* Soft warm tinted background matching services */
  border: 1px solid #ECECEC !important;
  border-radius: 16px !important;
  padding: 24px !important;
  box-shadow: 0 8px 24px rgba(20, 35, 61, 0.04) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important; /* Left-aligned */
  text-align: left !important; /* Left-aligned */
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
              background-color 0.3s ease,
              box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  height: 100% !important;
  box-sizing: border-box !important;
}

.trust-tile:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 36px rgba(20, 35, 61, 0.08) !important;
  background-color: #FFFFFF !important; /* Brighten to pure white on hover */
}

/* Small square icon badge at top */
.trust-tile .trust-icon-box {
  width: 48px !important;
  height: 48px !important;
  border-radius: 12px !important; /* Rounded badge */
  background-color: #FFF1E8 !important; /* Soft-orange background */
  color: var(--orange-ink) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 0 !important; /* Handled by h4 margin-top */
  transition: transform 0.3s ease !important;
  flex-shrink: 0 !important;
}

.trust-tile:hover .trust-icon-box {
  transform: scale(1.05) !important;
}

/* Explicit SVG size constraint in this section */
#why-choose-us svg {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
}

.trust-tile .trust-icon {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  color: var(--orange-ink) !important;
  stroke: #FF6C00 !important;
  flex-shrink: 0 !important;
}

/* Trust Card Title */
.trust-tile h4 {
  font-family: 'Archivo', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #14233D !important;
  line-height: 1.4 !important;
  margin: 12px 0 0 0 !important;
}

/* Trust Card Description */
.trust-desc {
  font-family: 'Archivo', sans-serif !important;
  font-size: 0.88rem !important;
  color: #64748B !important; /* Muted grey */
  line-height: 1.4 !important;
  margin: 6px 0 0 0 !important;
}

/* =================================================
   BLOG SECTION STYLES
   ================================================= */

#blog .section-tagline {
  font-family: 'Archivo', sans-serif !important;
}

#blog .section-heading {
  font-family: 'Archivo', sans-serif !important;
}

#blog .section-description {
  font-family: 'Archivo', sans-serif !important;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: -0.8rem;
  margin-bottom: 2.5rem;
  max-width: 650px;
}

.blog-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 24px !important;
  margin-top: 3.5rem;
  width: 100%;
}

@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* Blog Cards */
.blog-card {
  background-color: var(--white) !important;
  border: 1px solid #ECECEC !important;
  border-radius: 16px !important;
  padding: 32px !important;
  box-shadow: 0 8px 24px rgba(20, 35, 61, 0.04) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: left !important;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
              box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  height: 100% !important;
  box-sizing: border-box !important;
  position: relative !important;
}

.blog-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 36px rgba(20, 35, 61, 0.1) !important;
}

/* Small square icon badge at top */
.blog-card .blog-icon-box {
  width: 48px !important;
  height: 48px !important;
  border-radius: 12px !important; /* Rounded badge */
  background-color: #FFF1E8 !important; /* Soft-orange background */
  color: var(--orange-ink) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 1.25rem !important;
  transition: transform 0.3s ease !important;
  flex-shrink: 0 !important;
}

.blog-card:hover .blog-icon-box {
  transform: scale(1.05) !important;
}

/* Explicit SVG size constraint in this section */
#blog svg {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
}

.blog-card .blog-icon {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  color: var(--orange-ink) !important;
  stroke: #FF6C00 !important;
  flex-shrink: 0 !important;
}

/* Blog Card Title */
.blog-card h3 {
  font-family: 'Archivo', sans-serif !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #14233D !important;
  line-height: 1.4 !important;
  margin: 0 0 0.5rem 0 !important;
}

/* Blog Card Description */
.blog-desc {
  font-family: 'Archivo', sans-serif !important;
  font-size: 0.9rem !important;
  color: #64748B !important; /* Muted grey */
  line-height: 1.5 !important;
  margin: 0 !important;
}

/* Blog Card Link Wrapper */
.blog-card-wrapper {
  text-decoration: none !important;
  color: inherit !important;
  display: block !important;
  height: 100% !important;
}

/* Subtle Read Article Cue */
.blog-read-more {
  margin-top: auto !important;
  padding-top: 1.25rem !important;
  font-family: 'Archivo', sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: var(--orange-ink) !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: gap 0.2s ease, color 0.2s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.blog-card-wrapper:hover .blog-read-more {
  gap: 10px !important;
  color: #FFA94D !important;
}

/* =================================================
   ARTICLE PAGE LAYOUT & TYPOGRAPHY
   ================================================= */

/* Article Hero Band */
.article-hero {
  background-color: #14233D !important;
  padding: 5rem 0 !important;
  color: #FFFFFF !important;
  text-align: left !important;
}

.article-hero-container {
  max-width: 760px !important;
  width: 90% !important;
  margin: 0 auto !important;
}

.article-kicker {
  font-family: 'Archivo', sans-serif !important;
  /* Sits on the dark article hero, so it keeps the vivid orange (5.55:1). */
  color: var(--orange) !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 3px !important;
  margin-bottom: 0.75rem !important;
  display: block !important;
}

.article-title {
  font-family: 'Archivo', sans-serif !important;
  font-weight: 700 !important;
  font-size: 2.25rem !important;
  line-height: 1.25 !important;
  color: #FFFFFF !important;
  margin: 0 0 1rem 0 !important;
}

.article-meta {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.9rem !important;
  color: rgba(255, 241, 232, 0.8) !important; /* cream/grey mix */
  margin: 0 !important;
}

/* Article Body Section */
.article-section {
  background-color: #FFFFFF !important;
  padding: 4rem 0 !important;
}

.article-container {
  max-width: 760px !important;
  width: 90% !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Article Typography */
.article-body-text {
  font-family: 'Archivo', sans-serif !important;
  font-weight: 400 !important;
  font-size: 1.05rem !important;
  line-height: 1.8 !important;
  color: #475569 !important; /* dark grey text-secondary */
  margin: 0 0 1.75rem 0 !important;
}

.article-subheading {
  font-family: 'Archivo', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.45rem !important;
  color: #14233D !important; /* navy */
  margin: 2.25rem 0 1rem 0 !important;
  line-height: 1.3 !important;
}

/* Back Link Button */
.back-link {
  font-family: 'Space Mono', monospace !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  /* .article-section keeps a white background in both themes, so this link
     needs the fixed dark orange. The theme-aware ink turns vivid in dark mode
     and drops to 2.84:1 against that white. */
  color: var(--orange-cta) !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: color 0.2s ease, transform 0.2s ease !important;
  margin-bottom: 2.5rem !important;
  align-self: flex-start !important;
}

.back-link.bottom {
  margin-top: 1.5rem !important;
  margin-bottom: 0 !important;
}

.back-link:hover {
  color: #14233D !important;
  transform: translateX(-4px) !important;
}

/* === OUR TEAM === */
#our-team {
  background-color: var(--bg-light, #F8FAFC);
}

.team-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.team-kicker {
  font-family: 'Archivo', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange-ink);
  text-transform: uppercase;
  letter-spacing: 3px;
  display: block;
  margin-bottom: 0.5rem;
}

.team-heading {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 2.25rem;
  /* Was a hardcoded #14233D — invisible in dark mode (1.00:1). */
  color: var(--text-dark);
  line-height: 1.2;
}

.team-card-v1 {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF9F4 100%);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 10px 25px rgba(20, 35, 61, 0.10), 0 20px 48px rgba(20, 35, 61, 0.08);
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
  border: 1px solid rgba(20, 35, 61, 0.06);
  border-top: 4px solid #FF6C00;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.team-card-v1:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(20, 35, 61, 0.16), 0 30px 60px rgba(20, 35, 61, 0.12);
}

.team-photo-v1 {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 4px solid #FFFFFF;
  box-shadow: 0 8px 20px rgba(20, 35, 61, 0.18);
  display: block;
}

/* SAFEGUARD to prevent image ballooning */
#our-team img {
  width: 140px !important;
  height: 140px !important;
}

.team-name-v1 {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: #14233D;
  margin-bottom: 0.35rem;
}

.team-role-line1-v1,
.team-role-line2-v1 {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--orange-ink);
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.team-role-line2-v1 {
  margin-bottom: 1rem;
}

.team-divider-v1 {
  border: none;
  border-top: 1px solid #E2E8F0;
  margin: 1.25rem 0 1.5rem;
}

.team-details-v1 {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.team-detail-group-v1 {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-label-v1 {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--orange-ink);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 3px;
  display: block;
}

.team-value-v1 {
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  font-size: 0.925rem;
  color: #14233D;
  line-height: 1.45;
  margin: 0;
}

@media (max-width: 480px) {
  .team-card-v1 {
    padding: 24px 16px;
    width: 100%;
  }
}

/* === ABOUT PAGE === */
.about-hero {
  background-color: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 3.5rem 1.5rem;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

/* Hero kickers sit on the dark navy hero banner, so they keep the vivid orange
   (5.55:1 on #14233D); the darkened ink would drop them to 2.93:1. */
.about-hero-kicker {
  font-family: 'Archivo', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 3px;
}

.about-hero-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--white);
  margin: 0;
  line-height: 1.2;
}

.about-main-content {
  background-color: var(--white);
  padding: 4rem 1.5rem;
}

.about-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.about-lead {
  font-family: 'Archivo', sans-serif;
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark);
  margin: 0;
}

.about-heading {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.about-text {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* Mission & Vision Cards */
.mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.mv-card {
  background-color: var(--cream);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--orange);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.mv-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.mv-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* Core Values Grid */
.core-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.value-card {
  background-color: var(--cream);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--orange);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.value-term {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
  display: block;
}

.value-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* Who We Serve */
.who-we-serve-intro {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.who-we-serve-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.serve-tile {
  background-color: var(--cream);
  border: 1px solid rgba(255, 108, 0, 0.2);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.serve-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.serve-check-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--orange-cta);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.serve-label {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}

/* Services Offered Teaser */
.services-teaser-card {
  background-color: var(--cream);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  border-left: 4px solid var(--orange);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.services-teaser-intro {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.6;
  margin: 0;
}

.services-teaser-note {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.btn-about-services {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  padding: 0.65rem 1.25rem;
  background-color: var(--orange-cta);
  color: var(--white);
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(255, 108, 0, 0.25);
  margin-top: 0.35rem;
}

.btn-about-services:hover {
  background-color: var(--orange-cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 108, 0, 0.35);
  color: var(--white);
}

/* Achievements List */
.achievements-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.achievement-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: var(--cream);
  padding: 1.15rem 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 108, 0, 0.15);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.achievement-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.achievement-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--orange-cta);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.achievement-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-dark);
  margin: 0;
}

/* MSME Registration Callout */
.msme-callout {
  background-color: #FFF1E8;
  border: 1.5px solid rgba(255, 108, 0, 0.35);
  border-left: 5px solid var(--orange);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.msme-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: rgba(255, 108, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--orange-ink);
}

.msme-text {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-dark);
  font-weight: 500;
  margin: 0;
}

/* Safeguard SVG Sizing */
.about-section svg {
  max-width: 24px;
  max-height: 24px;
}

#who-we-serve svg {
  width: 24px !important;
  height: 24px !important;
}

.serve-check-badge svg,
.achievement-badge svg {
  width: 14px !important;
  height: 14px !important;
}

.global-footer .footer-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* Responsive Rules for About Page */
@media (max-width: 768px) {
  .about-hero-title {
    font-size: 2rem;
  }

  .mission-vision-grid {
    grid-template-columns: 1fr;
  }
  
  .core-values-grid {
    grid-template-columns: 1fr;
  }
  
  .who-we-serve-grid {
    flex-direction: column;
  }
  
  .serve-tile {
    width: 100%;
  }

  .msme-callout {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
  }
}

/* === SERVICES PAGE === */
.services-hero {
  background-color: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 3.5rem 1.5rem;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services-hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  max-width: 860px;
}

.services-hero-kicker {
  font-family: 'Archivo', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 3px;
}

.services-hero-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--white);
  margin: 0;
  line-height: 1.2;
}

.services-hero-desc {
  font-family: 'Archivo', sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.6;
  max-width: 680px;
}

.services-page-main {
  background-color: var(--white);
  padding: 4.5rem 1.5rem 5rem 1.5rem;
}

.services-page-main .container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* Services CTA Band */
.services-cta {
  background-color: var(--cream);
  border: 1px solid rgba(255, 108, 0, 0.25);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.services-cta-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--navy);
  margin: 0;
}

.services-cta-desc {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #334155;
  margin: 0;
  max-width: 600px;
  line-height: 1.6;
}

.services-cta .btn-cta {
  margin-top: 0.25rem;
}

/* Responsive Rules for Services Page */
@media (max-width: 768px) {
  .services-hero-title {
    font-size: 2rem;
  }
  
  .services-hero-desc {
    font-size: 0.95rem;
  }
  
  .services-page-main {
    padding: 3rem 1rem 3.5rem 1rem;
  }
  
  .services-cta {
    padding: 2rem 1.25rem;
  }
  
  .services-cta-title {
    font-size: 1.35rem;
  }
}

/* =================================================
   OUR TEAM PAGE
   ================================================= */
.team-page-main {
  background-color: var(--bg-light, #F8FAFC);
  padding: 5rem 0 6rem 0;
  min-height: calc(100vh - 420px);
  display: flex;
  align-items: center;
}

.team-page-wrap {
  width: 100%;
}

.team-photo-v1,
#our-team img,
.team-section img {
  width: 140px !important;
  height: 140px !important;
}

@media (max-width: 768px) {
  .team-page-main {
    padding: 3.5rem 1rem 4.5rem 1rem;
  }
}

/* =================================================
   BLOG LISTING PAGE
   ================================================= */
.blog-hero {
  background-color: var(--navy);
  padding: 4.5rem 1.5rem;
  text-align: center;
  color: var(--white);
}

.blog-hero-kicker {
  font-family: 'Archivo', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 3px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.blog-hero-title {
  font-family: 'Archivo', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.blog-hero-desc {
  font-family: 'Archivo', sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.5;
}

.blog-page-main {
  background-color: #F8FAFC;
  padding: 4rem 0 5.5rem;
}

.blog-tile-soon {
  opacity: 0.88;
  cursor: default;
  background-color: #FFFFFF !important;
}

.blog-tile-soon:hover {
  transform: none !important;
  box-shadow: 0 8px 24px rgba(20, 35, 61, 0.04) !important;
}

.blog-soon-badge {
  margin-top: auto;
  padding-top: 1.25rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  /* Was a hardcoded #94A3B8: 2.32:1 on the cream card, an AA failure.
     --text-muted only reached 4.31:1 there, so this uses --text-secondary:
     #475569 in light (6.86:1) and #CBD5E1 in dark. Still reads as secondary
     next to the orange "Read article" badge on the published card. */
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}

/* Published article tile: same card, but it is a real link, so it gets the
   hover lift back and an action badge in the CTA colour instead of the grey
   "Coming soon" one. */
.blog-tile-live {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  cursor: pointer;
  color: inherit;
}

/* The card is an <a>, so its heading and body copy would otherwise inherit the
   link colour — which is unreadable on the dark card in dark mode (2.01:1).
   Pin them to the same tokens the non-link cards use; only the badge is orange. */
.blog-tile-live h2,
.blog-tile-live h3 {
  color: var(--text-dark);
}

.blog-tile-live .blog-desc {
  color: var(--text-secondary);
}

.blog-tile-live .blog-read-badge {
  margin-top: auto;
  padding-top: 1.25rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange-ink);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}

.blog-tile-live:hover .blog-read-badge,
.blog-tile-live:focus-visible .blog-read-badge {
  text-decoration: underline;
}

.blog-grid svg,
.blog-card svg,
.blog-icon {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
}

@media (max-width: 768px) {
  .blog-hero {
    padding: 3.5rem 1.25rem;
  }
  
  .blog-hero-title {
    font-size: 1.85rem;
  }
  
  .blog-hero-desc {
    font-size: 0.95rem;
  }
  
  .blog-page-main {
    padding: 3rem 1rem 4rem;
  }
}

/* =================================================
   CONTACT PAGE
   ================================================= */
.contact-hero {
  background-color: var(--navy);
  padding: 4.5rem 1.5rem;
  text-align: center;
  color: var(--white);
}

.contact-hero-kicker {
  font-family: 'Archivo', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 3px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.contact-hero-title {
  font-family: 'Archivo', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.contact-hero-desc {
  font-family: 'Archivo', sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.5;
}

/* 4. Section-level spacing: ~64px top/bottom on desktop, ~40px mobile */
.contact-page-main {
  background-color: #F8FAFC;
  padding: 64px 0;
}

/* 1. Equal height columns (align-items: stretch) and ~40px gap */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 40px;
  align-items: stretch;
}

/* 1. Both cards (.contact-info-card, .contact-form-card, .contact-info-panel, .contact-form-panel) */
.contact-info-panel,
.contact-form-panel,
.contact-info-card,
.contact-form-card {
  background-color: #FFFFFF;
  border: 1px solid rgba(20, 35, 61, 0.06);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 25px rgba(20, 35, 61, 0.08), 0 20px 48px rgba(20, 35, 61, 0.06);
  display: flex;
  flex-direction: column;
}

.contact-info-title,
.contact-form-title {
  font-family: 'Archivo', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.contact-info-desc,
.contact-form-desc {
  font-family: 'Archivo', sans-serif;
  font-size: 0.95rem;
  color: #64748B;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* 2. Left "Get in Touch Directly" card — detail blocks */
.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 0;
}

.contact-detail-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Icon badges: 44px rounded square, cream #FFF1E8 background, orange #FF6C00 icon at 22px */
.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--cream);
  color: var(--orange-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 22px !important;
  height: 22px !important;
  stroke: var(--orange);
}

.contact-detail-content {
  flex: 1;
}

/* Uppercase labels: Space Mono, orange, ~0.7rem, letter-spacing 1px, with ~4px space below */
.contact-detail-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--orange-ink);
  letter-spacing: 1px;
  margin-bottom: 4px;
  display: block;
}

/* Values: Archivo, navy #14233D, comfortable line-height (~1.5) */
.contact-detail-text {
  font-family: 'Archivo', sans-serif;
  font-size: 0.95rem;
  color: var(--navy);
  line-height: 1.5;
  margin: 0;
}

.contact-detail-text a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-detail-text a:hover {
  color: var(--orange-ink);
}

/* Consultation Hours sub-box: cream #FFF1E8 background, 12px radius, ~20px padding, and ~24px top margin */
.contact-hours-box {
  background-color: var(--cream);
  border: 1px solid rgba(255, 108, 0, 0.15);
  border-radius: 12px;
  padding: 20px;
  margin-top: 24px;
}

.contact-hours-box h4 {
  font-family: 'Archivo', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-hours-box p {
  font-family: 'Archivo', sans-serif;
  font-size: 0.88rem;
  color: #475569;
  margin: 0;
  line-height: 1.5;
}

/* 3. Right "Send Us a Message" card — form spacing */
.contact-form-panel #contact-form-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact-form-panel form {
  display: flex;
  flex-direction: column;
}

/* Consistent vertical spacing between fields: ~20px */
.contact-form-panel .form-group {
  margin-bottom: 20px;
  position: relative;
}

/* The Email + Phone row: keep side by side on desktop, stack on mobile, with an even gap (~16px) */
.contact-form-panel .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-form-panel .form-row .form-group {
  margin-bottom: 0;
}

/* Labels: Archivo 600, navy, ~0.9rem, with ~6px space above the input */
.contact-form-panel label {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.contact-form-panel label .required {
  color: var(--orange-ink);
}

/* Inputs/selects/textarea: full width, ~12px vertical + 14px horizontal padding, 10px radius, 1px solid #E2E8F0 border, orange focus state */
.contact-form-panel input,
.contact-form-panel select,
.contact-form-panel textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: 'Archivo', sans-serif;
  font-size: 0.92rem;
  color: var(--navy);
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  box-sizing: border-box;
}

.contact-form-panel input:focus,
.contact-form-panel select:focus,
.contact-form-panel textarea:focus {
  outline: none;
  background-color: #FFFFFF;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 108, 0, 0.12);
}

/* Textarea: min 4 rows */
.contact-form-panel textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}

.contact-form-panel .form-group.has-error input,
.contact-form-panel .form-group.has-error select {
  border-color: #EF4444;
  background-color: #FEF2F2;
}

.contact-form-panel .form-group .error-feedback {
  display: none;
  font-size: 0.78rem;
  color: #EF4444;
  margin-top: 0.35rem;
  font-family: 'Archivo', sans-serif;
}

.contact-form-panel .form-group.has-error .error-feedback {
  display: block;
}

/* Submit button Send Message: full width, orange #FF6C00 background, white text, 12px radius, hover #E85D00, ~14px vertical padding, clear ~24px top margin */
.btn-submit-contact {
  width: 100%;
  padding: 14px 24px;
  background-color: var(--orange-cta);
  color: var(--white);
  font-family: 'Archivo', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 24px;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit-contact:hover {
  background-color: var(--orange-cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 108, 0, 0.25);
}

.contact-status-box {
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-radius: 12px;
}

.contact-status-box.success-box {
  background-color: #F0FDF4;
  border: 1px solid #BBF7D0;
}

.contact-status-box.error-box {
  background-color: #FEF2F2;
  border: 1px solid #FECACA;
}

.contact-status-box h3 {
  font-family: 'Archivo', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 1rem 0 0.5rem;
  color: var(--navy);
}

.contact-status-box p {
  font-family: 'Archivo', sans-serif;
  font-size: 0.95rem;
  color: #64748B;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* SVG Constraints for Contact elements */
.contact-page-main .contact-icon,
.contact-detail-icon svg {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
}

/* 5. Responsive */
@media (max-width: 900px) {
  .contact-page-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .contact-info-panel,
  .contact-form-panel,
  .contact-info-card,
  .contact-form-card {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    padding: 3.5rem 1.25rem;
  }
  
  .contact-hero-title {
    font-size: 1.85rem;
  }
  
  .contact-hero-desc {
    font-size: 0.95rem;
  }
  
  .contact-page-main {
    padding: 40px 0;
  }
  
  .contact-form-panel .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .contact-form-panel .form-row .form-group:first-child {
    margin-bottom: 0;
  }
}
/* Footer Logo Chip Styles */
.footer-logo-chip {
  display: inline-block;
  background: none;
  padding: 0;
  border-radius: 0;
  line-height: 0;
}
.footer-logo-img {
  height: 56px;
  width: auto;
  max-width: none;
  display: block;
}

/* =================================================
   NEW HOME PAGE SECTIONS STYLES
   ================================================= */

/* 1. Trust Bar */
.trust-bar {
  background-color: var(--navy);
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-bar-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  text-align: center;
}

.trust-bar-text {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.trust-bar-divider {
  color: var(--orange-ink);
  font-weight: 700;
  user-select: none;
}

/* 2. How It Works Section */
.how-it-works-section {
  background-color: var(--white);
}

.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 3.5rem;
}

.process-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.process-card:hover {
  border-color: var(--orange);
  transform: translateY(-6px);
  box-shadow: var(--shadow-premium);
}

.process-num {
  font-family: 'Space Mono', monospace;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--orange-ink);
  line-height: 1;
  margin-bottom: 1.2rem;
}

.process-title {
  font-family: 'Archivo', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.8rem;
}

.process-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 3. Services at a Glance Section */
.services-glance-section {
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.services-glance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 3.5rem;
}

.glance-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}

.glance-card:hover {
  border-color: var(--orange);
  transform: translateY(-6px);
  box-shadow: var(--shadow-premium);
}

.glance-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background-color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-ink);
  margin-bottom: 1.8rem;
  transition: var(--transition-smooth);
}

.glance-card:hover .glance-icon-box {
  background-color: var(--orange-cta);
  color: var(--white);
}

.glance-icon {
  width: 26px;
  height: 26px;
}

.glance-title {
  font-family: 'Archivo', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.glance-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.glance-link {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--orange-ink);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-smooth);
}

.glance-card:hover .glance-link {
  color: var(--navy);
  gap: 8px;
}

.services-glance-action {
  display: flex;
  justify-content: center;
  margin-top: 3.5rem;
}

.btn-secondary {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background-color: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  padding: 11px 25px;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background-color: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* 4. Impact / Statistics Section (Hidden Scaffold Styling) */
.impact-stats-section {
  background-color: var(--white);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 3.5rem;
}

.impact-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.impact-card:hover {
  border-color: var(--orange);
  transform: translateY(-6px);
  box-shadow: var(--shadow-premium);
}

.impact-num {
  font-family: 'Archivo', sans-serif;
  font-size: 3.8rem;
  font-weight: 800;
  color: var(--orange-ink);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.impact-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 5. Testimonials Teaser Section (Hidden Scaffold Styling) */
.testimonial-teaser-section {
  background-color: var(--bg-light);
}

.testimonial-single-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 3.5rem;
}

.testimonial-single-wrapper .testimonial-card {
  max-width: 600px;
  width: 100%;
}



/* 7. Secondary CTA Section */
.secondary-cta-section {
  background-color: var(--cream);
  padding: 5rem 0;
  text-align: center;
  border-top: 1px solid rgba(20, 35, 61, 0.05);
}

.secondary-cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.secondary-cta-heading {
  font-family: 'Archivo', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  letter-spacing: -1px;
  max-width: 700px;
  line-height: 1.25;
}

/* Responsive Overrides for New Sections */
@media (max-width: 992px) {
  .how-it-works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .services-glance-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .trust-bar-divider {
    display: none;
  }
  .trust-bar-container {
    gap: 0.6rem 1rem;
  }
  .trust-bar-text {
    font-size: 0.7rem;
    width: calc(50% - 1rem);
    min-width: 140px;
  }
  .impact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .secondary-cta-heading {
    font-size: 1.65rem;
  }
  .secondary-cta-section {
    padding: 4rem 0;
  }
}

@media (max-width: 576px) {
  .how-it-works-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .services-glance-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .trust-bar-text {
    width: 100%;
  }
}

/* =================================================
   THEME TOGGLE SWITCH & DARK MODE OVERRIDES
   ================================================= */

/* 1. Theme Toggle Icon Visibility */
.theme-toggle .sun-icon {
  display: none !important;
}

.theme-toggle .moon-icon {
  display: block !important;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: block !important;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: none !important;
}

/* 2. Theme Toggle Buttons Style */
.theme-toggle {
  background: transparent;
  border: none;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  padding: 6px;
  border-radius: 50%;
  outline: none;
}

.theme-toggle:hover {
  color: var(--orange-ink);
  transform: scale(1.08);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}

[data-theme="dark"] .theme-toggle {
  color: var(--text-dark); /* Will map to light cream in dark mode */
}

[data-theme="dark"] .theme-toggle:hover {
  color: var(--orange-2);
}

/* Mobile theme toggle placement inside mobile panel drawer */
.mobile-theme-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.mobile-theme-toggle-wrap .theme-toggle {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: #FFFFFF !important;
}

.mobile-theme-toggle-wrap .theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--orange);
}

/* 3. Dark Theme Variables Overrides */
[data-theme="dark"] {
  --white: #0A111F;           /* White backgrounds become dark navy */
  --bg-light: #14233D;        /* Light grey sections become mid navy */
  --bg-dark: #050B14;         /* Darkest backgrounds become blackest navy */
  --border-color: #1E293B;    /* Dark borders */
  --text-dark: #FFF1E8;       /* Primary text becomes cream */
  --text-secondary: #CBD5E1;  /* Secondary text becomes light blue-gray */
  --text-muted: #94A3B8;      /* Muted text becomes medium gray */

  /* On dark surfaces the vivid orange already passes comfortably (6.68:1 on
     #0A111F), and the darkened ink would FAIL there (3.54:1) — so orange text
     goes back to vivid in dark mode. --orange-cta is deliberately NOT overridden:
     white-on-orange contrast depends on the fill alone, not the page behind it. */
  --orange-ink: #FF6C00;
}

/* 4. Selector Overrides for Dark Mode styling */
[data-theme="dark"] body {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}

/* Header Adjustments */
[data-theme="dark"] .global-header {
  background-color: var(--white);
  border-bottom-color: var(--border-color);
}

[data-theme="dark"] .global-header .nav-item a {
  color: var(--text-dark);
}

[data-theme="dark"] .global-header .nav-item a:hover,
[data-theme="dark"] .global-header .nav-item.active a {
  color: var(--orange-2);
}

[data-theme="dark"] .global-header .search-trigger {
  color: var(--text-dark);
}

[data-theme="dark"] .global-header .search-trigger:hover {
  color: var(--orange-2);
}

/* SVG Logo Text fill overrides for visibility */
[data-theme="dark"] .global-header svg g[fill="#14233d"] {
  fill: var(--text-dark) !important;
}

[data-theme="dark"] .hamburger-toggle span {
  background-color: var(--text-dark);
}

/* General Headings and descriptions */
[data-theme="dark"] .section-heading {
  color: var(--text-dark);
}

[data-theme="dark"] .section-description {
  color: var(--text-secondary);
}

[data-theme="dark"] .accent-stat-header .stat-number {
  color: var(--text-dark);
}

[data-theme="dark"] .accent-stat-header .stat-suffix {
  color: var(--orange-2);
}

/* Service Card & Why Choose Us Tile Overrides */
[data-theme="dark"] .service-card,
[data-theme="dark"] .service-card-v2,
[data-theme="dark"] .trust-tile,
[data-theme="dark"] .process-card,
[data-theme="dark"] .glance-card {
  background-color: var(--white) !important; /* Will map to #0A111F */
  border-color: var(--border-color) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
}

[data-theme="dark"] .service-card:hover,
[data-theme="dark"] .service-card-v2:hover,
[data-theme="dark"] .trust-tile:hover,
[data-theme="dark"] .process-card:hover,
[data-theme="dark"] .glance-card:hover {
  background-color: #1E293B !important; /* Slightly lighter navy on hover */
  border-color: var(--orange) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4) !important;
}

/* Specific text color overrides within cards */
[data-theme="dark"] .service-card h3,
[data-theme="dark"] .service-card-v2 h3,
[data-theme="dark"] .trust-tile h4,
[data-theme="dark"] .process-title,
[data-theme="dark"] .glance-title,
[data-theme="dark"] .testimonial-author h4,
[data-theme="dark"] .author-info h4 {
  color: var(--text-dark) !important;
}

[data-theme="dark"] .service-card-desc,
[data-theme="dark"] .trust-desc {
  color: var(--text-secondary) !important;
}

[data-theme="dark"] .service-card-v2 li {
  color: var(--text-secondary) !important;
}

[data-theme="dark"] .service-card-v2 li:hover {
  color: var(--white) !important; /* Maps to light color in dark theme hover */
}

/* Testimonial card overrides */
[data-theme="dark"] .testimonial-card {
  background-color: var(--white) !important;
  border-color: var(--border-color) !important;
}

[data-theme="dark"] .testimonial-card:hover {
  background-color: #1E293B !important;
  border-color: var(--orange) !important;
}

[data-theme="dark"] .testimonial-text {
  color: var(--text-secondary);
}

[data-theme="dark"] .author-avatar {
  background-color: var(--bg-dark);
  color: var(--orange-2);
}

/* Forms and Inputs */
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background-color: var(--bg-dark) !important;
  border-color: rgba(255, 108, 0, 0.15) !important;
  color: var(--text-dark) !important;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] select::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

[data-theme="dark"] input[type="text"]:focus,
[data-theme="dark"] input[type="email"]:focus,
[data-theme="dark"] input[type="tel"]:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
  border-color: var(--orange) !important;
  outline: none;
}

/* Modal Window adjustments */
[data-theme="dark"] .enquiry-modal-container {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .enquiry-modal-content h2,
[data-theme="dark"] #enquiry-form label,
[data-theme="dark"] .enquiry-modal-close {
  color: var(--text-dark) !important;
}

/* Hero Section Overlay and text */
[data-theme="dark"] .hero-overlay {
  background: linear-gradient(90deg, 
              rgba(10, 17, 31, 0.98) 0%, 
              rgba(10, 17, 31, 0.95) 40%, 
              rgba(10, 17, 31, 0.75) 65%, 
              rgba(10, 17, 31, 0.25) 100%) !important;
}

[data-theme="dark"] .hero-title {
  color: var(--text-dark) !important;
}

[data-theme="dark"] .hero-desc {
  color: var(--text-secondary) !important;
}

/* Announcement Bar Dark Mode */
[data-theme="dark"] .announcement-bar {
  background-color: var(--bg-dark);
  border-bottom-color: var(--border-color);
}

[data-theme="dark"] .announcement-text {
  color: var(--text-dark);
}

/* Secondary CTA band */
[data-theme="dark"] .secondary-cta-section {
  background-color: var(--white);
  border-top-color: var(--border-color);
}

[data-theme="dark"] .secondary-cta-heading {
  color: var(--text-dark);
}

/* Map location card floating badge */
[data-theme="dark"] .map-location-card {
  background-color: var(--white) !important;
  color: var(--text-dark) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .map-location-card h4,
[data-theme="dark"] .map-location-card p {
  color: var(--text-dark) !important;
}

/* Secondary Button Overrides */
[data-theme="dark"] .btn-secondary {
  color: var(--text-dark) !important;
  border-color: var(--text-dark) !important;
}

[data-theme="dark"] .btn-secondary:hover {
  background-color: var(--text-dark) !important;
  color: var(--bg-dark) !important;
}

/* Footer & Map Section Color Fixes (always dark background) */
[data-theme="dark"] .site-footer,
[data-theme="dark"] .global-footer,
[data-theme="dark"] .footer-map-section {
  color: rgba(255, 255, 255, 0.7) !important;
}

[data-theme="dark"] .footer-col h3,
[data-theme="dark"] .footer-map-header h3 {
  color: #FFFFFF !important;
  border-bottom-color: var(--orange) !important;
}

[data-theme="dark"] .contact-item span {
  color: #FFFFFF !important;
}

[data-theme="dark"] .footer-links a {
  color: rgba(255, 255, 255, 0.7) !important;
}

[data-theme="dark"] .footer-links a:hover {
  color: var(--orange-ink) !important;
}

[data-theme="dark"] .footer-socials a {
  color: rgba(255, 255, 255, 0.7) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .footer-socials a:hover {
  color: var(--orange-ink) !important;
  border-color: var(--orange) !important;
}

[data-theme="dark"] .footer-bottom {
  color: rgba(255, 255, 255, 0.4) !important;
}

/* Glance Card Link Hover color fix in Dark Mode */
[data-theme="dark"] .glance-card:hover .glance-link {
  color: var(--cream) !important;
}

/* General Hero Sections on Inner Pages (always dark background) */
[data-theme="dark"] .about-hero,
[data-theme="dark"] .services-hero,
[data-theme="dark"] .publications-hero,
[data-theme="dark"] .blog-hero,
[data-theme="dark"] .contact-hero,
[data-theme="dark"] .article-hero {
  background-color: var(--bg-dark) !important;
  border-bottom: 1px solid var(--border-color) !important;
}

[data-theme="dark"] .about-hero-title,
[data-theme="dark"] .services-hero-title,
[data-theme="dark"] .publications-hero-title,
[data-theme="dark"] .blog-hero-title,
[data-theme="dark"] .contact-hero-title,
[data-theme="dark"] .article-hero-title {
  color: #FFFFFF !important;
}

[data-theme="dark"] .about-hero-kicker,
[data-theme="dark"] .services-hero-kicker,
[data-theme="dark"] .publications-hero-kicker,
[data-theme="dark"] .blog-hero-kicker,
[data-theme="dark"] .contact-hero-kicker {
  color: var(--orange-2) !important;
}

[data-theme="dark"] .services-hero-desc,
[data-theme="dark"] .publications-hero-desc,
[data-theme="dark"] .blog-hero-desc,
[data-theme="dark"] .contact-hero-desc {
  color: var(--text-secondary) !important;
}

/* About Page Overrides in Dark Mode */
[data-theme="dark"] .about-heading {
  color: var(--text-dark) !important;
}

[data-theme="dark"] .about-lead,
[data-theme="dark"] .about-text,
[data-theme="dark"] .who-we-serve-intro {
  color: var(--text-secondary) !important;
}

[data-theme="dark"] .mv-card,
[data-theme="dark"] .value-card,
[data-theme="dark"] .serve-tile,
[data-theme="dark"] .services-teaser-card,
[data-theme="dark"] .achievement-item,
[data-theme="dark"] .msme-callout {
  background-color: var(--white) !important; /* Maps to #0A111F */
  border-color: var(--border-color) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .mv-card:hover,
[data-theme="dark"] .value-card:hover,
[data-theme="dark"] .serve-tile:hover,
[data-theme="dark"] .services-teaser-card:hover,
[data-theme="dark"] .msme-callout:hover {
  background-color: #1E293B !important;
  border-color: var(--orange) !important;
}

[data-theme="dark"] .mv-title,
[data-theme="dark"] .value-term,
[data-theme="dark"] .serve-label {
  color: var(--text-dark) !important;
}

[data-theme="dark"] .mv-text,
[data-theme="dark"] .value-desc,
[data-theme="dark"] .services-teaser-intro,
[data-theme="dark"] .services-teaser-note,
[data-theme="dark"] .achievement-text,
[data-theme="dark"] .msme-text {
  color: var(--text-secondary) !important;
}

/* =================================================
   CARD LIGHT ORANGE BACKGROUND & READABILITY FIXES
   ================================================= */

/* Apply Creamy Beige background to all cards in light mode with 3D orange inner glow */
.service-card,
.service-card-v2,
.process-card,
.glance-card,
.trust-tile,
.mv-card,
.value-card,
.serve-tile,
.services-teaser-card,
.achievement-item,
.msme-callout,
.testimonial-card,
.publication-card,
.blog-card,
.team-card-v1,
.contact-info-panel,
.contact-info-card,
.contact-form-panel,
.contact-form-card {
  background: var(--cream) !important;     /* Brand Creamy Beige */
  border: 1px solid #FFDBC2 !important;     /* Soft warm orange border */
  box-shadow: inset 0 0 15px rgba(255, 108, 0, 0.05), 0 8px 24px rgba(20, 35, 61, 0.04), 0 2px 8px rgba(255, 108, 0, 0.03) !important;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* Hover effects for all cards in light mode - Glow and Lift */
.service-card:hover,
.service-card-v2:hover,
.process-card:hover,
.glance-card:hover,
.trust-tile:hover,
.mv-card:hover,
.value-card:hover,
.serve-tile:hover,
.services-teaser-card:hover,
.msme-callout:hover,
.testimonial-card:hover,
.publication-card:hover,
.blog-card:hover,
.team-card-v1:hover,
.contact-info-panel:hover,
.contact-info-card:hover,
.contact-form-panel:hover,
.contact-form-card:hover {
  background: #FFE6D5 !important;           /* Slightly deeper creamy beige hover */
  border-color: var(--orange) !important;
  transform: translateY(-6px) !important;
  box-shadow: inset 0 0 20px rgba(255, 108, 0, 0.12), 0 16px 36px rgba(255, 108, 0, 0.15), 0 4px 12px rgba(255, 108, 0, 0.08) !important;
}

/* Ensure text inside all cards remains navy/slate for high contrast in light mode */
.service-card h3,
.service-card-v2 h3,
.trust-tile h4,
.process-title,
.glance-title,
.mv-title,
.value-term,
.serve-label,
.testimonial-author h4,
.author-info h4,
.publication-title,
.publication-authors strong,
.blog-card h3,
.team-name-v1,
.team-value-v1,
.contact-info-title,
.contact-detail-text,
.contact-detail-text a,
.contact-form-card label {
  color: var(--navy) !important;
}

.service-card-desc,
.trust-desc,
.process-desc,
.glance-desc,
.mv-text,
.value-desc,
.services-teaser-intro,
.services-teaser-note,
.achievement-text,
.msme-text,
.testimonial-text,
.publication-authors,
.publication-venue,
.blog-desc,
.team-role-line1-v1,
.contact-info-desc,
.contact-form-desc,
.contact-detail-label {
  color: #334155 !important; /* Dark slate gray for descriptions */
}

/* Specific sub-element and badges overrides in light mode */
.service-card-v2 li {
  color: #334155 !important;
}

.service-card-v2 li:hover {
  color: var(--navy) !important;
}

.glance-link {
  color: var(--orange-ink) !important;
  font-weight: 600 !important;
}

.glance-card:hover .glance-link {
  color: var(--navy) !important;
}

.publication-btn {
  border-radius: 8px !important;
}

.process-num {
  color: var(--orange-ink) !important;
}

.serve-check-badge {
  background-color: var(--orange-cta) !important;
  color: var(--white) !important;
}

.serve-check-badge svg {
  stroke: var(--white) !important;
}

.author-info span {
  color: var(--orange-ink) !important;
}

.blog-soon-badge {
  color: var(--text-secondary) !important;
}

/* Format icon containers inside cards to crisp white background with orange icons */
.service-icon-box,
.glance-icon-box,
.contact-detail-icon,
.blog-icon-box,
.blog-card .blog-icon-box {
  background-color: #FFFFFF !important;
  color: var(--orange-ink) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
  border: 1px solid rgba(255, 108, 0, 0.1) !important;
}

.service-icon-box svg,
.glance-icon-box svg,
.contact-detail-icon svg,
.blog-icon-box svg,
.blog-card .blog-icon-box svg {
  stroke: var(--orange) !important;
}

/* Icon box hover state */
.service-card:hover .service-icon-box,
.glance-card:hover .glance-icon-box,
.blog-card:hover .blog-icon-box {
  background-color: var(--orange-cta) !important;
  color: #FFFFFF !important;
}

.service-card:hover .service-icon-box svg,
.glance-card:hover .glance-icon-box svg,
.blog-card:hover .blog-icon-box svg {
  stroke: #FFFFFF !important;
}

/* Services CTA (Closing Banner) Override - Preserving the light cream band design */
.services-cta {
  background: var(--cream) !important;
  border: 1px solid #FFDBC2 !important;
  box-shadow: var(--shadow-sm) !important;
}

.services-cta-title {
  color: var(--navy) !important;
}

.services-cta-desc {
  color: #334155 !important;
}

/* Overrides specifically for dark mode selector to style cards appropriately in dark theme with orange inner glow */
[data-theme="dark"] .service-card,
[data-theme="dark"] .service-card-v2,
[data-theme="dark"] .process-card,
[data-theme="dark"] .glance-card,
[data-theme="dark"] .trust-tile,
[data-theme="dark"] .mv-card,
[data-theme="dark"] .value-card,
[data-theme="dark"] .serve-tile,
[data-theme="dark"] .services-teaser-card,
[data-theme="dark"] .achievement-item,
[data-theme="dark"] .msme-callout,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .publication-card,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .team-card-v1,
[data-theme="dark"] .contact-info-panel,
[data-theme="dark"] .contact-info-card,
[data-theme="dark"] .contact-form-panel,
[data-theme="dark"] .contact-form-card {
  background: var(--white) !important; /* Maps to #0A111F in dark mode */
  border-color: rgba(255, 108, 0, 0.15) !important;
  box-shadow: inset 0 0 20px rgba(255, 108, 0, 0.08), 0 10px 30px rgba(0, 0, 0, 0.4), 0 2px 10px rgba(255, 108, 0, 0.05) !important;
}

[data-theme="dark"] .service-card:hover,
[data-theme="dark"] .service-card-v2:hover,
[data-theme="dark"] .process-card:hover,
[data-theme="dark"] .glance-card:hover,
[data-theme="dark"] .trust-tile:hover,
[data-theme="dark"] .mv-card:hover,
[data-theme="dark"] .value-card:hover,
[data-theme="dark"] .serve-tile:hover,
[data-theme="dark"] .services-teaser-card:hover,
[data-theme="dark"] .msme-callout:hover,
[data-theme="dark"] .testimonial-card:hover,
[data-theme="dark"] .publication-card:hover,
[data-theme="dark"] .blog-card:hover,
[data-theme="dark"] .team-card-v1:hover,
[data-theme="dark"] .contact-info-panel:hover,
[data-theme="dark"] .contact-info-card:hover,
[data-theme="dark"] .contact-form-panel:hover,
[data-theme="dark"] .contact-form-card:hover {
  background: #1E293B !important; /* Lighter navy hover state */
  border-color: var(--orange) !important;
  box-shadow: inset 0 0 25px rgba(255, 108, 0, 0.18), 0 20px 40px rgba(0, 0, 0, 0.55), 0 4px 20px rgba(255, 108, 0, 0.15) !important;
}

[data-theme="dark"] .contact-hours-box {
  background-color: var(--bg-dark) !important;
  border-color: rgba(255, 108, 0, 0.2) !important;
}

[data-theme="dark"] .service-card h3,
[data-theme="dark"] .service-card-v2 h3,
[data-theme="dark"] .trust-tile h4,
[data-theme="dark"] .process-title,
[data-theme="dark"] .glance-title,
[data-theme="dark"] .mv-title,
[data-theme="dark"] .value-term,
[data-theme="dark"] .serve-label,
[data-theme="dark"] .testimonial-author h4,
[data-theme="dark"] .author-info h4,
[data-theme="dark"] .publication-title,
[data-theme="dark"] .publication-authors strong,
[data-theme="dark"] .blog-card h3,
[data-theme="dark"] .team-name-v1,
[data-theme="dark"] .team-value-v1,
[data-theme="dark"] .contact-info-title,
[data-theme="dark"] .contact-form-title,
[data-theme="dark"] .contact-hours-box h4,
[data-theme="dark"] .contact-detail-text,
[data-theme="dark"] .contact-detail-text a,
[data-theme="dark"] .contact-form-card label {
  color: var(--text-dark) !important; /* Force light/cream headings in dark mode cards */
}

[data-theme="dark"] .service-card-desc,
[data-theme="dark"] .trust-desc,
[data-theme="dark"] .process-desc,
[data-theme="dark"] .glance-desc,
[data-theme="dark"] .mv-text,
[data-theme="dark"] .value-desc,
[data-theme="dark"] .services-teaser-intro,
[data-theme="dark"] .services-teaser-note,
[data-theme="dark"] .achievement-text,
[data-theme="dark"] .msme-text,
[data-theme="dark"] .testimonial-text,
[data-theme="dark"] .publication-authors,
[data-theme="dark"] .publication-venue,
[data-theme="dark"] .blog-desc,
[data-theme="dark"] .team-role-line1-v1,
[data-theme="dark"] .contact-info-desc,
[data-theme="dark"] .contact-form-desc,
[data-theme="dark"] .contact-hours-box p,
[data-theme="dark"] .contact-detail-label {
  color: var(--text-secondary) !important; /* Force light blue-gray text inside dark mode cards */
}

/* Specific sub-element overrides in dark mode */
[data-theme="dark"] .service-card-v2 li {
  color: var(--text-secondary) !important;
}

[data-theme="dark"] .service-card-v2 li:hover {
  color: var(--text-dark) !important;
}

[data-theme="dark"] .glance-card:hover .glance-link {
  color: var(--text-dark) !important;
}

[data-theme="dark"] .process-num {
  color: var(--orange-ink) !important;
}

[data-theme="dark"] .serve-check-badge {
  background-color: var(--orange-cta) !important;
  color: var(--white) !important;
}

[data-theme="dark"] .serve-check-badge svg {
  stroke: var(--white) !important;
}

[data-theme="dark"] .author-info span {
  color: var(--orange-2) !important;
}

[data-theme="dark"] .blog-soon-badge {
  color: var(--text-secondary) !important;
}

[data-theme="dark"] .service-icon-box,
[data-theme="dark"] .glance-icon-box,
[data-theme="dark"] .contact-detail-icon,
[data-theme="dark"] .blog-icon-box,
[data-theme="dark"] .blog-card .blog-icon-box {
  background-color: rgba(255, 108, 0, 0.1) !important;
  color: var(--orange-ink) !important;
  box-shadow: none !important;
  border: 1px solid rgba(255, 108, 0, 0.2) !important;
}

[data-theme="dark"] .service-icon-box svg,
[data-theme="dark"] .glance-icon-box svg,
[data-theme="dark"] .contact-detail-icon svg,
[data-theme="dark"] .blog-icon-box svg,
[data-theme="dark"] .blog-card .blog-icon-box svg {
  stroke: var(--orange) !important;
}

[data-theme="dark"] .service-card:hover .service-icon-box,
[data-theme="dark"] .glance-card:hover .glance-icon-box,
[data-theme="dark"] .blog-card:hover .blog-icon-box {
  background-color: var(--orange-cta) !important;
  color: #FFFFFF !important;
}

[data-theme="dark"] .service-card:hover .service-icon-box svg,
[data-theme="dark"] .glance-card:hover .glance-icon-box svg,
[data-theme="dark"] .blog-card:hover .blog-icon-box svg {
  stroke: #FFFFFF !important;
}

/* Stats Section Dark Mode Override */
[data-theme="dark"] .stats-section {
  background-color: var(--bg-dark) !important;
  color: #FFFFFF !important;
}
[data-theme="dark"] .stats-subtitle {
  color: var(--orange-2) !important;
}
[data-theme="dark"] .counter-label {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Blog and Contact Page Main Dark Mode Overrides */
[data-theme="dark"] .blog-page-main,
[data-theme="dark"] .contact-page-main {
  background-color: var(--bg-dark) !important;
}

/* ==================================================
   SYSTEMATIC MOBILE RESPONSIVE SPACING & LAYOUT ADJUSTMENTS (max-width: 768px)
   ================================================== */
@media (max-width: 768px) {
  /* Reduce general section padding on mobile */
  .section-padding {
    padding: 3.5rem 0 !important;
  }
  
  /* Reduce stats section padding */
  .stats-section {
    padding: 3rem 0 !important;
  }
  
  /* Reduce large top margins on mobile grids */
  .how-it-works-grid,
  .services-glance-grid,
  .services-grid,
  .testimonials-grid,
  .publications-grid,
  .why-choose-us-grid {
    margin-top: 2rem !important;
  }
  
  /* Reduce card padding on mobile to maximize content width */
  .service-card,
  .service-card-v2,
  .process-card,
  .glance-card,
  .trust-tile,
  .mv-card,
  .value-card,
  .serve-tile,
  .services-teaser-card,
  .achievement-item,
  .testimonial-card,
  .publication-card,
  .blog-card,
  .team-card-v1 {
    padding: 1.5rem 1.25rem !important;
  }
  
  /* Adjust specific page hero padding for consistent mobile spacing */
  .publications-hero {
    padding: 4rem 0 3.5rem 0 !important;
  }
  .publications-hero-title {
    font-size: 2rem !important;
  }
  
  /* Adjust stats counters for small viewports */
  .counter-number {
    font-size: 2.8rem !important;
  }
  
  /* Ensure testimonials grid items don't overflow on small screens */
  .testimonials-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Fix hamburger toggle menu line color inside mobile drawer overlay (against dark background) */
  .hamburger-toggle.menu-open span {
    background-color: #FFFFFF !important;
  }
  
  /* Make header slightly more compact on mobile */
  .global-header {
    padding: 1rem 0 !important;
  }

  /* Make page main content areas consistent and well-spaced */
  .about-main-content {
    padding: 2.5rem 1rem !important;
  }
  .publications-section {
    padding: 3rem 0 !important;
  }
  .services-page-main {
    padding: 2.5rem 1rem 3rem 1rem !important;
  }
  .blog-page-main {
    padding: 2.5rem 1rem 3.5rem 1rem !important;
  }
  .contact-page-main {
    padding: 2.5rem 1rem !important;
  }
}

/* Specific overrides for small mobile screens (max-width: 480px) */
@media (max-width: 480px) {
  /* Prevent horizontal squeeze in enquiry modal on small screens */
  .enquiry-modal-content {
    padding: 1.5rem 1rem !important;
  }
  .enquiry-modal-content h2 {
    font-size: 1.45rem !important;
  }
}

/* ==================================================
   MOBILE EXPERIENCE REFINEMENTS
   Compact header, readable hero and scroll-safe menu
   ================================================== */
@media (max-width: 768px) {
  .container {
    width: calc(100% - 2rem);
  }

  .announcement-bar {
    height: auto;
    min-height: 34px;
    padding: 0.45rem 0;
  }

  .announcement-text {
    font-size: clamp(0.56rem, 2.7vw, 0.68rem);
    line-height: 1.35;
    letter-spacing: clamp(1px, 0.4vw, 1.5px);
  }

  .global-header,
  .global-header.header-scrolled {
    padding: 0.7rem 0 !important;
  }

  .header-container > svg {
    width: clamp(132px, 40vw, 152px) !important;
    height: auto !important;
    max-height: 38px;
  }

  /* A comfortable touch target without making the icon look oversized. */
  .hamburger-toggle {
    width: 44px;
    height: 44px;
    padding: 10px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 12px;
  }

  .hamburger-toggle span {
    width: 24px;
    flex: 0 0 2px;
  }

  .hamburger-toggle.menu-open {
    background: rgba(20, 35, 61, 0.06);
  }

  .hamburger-toggle.menu-open span,
  [data-theme="dark"] .hamburger-toggle.menu-open span {
    background-color: var(--navy) !important;
  }

  .hamburger-toggle.menu-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger-toggle.menu-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-nav-panel {
    top: var(--mobile-menu-safe-top, 5rem);
    right: 1rem;
    left: auto;
    width: min(calc(100% - 2rem), 360px);
    height: auto;
    max-height: calc(100dvh - var(--mobile-menu-safe-top, 5rem) - 1rem);
    justify-content: flex-start;
    align-items: stretch;
    gap: 0.55rem;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(10, 17, 31, 0.3);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateY(-10px) scale(0.97);
    transform-origin: top right;
    pointer-events: none;
  }

  .mobile-nav-panel.menu-open {
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .mobile-menu {
    width: min(100%, 420px);
    margin: 0 auto;
    gap: 0.2rem;
  }

  .mobile-menu-item a {
    display: block;
    width: 100%;
    padding: 0.62rem 1rem;
    border-radius: 12px;
    font-size: 1rem;
    line-height: 1.3;
    letter-spacing: 0.8px;
  }

  .mobile-menu-item a::after {
    display: none;
  }

  .mobile-menu-item a:hover,
  .mobile-menu-item.active a {
    background: rgba(255, 108, 0, 0.14);
  }

  .mobile-nav-panel .btn-cta {
    width: min(100%, 420px);
    max-width: none;
    min-height: 44px;
    margin: 0.25rem auto 0;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  .mobile-theme-toggle-wrap {
    margin-top: 0;
  }

  .mobile-theme-toggle-wrap .theme-toggle {
    width: 40px;
    height: 40px;
  }

  /* Let content determine height on phones and keep text legible over the image. */
  .hero-section {
    min-height: auto;
    padding: 0 !important;
    align-items: flex-start;
    background-position: 62% center;
  }

  .hero-overlay {
    background: linear-gradient(180deg,
      rgba(255, 241, 232, 0.97) 0%,
      rgba(255, 241, 232, 0.91) 58%,
      rgba(255, 241, 232, 0.96) 100%);
  }

  .hero-container {
    padding: 2.5rem 0 2.75rem;
    gap: 0;
  }

  .hero-tagline {
    max-width: 34rem;
    margin-bottom: 0.8rem;
    font-size: 0.68rem;
    line-height: 1.5;
    letter-spacing: 1.5px;
  }

  .hero-title {
    max-width: 19ch;
    margin-bottom: 1rem;
    font-size: clamp(2rem, 8.9vw, 2.35rem);
    line-height: 1.08;
    letter-spacing: -1.3px;
    text-wrap: balance;
  }

  .hero-desc {
    max-width: 38rem;
    margin-bottom: 1.5rem;
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .hero-content .btn-cta {
    min-height: 48px;
    padding: 0.85rem 1.65rem;
  }

  /* Inline positioning is used in the pages, so these mobile overrides are explicit. */
  a[aria-label="Chat on WhatsApp"] {
    right: 16px !important;
    bottom: calc(16px + env(safe-area-inset-bottom)) !important;
    width: 54px !important;
    height: 54px !important;
  }

  a[aria-label="Chat on WhatsApp"] svg {
    width: 29px;
    height: 29px;
  }

  body.mobile-menu-active a[aria-label="Chat on WhatsApp"] {
    opacity: 0;
    pointer-events: none;
  }
}

@media (max-width: 480px) {
  .hero-container {
    padding: 2rem 0 2.35rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 7.8vw, 2rem);
  }

  .hero-desc {
    font-size: 0.94rem;
  }
}

@media (max-width: 768px) and (max-height: 700px) {
  .mobile-nav-panel {
    gap: 0.35rem;
    padding: 0.6rem;
  }

  .mobile-menu {
    gap: 0;
  }

  .mobile-menu-item a {
    padding: 0.55rem 1rem;
    font-size: 0.92rem;
  }

  .mobile-nav-panel .btn-cta {
    min-height: 44px;
    padding: 0.65rem 1.25rem;
  }
}


/* ==========================================================================
   ACCESSIBILITY LAYER
   Added 2026-09-06. Kept in one block at the end so it wins on cascade order
   without needing !important, and so it is easy to review as a unit.
   ========================================================================== */

/* --- Skip link -----------------------------------------------------------
   Visually hidden until focused, then pinned to the top-left. Gives keyboard
   and screen-reader users a way past the 7-item nav on every page. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  padding: 12px 20px;
  background-color: var(--navy);
  color: #FFFFFF;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* --- Visible focus -------------------------------------------------------
   The base stylesheet sets `outline: none` in several places and defines no
   :focus-visible rule at all, so keyboard users had no visible focus anywhere.
   :focus-visible only fires for keyboard/AT focus, so mouse users see nothing
   change. The double outline (dark ring + light halo) stays visible on both
   the cream/white and navy/black surfaces used across the site. */
/* Longhands, not the `outline` shorthand: several base rules set outline
   longhands individually, and `html body` lifts specificity above the
   component-level rules that would otherwise win on source order. */
html body a:focus-visible,
html body button:focus-visible,
html body input:focus-visible,
html body select:focus-visible,
html body textarea:focus-visible,
html body summary:focus-visible,
html body [tabindex]:focus-visible {
  outline-style: solid !important;
  outline-width: 3px !important;
  outline-color: var(--orange) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 6px rgba(255, 108, 0, 0.28) !important;
}

/* Dark surfaces: keep the same ring, widen the halo slightly for separation. */
[data-theme="dark"] body a:focus-visible,
[data-theme="dark"] body button:focus-visible,
[data-theme="dark"] body input:focus-visible,
[data-theme="dark"] body select:focus-visible,
[data-theme="dark"] body textarea:focus-visible,
[data-theme="dark"] body summary:focus-visible,
[data-theme="dark"] body [tabindex]:focus-visible {
  outline-color: #FFA94D !important;
  box-shadow: 0 0 0 6px rgba(255, 169, 77, 0.32) !important;
}

/* --- Minimum tap targets --------------------------------------------------
   At 375px the nav rows measured 39px, the social icons 38px and the theme
   toggle 39px. Standalone controls get 46px (44 plus a little, because
   sub-pixel rounding was landing them on 43). Inline links inside a sentence
   are exempt from WCAG 2.5.5 and are held to the 2.5.8 AA floor of 24x24
   instead — forcing those to 44px would wreck the paragraph they sit in. */
@media (max-width: 768px) {
  /* Standalone controls */
  .mobile-menu-item a,
  .mobile-nav-panel .btn-cta,
  .footer-links a,
  .btn-cta,
  .btn-discuss,
  .btn-about-services,
  .publication-btn,
  .map-directions-pill,
  .btn-submit-enquiry,
  .btn-submit-contact {
    min-height: 46px;
    display: flex;
    align-items: center;
  }

  .btn-cta,
  .btn-discuss,
  .btn-about-services,
  .publication-btn,
  .map-directions-pill,
  .btn-submit-enquiry,
  .btn-submit-contact {
    justify-content: center;
  }

  .footer-socials a,
  .theme-toggle,
  .search-trigger,
  .hamburger-toggle,
  .btn-close-search,
  .modal-close,
  .mobile-theme-toggle-wrap .theme-toggle {
    min-width: 46px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Form controls in the enquiry/contact modals were 37px tall. */
  #enquiry-modal input:not([type="hidden"]),
  #enquiry-modal select,
  #enquiry-modal textarea,
  #contact-page-form input:not([type="hidden"]),
  #contact-page-form select {
    min-height: 44px;
  }

  .enquiry-modal-close,
  #enquiry-modal-close {
    min-width: 44px;
    min-height: 44px;
  }

  /* Inline links inside footer contact lines: 26px keeps them comfortably over
     the 24px AA floor without changing how the line reads. */
  .col-contact .contact-item a,
  .location-card-link {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
  }

  .location-card-link,
  .col-contact .contact-item a[title="Chat on WhatsApp"] {
    min-width: 26px;
    justify-content: center;
  }
}

/* --- Reduced motion (WCAG 2.3.3) -----------------------------------------
   The site animates counters, hover lifts, modal transitions and the sticky
   header. Users who ask the OS for reduced motion get near-instant changes
   instead. Timings are 0.01ms rather than 0 so JS transitionend still fires. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto !important;
  }

  /* Cancel the decorative lift/scale transforms outright. */
  .service-card:hover,
  .service-card-v2:hover,
  .glance-card:hover,
  .blog-card:hover,
  .btn-cta:hover,
  .btn-discuss:hover,
  .publication-card:hover,
  .team-card:hover {
    transform: none !important;
  }
}

/* --- Text sitting on an orange fill --------------------------------------
   These elements set `color: var(--white)`, and the dark theme remaps --white
   to #0A111F (near-black). That was survivable on the old vivid #FF6C00, but on
   the AA-safe --orange-cta it lands at 3.52:1. --orange-cta is deliberately the
   same in both themes, so its foreground must be too: a literal white, pinned
   here rather than taken from a themed token. */
.btn-cta,
.btn-cta:hover,
.btn-discuss,
.service-card-v2 .btn-discuss,
.btn-submit-enquiry,
.btn-submit-contact,
.btn-about-services,
.publication-btn-orange,
.map-directions-pill,
.serve-check-badge,
.achievement-badge,
.course-tag,
.service-card:hover .service-icon-box,
.glance-card:hover .glance-icon-box,
.blog-card:hover .blog-icon-box {
  color: #FFFFFF !important;
}

/* --- Honeypot field ------------------------------------------------------
   Off-screen rather than display:none — some bots skip hidden inputs but will
   happily fill one that is merely positioned away. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* --- Hover states moved out of inline on* handlers -----------------------
   These replace 160 inline onmouseover/onmouseout attributes that set styles
   imperatively. Same visual result, but the page no longer needs inline script
   to hover, so a strict Content-Security-Policy becomes possible.
   !important is needed only where the element carries an inline style
   attribute for its resting colour, which otherwise outranks any rule here. */
.site-footer a[href^="mailto:"],
.site-footer a[href^="tel:"],
.global-footer a[href^="mailto:"],
.global-footer a[href^="tel:"] {
  transition: color 0.2s;
}

.site-footer a[href^="mailto:"]:hover,
.site-footer a[href^="tel:"]:hover,
.site-footer a[href^="mailto:"]:focus-visible,
.site-footer a[href^="tel:"]:focus-visible,
.global-footer a[href^="mailto:"]:hover,
.global-footer a[href^="tel:"]:hover,
.global-footer a[href^="mailto:"]:focus-visible,
.global-footer a[href^="tel:"]:focus-visible {
  color: var(--orange) !important;
}

/* Small WhatsApp glyph sitting inline in the footer contact list. */
a[title="Chat on WhatsApp"] {
  transition: transform 0.2s;
}

a[title="Chat on WhatsApp"]:hover,
a[title="Chat on WhatsApp"]:focus-visible {
  transform: scale(1.15);
}

/* The "(Chat)" text link next to it. */
a[href*="wa.me"]:not([title]):not([aria-label]) {
  transition: opacity 0.2s;
}

a[href*="wa.me"]:not([title]):not([aria-label]):hover,
a[href*="wa.me"]:not([title]):not([aria-label]):focus-visible {
  opacity: 0.85;
}

/* Fixed floating WhatsApp button, bottom-right of every page. */
a[aria-label="Chat on WhatsApp"] {
  transition: transform 0.2s, box-shadow 0.2s;
}

a[aria-label="Chat on WhatsApp"]:hover,
a[aria-label="Chat on WhatsApp"]:focus-visible {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35) !important;
}

/* --- Site search ---------------------------------------------------------
   Styles for the results list injected by script.js into the search overlay. */
.search-results {
  margin-top: 1.25rem;
  max-height: min(52vh, 420px);
  overflow-y: auto;
  text-align: left;
  border-radius: 12px;
}

.search-results:empty {
  display: none;
}

.search-status {
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.5rem 0.25rem 0.75rem;
}

.search-result {
  display: block;
  padding: 0.85rem 1rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background-color: var(--white);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.search-result:hover,
.search-result:focus-visible {
  border-color: var(--orange);
  transform: translateX(3px);
}

.search-result-title {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}

.search-result-page {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--orange-ink);
  margin-bottom: 0.35rem;
}

.search-result-snippet {
  display: block;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.search-result mark {
  background-color: var(--cream);
  color: var(--orange-ink);
  font-weight: 700;
  padding: 0 2px;
  border-radius: 2px;
}

[data-theme="dark"] .search-result mark {
  background-color: rgba(255, 108, 0, 0.22);
  color: #FFB570;
}

@media (max-width: 768px) {
  .search-result {
    padding: 0.75rem 0.85rem;
  }
}
