/* Harmon's Electric, Inc. — Modern Industrial Design System
   Colors derived directly from harmonselectric.com and the Harmon's Electric
   emblem: deep crimson (#8B0000 / #970609), rich obsidian charcoal, warm
   crimson-blush tint, crisp white, and electric lightning gold (#F5C518). */

:root {
  --crimson-950: #450304;
  --crimson-900: #5f0406;
  --crimson-800: #750406;
  --crimson-700: #8b0000;
  --crimson-600: #970609;
  --crimson-500: #b81419;
  --crimson-400: #d6282e;

  --gold-600: #b88200;
  --gold-500: #d99b00;
  --gold-400: #f5c518;
  --gold-300: #fcef22;
  --gold-100: #fef8d8;

  --obsidian-950: #0d0c0d;
  --obsidian-900: #151314;
  --obsidian-850: #1c191a;
  --obsidian-800: #242022;
  --obsidian-700: #353032;

  --blush-50: #fcf6f6;
  --blush-100: #f6eaea;
  --blush-200: #e8d2d2;

  --white: #ffffff;
  --surface-50: #f7f6f5;
  --surface-100: #efedec;
  --ink-900: #141213;
  --ink-700: #3a3436;
  --ink-500: #635a5d;
  --border-light: #e2dbdc;
  --border-dark: rgba(255, 255, 255, 0.13);

  --danger-700: #991b1b;
  --danger-50: #fef2f2;
  --success-700: #166534;
  --success-50: #f0fdf4;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 10px rgba(15, 14, 15, 0.06), 0 1px 2px rgba(15, 14, 15, 0.04);
  --shadow-md: 0 18px 38px -16px rgba(15, 14, 15, 0.18);
  --shadow-lg: 0 28px 64px -18px rgba(10, 8, 9, 0.58);

  --font-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.005em;
  line-height: 1.04;
  margin-top: 0;
}

h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.28;
  margin-top: 0;
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--crimson-500);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 120;
  background: var(--crimson-700);
  color: var(--white);
  padding: 0.7rem 1.15rem;
  font-weight: 700;
  border-radius: 0 0 10px 0;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Utility Top Bar & Header
   ========================================================================== */

.top-bar {
  background: var(--crimson-900);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.81rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 36px;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: rgba(255, 255, 255, 0.88);
}

.top-bar-item svg {
  color: var(--gold-400);
  flex-shrink: 0;
}

.top-bar a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(15, 14, 15, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--white);
  flex-shrink: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 9px;
  padding: 4px 7px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.brand-mark img {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.brand-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.82rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.16s ease, background-color 0.16s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--white);
  background: rgba(255, 255, 255, 0.09);
}

.nav-link[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--gold-400);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--white);
  padding: 0.48rem 0.78rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.header-phone svg {
  color: var(--gold-400);
}

.header-phone:hover {
  border-color: var(--gold-400);
  background: rgba(245, 197, 24, 0.1);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  cursor: pointer;
}

.mobile-nav {
  background: var(--obsidian-900);
  border-top: 1px solid var(--border-dark);
  padding: 1rem 0 1.4rem;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-nav-inner a:not(.btn) {
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.98rem;
}

.mobile-nav-inner a:not(.btn):hover,
.mobile-nav-inner a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-400);
}

.mobile-nav-actions {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-dark);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.94rem;
  line-height: 1.1;
  padding: 0.82rem 1.35rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
  text-align: center;
}

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

.btn-sm {
  padding: 0.56rem 1rem;
  font-size: 0.86rem;
}

.btn-lg {
  padding: 0.95rem 1.65rem;
  font-size: 0.98rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--crimson-700);
  color: var(--white);
  box-shadow: 0 8px 22px -8px rgba(139, 0, 0, 0.65);
}

.btn-primary:hover {
  background: var(--crimson-500);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -8px rgba(184, 20, 25, 0.65);
}

.btn-gold {
  background: var(--gold-400);
  color: var(--obsidian-950);
  box-shadow: 0 8px 22px -8px rgba(245, 197, 24, 0.45);
}

.btn-gold:hover {
  background: var(--gold-300);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
}

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

.btn-outline:hover {
  background: var(--crimson-700);
  color: var(--white);
}

.btn-dark {
  background: var(--obsidian-900);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--crimson-700);
  transform: translateY(-1px);
}

.btn-spinner {
  display: none;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  animation: spin 0.7s linear infinite;
}

