/* ==================================================
   DMS AIR - Styles
   Mobile-first HVAC service website
   Brand Colors: #D3111C (red), #1E4F9A (blue), #0B2E5B (navy), #F3F6FA (background)
   ================================================== */

/* --------------------------------------------------
   CSS Custom Properties (Design Tokens)
   -------------------------------------------------- */
:root {
  /* Brand Colors - PRD specified */
  --color-red: #D3111C;
  --color-red-dark: #b50e18;
  --color-red-glow: rgba(211, 17, 28, 0.25);
  --color-blue: #1E4F9A;
  --color-navy: #0B2E5B;
  --color-background: #F3F6FA;
  --color-white: #FFFFFF;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-success: #22C55E;
  
  /* Typography - System fonts per PRD */
  --font-primary: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 50%;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(11, 46, 91, 0.05);
  --shadow-md: 0 4px 6px rgba(11, 46, 91, 0.08);
  --shadow-lg: 0 10px 25px rgba(11, 46, 91, 0.12);
  --shadow-button: 0 4px 12px rgba(211, 17, 28, 0.2);
  
  /* Transitions */
  --transition-fast: 120ms ease;
  --transition-normal: 200ms ease;
  --transition-slow: 300ms ease;
  
  /* Z-index layers */
  --z-header: 50;
  --z-overlay: 40;
  --z-modal: 60;
  
  /* Container widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
}

/* --------------------------------------------------
   Base Reset & Defaults
   -------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

ul, ol {
  list-style: none;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 2px;
}

/* --------------------------------------------------
   Typography
   -------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-navy);
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: var(--space-lg);
}

h3 {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
}

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

/* --------------------------------------------------
   Container & Layout
   -------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-xl);
  }
}

.section {
  padding: var(--space-2xl) 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-3xl) 0;
  }
}

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

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

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

.section__subtitle {
  color: var(--color-blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  margin-bottom: var(--space-sm);
}

/* --------------------------------------------------
   Header / Navigation
   - Sticky header with blur effect
   - Mobile menu with slide-down animation
   -------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--color-blue);
  box-shadow: var(--shadow-sm);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  max-width: var(--container-xl);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .header__container {
    padding: var(--space-md) var(--space-xl);
  }
}

.header__logo {
  display: flex;
  align-items: center;
}

.header__logo img {
  height: 40px;
  width: auto;
}

@media (min-width: 768px) {
  .header__logo img {
    height: 50px;
  }
}

/* Trust badge in header */
.header__trust {
  display: none;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-navy);
}

@media (min-width: 1024px) {
  .header__trust {
    display: flex;
  }
}

/* MICRO-INTERACTION: Pulsing availability dot */
.trust-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-success);
  border-radius: var(--radius-full);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .trust-dot {
    animation: none;
  }
}

/* Mobile menu toggle */
.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  z-index: calc(var(--z-header) + 1);
}

@media (min-width: 1024px) {
  .nav__toggle {
    display: none;
  }
}

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

.nav__toggle[aria-expanded="true"] span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

/* Navigation menu */
.nav__menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-white);
  padding: 80px var(--space-xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: opacity var(--transition-normal), transform var(--transition-normal), visibility var(--transition-normal);
  z-index: var(--z-header);
}

/* MICRO-INTERACTION: Mobile menu slide-down with fade */
.nav__menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (min-width: 1024px) {
  .nav__menu {
    position: static;
    flex-direction: row;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    align-items: center;
    gap: var(--space-lg);
  }
}

.nav__link {
  display: block;
  padding: var(--space-sm) 0;
  font-weight: 500;
  color: var(--color-navy);
  position: relative;
  transition: color var(--transition-fast);
}

/* MICRO-INTERACTION: Underline animation on hover */
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-red);
  transition: width var(--transition-fast);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  width: 100%;
}

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

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

@media (min-width: 1024px) {
  .nav__link {
    font-size: 0.9rem;
  }
}

/* --------------------------------------------------
   Buttons
   Primary: Red with white text
   Secondary: Blue outline
   -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
  text-align: center;
  white-space: nowrap;
}

/* MICRO-INTERACTION: Button hover lift and glow */
.btn--primary {
  background-color: var(--color-red);
  color: var(--color-white);
  box-shadow: var(--shadow-button);
}

.btn--primary:hover {
  background-color: var(--color-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--color-red-glow);
}

/* MICRO-INTERACTION: Button press state */
.btn--primary:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px var(--color-red-glow);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-blue);
  border: 2px solid var(--color-blue);
}

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

.btn--small {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
}

/* --------------------------------------------------
   Hero Section
   - Split layout on desktop
   - Blueprint grid background
   -------------------------------------------------- */
