/* Modern CSS Reset — based on Andy Bell's reset + Josh Comeau's */

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

* {
  margin: 0;
  padding: 0;
}

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

fieldset {
  border: none;
  padding: 0;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

a {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

table {
  border-collapse: collapse;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   DESIGN TOKENS
   ============================================ */

:root {
  /* Primary Colors */
  --color-navy: #0B1E3D;
  --color-navy-gradient: #142D54;
  --color-cyan: #00AAEF;
  --color-cyan-accessible: #0076A8; /* 5.0:1 on white, 4.6:1 on soft-gray — use for text/links */
  --color-cyan-hover: #00648E;
  --color-white: #FFFFFF;

  /* Secondary Colors */
  --color-chrome: #B0B8C1;
  --color-steel: #6B7280;
  --color-soft-gray: #F3F4F6;
  --color-calm-blue: #1E3A5F;
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-danger: #EF4444;

  /* Neutral */
  --color-border: #E5E7EB;
  --color-disabled-bg: #E5E7EB;
  --color-disabled-text: #9CA3AF;
  --color-text: #1F2937;
  --color-text-light: #4B5563;

  /* Typography — Families */
  --font-heading: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Open Sans', 'Segoe UI', Helvetica, sans-serif;

  /* Typography — Sizes */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 2rem;      /* 32px */
  --text-4xl: 2.5rem;    /* 40px */

  /* Typography — Line Heights */
  --leading-tight: 1.2;
  --leading-snug: 1.25;
  --leading-normal: 1.3;
  --leading-relaxed: 1.5;
  --leading-loose: 1.6;

  /* Typography — Weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Spacing */
  --space-xs: 0.25rem;   /* 4px */
  --space-sm: 0.5rem;    /* 8px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  --space-2xl: 3rem;     /* 48px */
  --space-3xl: 4rem;     /* 64px */
  --space-4xl: 6rem;     /* 96px */

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --container-padding: 1.5rem;

  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  --border-thin: 1px solid var(--color-border);
  --border-accent: 2px solid var(--color-cyan);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;

  /* Z-index Scale */
  --z-header: 100;
  --z-overlay: 200;
  --z-modal: 300;
  --z-scroll-top: 50;

  /* Focus */
  --focus-outline: 3px solid var(--color-cyan);
  --focus-offset: 2px;
}

/* ============================================
   BASE TYPOGRAPHY
   ============================================ */

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-loose);
  color: var(--color-text);
  background-color: var(--color-white);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-navy);
}

h1 {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-sm);
}

h4 {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-sm);
}

/* Paragraphs */
p {
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

/* Links */
a {
  color: var(--color-cyan-accessible);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-cyan-hover);
}


/* Focus — visible for keyboard, hidden for mouse */
:focus {
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
}

