/* index.css - Custom Premium Styling System for Magau Projects */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* CSS Custom Properties / Tokens */
:root {
  --primary: #2E6F40;          /* Forest Green - Growth */
  --primary-rgb: 46, 111, 64;
  --secondary: #8EAA62;        /* Sage Green - Calm Accent */
  --secondary-rgb: 142, 170, 98;
  --dark: #3E3A37;             /* Earthy Taupe - Text & Borders */
  --dark-rgb: 62, 58, 55;
  --light: #F7F8F6;            /* Alabaster White - Canvas */
  --backdrop: #E8EFE9;         /* Pale Moss - Section Background */
  --gold: #DCAE5A;             /* Warm Earth Gold - Ratings & Badges */
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.03);
  --shadow-medium: 0 10px 30px rgba(46, 111, 64, 0.08);
  --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.12);
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
}

/* Global Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--light);
  color: var(--dark);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--light);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark);
  font-weight: 700;
  line-height: 1.25;
}

p {
  color: rgba(62, 58, 55, 0.85);
  font-size: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

/* Main Layout Wrapper */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header & Glassmorphic Navigation */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(247, 248, 246, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(46, 111, 64, 0.08);
  transition: var(--transition-smooth);
}

.main-header.scrolled {
  padding: 8px 0;
  box-shadow: var(--shadow-subtle);
  background: rgba(247, 248, 246, 0.95);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-wrapper {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: clamp(45px, 5.5vh, 58px);
  width: auto;
  display: block;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.logo-wrapper:hover .brand-logo {
  transform: scale(1.03);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark);
  opacity: 0.8;
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-fast);
}

.nav-link:hover {
  opacity: 1;
  color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  opacity: 1;
  color: var(--primary);
}

/* Button UI Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--border-radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(46, 111, 64, 0.25);
}

.btn-primary:hover {
  background: #255833;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 111, 64, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background: rgba(46, 111, 64, 0.05);
  transform: translateY(-2px);
}

.btn-white {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-subtle);
}

.btn-white:hover {
  background: var(--light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-small {
  padding: 8px 18px;
  font-size: 0.85rem;
  border-radius: var(--border-radius-sm);
}

/* Mobile Navigation Controls */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--primary);
  font-size: 1.8rem;
  z-index: 1100;
}

/* Content Container views */
.main-content {
  flex: 1;
  margin-top: 90px; /* Offset fixed header */
}

.page-view {
  display: none; /* Controlled by JS page switching */
  animation: fadeIn 0.5s ease forwards;
}

.page-view.active-page {
  display: block;
}

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

/* Section Common Styles */
.section {
  padding: 80px 24px;
}

.section-bg-dark {
  background-color: var(--backdrop);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(46, 111, 64, 0.08);
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  color: var(--dark);
  margin-bottom: 16px;
}

.section-subtitle {
  color: rgba(62, 58, 55, 0.7);
  font-size: 1.1rem;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* --- PAGE 1: HOME --- */

/* Hero Section */
.hero-section {
  position: relative;
  min-height: calc(90vh - 90px);
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(232, 239, 233, 0.9) 0%, rgba(247, 248, 246, 0.7) 100%);
  padding: 60px 24px;
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-shape {
  position: absolute;
  background: radial-gradient(circle, rgba(46, 111, 64, 0.08) 0%, rgba(247, 248, 246, 0) 70%);
  border-radius: 50%;
}

.hero-shape-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -100px;
}

.hero-shape-2 {
  width: 400px;
  height: 400px;
  bottom: -150px;
  left: -100px;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-content {
  max-width: 640px;
}

.hero-slogan {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  padding: 8px 16px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary);
  border: 1px solid rgba(46, 111, 64, 0.15);
  box-shadow: var(--shadow-subtle);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  color: var(--dark);
}