.btn.is-loading .btn-spinner {
  display: inline-block;
}

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

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--obsidian-950);
  color: var(--white);
  padding: 5.25rem 0 4.5rem;
}

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

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 0.28;
  filter: saturate(0.75) contrast(1.06);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 25%, rgba(151, 6, 9, 0.42), transparent 55%),
    linear-gradient(105deg, rgba(13, 12, 13, 0.96) 0%, rgba(18, 15, 16, 0.87) 52%, rgba(95, 4, 6, 0.65) 100%);
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 30% 40%, black 20%, transparent 78%);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(151, 6, 9, 0.35);
  border: 1px solid rgba(245, 197, 24, 0.38);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 1.35rem;
}

.eyebrow-bolt {
  color: var(--gold-400);
  display: inline-flex;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 4.9rem);
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--white);
}

.hero h1 span {
  color: var(--gold-400);
}

.hero-tagline {
  font-size: clamp(1.15rem, 2vw, 1.42rem);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.75rem;
}

.hero-lead {
  font-size: 1.04rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 58ch;
  margin: 0 0 1.85rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.hero-proof {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
}

.hero-proof li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-proof svg {
  color: var(--gold-400);
  flex-shrink: 0;
}

/* Hero Emblem & Dispatch Card */
.hero-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-emblem-stage {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(139, 0, 0, 0.12);
  margin-bottom: 1.35rem;
}

.hero-emblem-stage img {
  width: 100%;
  max-width: 310px;
  height: auto;
}

.hero-card-meta {
  display: grid;
  gap: 0.85rem;
}

.hero-card-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-card-row:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.hero-card-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.58);
  display: block;
}

.hero-card-val {
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--white);
}

.hero-card-val a {
  color: var(--gold-400);
}

.hero-card-val a:hover {
  text-decoration: underline;
}

.hero-card-footer {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-card-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-300);
}

/* Stats Ribbon */
.stats-band {
  background: var(--crimson-700);
  color: var(--white);
  border-top: 3px solid var(--gold-400);
}

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

.stat-item {
  padding: 1.45rem 1.25rem;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.stat-item:last-child {
  border-right: none;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  color: var(--white);
  display: block;
}

.stat-value span {
  color: var(--gold-400);
}

.stat-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.3rem;
  display: block;
}

/* ==========================================================================
   Page Hero (Subpages)
   ========================================================================== */

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--obsidian-950);
  color: var(--white);
  padding: 4.25rem 0 3.75rem;
  border-bottom: 3px solid var(--crimson-700);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
}

.page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(13, 12, 13, 0.95) 0%, rgba(21, 19, 20, 0.84) 60%, rgba(139, 0, 0, 0.52) 100%);
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 0.9rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.74);
}

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

.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.page-hero p {
  font-size: 1.06rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  max-width: 60ch;
}

/* ==========================================================================
   Sections & Headings
   ========================================================================== */

.section {
  padding: 5.25rem 0;
}

.section-sm {
  padding: 3.5rem 0;
}

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

.section-muted {
  background: var(--surface-50);
}

.section-blush {
  background: var(--blush-50);
  border-top: 1px solid var(--blush-200);
  border-bottom: 1px solid var(--blush-200);
}

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

.section-header {
  max-width: 680px;
  margin: 0 auto 3.25rem;
  text-align: center;
}

.section-header-left {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.75rem;
  flex-wrap: wrap;
}

.section-header-row .section-header {
  margin-bottom: 0;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--crimson-700);
  margin-bottom: 0.65rem;
}

.section-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--crimson-700);
  display: inline-block;
}

.section-dark .section-eyebrow {
  color: var(--gold-400);
}

.section-dark .section-eyebrow::before {
  background: var(--gold-400);
}

.section-header h2,
.editorial-heading {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  text-transform: uppercase;
  color: var(--ink-900);
  margin-bottom: 0.75rem;
}

.section-dark .section-header h2,
.section-dark .editorial-heading {
  color: var(--white);
}

.section-header p {
  color: var(--ink-500);
  font-size: 1.02rem;
  margin: 0;
}

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

.inline-link {
  color: var(--crimson-700);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(139, 0, 0, 0.35);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.inline-link:hover {
  color: var(--crimson-500);
  text-decoration-color: var(--crimson-500);
}

/* ==========================================================================
   Services Grid (5-Division Balanced Bento)
   ========================================================================== */

.services-bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-card {
  grid-column: span 2;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card.is-wide {
  grid-column: span 3;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(139, 0, 0, 0.35);
}

.service-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--obsidian-800);
}

