/* ==========================================================================
   VM Inspection Services — Design System
   Inspired by Porter construction theme
   Fonts: DM Serif Display (headings), Plus Jakarta Sans (body/UI)
   ========================================================================== */

/* ==========================================================================
   1. GOOGLE FONTS IMPORT
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');


/* ==========================================================================
   2. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ========================================================================== */

:root {
  /* Color Palette */
  --navy:          #1B2A4A;
  --navy-dark:     #141F35;
  --navy-light:    #243656;
  --white:         #FFFFFF;
  --off-white:     #F8F9FC;
  --gray-100:      #F3F4F6;
  --gray-200:      #E5E7EB;
  --gray-300:      #D1D5DB;
  --gray-400:      #9CA3AF;
  --gray-500:      #6B7280;
  --gray-600:      #4B5563;
  --gray-700:      #374151;
  --text-primary:  #1B2A4A;
  --text-secondary:#4B5563;
  --text-light:    #9CA3AF;
  --accent:        #2563EB;
  --accent-dark:   #1D4ED8;
  --accent-light:  rgba(37, 99, 235, 0.1);

  /* Typography */
  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body:    'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Spacing scale */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md:  0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg:  0 8px 32px rgba(0, 0, 0, 0.10);
  --shadow-xl:  0 16px 48px rgba(0, 0, 0, 0.14);

  /* Border radius */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  /* Transitions */
  --transition: 0.3s ease;

  /* Nav height */
  --nav-height: 80px;
}


/* ==========================================================================
   3. MODERN CSS RESET
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video,
canvas,
svg {
  max-width: 100%;
  display: block;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}


/* ==========================================================================
   4. TYPOGRAPHY SCALE
   ========================================================================== */

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 400;
}

h4, h5, h6 {
  font-family: var(--font-body);
  color: var(--text-primary);
}

h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.75rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 2rem;
  line-height: 1.3;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}

h5 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Section label — small uppercase text above headings */
.section-label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  display: block;
  margin-bottom: 12px;
}

.section-label--accent {
  color: var(--accent);
}

.section-label--white {
  color: rgba(255, 255, 255, 0.6);
}

/* Italic headings via DM Serif Display italic */
.heading-italic {
  font-style: italic;
}


/* ==========================================================================
   5. LAYOUT
   ========================================================================== */

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

.container--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Sections */
.section {
  padding: 100px 0;
}

.section--gray {
  background-color: var(--off-white);
}

.section--navy {
  background-color: var(--navy);
  color: var(--white);
}

.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy h4,
.section--navy h5 {
  color: var(--white);
}

.section--navy p {
  color: rgba(255, 255, 255, 0.75);
}

.section--dark {
  background-color: var(--navy-dark);
  color: var(--white);
}

/* Grid utilities */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

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

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

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

/* Flexbox utilities */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }


/* ==========================================================================
   6. NAVIGATION
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background-color: var(--white);
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition);
}

.nav--scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo */
.nav__logo {
  flex-shrink: 0;
}

.nav__logo img {
  height: 48px;
  width: auto;
}

/* Nav links (desktop center) */
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--navy);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background-color var(--transition);
  white-space: nowrap;
  position: relative;
}

.nav__link:hover {
  color: var(--accent);
}

.nav__link--active {
  color: var(--accent);
  font-weight: 600;
}

/* Services dropdown */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav__dropdown-toggle::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform var(--transition);
}

.nav__dropdown:hover .nav__dropdown-toggle::after {
  transform: rotate(180deg);
}

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 8px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 100;
}

.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-item {
  display: block;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition), color var(--transition);
}

.nav__dropdown-item:hover {
  background-color: var(--off-white);
  color: var(--accent);
}

/* CTA button (right side) */
.nav__cta {
  flex-shrink: 0;
}

/* Hamburger (mobile) — checkbox hack */
.nav__hamburger-toggle {
  display: none;
}