/* Lists */
ul, ol {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

li {
  margin-bottom: var(--space-xs);
}

li:last-child {
  margin-bottom: 0;
}

/* Strong & Emphasis */
strong, b {
  font-weight: var(--weight-semibold);
}

/* Small Text */
small {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* Horizontal Rule */
hr {
  border: none;
  border-top: var(--border-thin);
  margin: var(--space-xl) 0;
}

/* Selection */
::selection {
  background-color: var(--color-cyan);
  color: var(--color-white);
}

/* Subtitle / Category Labels */
.subtitle {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-cyan-accessible);
}

/* Lead paragraph */
.lead {
  font-size: var(--text-lg);
  line-height: var(--leading-loose);
  color: var(--color-text-light);
}

/* Responsive type scale */
@media (max-width: 768px) {
  h1 {
    font-size: var(--text-3xl);
  }

  h2 {
    font-size: var(--text-2xl);
  }

  h3 {
    font-size: var(--text-xl);
  }
}

/* ============================================
   UTILITIES
   ============================================ */

/* Screen reader only — visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: var(--z-modal);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-navy);
  color: var(--color-white);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.skip-link:focus {
  top: 0;
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
}

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

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* Visually hidden heading for accessibility */
.section-heading-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* External link indicator */
a[target="_blank"]::after {
  content: " \2197"; /* ↗ */
  font-size: 0.75em;
  vertical-align: super;
}

a[target="_blank"][aria-label]::after {
  content: none;
}

/* No-wrap */
.nowrap {
  white-space: nowrap;
}

/* Margin utilities */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-md { margin-top: var(--space-md); }
.mb-md { margin-bottom: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-xl { margin-bottom: var(--space-xl); }

/* ============================================
   LAYOUT — Header, Nav, Footer, Grid, Sections
   ============================================ */

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* Section spacing */
.section {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.section--sm {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.section--dark {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-gradient) 100%);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../images/Backgroundonly.webp') center / cover no-repeat;
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
}

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

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

.section__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section__header .subtitle {
  margin-bottom: var(--space-sm);
}

/* Grid */
.grid {
  display: grid;
  gap: var(--space-lg);
}

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

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

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

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

@media (max-width: 768px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background-color: var(--color-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: box-shadow var(--transition-base);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
  min-height: 72px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo:hover {
  text-decoration: none;
}

.site-logo__image {
  height: 48px;
  width: auto;
}

/* Navigation */
.main-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav__link {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  color: var(--color-chrome);
  padding: var(--space-sm) var(--space-xs);
  position: relative;
  transition: color var(--transition-fast);
}

.main-nav__link:hover,
.main-nav__link:focus {
  color: var(--color-cyan);
}

.main-nav__link[aria-current="page"] {
  color: var(--color-white);
}

.main-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: var(--space-xs);
  right: var(--space-xs);
  height: 2px;
  background-color: var(--color-cyan);
  border-radius: var(--radius-full);
}

/* Header actions (language switcher + CTA) */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Language switcher */
.lang-switch {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  color: var(--color-chrome);
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), border-color var(--transition-fast);
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-switch:hover,
.lang-switch:focus {
  color: var(--color-cyan);
  border-color: var(--color-cyan);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  min-width: 44px;
  min-height: 44px;
  color: var(--color-white);
}

.nav-toggle__icon {
  display: block;
  width: 24px;
  height: 2px;
  background-color: currentColor;
  position: relative;
  transition: background-color var(--transition-fast);
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background-color: currentColor;
  transition: transform var(--transition-base);
}

.nav-toggle__icon::before {
  top: -7px;
}

.nav-toggle__icon::after {
  top: 7px;
}

/* Hamburger → X animation */
.nav-toggle[aria-expanded="true"] .nav-toggle__icon {
  background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-white);
    z-index: var(--z-overlay);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    overflow-y: auto;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-lg);
  }

  .main-nav__link {
    display: block;
    padding: var(--space-md);
    font-size: var(--text-lg);
    border-bottom: var(--border-thin);
    color: var(--color-navy);
  }

  .main-nav__link:hover,
  .main-nav__link:focus {
    color: var(--color-cyan-accessible);
  }

  .main-nav .lang-switch {
    color: var(--color-navy);
    border-color: var(--color-navy);
  }

  .main-nav .lang-switch:hover,
  .main-nav .lang-switch:focus {
    color: var(--color-cyan-accessible);
    border-color: var(--color-cyan-accessible);
  }

  .main-nav__link[aria-current="page"]::after {
    display: none;
  }

  .header-actions {
    display: none;
  }

  .main-nav .mobile-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-md);
    border-top: var(--border-thin);
  }
}

@media (min-width: 769px) {
  .mobile-actions {
    display: none;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-gradient) 100%);
  color: var(--color-chrome);
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../images/Backgroundonly.webp') center / cover no-repeat;
  opacity: 0.04;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer__brand {
  padding-right: var(--space-xl);
}

.footer__logo {
  height: 170px;
  width: auto;
  margin-bottom: var(--space-md);
  margin-left: 42px;
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--color-chrome);
  margin-bottom: 0;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__links li {
  margin-bottom: var(--space-sm);
}