/* Rotating service word — supplies motion where a hero image used to sit */
.hero-title-accent {
  display: inline-block;
  color: var(--primary);
  text-transform: capitalize;
  border-bottom: 0.09em solid rgba(var(--secondary-rgb), 0.55);
  padding-bottom: 0.04em;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.hero-title-accent.is-swapping {
  opacity: 0;
  transform: translateY(-8px);
}

@media (prefers-reduced-motion: reduce) {
  .hero-title-accent,
  .hero-title-accent.is-swapping {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(62, 58, 55, 0.8);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Quick contact strip beneath the hero actions */
.hero-contact-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: rgba(var(--dark-rgb), 0.7);
}

.hero-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.hero-contact-item i {
  color: var(--primary);
  font-size: 0.85rem;
}

a.hero-contact-item:hover {
  color: var(--primary);
}

.hero-contact-divider {
  width: 1px;
  height: 16px;
  background: rgba(var(--dark-rgb), 0.18);
}

/* ---------------------------------------------------------------- */
/* Company snapshot panel — the hero's visual anchor                  */
/* ---------------------------------------------------------------- */
.snapshot-panel {
  background: white;
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-medium);
  position: relative;
  overflow: hidden;
}

.snapshot-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.snapshot-header {
  margin-bottom: 26px;
}

.snapshot-eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 8px;
}

.snapshot-title {
  font-size: 1.32rem;
  color: var(--primary);
  line-height: 1.3;
}

.snapshot-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.snapshot-stat {
  background: var(--light);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.snapshot-stat-value {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.snapshot-stat-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  margin-top: 6px;
}

/* Service line cards */
.home-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.home-service-card {
  background: white;
  padding: 32px 26px;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(46, 111, 64, 0.05);
  box-shadow: var(--shadow-subtle);
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  font: inherit;
  color: inherit;
  width: 100%;
}

.home-service-card:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.home-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transition: var(--transition-smooth);
}

.home-service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}

.home-service-card:hover::before {
  transform: scaleX(1);
}

.home-service-icon {
  width: 64px;
  height: 64px;
  background: var(--backdrop);
  color: var(--primary);
  border-radius: 50% 50% 50% 0; /* organic leaf shape */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  transition: var(--transition-smooth);
}

.home-service-card:hover .home-service-icon {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
}

.home-service-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.home-service-desc {
  font-size: 0.85rem;
  color: rgba(62, 58, 55, 0.7);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.home-service-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.home-service-link i {
  transition: transform 0.2s ease;
}

.home-service-card:hover .home-service-link i {
  transform: translateX(4px);
}

/* Values / feature cards */
.why-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.why-feature-grid-wide {
  grid-template-columns: repeat(4, 1fr);
}

.why-feature-card {
  background: white;
  padding: 24px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(46, 111, 64, 0.03);
  transition: var(--transition-smooth);
}

.why-feature-card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-4px);
}

.why-feature-icon {
  font-size: 1.8rem;
  color: var(--secondary);
  margin-bottom: 14px;
}

.why-feature-title {
  font-size: 1.15rem;
  color: var(--dark);
  margin-bottom: 8px;
  font-weight: 700;
}

.why-feature-desc {
  font-size: 0.9rem;
  color: rgba(62, 58, 55, 0.7);
  line-height: 1.5;
}

/* Home Bottom Call To Action */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #1e4b2b 100%);
  color: white;
  border-radius: var(--border-radius-lg);
  padding: 60px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-heavy);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.cta-banner-content {
  max-width: 650px;
}

.cta-banner-title {
  font-size: 2.2rem;
  color: white;
  margin-bottom: 12px;
}

.cta-banner-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
}

/* --- PAGE 2: ABOUT US --- */

.about-intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.about-subheading {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 18px;
}

.about-text .hero-description {
  margin-bottom: 18px;
  font-size: 1.02rem;
}

/* Positioning statement card — replaces the old about photo */
.positioning-card {
  background: var(--primary);
  color: white;
  border-radius: var(--border-radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-medium);
  position: relative;
  overflow: hidden;
}

.positioning-card::before {
  content: "\201C";
  position: absolute;
  top: -10px;
  right: 20px;
  font-family: var(--font-heading);
  font-size: 9rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.1);
}

.positioning-eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 14px;
}

.positioning-text {
  color: white;
  font-size: 1.05rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.positioning-meta {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.positioning-meta-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
}

.positioning-meta-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: white;
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.mv-card {
  background: white;
  padding: 40px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-subtle);
  border-left: 5px solid var(--primary);
}

.mv-card-vision {
  border-left-color: var(--secondary);
}

.mv-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.mv-card-vision .mv-icon {
  color: var(--secondary);
}

.mv-title {
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 12px;
}

/* Service Segments in About Us */
.segments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.segment-card {
  background: white;
  padding: 30px 24px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}

.segment-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.segment-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(46, 111, 64, 0.15);
  margin-bottom: 10px;
  line-height: 1;
}