.nav__hamburger-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav__hamburger-label span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Mobile nav menu */
.nav__mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background-color: var(--navy);
  padding: 24px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-xl);
}

.nav__mobile-link {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition), color var(--transition);
}

.nav__mobile-link:hover {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.1);
}

.nav__mobile-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin: 8px 0;
}

.nav__mobile-cta {
  margin-top: 16px;
}


/* ==========================================================================
   7. BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
  white-space: nowrap;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn:active {
  transform: translateY(1px);
}

/* Primary — navy fill */
.btn-primary {
  background-color: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-primary:hover {
  background-color: var(--navy-dark);
  border-color: var(--navy-dark);
  box-shadow: 0 4px 16px rgba(27, 42, 74, 0.3);
}

/* Secondary — outlined */
.btn-secondary {
  background-color: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background-color: var(--navy);
  color: var(--white);
}

/* White — for dark backgrounds */
.btn-white {
  background-color: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-white:hover {
  background-color: var(--off-white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Accent — blue */
.btn-accent {
  background-color: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-accent:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

/* Small variant */
.btn-small {
  padding: 10px 24px;
  font-size: 0.875rem;
}

/* Large variant */
.btn-large {
  padding: 18px 40px;
  font-size: 1rem;
}

/* Full width */
.btn-full {
  width: 100%;
}

/* Button with arrow */
.btn-arrow::after {
  content: '→';
  transition: transform var(--transition);
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}


/* ==========================================================================
   8. HERO SECTION
   ========================================================================== */

.hero {
  position: relative;
  min-height: 600px;
  height: calc(100vh - var(--nav-height));
  margin-top: var(--nav-height);
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--navy);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(27, 42, 74, 0.92) 0%,
    rgba(27, 42, 74, 0.75) 50%,
    rgba(27, 42, 74, 0.25) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero__content {
  max-width: 600px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.hero__sub {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

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

/* Floating card on hero right */
.hero__card {
  position: relative;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 28px;
  min-width: 280px;
  max-width: 340px;
  flex-shrink: 0;
}

.hero__card-title {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.hero__card-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--navy);
}

.hero__card-item:last-of-type {
  border-bottom: none;
}

.hero__card-icon {
  width: 36px;
  height: 36px;
  background-color: var(--off-white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.hero__card-cta {
  margin-top: 20px;
}


/* ==========================================================================
   9. STATS SECTION
   ========================================================================== */

.stats-section {
  padding: 100px 0;
}

.stats-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.stats-section__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.stats-section__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stats-section__content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.stats-section__header {
  margin-bottom: 32px;
}

.stats-grid {
  display: flex;
  flex-direction: column;
}

.stat-item {
  padding: 24px 0;
  border-top: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-item:last-child {
  border-bottom: 1px solid var(--gray-200);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--navy);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}


/* ==========================================================================
   10. SERVICE CARDS (NUMBERED GRID)
   ========================================================================== */

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

/* Heading card — first position, white background */
.service-card--heading {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
}

.service-card--heading h2,
.service-card--heading h3 {
  color: var(--navy);
}

.service-card--heading p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 24px;
}

/* Standard dark service card */
.service-card {
  background-color: var(--navy);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

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

/* Dot indicator — top left */
.service-card__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  margin-bottom: 40px;
}

/* Number — top right, large watermark */
.service-card__number {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font-body);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.1);
  line-height: 1;
  user-select: none;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-card__desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition), gap var(--transition);
}

.service-card__link:hover {
  color: var(--white);
  gap: 10px;
}

/* Light variant (for use on off-white backgrounds) */
.service-card--light {
  background-color: var(--navy-light);
}

/* Accent variant */
.service-card--accent {
  background-color: var(--accent);
}


/* ==========================================================================
   11. PROCESS / STEPS SECTION
   ========================================================================== */

.process-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.process-section__heading {
  position: sticky;
  top: calc(var(--nav-height) + 40px);
}

.process-steps {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Vertical connector line */
.process-steps::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 60px;
  bottom: 60px;
  width: 1px;
  background-color: var(--gray-200);
}

.process-step {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--gray-100);
  position: relative;
}

.process-step:last-child {
  border-bottom: none;
}

.process-step__number {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--gray-300);
  line-height: 1;
  min-width: 56px;
  padding-top: 4px;
  position: relative;
  z-index: 1;
  background-color: var(--white);
}

/* On gray section background */
.section--gray .process-step__number {
  background-color: var(--off-white);
}

.process-step__content {
  flex: 1;
}

.process-step__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.process-step__desc {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}


/* ==========================================================================
   12. GENERAL CARD COMPONENT
   ========================================================================== */

.card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.card-body {
  padding: 24px;
}

.card-body h4 {
  margin-bottom: 10px;
}

.card-body p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* Card with border instead of shadow */
.card--bordered {
  box-shadow: none;
  border: 1px solid var(--gray-200);
}

.card--bordered:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-md);
}

