.homepage {
  background: var(--color-surface);
  color: var(--color-on-surface);
}

.homepage,
.homepage p,
.homepage li,
.homepage label,
.homepage input,
.homepage select,
.homepage textarea,
.homepage button {
  font-family: var(--font-family-body);
}

.homepage h1,
.homepage h2,
.homepage h3,
.homepage h4,
.homepage .btn,
.homepage .nav-item > a,
.homepage .mobile-submenu-toggle,
.homepage .mobile-nav-list > li > a {
  font-family: var(--font-family-heading);
}

.homepage .site-header {
  background: rgba(246, 250, 254, 0.86);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(20px);
}

.homepage .nav-item > a,
.homepage .mobile-submenu-toggle,
.homepage .mobile-nav-list > li > a {
  color: var(--color-on-surface);
}

.homepage .nav-dropdown {
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
}

.homepage .nav-dropdown li a {
  color: var(--color-on-surface-muted);
}

.homepage .nav-dropdown li a:hover {
  background: var(--color-surface-container-low);
}

.homepage .mobile-menu {
  background: rgba(240, 244, 248, 0.95);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(18px);
}

.homepage .mobile-menu-overlay {
  background: rgba(0, 10, 30, 0.48);
}

.homepage .mobile-nav-list > li {
  border-bottom: none;
}

.homepage .btn {
  min-height: 48px;
  border-radius: var(--radius-md);
}

.homepage .btn-primary,
.homepage .btn-emergency {
  background: var(--color-brand-primary);
  border-color: var(--color-brand-primary);
  color: var(--color-white);
}

.homepage .btn-primary:hover,
.homepage .btn-emergency:hover {
  background: var(--color-brand-primary-hover);
  border-color: var(--color-brand-primary-hover);
}

.home-hero {
  padding: 0;
}

.home-hero__media {
  background-image:
    linear-gradient(110deg, rgba(0, 10, 30, 0.9) 0%, rgba(0, 33, 71, 0.78) 52%, rgba(0, 33, 71, 0.3) 100%),
    url('../../images/hero/homepage-hero.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.home-hero__layout {
  min-height: calc(100vh - var(--header-height-mobile));
  display: grid;
  align-items: center;
  gap: var(--space-10);
  padding: clamp(5rem, 8vw, 8rem) 0;
}

.home-hero__layout > * {
  min-width: 0;
}

.home-hero__copy {
  max-width: 700px;
  min-width: 0;
}

.home-hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1rem;
  margin-bottom: var(--space-6);
  background: var(--color-brand-primary);
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
}

.home-hero__title {
  margin-bottom: var(--space-5);
  color: var(--color-white);
  font-size: clamp(2.75rem, 6vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.home-hero__summary {
  max-width: 42rem;
  margin-bottom: var(--space-8);
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.125rem, 2vw, 1.325rem);
  line-height: 1.65;
}

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

.home-hero__secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.88);
  color: var(--color-white);
}

.home-hero__secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-white);
  color: var(--color-white);
}