.hero {
  position: relative;
  padding: var(--space-2xl) 0 var(--space-3xl);
  overflow: hidden;
  /* Blueprint grid background using CSS gradients */
  background-color: var(--color-background);
  background-image: 
    linear-gradient(rgba(30, 79, 154, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 79, 154, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero__container {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (min-width: 768px) {
  .hero__container {
    padding: 0 var(--space-xl);
  }
}

@media (min-width: 1024px) {
  .hero__container {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }
}

.hero__content {
  text-align: center;
}

@media (min-width: 1024px) {
  .hero__content {
    text-align: left;
  }
}

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

.hero__tagline {
  font-size: 1.125rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-xl);
}

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

@media (min-width: 480px) {
  .hero__cta {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .hero__cta {
    justify-content: flex-start;
  }
}

/* Trust badges */
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero__trust {
    justify-content: flex-start;
  }
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-navy);
  box-shadow: var(--shadow-sm);
}

/* MICRO-INTERACTION: Trust badge icon wiggle on hover */
.trust-badge:hover .trust-badge__icon {
  animation: wiggle 0.4s ease;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

@media (prefers-reduced-motion: reduce) {
  .trust-badge:hover .trust-badge__icon {
    animation: none;
  }
}

.trust-badge__icon {
  width: 20px;
  height: 20px;
  color: var(--color-blue);
}

/* Hero image */
.hero__image {
  position: relative;
}

.hero__image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--color-blue);
}

/* --------------------------------------------------
   Services Section
   - Card grid layout
   -------------------------------------------------- */
.services-grid {
  display: grid;
  gap: var(--space-lg);
}

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

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

.service-card {
  position: relative;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  border: 1px solid rgba(11, 46, 91, 0.1);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
  overflow: hidden;
}

/* Red accent corner notch */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, transparent 50%, var(--color-red) 50%);
  border-radius: 0 var(--radius-md) 0 0;
}

/* MICRO-INTERACTION: Card hover border intensifies */
.service-card:hover {
  border-color: rgba(30, 79, 154, 0.3);
  box-shadow: var(--shadow-md);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-md);
  color: var(--color-blue);
  transition: color var(--transition-normal);
}

/* MICRO-INTERACTION: Icon stroke animation on hover */
.service-card:hover .service-card__icon {
  color: var(--color-red);
}

.service-card h3 {
  margin-bottom: var(--space-sm);
}

.service-card p {
  font-size: 0.9375rem;
  margin-bottom: var(--space-md);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-blue);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.service-card__link:hover {
  color: var(--color-red);
}

.service-card__link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.service-card__link:hover svg {
  transform: translateX(4px);
}

/* --------------------------------------------------
   About / Why Choose Us Section
   -------------------------------------------------- */
.about-grid {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.about__image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.about__content h2 {
  margin-bottom: var(--space-md);
}

.about__content > p {
  margin-bottom: var(--space-lg);
}

/* Checklist with green check icons */
.checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

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

.checklist__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-success);
}

.checklist__text {
  font-weight: 500;
  color: var(--color-navy);
}

/* MICRO-INTERACTION: Checklist items animate on scroll */
.checklist__item {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.checklist__item.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger animation delay */
.checklist__item:nth-child(1) { transition-delay: 0ms; }
.checklist__item:nth-child(2) { transition-delay: 60ms; }
.checklist__item:nth-child(3) { transition-delay: 120ms; }
.checklist__item:nth-child(4) { transition-delay: 180ms; }

@media (prefers-reduced-motion: reduce) {
  .checklist__item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------
   Process Section
   - Vertical on mobile, horizontal timeline on desktop
   -------------------------------------------------- */
.process {
  position: relative;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  counter-reset: step;
}

@media (min-width: 768px) {
  .process-steps {
    flex-direction: row;
    justify-content: space-between;
    position: relative;
  }
  
  /* Timeline line */
  .process-steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 40px;
    right: 40px;
    height: 2px;
    background-color: rgba(30, 79, 154, 0.2);
    z-index: 0;
  }
}

.process-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background-color: var(--color-blue);
  color: var(--color-white);
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  position: relative;
}

/* Small red tick accent */
.process-step__number::after {
  content: '';
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  background-color: var(--color-red);
  border-radius: var(--radius-full);
  border: 2px solid var(--color-white);
}

.process-step h3 {
  margin-bottom: var(--space-sm);
  font-size: 1rem;
}

.process-step p {
  font-size: 0.875rem;
  max-width: 200px;
}

/* --------------------------------------------------
   Testimonials Section
   - Scroll-snap carousel on mobile
   -------------------------------------------------- */
.testimonials-wrapper {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: var(--space-md);
  padding-bottom: var(--space-md);
  -webkit-overflow-scrolling: touch;
}

.testimonials-wrapper::-webkit-scrollbar {
  height: 6px;
}

.testimonials-wrapper::-webkit-scrollbar-track {
  background: rgba(30, 79, 154, 0.1);
  border-radius: 3px;
}

.testimonials-wrapper::-webkit-scrollbar-thumb {
  background: var(--color-blue);
  border-radius: 3px;
}

@media (min-width: 1024px) {
  .testimonials-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
  }
}

.testimonial-card {
  flex: 0 0 85%;
  scroll-snap-align: start;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  position: relative;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--color-blue);
}

@media (min-width: 768px) {
  .testimonial-card {
    flex: 0 0 45%;
  }
}

@media (min-width: 1024px) {
  .testimonial-card {
    flex: 1;
  }
}