/* Dark card */
.card--dark {
  background-color: var(--navy);
  color: var(--white);
}

.card--dark h4 {
  color: var(--white);
}

.card--dark p {
  color: rgba(255, 255, 255, 0.7);
}


/* ==========================================================================
   13. BLOG CARDS
   ========================================================================== */

.blog-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.blog-card__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  flex-shrink: 0;
}

.blog-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__date {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
  margin-bottom: 10px;
}

.blog-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card__excerpt {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  /* 2-line clamp */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition);
  margin-top: auto;
}

.blog-card__link:hover {
  gap: 10px;
}

.blog-card__link::after {
  content: '→';
}


/* ==========================================================================
   14. TESTIMONIALS
   ========================================================================== */

.testimonial-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
  transition: box-shadow var(--transition), transform var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
  color: #F59E0B;
  font-size: 1.1rem;
}

.testimonial-card__quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 24px;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--gray-200);
  flex-shrink: 0;
}

.testimonial-card__avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.testimonial-card__name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9375rem;
  margin-bottom: 2px;
}

.testimonial-card__role {
  font-size: 0.875rem;
  color: var(--text-light);
}


/* ==========================================================================
   15. CONTACT FORM
   ========================================================================== */

.contact-form {
  width: 100%;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-label span {
  color: var(--accent);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-400);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--gray-300);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-submit {
  margin-top: 8px;
}

/* Form inside a card */
.contact-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

/* Form on dark background */
.form-input--dark,
.form-textarea--dark {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.form-input--dark::placeholder,
.form-textarea--dark::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-input--dark:focus,
.form-textarea--dark:focus {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}


/* ==========================================================================
   16. FOOTER
   ========================================================================== */

.footer {
  background-color: var(--navy-dark);
  color: var(--white);
  padding: 80px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 48px;
  padding-bottom: 48px;
}

/* Footer column */
.footer__col-title {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
}

.footer__logo {
  margin-bottom: 16px;
}

.footer__logo img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer__about-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Footer nav links */
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
  line-height: 1.5;
}

.footer__link:hover {
  color: var(--white);
}

/* Footer contact info */
.footer__contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.footer__contact-icon {
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Social icons */
.footer__social {
  display: inline-flex;
  gap: 12px;
  margin-top: 8px;
}

.footer__social-link {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: background-color var(--transition), color var(--transition);
}

.footer__social-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

/* Footer bottom bar */
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 28px 0;
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer__bottom-links {
  display: flex;
  gap: 24px;
}

.footer__bottom-link {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--transition);
}

.footer__bottom-link:hover {
  color: rgba(255, 255, 255, 0.8);
}


/* ==========================================================================
   17. PAGE HEADER (inner pages)
   ========================================================================== */

.page-header {
  background-color: var(--navy);
  padding: calc(var(--nav-height) + 60px) 0 60px;
  position: relative;
  overflow: hidden;
}

/* Subtle gradient overlay for depth */
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-light) 100%);
  opacity: 0.5;
}