.segment-title {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.segment-desc {
  font-size: 0.85rem;
  color: rgba(62, 58, 55, 0.7);
  line-height: 1.5;
}

/* --- PAGE 3: SERVICES --- */

.services-detail-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.service-row-card {
  background: white;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(var(--primary-rgb), 0.07);
  box-shadow: var(--shadow-subtle);
  padding: 36px;
  transition: var(--transition-smooth);
  scroll-margin-top: 120px;
}

.service-row-card:hover {
  box-shadow: var(--shadow-medium);
}

.service-row-card.service-row-highlight {
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(var(--primary-rgb), 0.18);
}

.service-row-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(var(--dark-rgb), 0.08);
}

.service-row-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: var(--backdrop);
  color: var(--primary);
  border-radius: 50% 50% 50% 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.service-row-title {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.service-row-desc {
  font-size: 0.98rem;
  color: rgba(var(--dark-rgb), 0.78);
  line-height: 1.65;
}

.service-row-body {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 36px;
  align-items: start;
}

.service-subheading {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--secondary);
  margin-bottom: 14px;
}

.service-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.93rem;
  color: rgba(var(--dark-rgb), 0.82);
  line-height: 1.55;
}

.service-checklist i {
  color: var(--primary);
  font-size: 0.95rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.service-row-side {
  background: var(--backdrop);
  border-radius: var(--border-radius-md);
  padding: 24px;
}

.service-audience {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(var(--dark-rgb), 0.8);
  margin-bottom: 20px;
}

/* ---------------------------------------------------------------- */
/* Shared: differentiators, process, credentials, leadership          */
/* ---------------------------------------------------------------- */

.differentiator-panel {
  background: white;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(var(--primary-rgb), 0.08);
  box-shadow: var(--shadow-subtle);
  padding: 34px;
}

.differentiator-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(var(--dark-rgb), 0.08);
}

.differentiator-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.differentiator-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.93rem;
  line-height: 1.6;
  color: rgba(var(--dark-rgb), 0.8);
}

.differentiator-list i {
  color: var(--secondary);
  margin-top: 4px;
  flex-shrink: 0;
}

/* Engagement process timeline */
.process-timeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.process-step {
  position: relative;
  background: white;
  border-radius: var(--border-radius-md);
  padding: 28px 22px;
  border: 1px solid rgba(var(--primary-rgb), 0.07);
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

/* Connector line between steps */
.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 46px;
  right: -16px;
  width: 16px;
  height: 2px;
  background: rgba(var(--primary-rgb), 0.2);
}

.process-marker {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.process-title {
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.process-desc {
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(var(--dark-rgb), 0.7);
}

/* Registration credentials */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.credential-card {
  background: white;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(var(--primary-rgb), 0.08);
  box-shadow: var(--shadow-subtle);
  padding: 28px 22px;
  text-align: center;
}

.credential-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--backdrop);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.credential-label {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(var(--dark-rgb), 0.55);
  margin-bottom: 6px;
}

.credential-value {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary);
  letter-spacing: 0.3px;
  word-break: break-word;
}

/* Leadership */
.leadership-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-medium);
  border: 1px solid rgba(var(--primary-rgb), 0.07);
  padding: 44px;
  align-items: start;
}

.leadership-identity {
  text-align: center;
  padding: 28px 20px;
  background: var(--backdrop);
  border-radius: var(--border-radius-md);
}

.leadership-avatar {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
}

.leadership-name {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.leadership-role {
  font-size: 0.85rem;
  color: rgba(var(--dark-rgb), 0.65);
  font-weight: 600;
}

.leadership-summary {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(var(--dark-rgb), 0.82);
  margin-bottom: 28px;
}

.leadership-quals-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--secondary);
  margin-bottom: 16px;
}

.leadership-quals {
  list-style: none;
  display: grid;
  gap: 12px;
}

.leadership-quals li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(var(--dark-rgb), 0.8);
}

.leadership-quals i {
  color: var(--primary);
  margin-top: 4px;
  flex-shrink: 0;
}

/* --- PAGE 4: TRACK RECORD --- */

.record-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.record-card {
  background: white;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(var(--primary-rgb), 0.07);
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-subtle);
  padding: 28px;
  transition: var(--transition-smooth);
}

.record-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.record-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.record-client {
  font-size: 1.12rem;
  color: var(--primary);
}

.record-type {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary);
  background: var(--backdrop);
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.record-detail {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(var(--dark-rgb), 0.78);
}