/* Quote mark watermark */
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: var(--space-md);
  right: var(--space-lg);
  font-size: 6rem;
  font-family: Georgia, serif;
  color: var(--color-navy);
  opacity: 0.05;
  line-height: 1;
  pointer-events: none;
}

.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-md);
}

.testimonial-card__stars svg {
  width: 18px;
  height: 18px;
  color: #FBBF24;
  fill: currentColor;
}

.testimonial-card__text {
  font-style: italic;
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

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

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

/* Testimonial dots for mobile */
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

@media (min-width: 1024px) {
  .testimonial-dots {
    display: none;
  }
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  background-color: rgba(30, 79, 154, 0.3);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.testimonial-dot.is-active {
  background-color: var(--color-blue);
}

/* --------------------------------------------------
   Blog Preview Section
   -------------------------------------------------- */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.blog-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  transition: box-shadow var(--transition-fast);
}

.blog-item:hover {
  box-shadow: var(--shadow-sm);
}

.blog-item__dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-blue);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.blog-item__link {
  font-weight: 500;
  color: var(--color-navy);
  position: relative;
}

/* MICRO-INTERACTION: Blog link underline slide-in */
.blog-item__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-red);
  transition: width 150ms ease;
}

.blog-item:hover .blog-item__link::after {
  width: 100%;
}

.blog-item__date {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-left: auto;
}

/* --------------------------------------------------
   Service Areas Section
   -------------------------------------------------- */
.service-areas {
  /* Map-style background pattern */
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(30, 79, 154, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(30, 79, 154, 0.03) 0%, transparent 50%);
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .areas-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .areas-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.area-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(11, 46, 91, 0.1);
  font-weight: 500;
  color: var(--color-navy);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.area-item:hover {
  border-color: var(--color-blue);
  box-shadow: var(--shadow-sm);
}

.area-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-red);
}

/* --------------------------------------------------
   Contact Form Section
   -------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: var(--space-xl);
}

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

.contact-form {
  background-color: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 500;
  color: var(--color-navy);
}

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

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid rgba(11, 46, 91, 0.2);
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(30, 79, 154, 0.1), inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-input.is-error,
.form-select.is-error,
.form-textarea.is-error {
  border-color: var(--color-red);
}

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

.form-error {
  display: none;
  margin-top: var(--space-sm);
  font-size: 0.875rem;
  color: var(--color-red);
}

/* MICRO-INTERACTION: Error message fade in */
.form-error.is-visible {
  display: block;
  animation: fadeIn 120ms ease;
}

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

/* Form submit button with loading state */
.btn--submit {
  width: 100%;
}

.btn--submit.is-loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn__spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--color-white);
  border-radius: var(--radius-full);
  animation: spin 0.8s linear infinite;
}

.btn--submit.is-loading .btn__spinner {
  display: block;
}

.btn--submit.is-loading .btn__text {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Success message */
.form-success {
  display: none;
  padding: var(--space-xl);
  text-align: center;
}

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

.form-success__icon {
  width: 64px;
  height: 64px;
  color: var(--color-success);
  margin: 0 auto var(--space-md);
}

.form-success h3 {
  margin-bottom: var(--space-sm);
}

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

.contact-info__card {
  background-color: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-blue);
}

.contact-info__card h3 {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-size: 1rem;
}

.contact-info__card svg {
  width: 20px;
  height: 20px;
  color: var(--color-blue);
}

.contact-info__card p {
  font-size: 0.9375rem;
  margin: 0;
}

/* --------------------------------------------------
   Footer
   -------------------------------------------------- */
.footer {
  background-color: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-2xl) 0;
  position: relative;
  /* Red accent line at top */
  border-top: 4px solid var(--color-red);
  /* Subtle noise texture via gradient */
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
}

.footer__container {
  display: grid;
  gap: var(--space-xl);
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (min-width: 768px) {
  .footer__container {
    grid-template-columns: 1fr 2fr 1fr;
    padding: 0 var(--space-xl);
  }
}

.footer__brand img {
  height: 50px;
  margin-bottom: var(--space-md);
  filter: brightness(0) invert(1);
}

.footer__tagline {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-xl);
}

.footer__nav a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

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

.footer__service-areas h4 {
  font-size: 1rem;
  margin-bottom: var(--space-md);
  color: var(--color-white);
}

.footer__service-areas p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* --------------------------------------------------
   Page Header (for inner pages)
   -------------------------------------------------- */
.page-header {
  background-color: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-2xl) 0;
  text-align: center;
  position: relative;
  /* Blueprint grid overlay */
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
}

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

.page-header__breadcrumb {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
}

.page-header__breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

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

/* --------------------------------------------------
   Utility Classes
   -------------------------------------------------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  padding: var(--space-md);
  background-color: var(--color-navy);
  color: var(--color-white);
  z-index: 100;
  border-radius: var(--radius-md);
}

.skip-link:focus {
  top: var(--space-md);
}

/* Lazy load placeholder */
.lazy {
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.lazy.loaded {
  opacity: 1;
}