/* Optional background pattern */
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 70% 50%, rgba(37, 99, 235, 0.08) 0%, transparent 60%);
}

.page-header__inner {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 16px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb__separator {
  opacity: 0.4;
}

.breadcrumb__link {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.breadcrumb__link:hover {
  color: rgba(255, 255, 255, 0.9);
}

.breadcrumb__current {
  color: rgba(255, 255, 255, 0.9);
}

/* Page header with background image */
.page-header--image {
  background-size: cover;
  background-position: center;
}

.page-header--image .page-header__overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 42, 74, 0.82);
}


/* ==========================================================================
   18. SECTION UTILITY COMPONENTS
   ========================================================================== */

/* Section header block used above content */
.section-header {
  margin-bottom: 56px;
}

.section-header--center {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 56px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Divider */
.divider {
  width: 48px;
  height: 3px;
  background-color: var(--accent);
  border-radius: 2px;
  margin: 16px 0;
}

.divider--center {
  margin-left: auto;
  margin-right: auto;
}

.divider--white {
  background-color: rgba(255, 255, 255, 0.4);
}

/* Icon badge */
.icon-badge {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background-color: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  margin-bottom: 20px;
  flex-shrink: 0;
}

.icon-badge--navy {
  background-color: var(--navy);
  color: var(--white);
}

.icon-badge--accent {
  background-color: var(--accent-light);
  color: var(--accent);
}

/* Alert / Notice banner */
.notice {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.5;
}

.notice--info {
  background-color: rgba(37, 99, 235, 0.08);
  border-left: 3px solid var(--accent);
  color: var(--navy);
}

.notice--success {
  background-color: rgba(16, 185, 129, 0.08);
  border-left: 3px solid #10B981;
  color: var(--navy);
}


/* ==========================================================================
   19. UTILITY CLASSES
   ========================================================================== */

/* Text alignment */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }

/* Text colors */
.text-navy    { color: var(--navy); }
.text-white   { color: var(--white); }
.text-accent  { color: var(--accent); }
.text-muted   { color: var(--text-secondary); }
.text-light   { color: var(--text-light); }

/* Margin top */
.mt-1 { margin-top: var(--space-1); }   /* 8px  */
.mt-2 { margin-top: var(--space-2); }   /* 16px */
.mt-3 { margin-top: var(--space-3); }   /* 24px */
.mt-4 { margin-top: var(--space-4); }   /* 32px */
.mt-5 { margin-top: var(--space-5); }   /* 48px */

/* Margin bottom */
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }

/* Padding y-axis */
.py-1 { padding-top: var(--space-1); padding-bottom: var(--space-1); }
.py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.py-3 { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-5 { padding-top: var(--space-5); padding-bottom: var(--space-5); }

/* Visibility */
.hidden-mobile  { display: block; }
.hidden-desktop { display: none; }

/* Width helpers */
.w-full  { width: 100%; }
.w-auto  { width: auto; }


/* ==========================================================================
   20. ANIMATIONS
   ========================================================================== */

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

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Apply via JS intersection observer — add .is-visible to trigger */
.animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay utilities */
.animate--delay-1 { transition-delay: 0.1s; }
.animate--delay-2 { transition-delay: 0.2s; }
.animate--delay-3 { transition-delay: 0.3s; }
.animate--delay-4 { transition-delay: 0.4s; }
.animate--delay-5 { transition-delay: 0.5s; }


/* ==========================================================================
   21. RESPONSIVE — TABLET (768px – 1024px)
   ========================================================================== */

@media (max-width: 1024px) {

  /* Typography */
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.75rem; }

  /* Nav — switch to hamburger */
  .nav__links    { display: none; }
  .nav__cta      { display: none; }

  .nav__hamburger-label {
    display: flex;
  }

  /* Hamburger open state */
  .nav__hamburger-toggle:checked ~ .nav__mobile-menu {
    display: flex;
  }

  /* Hamburger animation */
  .nav__hamburger-toggle:checked ~ .nav__hamburger-label span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav__hamburger-toggle:checked ~ .nav__hamburger-label span:nth-child(2) {
    opacity: 0;
  }
  .nav__hamburger-toggle:checked ~ .nav__hamburger-label span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Grids */
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  /* Services grid */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Stats section */
  .stats-section__inner {
    gap: 40px;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  /* Process */
  .process-section__inner {
    gap: 48px;
  }

  .process-section__heading {
    position: static;
  }
}


/* ==========================================================================
   22. RESPONSIVE — MOBILE (< 768px)
   ========================================================================== */

@media (max-width: 768px) {

  /* Typography — ~25% reduction */
  h1 { font-size: 2.125rem; }
  h2 { font-size: 1.875rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.125rem; }

  /* Section padding reduction */
  .section {
    padding: 60px 0;
  }

  .container {
    padding: 0 16px;
  }

  /* Grids — single column */
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: 1fr;
  }

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

  /* Hero */
  .hero {
    height: auto;
    min-height: 520px;
    padding: 48px 0 56px;
    align-items: flex-end;
  }

  .hero__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero__card {
    display: none;
  }

  .hero__actions {
    flex-direction: column;
    gap: 12px;
  }

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

  /* Stats section */
  .stats-section__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Process */
  .process-section__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .process-steps::before {
    display: none;
  }

  /* Contact form */
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 24px;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer__bottom-links {
    flex-wrap: wrap;
    gap: 16px;
  }

  /* Page header */
  .page-header {
    padding: calc(var(--nav-height) + 32px) 0 40px;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  /* Section header */
  .section-header {
    margin-bottom: 36px;
  }

  .section-header--center {
    margin-bottom: 36px;
  }

  /* Visibility toggles */
  .hidden-mobile  { display: none !important; }
  .hidden-desktop { display: block; }

  /* nav-toggle-label needs flex not block */
  .nav-toggle-label.hidden-desktop { display: flex; }

  /* Testimonials */
  .testimonial-card__quote {
    font-size: 1.125rem;
  }

  /* Blog grid spacing */
  .blog-card__image {
    height: 180px;
  }
}


/* ==========================================================================
   23. BEM ALIASES & MISSING CLASS DEFINITIONS
   The HTML uses BEM-style classes that differ from the original CSS names.
   These additions map the HTML's actual class names to the correct styles.
   ========================================================================== */

/* --- Navigation --- */

/* .header: the <header> element wrapping the nav */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--white);
  transition: box-shadow var(--transition);
}

.header--scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* .nav inside .header is a flex row (the container handles max-width) */
.header .nav {
  position: static;
  background: none;
  height: var(--nav-height);
  justify-content: space-between;
}

/* Nav actions (phone + CTA button on the right) */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Phone number link */
.nav__phone {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.nav__phone:hover {
  color: var(--accent);
}

/* Checkbox-hack toggle (hidden input) */
.nav-toggle-checkbox {
  display: none;
}

/* Hamburger label — uses nav-toggle-label class in HTML */
.nav-toggle-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle-label span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Nav list items */
.nav__item {
  list-style: none;
}

/* Dropdown trigger item */
.nav__item--dropdown {
  position: relative;
}

/* Link that opens dropdown */
.nav__link--dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

/* Chevron SVG inside dropdown trigger */
.nav__chevron {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.nav__item--dropdown:hover .nav__chevron {
  transform: rotate(180deg);
}

/* Dropdown panel (the <ul class="nav__dropdown">) */
.nav__item--dropdown .nav__dropdown {
  position: absolute;
  top: 100%;
  left: -16px;
  background-color: var(--white);
  min-width: 220px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 100;
}

.nav__item--dropdown:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Links inside the dropdown */
.nav__dropdown-link {
  display: block;
  padding: 10px 24px;
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background-color var(--transition), color var(--transition);
}

.nav__dropdown-link:hover {
  background-color: var(--gray-100);
  color: var(--accent);
}

/* --- Hero --- */

/* Background image on the hero */
.hero {
  background:
    linear-gradient(135deg, rgba(27, 42, 74, 0.92) 0%, rgba(27, 42, 74, 0.7) 50%, rgba(27, 42, 74, 0.3) 100%),
    url('https://www.vminspectionservices.com/wp-content/uploads/2023/09/home-inspection-service.jpg') center / cover no-repeat;
}

/* hero__container is the flex row inside the hero (alias of hero__inner) */
.hero__container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 24px;
  gap: 48px;
}

/* Hero heading (h1) */
.hero__heading {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
}

/* Hero paragraph */
.hero__text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* Hero button group */
.hero__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Outlined call button on hero */
.hero__btn-call {
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: var(--white) !important;
}

.hero__btn-call:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Hero floating card — indicator row */
.hero__card-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

/* Green/accent dot in indicator */
.hero__card-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  flex-shrink: 0;
}