.service-card.is-wide .service-media {
  aspect-ratio: 16 / 9;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-media img {
  transform: scale(1.04);
}

.service-tag {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  background: rgba(15, 14, 15, 0.84);
  color: var(--gold-400);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.32rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(245, 197, 24, 0.32);
}

.service-body {
  padding: 1.45rem 1.5rem 1.55rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-body h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink-900);
  margin-bottom: 0.5rem;
}

.service-body p {
  margin: 0 0 1rem;
  color: var(--ink-500);
  font-size: 0.94rem;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.service-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--crimson-800);
  background: var(--blush-100);
  border: 1px solid var(--blush-200);
  padding: 0.3rem 0.68rem;
  border-radius: 999px;
}

.service-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--crimson-700);
}

.service-foot {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--surface-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--crimson-700);
}

.card-action:hover {
  color: var(--crimson-500);
}

/* ==========================================================================
   About Split Layout
   ========================================================================== */

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 3.5rem;
  align-items: center;
}

.split-layout-top {
  align-items: start;
}

.about-media {
  position: relative;
}

.about-photo-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  background: var(--obsidian-900);
}

.about-photo-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 20%;
}

.heritage-badge {
  position: absolute;
  bottom: -18px;
  right: 22px;
  background: var(--crimson-700);
  color: var(--white);
  padding: 0.95rem 1.3rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--white);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.heritage-year {
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1;
  color: var(--gold-400);
}

.heritage-copy {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.prose-copy p {
  margin: 0 0 1.05rem;
  color: var(--ink-700);
  font-size: 1rem;
}

.prose-copy p:last-of-type {
  margin-bottom: 1.5rem;
}

.lead-statement {
  font-size: 1.15rem !important;
  font-weight: 700;
  color: var(--ink-900) !important;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}

.about-highlight-box {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--crimson-700);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.about-highlight-box strong {
  display: block;
  font-size: 0.92rem;
  color: var(--ink-900);
}

.about-highlight-box span {
  font-size: 0.83rem;
  color: var(--ink-500);
}

/* ==========================================================================
   Why Choose Us (Dark Architectural Pillars)
   ========================================================================== */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.pillar-card {
  background: var(--obsidian-850);
  border: 1px solid var(--border-dark);
  border-top: 3px solid var(--crimson-600);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.pillar-card:hover {
  transform: translateY(-3px);
  border-top-color: var(--gold-400);
}

.pillar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.35rem;
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(151, 6, 9, 0.28);
  border: 1px solid rgba(184, 20, 25, 0.45);
  color: var(--gold-400);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.36);
}

.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.65rem;
}

.pillar-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.95rem;
}

/* ==========================================================================
   Leadership Team
   ========================================================================== */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.team-photo {
  aspect-ratio: 4 / 4.5;
  overflow: hidden;
  background: var(--surface-100);
  border-bottom: 3px solid var(--crimson-700);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.team-info {
  padding: 1.35rem 1.45rem 1.5rem;
}

.team-info h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink-900);
  margin-bottom: 0.2rem;
}

.team-role {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--crimson-700);
  margin-bottom: 0.85rem;
}

.team-email {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-700);
  padding: 0.42rem 0.75rem;
  border-radius: 8px;
  background: var(--surface-50);
  border: 1px solid var(--border-light);
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
  word-break: break-all;
}

.team-email:hover {
  color: var(--crimson-700);
  border-color: var(--crimson-700);
  background: var(--blush-50);
}

/* ==========================================================================
   Join Our Team Banner
   ========================================================================== */

.careers-banner {
  background: linear-gradient(125deg, var(--crimson-950) 0%, var(--crimson-800) 58%, var(--obsidian-900) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 2.5rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.careers-banner .section-eyebrow {
  color: var(--gold-400);
}

.careers-banner .section-eyebrow::before {
  background: var(--gold-400);
}

.careers-banner h2 {
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.careers-banner p {
  color: rgba(255, 255, 255, 0.84);
  margin: 0 0 1.4rem;
}

.careers-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--white);
}

.benefits-list svg {
  color: var(--gold-400);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   Contact Info & Forms
   ========================================================================== */

.info-list {
  display: grid;
  gap: 1.1rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  padding: 1.05rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.section-light .info-item {
  background: var(--surface-50);
}

.info-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--blush-100);
  color: var(--crimson-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-item strong {
  display: block;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-900);
  margin-bottom: 0.15rem;
}

.info-item p {
  margin: 0;
  color: var(--ink-700);
  font-size: 0.95rem;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--crimson-700);
  border-radius: var(--radius-lg);
  padding: 2.15rem;
  box-shadow: var(--shadow-md);
}

.form-card h2,
.form-card h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  text-transform: uppercase;
  color: var(--ink-900);
  margin-bottom: 0.35rem;
}