.record-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 28px;
  padding: 22px 26px;
  background: var(--backdrop);
  border-radius: var(--border-radius-md);
  border-left: 4px solid var(--secondary);
}

.record-note i {
  color: var(--primary);
  margin-top: 4px;
  font-size: 1.05rem;
}

.record-note p {
  font-size: 0.93rem;
  line-height: 1.6;
}

/* Operating standards */
.standards-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.standard-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: white;
  border-radius: var(--border-radius-md);
  padding: 26px;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(var(--primary-rgb), 0.05);
}

.standard-num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: rgba(var(--primary-rgb), 0.22);
  line-height: 1;
  flex-shrink: 0;
}

.standard-text {
  font-size: 0.93rem;
  line-height: 1.6;
  color: rgba(var(--dark-rgb), 0.8);
}

/* --- PAGE 5: CONTACT --- */

.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
}

/* Contact Information panel */
.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-info-card {
  background: white;
  padding: 30px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(46, 111, 64, 0.05);
}

.contact-method-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-method-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-method-icon {
  width: 42px;
  height: 42px;
  background: var(--backdrop);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-method-details h4 {
  font-size: 0.95rem;
  color: rgba(62, 58, 55, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-method-details p,
.contact-method-details a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
}

.contact-method-details a:hover {
  color: var(--primary);
}

.whatsapp-box {
  background: #E8F7EE;
  border: 1px dashed #2E6F40;
  padding: 24px;
  border-radius: var(--border-radius-md);
  text-align: center;
}

.whatsapp-box-icon {
  font-size: 2.2rem;
  color: #25D366;
  margin-bottom: 8px;
}

.whatsapp-box-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.whatsapp-box-desc {
  font-size: 0.85rem;
  color: rgba(62, 58, 55, 0.7);
  margin-bottom: 16px;
}

.map-container {
  background: white;
  padding: 8px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(46, 111, 64, 0.05);
  height: 250px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--border-radius-md);
}

/* Quote Wizard Form Container */
.quote-form-wizard {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-medium);
  border: 1px solid rgba(46, 111, 64, 0.05);
  padding: 40px;
}

.wizard-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}

.wizard-steps::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--backdrop);
  z-index: 1;
}

.wizard-step {
  width: 32px;
  height: 32px;
  background: white;
  border: 2px solid var(--backdrop);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: rgba(62, 58, 55, 0.4);
  position: relative;
  z-index: 2;
  transition: var(--transition-fast);
}

.wizard-step.active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 10px rgba(46, 111, 64, 0.2);
}

.wizard-step.completed {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.wizard-step-label {
  position: absolute;
  top: 38px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(62, 58, 55, 0.5);
  white-space: nowrap;
}

.wizard-step.active .wizard-step-label {
  color: var(--primary);
}

.wizard-panel {
  display: none;
  animation: slideIn 0.4s ease forwards;
}

.wizard-panel.active-panel {
  display: block;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.form-group-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dark);
}

.form-input {
  font-family: var(--font-body);
  padding: 12px 18px;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(46, 111, 64, 0.15);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
  background: var(--light);
}

.form-input:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(46, 111, 64, 0.1);
}

/* Service Options Radio Cards */
.services-radio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.radio-card {
  background: var(--light);
  border: 1px solid rgba(46, 111, 64, 0.15);
  padding: 16px 20px;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-fast);
}

.radio-card:hover {
  background: white;
  border-color: var(--primary);
}

.radio-card-input {
  display: none;
}