/* "Featured Service" label */
.hero__card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  font-weight: 600;
}

/* Override: hero__card-title used in HTML for service name heading */
.hero__card .hero__card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 8px;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}

/* Hero card body text */
.hero__card-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

/* Hero card CTA link */
.hero__card-link {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

.hero__card-link:hover {
  color: var(--accent-dark);
}

/* Section label on dark/image backgrounds */
.section-label--light {
  color: rgba(255, 255, 255, 0.6);
}

/* --- About section --- */

/* Align items center in the 2-col about grid */
.about__grid {
  align-items: center;
}

/* About content wrapper — inherits default styling */
.about__content {
  /* intentionally minimal */
}

/* Lead paragraph in about section */
.about__text {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* Image column wrapper (needs position for the floating stats card) */
.about__image-wrap {
  position: relative;
}

/* The photo itself */
.about__image {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  max-height: 500px;
  display: block;
}

/* Floating stats card overlapping the image */
.about__stats {
  position: absolute;
  bottom: -32px;
  right: -32px;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  min-width: 280px;
  z-index: 2;
}

/* Individual stat row */
.about__stat {
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-200);
}

.about__stat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.about__stat:first-child {
  padding-top: 0;
}

/* Large number */
.about__stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--navy);
  display: block;
  line-height: 1.1;
}

/* Descriptor below number */
.about__stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* --- Services section --- */

/* 3-column grid for services (heading card + 5 service cards) */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* White heading card (first cell in services grid) */
.services__heading-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
}

/* Heading inside the services heading card */
.services__heading {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0;
}

/* Service card body text (alias of service-card__desc) */
.service-card__text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* --- Process section --- */

/* Align items to start in process grid */
.process__grid {
  align-items: start;
}

/* Left column — sticky intro */
.process__intro {
  position: sticky;
  top: calc(var(--nav-height) + 40px);
}

/* Process section heading */
.process__heading {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  color: var(--navy);
  line-height: 1.2;
}

/* Steps column wrapper */
.process__steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Individual step row */
.process__step {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--gray-200);
}

.process__step:last-child {
  border-bottom: none;
}

/* Large muted step number */
.process__step-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--gray-300);
  flex-shrink: 0;
  min-width: 48px;
  line-height: 1;
  padding-top: 4px;
}

/* Step text content */
.process__step-content {
  flex: 1;
}

/* Step title */
.process__step-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 8px;
}

/* Step description */
.process__step-text {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.9375rem;
}

/* --- Value props section --- */

/* Section header block */
.value-props__header {
  text-align: center;
  margin-bottom: 48px;
}

/* Heading in value props */
.value-props__heading {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  color: var(--navy);
  line-height: 1.2;
}

/* Value card */
.value-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* Icon container inside value card */
.value-card__icon {
  width: 56px;
  height: 56px;
  background-color: var(--off-white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--navy);
  flex-shrink: 0;
}

/* Card title */
.value-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}