.form-intro {
  margin: 0 0 1.4rem;
  color: var(--ink-500);
  font-size: 0.95rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-700);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink-900);
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.72rem 0.9rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--crimson-700);
  box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.12);
  outline: none;
}

.form-footer {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.85rem;
}

.form-status {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
}

.form-status.is-error {
  background: var(--danger-50);
  color: var(--danger-700);
  border: 1px solid rgba(153, 27, 27, 0.25);
}

.form-success {
  text-align: center;
  padding: 2rem 1rem;
}

.form-success[hidden] {
  display: none;
}

.form-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 999px;
  background: var(--success-50);
  color: var(--success-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  margin-bottom: 0.45rem;
}

.form-success p {
  color: var(--ink-500);
  margin: 0 0 1.25rem;
}

/* ==========================================================================
   Services Subpage Details & Filters
   ========================================================================== */

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2.25rem;
}

.filter-pill {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 1.5px solid var(--border-light);
  background: var(--white);
  color: var(--ink-700);
  cursor: pointer;
  transition: all 0.16s ease;
}

.filter-pill:hover {
  border-color: var(--crimson-700);
  color: var(--crimson-700);
}

.filter-pill.is-active {
  background: var(--crimson-700);
  border-color: var(--crimson-700);
  color: var(--white);
}

.service-detail-stack {
  display: grid;
  gap: 2.25rem;
}

.service-detail-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
  box-shadow: var(--shadow-sm);
}

.service-detail-card[hidden] {
  display: none;
}

.service-detail-card.is-reversed .service-detail-media {
  order: 2;
}

.service-detail-media {
  position: relative;
  min-height: 300px;
  max-height: 390px;
  overflow: hidden;
  background: var(--obsidian-900);
}

.service-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail-body {
  padding: 2.25rem 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-detail-body h2 {
  font-size: clamp(1.95rem, 3vw, 2.5rem);
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.service-detail-body p {
  color: var(--ink-700);
  margin: 0 0 1.25rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.55rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--ink-900);
  font-size: 0.95rem;
}

.check-list svg {
  color: var(--crimson-700);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ==========================================================================
   Careers Subpage Cards & Map
   ========================================================================== */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--crimson-700);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--crimson-700);
  color: var(--gold-400);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.step-card p {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.94rem;
}

.eeo-note {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--blush-50);
  border: 1px solid var(--blush-200);
  color: var(--ink-700);
  font-size: 0.88rem;
}

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  background: var(--surface-100);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

/* ==========================================================================
   Footer (Modern Obsidian + Crimson Accent)
   ========================================================================== */

.site-footer {
  background: var(--obsidian-950);
  color: rgba(255, 255, 255, 0.8);
  border-top: 4px solid var(--crimson-700);
  padding: 4.25rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 0.85fr));
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-dark);
}

.footer-brand-logo {
  display: inline-flex;
  background: var(--white);
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.footer-brand-logo img {
  height: 46px;
  width: auto;
}

.footer-tagline {
  font-weight: 700;
  color: var(--gold-400);
  font-size: 0.95rem;
  margin: 0 0 0.65rem;
}

.footer-about {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 36ch;
}

.footer-col h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.76);
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--gold-400);
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
  font-size: 0.9rem;
}

.footer-contact-list strong {
  display: block;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-400);
}

.footer-contact-list a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.58);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-layout,
  .split-layout,
  .careers-banner,
  .service-detail-card {
    grid-template-columns: 1fr;
  }

  .service-detail-card.is-reversed .service-detail-media {
    order: 0;
  }

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

  .service-card,
  .service-card.is-wide {
    grid-column: span 1;
  }

  .service-card:last-child {
    grid-column: 1 / -1;
  }

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

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .pillars-grid,
  .team-grid,
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  .top-bar {
    display: none;
  }

  .nav,
  .header-phone {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 540px) {
  .header-actions .btn-primary {
    display: none;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .brand-sub {
    font-size: 0.62rem;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 3.75rem 0;
  }

  .hero {
    padding: 3.5rem 0 3.25rem;
  }

  .services-bento,
  .pillars-grid,
  .team-grid,
  .steps-grid,
  .form-grid,
  .about-highlights,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-card:last-child {
    grid-column: span 1;
  }

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

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .careers-banner {
    padding: 2rem 1.5rem;
  }

  .service-detail-body {
    padding: 1.65rem 1.4rem;
  }

  .form-card {
    padding: 1.5rem 1.25rem;
  }

  .heritage-badge {
    position: static;
    margin-top: 1rem;
    border: none;
  }
}

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