.footer__links a {
  color: var(--color-chrome);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer__links a:hover,
.footer__links a:focus {
  color: var(--color-white);
}

.footer__contact-item {
  font-size: var(--text-sm);
  margin-bottom: var(--space-sm);
}

.footer__contact-item a {
  color: var(--color-chrome);
  text-decoration: none;
}

.footer__contact-item a:hover {
  color: var(--color-white);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__copyright {
  font-size: var(--text-sm);
  color: var(--color-steel);
}

.footer__legal {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__legal a {
  font-size: var(--text-sm);
  color: var(--color-steel);
  text-decoration: none;
}

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

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer__brand {
    padding-right: 0;
  }

  .footer__logo {
    margin-left: 0;
  }

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

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumb {
  padding: var(--space-md) 0 0;
  font-size: var(--text-sm);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-xs);
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb__item {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
}

.breadcrumb__item:not(:last-child)::after {
  content: "›";
  color: var(--color-steel);
}

.breadcrumb__link {
  color: var(--color-cyan-accessible);
  text-decoration: none;
}

.breadcrumb__link:hover {
  text-decoration: underline;
}

.breadcrumb__current {
  color: var(--color-steel);
}

/* ============================================
   SCROLL-TO-TOP BUTTON
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: var(--z-scroll-top);
  width: 48px;
  height: 48px;
  background-color: var(--color-navy);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: var(--text-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base), background-color var(--transition-fast);
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover,
.scroll-top:focus {
  background-color: var(--color-cyan-accessible);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: 1;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 44px;
  min-width: 44px;
}

.btn--primary {
  background-color: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

.btn--primary:hover,
.btn--primary:focus {
  background-color: var(--color-calm-blue);
  border-color: var(--color-calm-blue);
  color: var(--color-white);
}

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

.btn--secondary:hover,
.btn--secondary:focus {
  background-color: var(--color-cyan-accessible);
  color: var(--color-white);
}

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

.btn--white:hover,
.btn--white:focus {
  background-color: var(--color-soft-gray);
  border-color: var(--color-soft-gray);
  color: var(--color-navy);
}

.btn--outline-white {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn--outline-white:hover,
.btn--outline-white:focus {
  background-color: var(--color-white);
  color: var(--color-navy);
}

.btn--sm {
  font-size: var(--text-sm);
  padding: 0.5rem 1rem;
}

.btn--lg {
  font-size: var(--text-lg);
  padding: 1rem 2rem;
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn:disabled,
.btn--disabled {
  background-color: var(--color-disabled-bg);
  color: var(--color-disabled-text);
  border-color: var(--color-disabled-bg);
  cursor: not-allowed;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background-color: var(--color-white);
  border: var(--border-thin);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-lg);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

.card--featured {
  border-color: var(--color-cyan);
  border-width: 2px;
  position: relative;
}

.card__icon {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
  line-height: 1;
}

.card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
}

.card__text {
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.card__text:last-child {
  margin-bottom: 0;
}

/* Value Proposition Cards */
.value-card {
  text-align: center;
  padding: var(--space-xl);
}

.value-card .card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-md);
  background-color: var(--color-soft-gray);
  border-radius: var(--radius-full);
  font-size: var(--text-2xl);
}

/* Pricing Cards */
.pricing-card {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: var(--space-xl);
  padding-top: 0;
}

/* Invisible spacer matching the badge height so content aligns across cards */
.pricing-card:not(.card--featured)::before {
  content: "\00a0";
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.05em;
  padding: var(--space-sm);
  margin-bottom: var(--space-xl);
  visibility: hidden;
}

.pricing-card__tier {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-cyan-accessible);
  margin-bottom: var(--space-sm);
}

.pricing-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-md);
}

.pricing-card__price {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-xs);
}

.pricing-card__price-period {
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  color: var(--color-steel);
}

.pricing-card__features {
  list-style: none;
  padding: 0;
  margin: var(--space-lg) 0;
  text-align: left;
  flex-grow: 1;
}

.pricing-card__features li {
  padding: var(--space-sm) 0;
  border-bottom: var(--border-thin);
  padding-left: var(--space-lg);
  position: relative;
}

.pricing-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: var(--weight-bold);
}

.pricing-card__features li:last-child {
  border-bottom: none;
}

.pricing-card .btn {
  margin-top: auto;
}

/* ============================================
   STEPS / HOW IT WORKS
   ============================================ */