/* Card body text */
.value-card__text {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.9375rem;
}

/* --- Service area & CTA sections --- */

/* Section label on navy background */
.section-label--navy {
  color: rgba(255, 255, 255, 0.5);
}

/* White heading for navy/dark sections */
.section-heading--white {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.2;
}

/* Counties list text */
.service-area__counties {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.125rem;
  line-height: 2;
  max-width: 800px;
  margin: 0 auto 24px;
}

/* Sub-text above CTA button in service area */
.service-area__cta-text {
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 24px;
}

/* CTA section heading */
.cta__heading {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.2;
}

/* CTA section body text */
.cta__text {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* CTA button group */
.cta__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Footer aliases --- */

/* Footer brand column wrapper */
.footer__brand {
  display: flex;
  flex-direction: column;
}

/* Footer brand description text (alias of footer__about-text) */
.footer__brand-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 16px 0 24px;
}

/* Footer column wrapper */
.footer__col {
  /* inherits default flow */
}

/* Column heading (alias of footer__col-title) */
.footer__col-heading {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Footer contact list wrapper */
.footer__contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Contact item text nodes */
.footer__contact-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
}

/* Terms link in footer bottom */
.footer__terms {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color var(--transition);
}

.footer__terms:hover {
  color: var(--white);
}


/* ==========================================================================
   24. RESPONSIVE OVERRIDES FOR NEW BEM CLASSES
   ========================================================================== */

@media (max-width: 1024px) {

  /* Hide phone link in nav on tablet (hamburger takes over) */
  .nav__phone {
    display: none;
  }

  .nav__actions {
    display: none;
  }

  /* Show hamburger label */
  .nav-toggle-label {
    display: flex;
  }

  /* Mobile nav open state via checkbox hack */
  #nav-toggle:checked ~ .header .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background-color: var(--white);
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 999;
    gap: 4px;
  }

  #nav-toggle:checked ~ .header .nav__links .nav__item {
    width: 100%;
  }

  #nav-toggle:checked ~ .header .nav__links .nav__link {
    display: block;
    padding: 12px 16px;
  }

  /* Hamburger animation for nav-toggle-label */
  #nav-toggle:checked ~ .header .nav-toggle-label span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  #nav-toggle:checked ~ .header .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }

  #nav-toggle:checked ~ .header .nav-toggle-label span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Services grid — 2 columns on tablet */
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Process intro — not sticky on tablet */
  .process__intro {
    position: static;
  }
}

@media (max-width: 768px) {

  /* Hero heading size */
  .hero__heading {
    font-size: 2.25rem;
  }

  /* hero__container (used instead of hero__inner in HTML) */
  .hero__container {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 24px;
    gap: 32px;
  }

  /* Hide floating hero card */
  .hero__card {
    display: none;
  }

  /* Stack hero buttons */
  .hero__buttons {
    flex-direction: column;
    gap: 12px;
  }

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

  /* About image wrap — remove bottom overflow for static stats card */
  .about__image-wrap {
    margin-bottom: 24px;
  }

  /* Move stats card to normal flow on mobile */
  .about__stats {
    position: static;
    margin-top: 24px;
    right: auto;
    bottom: auto;
    min-width: 0;
    width: 100%;
  }

  /* Services — single column */
  .services__grid {
    grid-template-columns: 1fr;
  }

  /* Process — single column */
  .process__grid {
    grid-template-columns: 1fr;
  }

  .process__intro {
    position: static;
  }

  /* Value props heading */
  .value-props__heading {
    font-size: 2rem;
  }

  /* Section headings */
  .services__heading,
  .process__heading,
  .cta__heading,
  .section-heading--white {
    font-size: 2rem;
  }
}


/* ==========================================================================
   25. PRINT STYLES (minimal)
   ========================================================================== */

@media print {
  .nav,
  .footer {
    display: none;
  }

  .section {
    padding: 32px 0;
  }

  body {
    font-size: 14px;
    color: #000;
  }
}