.home-hero__proof {
  margin-top: var(--space-8);
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-services,
.home-industries {
  background: var(--color-surface);
}

.home-feature,
.home-differentiators {
  background: var(--color-surface-container-low);
}

.home-process {
  background: var(--color-surface-container-lowest);
}

.home-section-heading {
  max-width: 46rem;
  margin: 0 auto var(--space-10);
  text-align: center;
}

.home-section-heading__eyebrow {
  margin-bottom: var(--space-3);
  color: #666666;
  font-size: 0.875rem;
  font-weight: var(--font-medium);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.home-section-heading__title {
  color: var(--color-on-surface);
  font-size: clamp(2rem, 3vw, 2.5rem);
  letter-spacing: -0.02em;
}

.home-section-heading__summary {
  margin-top: var(--space-4);
  color: #666666;
  font-size: 1.125rem;
  line-height: 1.65;
}

.home-card-grid {
  display: grid;
  gap: var(--space-6);
}

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

.home-service-card {
  display: block;
  overflow: hidden;
  background: var(--color-surface-container-lowest);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  color: inherit;
  text-decoration: none;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.home-service-card__media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.home-service-card__body {
  padding: 1.5rem;
}

.home-service-card__title {
  margin-bottom: var(--space-3);
  color: var(--color-on-surface);
  font-size: 1.35rem;
  line-height: 1.2;
}

.home-service-card__summary {
  margin-bottom: var(--space-4);
  color: #2f2f2f;
  line-height: 1.65;
}

.home-service-card__cta {
  color: var(--color-brand-primary);
  font-family: var(--font-family-heading);
  font-weight: var(--font-semibold);
}

.home-feature__grid {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

.home-feature__content {
  max-width: 42rem;
}

.home-feature__eyebrow {
  margin-bottom: var(--space-3);
  color: #666666;
  font-size: 0.875rem;
  font-weight: var(--font-medium);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.home-feature__title {
  margin-bottom: var(--space-4);
  color: var(--color-on-surface);
  font-size: clamp(2rem, 3vw, 2.5rem);
}

.home-feature__body {
  margin-bottom: var(--space-4);
  color: #2f2f2f;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.home-feature__media img {
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.home-process__grid {
  position: relative;
  display: grid;
  gap: var(--space-8);
}

.home-process__step {
  position: relative;
  z-index: 1;
}

.home-process__number {
  margin-bottom: var(--space-4);
  color: var(--color-brand-primary);
  font-family: var(--font-family-heading);
  font-size: clamp(2.75rem, 4vw, 3rem);
  font-weight: var(--font-bold);
  line-height: 1;
}

.home-process__title {
  margin-bottom: var(--space-3);
  color: var(--color-on-surface);
  font-size: 1.375rem;
  line-height: 1.2;
}

.home-process__description {
  margin-bottom: var(--space-3);
  color: #2f2f2f;
  line-height: 1.7;
}

.home-process__detail {
  color: #666666;
  font-size: 0.9375rem;
  font-style: italic;
  line-height: 1.6;
}

.home-process__cta {
  margin-top: var(--space-10);
  text-align: center;
}

.home-card-grid--industries {
  grid-template-columns: 1fr;
}

.home-industry-card {
  position: relative;
  display: block;
  min-height: 260px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

.home-industry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform var(--transition-slow);
}

.home-industry-card__image-fallback {
  position: absolute;
  inset: 0;
  background: var(--color-primary-container);
}

.home-industry-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.35) 0%, rgba(26, 26, 26, 0.76) 100%);
  transition: background var(--transition-base);
}

.home-industry-card__content {
  position: absolute;
  inset: auto 1.5rem 1.5rem;
  z-index: 2;
}

.home-industry-card__label {
  position: static;
  color: var(--color-white);
  margin: 0;
  font-family: var(--font-family-heading);
  font-size: 1.35rem;
  font-weight: var(--font-bold);
  line-height: 1.2;
  text-transform: uppercase;
  display: block;
}

.home-industry-card:hover img {
  transform: scale(1.05);
}

.home-industry-card:hover .home-industry-card__overlay {
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.28) 0%, rgba(26, 26, 26, 0.64) 100%);
}

.home-industry-card:hover .home-industry-card__label {
  text-decoration: underline;
}

.home-differentiators__grid {
  display: grid;
  gap: var(--space-8);
}

.home-differentiators__title {
  margin-bottom: var(--space-3);
  color: var(--color-on-surface);
  font-size: 1.25rem;
  line-height: 1.25;
}

.home-differentiators__body {
  color: #2f2f2f;
  line-height: 1.7;
}

.home-quote {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-container) 100%);
  color: var(--color-white);
}

.home-quote__header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.home-quote__title {
  color: var(--color-white);
  font-size: clamp(2rem, 3vw, 2.5rem);
}