.steps {
  counter-reset: step;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  counter-increment: step;
}

.step:last-child {
  margin-bottom: 0;
}

.step__number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  border-radius: var(--radius-full);
}

.step__content {
  flex: 1;
}

.step__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-navy);
  margin-bottom: var(--space-xs);
}

.step__text {
  color: var(--color-text-light);
}

/* ============================================
   FAQ ACCORDION (native <details>)
   ============================================ */
.faq-list {
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  border-bottom: var(--border-thin);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-navy);
  list-style: none;
  min-height: 44px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-cyan-accessible);
  flex-shrink: 0;
  margin-left: var(--space-md);
  transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  color: var(--color-cyan-accessible);
}

.faq-item__answer {
  padding-bottom: var(--space-md);
  color: var(--color-text-light);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-navy);
  margin-bottom: var(--space-xs);
}

.form-label--required::after {
  content: " *";
  color: var(--color-danger);
}

.form-input,
.form-select,
.form-textarea {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: var(--text-base);
  line-height: var(--leading-loose);
  color: var(--color-text);
  background-color: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 44px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-cyan);
  box-shadow: 0 0 0 3px rgba(0, 170, 239, 0.15);
  outline: none;
}

.form-input[aria-invalid="true"],
.form-select[aria-invalid="true"],
.form-textarea[aria-invalid="true"] {
  border-color: var(--color-danger);
}

.form-input[aria-invalid="true"]:focus,
.form-select[aria-invalid="true"]:focus,
.form-textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  display: none;
  font-size: var(--text-sm);
  color: var(--color-danger);
  margin-top: var(--space-xs);
}

.form-error.is-visible {
  display: block;
}

.form-hint {
  font-size: var(--text-sm);
  color: var(--color-steel);
  margin-top: var(--space-xs);
}

/* Checkbox */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.form-checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--color-cyan-accessible);
  cursor: pointer;
}

.form-checkbox label {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  cursor: pointer;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
}

.badge--popular {
  background-color: var(--color-cyan);
  color: var(--color-navy);
  display: block;
  text-align: center;
  border-radius: calc(var(--radius-lg) - 2px) calc(var(--radius-lg) - 2px) 0 0;
  padding: var(--space-sm) var(--space-sm);
  margin-left: calc(-1 * var(--space-xl));
  margin-right: calc(-1 * var(--space-xl));
  margin-bottom: var(--space-xl);
}

.badge--new {
  background-color: var(--color-success);
  color: var(--color-white);
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-gradient) 100%);
  color: var(--color-white);
  padding: var(--space-3xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../images/Backgroundonly.webp') center / cover no-repeat;
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.cta-banner p {
  font-size: var(--text-lg);
  color: var(--color-chrome);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}

.cta-banner .btn {
  margin: 0;
}

/* ============================================
   TRUST SIGNALS
   ============================================ */
.trust-bar {
  background-color: var(--color-soft-gray);
  padding: var(--space-xl) 0;
}

.trust-bar__items {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2xl);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-navy);
}

.trust-item__icon {
  font-size: var(--text-xl);
  flex-shrink: 0;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-card {
  padding: var(--space-xl);
}

.testimonial-card__quote {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  position: relative;
  padding-left: var(--space-lg);
}

.testimonial-card__quote::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: -0.2em;
  font-size: var(--text-3xl);
  color: var(--color-cyan);
  font-style: normal;
  line-height: 1;
}

.testimonial-card__author {
  font-weight: var(--weight-semibold);
  color: var(--color-navy);
}

.testimonial-card__role {
  font-size: var(--text-sm);
  color: var(--color-steel);
}

/* ============================================
   COMPARISON TABLE
   ============================================ */
.comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border: var(--border-thin);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.comparison-table caption {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-navy);
  text-align: left;
  padding: var(--space-md);
  caption-side: top;
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: var(--border-thin);
}

.comparison-table thead th {
  background-color: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
}