.radio-card-custom {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(46, 111, 64, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.radio-card-custom::after {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  transform: scale(0);
  transition: var(--transition-fast);
}

.radio-card-input:checked + .radio-card-custom {
  border-color: var(--primary);
}

.radio-card-input:checked + .radio-card-custom::after {
  transform: scale(1);
}

.radio-card-input:checked ~ .radio-card-content .radio-card-title {
  color: var(--primary);
}

.radio-card-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  border-top: 1px solid rgba(46, 111, 64, 0.08);
  padding-top: 24px;
}

.wizard-success {
  text-align: center;
  padding: 40px 20px;
  animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-icon {
  width: 72px;
  height: 72px;
  background: #E8F7EE;
  color: #2E6F40;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 24px auto;
  box-shadow: 0 4px 10px rgba(46, 111, 64, 0.1);
}

/* Service Detail Modal Popup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(62, 58, 55, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  /* Visibility is driven by the [hidden] attribute from app.js */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: white;
  border-radius: var(--border-radius-lg);
  max-width: 650px;
  width: 100%;
  box-shadow: var(--shadow-heavy);
  animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  overflow: hidden;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  padding: 24px 30px;
  border-bottom: 1px solid rgba(46, 111, 64, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.5rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark);
  cursor: pointer;
  opacity: 0.5;
  transition: var(--transition-fast);
}

.modal-close:hover {
  opacity: 1;
  color: var(--primary);
}

.modal-body {
  padding: 30px;
}

/* --- FOOTER & GLOBAL ACTIONS --- */

/* Main Site Footer */
.main-footer {
  background: #222522;
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 24px 20px 24px;
  border-top: 5px solid var(--primary);
}

/* The global `p` rule sets dark taupe text, which is unreadable on this dark
   background (1.3:1). Override it for everything inside the footer. */
.main-footer p {
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(2, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px auto;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.brand-logo-footer {
  height: 72px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: var(--transition-smooth);
  /* Render the logo pure white. The dark-green original scores only 1.3:1 against
     the #222522 footer; white scores 15:1. Avoids shipping a second image file. */
  filter: brightness(0) invert(1);
}

.footer-logo:hover .brand-logo-footer {
  transform: scale(1.03);
}

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.footer-title {
  font-size: 1.1rem;
  color: white;
  font-weight: 700;
  margin-bottom: 4px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--secondary);
  padding-left: 4px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: white;
  transition: var(--transition-fast);
}

.social-icon:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.72);
}

/* Floating Action Buttons */
.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.6rem;
  box-shadow: var(--shadow-heavy);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.floating-btn-wa {
  background: #25D366;
}

.floating-btn-wa:hover {
  transform: scale(1.1) rotate(8deg);
  background: #20BA56;
}

.floating-btn-phone {
  background: var(--primary);
  display: none; /* Shown only on mobile devices */
}

.floating-btn-phone:hover {
  transform: scale(1.1);
}

/* Icons via dynamic class injection or standalone SVG icons in index.html */
/* Standalone CSS helper icons (Feather Icon analogues using modern HTML) */
.icon-box {
  display: inline-block;
  vertical-align: middle;
}

/* ---------------------------------------------------------------- */
/* Utilities                                                          */
/* ---------------------------------------------------------------- */

/* The hidden attribute must win over component display rules
   (.btn is inline-flex, .modal-overlay is flex, etc.) */
[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--primary);
  color: white;
  padding: 12px 20px;
  border-radius: 0 0 var(--border-radius-sm) 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.mv-text {
  font-size: 0.97rem;
  line-height: 1.7;
  color: rgba(var(--dark-rgb), 0.8);
}

/* ---------------------------------------------------------------- */
/* Contact page additions                                             */
/* ---------------------------------------------------------------- */

.contact-card-title {
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 24px;
}

.contact-method-details a {
  display: block;
}

.contact-secondary {
  font-size: 0.85rem !important;
  color: rgba(var(--dark-rgb), 0.55) !important;
  margin-top: 4px;
}

.btn-whatsapp {
  background: #25D366 !important;
  border-color: #25D366 !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #1da851 !important;
  border-color: #1da851 !important;
}

/* ---------------------------------------------------------------- */
/* Quote wizard additions                                             */
/* ---------------------------------------------------------------- */