.home-quote__summary {
  max-width: 42rem;
  margin: var(--space-4) auto 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  line-height: 1.65;
}

.home-quote__form-wrap {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: rgba(230, 238, 245, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(20px);
}

.home-quote-form__row {
  display: grid;
  gap: var(--space-5);
}

.home-quote-form__row + .home-quote-form__row {
  margin-top: var(--space-5);
}

.home-quote-form__field label {
  display: block;
  margin-bottom: 0.625rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.875rem;
  font-weight: var(--font-medium);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-quote-form__field .required {
  color: var(--color-brand-primary);
}

.home-quote-form__field input,
.home-quote-form__field select,
.home-quote-form__field textarea {
  width: 100%;
  padding: 1rem 1.125rem;
  background: var(--color-surface-container-lowest);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 -2px 0 0 rgba(187, 0, 39, 0.14);
  color: var(--color-on-surface);
  font-size: 1rem;
  line-height: 1.5;
  appearance: none;
}

.home-quote-form__field select {
  background-image: linear-gradient(45deg, transparent 50%, #51606d 50%), linear-gradient(135deg, #51606d 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) calc(50% - 2px), calc(100% - 0.9rem) calc(50% - 2px);
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
  padding-right: 3rem;
}

.home-quote-form__field textarea {
  min-height: 140px;
  resize: vertical;
}

.home-quote-form__field input::placeholder,
.home-quote-form__field textarea::placeholder {
  color: #6b7b88;
}

.home-quote-form__field input:focus,
.home-quote-form__field select:focus,
.home-quote-form__field textarea:focus {
  outline: none;
  box-shadow: inset 0 -2px 0 0 var(--color-brand-primary), 0 0 0 4px rgba(187, 0, 39, 0.08);
}

.home-quote-form__submit {
  width: 100%;
  margin-top: var(--space-6);
}

.home-quote-form__botcheck {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.home-quote__fallback {
  margin-top: var(--space-6);
  text-align: center;
}

.home-quote__fallback p {
  margin: 0.35rem 0;
  color: rgba(255, 255, 255, 0.82);
}

.home-quote__fallback a {
  color: var(--color-white);
  font-weight: var(--font-semibold);
  text-decoration: none;
}

.home-quote__fallback a:hover {
  text-decoration: underline;
}

.homepage .site-footer {
  background: #1a1a1a;
  color: #e5e5e5;
}

.homepage .footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.homepage .footer-links li + li {
  margin-top: 0.5rem;
}

.homepage .footer-links a,
.homepage .footer-col a {
  color: #e5e5e5;
  text-decoration: none;
}

.homepage .footer-links a:hover,
.homepage .footer-col a:hover {
  color: var(--color-white);
}

.homepage .footer-service-area {
  margin-top: 0;
  padding-top: var(--space-4);
  border-top: none;
}

.homepage .footer-legal {
  padding-bottom: var(--space-6);
}

@media (min-width: 768px) {
  .home-card-grid--services,
  .home-card-grid--industries,
  .home-differentiators__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-feature__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

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

  .home-quote-form__row--two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .home-hero__layout {
    min-height: calc(100vh - var(--header-height));
    grid-template-columns: minmax(0, 1.05fr) minmax(220px, 0.95fr);
  }

  .home-card-grid--services,
  .home-card-grid--industries {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-process__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: var(--space-8);
  }

  .home-process__grid::before {
    content: "";
    position: absolute;
    top: 1.45rem;
    left: 6%;
    right: 6%;
    height: 2px;
    background: #e5e5e5;
    z-index: 0;
  }

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

@media (max-width: 767px) {
  .home-hero__actions .btn {
    width: 100%;
  }

  .home-feature__grid {
    gap: var(--space-6);
  }

  .home-feature__media {
    order: -1;
  }

  .home-industry-card {
    min-height: 220px;
  }
}