.comparison-table tbody th {
  font-weight: var(--weight-medium);
  color: var(--color-navy);
  background-color: var(--color-soft-gray);
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table .check {
  color: var(--color-success);
  font-weight: var(--weight-bold);
}

.comparison-table .dash {
  color: var(--color-steel);
}

/* ============================================
   CONTACT INFO
   ============================================ */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.contact-info__icon {
  flex-shrink: 0;
  font-size: var(--text-xl);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-soft-gray);
  border-radius: var(--radius-full);
}

.contact-info__label {
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  color: var(--color-navy);
  margin-bottom: var(--space-xs);
}

.contact-info__value {
  font-size: var(--text-base);
  color: var(--color-text-light);
}

.contact-info__value a {
  color: var(--color-cyan-accessible);
  text-decoration: none;
}

.contact-info__value a:hover {
  text-decoration: underline;
}

/* ============================================
   LEGAL / LONG-FORM CONTENT
   ============================================ */
.legal-content {
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
}

.legal-content h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.legal-content h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.legal-content p,
.legal-content ul,
.legal-content ol {
  margin-bottom: var(--space-md);
}

.legal-content .last-updated {
  font-size: var(--text-sm);
  color: var(--color-steel);
  margin-bottom: var(--space-xl);
}

/* ============================================
   PAGE-SPECIFIC: HERO
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-gradient) 100%);
  color: var(--color-white);
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../images/Backgroundonly.webp') center / cover no-repeat;
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-chrome);
  margin-bottom: var(--space-xl);
  line-height: var(--leading-loose);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

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

.hero__visual img,
.hero__visual svg {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .hero {
    padding: var(--space-2xl) 0;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
    max-width: 300px;
    margin: 0 auto;
  }
}

/* ============================================
   HERO — VIDEO BACKGROUND VARIANT
   ============================================ */
.hero--video {
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero--video::before {
  display: none;
}

.hero--video .hero__inner {
  grid-template-columns: 1fr;
  max-width: var(--container-narrow);
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero--video .hero__actions {
  justify-content: center;
}

.hero--video .hero__subtitle {
  color: var(--color-white);
  opacity: 0.9;
}

/* Video / fallback image background layer */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.hero__fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__fallback img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.hero__video {
  z-index: 1;
}

/* Dark overlay for text legibility */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(11, 30, 61, 0.75) 0%,
    rgba(11, 30, 61, 0.55) 100%
  );
}

@media (max-width: 768px) {
  .hero--video {
    min-height: 70vh;
  }

  .hero__video {
    display: none;
  }

  .hero__fallback img {
    object-position: 75% bottom;
  }
}

/* ============================================
   HOME — HOW IT WORKS
   ============================================ */
.how-it-works .grid--4 {
  gap: var(--space-xl);
}

.how-it-works .step {
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 0;
}

/* ============================================
   HOME — SERVICE PREVIEW
   ============================================ */
.service-preview .grid--2 {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   SERVICES — PRICING SECTION
   ============================================ */
.pricing-section .grid--2 {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  align-items: stretch;
}

/* ============================================
   DIGITAL HOME AUDIT — HERO VARIANT
   ============================================ */
.hero--audit {
  text-align: center;
}

.hero--audit .hero__inner {
  grid-template-columns: 1fr;
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.hero--audit .hero__actions {
  justify-content: center;
}

/* Pricing highlight card */
.price-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-2xl);
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.price-card__amount {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: var(--weight-bold);
  color: var(--color-navy);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.price-card__label {
  font-size: var(--text-lg);
  color: var(--color-steel);
  margin-bottom: var(--space-lg);
}

.price-card__note {
  font-size: var(--text-sm);
  color: var(--color-steel);
  margin-top: var(--space-md);
}

/* ============================================
   CONTACT — TWO COLUMN
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-2xl);
  align-items: start;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   ABOUT — VALUES
   ============================================ */
.values-grid .card {
  text-align: center;
  padding: var(--space-xl);
}

.values-grid .card__icon {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
}

/* ============================================
   LEGAL PAGES — PAGE HEADER
   ============================================ */
.page-header {
  background-color: var(--color-soft-gray);
  padding: var(--space-2xl) 0;
  text-align: center;
}

.page-header h1 {
  margin-bottom: var(--space-sm);
}

.page-header .lead {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