.wizard-panel-title {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.wizard-panel-hint {
  color: rgba(var(--dark-rgb), 0.6);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.form-optional {
  font-weight: 400;
  color: rgba(var(--dark-rgb), 0.45);
  font-size: 0.85em;
}

.radio-card-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.radio-card-icon {
  color: var(--primary);
  font-size: 0.95rem;
}

.form-error {
  background: #FDECEA;
  border: 1px solid #F5C2BC;
  border-left: 4px solid #C0392B;
  color: #922B21;
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  font-size: 0.88rem;
  margin-top: 18px;
}

.wizard-delivery-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  padding: 14px 16px;
  background: var(--backdrop);
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(var(--dark-rgb), 0.75);
}

.wizard-delivery-note i {
  color: var(--primary);
  margin-top: 3px;
  flex-shrink: 0;
}

/* Send panel shown after the final step */
.success-title {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.success-text {
  color: rgba(var(--dark-rgb), 0.75);
  line-height: 1.65;
  margin-bottom: 28px;
}

.success-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.success-summary {
  text-align: left;
  background: var(--backdrop);
  border-radius: var(--border-radius-sm);
  padding: 14px 18px;
  margin-bottom: 20px;
}

.success-summary summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}

.success-pre {
  margin-top: 14px;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(var(--dark-rgb), 0.8);
}

.success-fallback {
  font-size: 0.88rem;
  color: rgba(var(--dark-rgb), 0.65);
  margin-bottom: 20px;
}

.success-fallback a {
  color: var(--primary);
  font-weight: 700;
}

/* ---------------------------------------------------------------- */
/* Modal additions                                                    */
/* ---------------------------------------------------------------- */

.modal-intro {
  font-size: 0.92rem;
  color: rgba(var(--dark-rgb), 0.7);
  margin-bottom: 22px;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.modal-send {
  text-align: center;
  padding: 12px 0;
}

/* ---------------------------------------------------------------- */
/* Footer additions                                                   */
/* ---------------------------------------------------------------- */

.footer-contact-list {
  list-style: none;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-contact-list i {
  color: var(--secondary);
  font-size: 0.85rem;
  width: 16px;
}

.footer-contact-list a:hover {
  color: white;
}

.footer-registration {
  margin-top: 8px;
  font-size: 0.78rem !important;
  /* Deliberately quieter than the copyright line, but still readable (~5.6:1).
     Do not use `opacity` here - it compounds with the colour alpha. */
  color: rgba(255, 255, 255, 0.58) !important;
}

/* ---------------------------------------------------------------- */
/* Responsive                                                         */
/* ---------------------------------------------------------------- */

@media (max-width: 1100px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-content {
    max-width: 100%;
  }

  .snapshot-panel {
    max-width: 620px;
  }

  .process-timeline {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-step:not(:last-child)::after {
    display: none;
  }

  .why-feature-grid-wide {
    grid-template-columns: repeat(2, 1fr);
  }

  .leadership-card {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .leadership-identity {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
  }

  .leadership-avatar {
    margin: 0;
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    font-size: 1.6rem;
  }
}

@media (max-width: 1024px) {
  .home-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .segments-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .credentials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-row-body {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .section {
    padding: 60px 16px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 75px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 75px);
    background: var(--light);
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    align-items: flex-start;
    border-top: 1px solid rgba(46, 111, 64, 0.08);
    overflow-y: auto;
  }

  .nav-menu.mobile-open {
    left: 0;
  }

  .hero-section {
    min-height: auto;
    padding: 110px 16px 50px;
  }

  .hero-title {
    font-size: 2.3rem;
  }

  .hero-contact-strip {
    gap: 12px;
  }

  .snapshot-panel {
    padding: 26px;
  }

  .snapshot-stat-value {
    font-size: 1.6rem;
  }

  .home-services-grid,
  .why-feature-grid,
  .why-feature-grid-wide,
  .segments-grid,
  .record-list,
  .standards-list,
  .process-timeline {
    grid-template-columns: 1fr;
  }

  .credentials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-intro-grid,
  .mission-vision-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .service-row-card {
    padding: 26px 22px;
  }

  .service-row-header {
    flex-direction: column;
    gap: 14px;
  }

  .service-row-title {
    font-size: 1.35rem;
  }

  .leadership-card {
    padding: 28px 22px;
  }

  .leadership-identity {
    flex-direction: column;
    text-align: center;
  }

  .leadership-avatar {
    margin: 0 auto;
  }

  .positioning-card {
    padding: 28px 24px;
  }

  .positioning-meta {
    gap: 22px;
  }

  .contact-layout,
  .form-group-grid,
  .services-radio-grid {
    grid-template-columns: 1fr;
  }

  /* Two columns are too tight here — the email address alone forces one track
     wider than the other. Stack them instead. */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .quote-form-wizard {
    padding: 24px;
  }

  .success-actions {
    flex-direction: column;
  }

  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
    gap: 24px;
  }

  .floating-btn-phone {
    display: flex;
  }
}

@media (max-width: 420px) {
  .snapshot-stats {
    grid-template-columns: 1fr;
  }

  .credentials-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Print — the company profile is often printed for tenders */
@media print {
  .main-header,
  .floating-actions,
  .mobile-nav-toggle,
  .cta-banner,
  .quote-form-wizard,
  .map-container,
  .skip-link {
    display: none !important;
  }

  .page-view {
    display: block !important;
  }

  body {
    background: white;
  }
}
