/* Version 1 homepage - based on Concept 5 */

:root {
  --navy: #132338;
  --navy-mid: #1a2f48;
  --charcoal: #243140;
  --blue: #3a6fa8;
  --blue-deep: #2f5d8c;
  --ink: #15202e;
  --muted: #536274;
  --line: #d4dce5;
  --paper: #f4f6f8;
  --white: #ffffff;
  --steel: #7b8898;
  --focus: #2f6fb0;
  --media-a: #2c425a;
  --media-b: #35506a;
  --media-c: #3e5a74;
  --font: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 74rem;
  --radius: 2px;
}

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

html {
  scroll-behavior: smooth;
}

#capabilities,
#approach,
#why,
#service-area,
#contact,
#top,
#main {
  scroll-margin-top: 5rem;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
figure {
  margin: 0;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.65rem 1rem;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.placeholder {
  color: var(--steel);
  font-style: italic;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  color: var(--blue-deep);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.25rem;
  height: 2px;
  background: currentColor;
}

.eyebrow-light {
  color: #9eb4cb;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.3rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-lg {
  min-height: 3.15rem;
  padding: 0.8rem 1.5rem;
}

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

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

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  color: var(--blue-deep);
  font-weight: 700;
  text-decoration: none;
}

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

/* Media placeholders sized for future premium photos */

.media-frame {
  position: relative;
  display: grid;
  place-items: end start;
  width: 100%;
  min-height: 16rem;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 42%),
    linear-gradient(160deg, var(--media-a), var(--media-b) 55%, var(--media-c));
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
  mask-image: linear-gradient(120deg, #000 15%, transparent 70%);
}

.media-frame-alt {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), transparent 40%),
    linear-gradient(160deg, #24384e, #2f4760 55%, #3a5672);
}

.media-tall {
  min-height: 28rem;
  height: 100%;
}

.media-label {
  position: relative;
  z-index: 1;
  max-width: 18rem;
  margin: 1.25rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  border-left: 3px solid var(--blue);
  color: var(--ink);
}

.media-tag {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--blue-deep);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.media-title {
  margin-bottom: 0.25rem;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
}

.media-hint {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

/* Header — clean, uncrowded */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--navy);
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: 3.35rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 550;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--navy);
}

.header-cta {
  flex-shrink: 0;
  min-height: 2.45rem;
  padding: 0.5rem 1.05rem;
  font-size: 0.88rem;
}

/* Hero — large photo first, then concise panel (no form overlay) */

.hero {
  background: var(--white);
}

.hero-media {
  min-height: clamp(22rem, 52vh, 34rem);
  border-bottom: 1px solid rgba(19, 35, 56, 0.12);
}

.hero-media .media-label {
  margin: 1.5rem;
}

.hero-panel {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.hero-panel-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto;
  gap: 2rem;
  align-items: end;
  padding-block: 2.25rem 2.5rem;
}

.hero-copy h1 {
  max-width: 18ch;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--navy-mid);
}

.hero-lead {
  margin-top: 1rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 0.35rem;
}

/* Range bar */

.range-bar {
  background: var(--navy);
  color: #c9d6e4;
}

.range-bar-inner {
  padding-block: 0.95rem;
}

.range-bar-inner p {
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

/* Feature — image + text balance, slight angular accent */

.feature {
  padding-block: 4.5rem;
  background: var(--paper);
}

.feature-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2.5rem 3rem;
  align-items: center;
}

.feature-copy h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--navy);
}

.feature-copy > p {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-points {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.feature-points li {
  padding-left: 1rem;
  border-left: 3px solid var(--blue);
  color: var(--ink);
  font-weight: 600;
}

.feature-visual {
  position: relative;
  margin: 0;
}

.feature-accent {
  position: absolute;
  right: -0.75rem;
  bottom: -0.75rem;
  width: 42%;
  height: 55%;
  background: var(--navy);
  z-index: -1;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}

/* Tiles — large rectangular blocks */

.tiles {
  padding-block: 4.25rem;
  background: var(--white);
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 2rem;
}

.section-head-center {
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
  margin-bottom: 2.25rem;
}

.section-head-center .eyebrow {
  justify-content: center;
}

.section-head-center .eyebrow::before {
  display: none;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}

.tile {
  padding: 1.6rem 1.35rem;
  background: var(--white);
  border-right: 1px solid var(--line);
  min-height: 11rem;
}

.tile:last-child {
  border-right: none;
}

.tile h3 {
  margin-bottom: 0.55rem;
  font-size: 1.08rem;
  font-weight: 750;
  color: var(--navy);
  line-height: 1.25;
}

.tile p {
  color: var(--muted);
  font-size: 0.98rem;
}

.tiles-note {
  margin-top: 1.5rem;
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Photo band — strong secondary imagery */

.photo-band-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}

.photo-band .media-frame {
  min-height: clamp(16rem, 32vh, 22rem);
}

/* Approach */

.approach {
  padding-block: 4.5rem;
  background: var(--white);
}

.approach-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem 3rem;
  align-items: center;
}

.approach-copy h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(1.9rem, 3.4vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--navy);
}

.approach-lead {
  margin-bottom: 1.5rem;
  max-width: 34rem;
  color: var(--muted);
}

.steps {
  display: grid;
  border-top: 2px solid var(--navy);
}

.steps li {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--navy);
}

.steps span {
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

/* Why — controlled dark navy */

.why {
  background: var(--navy);
  color: var(--white);
  padding-block: 4.25rem;
}

.why-wrap {
  display: grid;
  gap: 2rem;
}

.why-intro h2 {
  max-width: 14ch;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 1.75rem;
}

.why-grid li {
  padding: 1.25rem 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 214, 228, 0.14);
  border-top: 3px solid var(--blue);
}

.why-grid h3 {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  font-weight: 750;
}

.why-grid p {
  color: #b7c5d4;
  font-size: 0.98rem;
}

.why-wide {
  grid-column: 1 / -1;
}

/* Service area */

.service-area {
  padding-block: 4.5rem;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.service-area-wrap {
  display: grid;
  gap: 1.75rem;
}

.service-area-lead {
  max-width: 40rem;
  margin-top: 0.85rem;
  color: var(--muted);
}

.service-map .map-frame {
  min-height: 0;
  margin: 0;
  display: block;
  background: #f0f3f6;
  max-height: 350px;
  overflow: hidden;
}

.service-area-map {
  display: block;
  width: 100%;
  height: auto;
  max-height: 350px;
  object-fit: cover;
  object-position: center;
}

/* Contact + map */

.contact {
  padding-block: 4.5rem;
  background: var(--paper);
}

.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2rem;
  align-items: start;
}

.contact-main h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(1.9rem, 3.4vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--navy);
}

.contact-lead {
  max-width: 36rem;
  margin-bottom: 1.35rem;
  color: var(--muted);
}

.contact-details {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.contact-details div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.85rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.contact-details dt {
  color: var(--blue-deep);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-details dd {
  color: var(--ink);
}

.contact-details .placeholder {
  display: inline-block;
}

.detail-link {
  display: inline-block;
  margin-left: 0.65rem;
  color: var(--blue-deep);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.detail-link:hover {
  color: var(--blue);
  text-decoration: underline;
}

.contact-cta-block {
  max-width: 34rem;
}

.contact-cta-note {
  color: var(--muted);
  font-size: 1.02rem;
}

.map-panel {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
}

.map-caption {
  padding: 1.15rem 1.25rem 1.35rem;
  border-top: 1px solid var(--line);
}

.map-caption h3 {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  color: var(--navy);
}

.map-caption p {
  color: var(--muted);
  font-size: 0.95rem;
}

.aside-note {
  padding: 1.2rem 1.25rem;
  background: var(--navy);
  color: #c9d6e4;
}

.aside-note h3 {
  margin-bottom: 0.4rem;
  color: var(--white);
  font-size: 1.02rem;
}

.aside-note p {
  font-size: 0.95rem;
}

.aside-card {
  margin-top: 1rem;
  padding: 1.2rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.aside-card h3 {
  margin-bottom: 0.65rem;
  color: var(--navy);
  font-size: 1.02rem;
}

.aside-list {
  display: grid;
  gap: 0.45rem;
}

.aside-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.aside-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  background: var(--blue);
}

/* Footer */

.site-footer {
  background: var(--navy);
  color: #c5d0dc;
}

.footer-wrap {
  display: grid;
  gap: 1.25rem;
  padding-block: 2.5rem 1.75rem;
}

.footer-logo {
  display: block;
  width: auto;
  height: 2.5rem;
  margin-bottom: 0.75rem;
}

.footer-brand-block p {
  max-width: 36rem;
  font-size: 0.95rem;
}

.footer-meta {
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.footer-meta .placeholder {
  color: #9eb0c0;
}

.footer-meta a {
  color: #c5d0dc;
  text-decoration: none;
}

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

.footer-copy {
  padding-top: 1rem;
  border-top: 1px solid rgba(197, 208, 220, 0.16);
  color: #8fa0b0;
  font-size: 0.85rem;
}

/* Responsive */

@media (max-width: 1040px) {
  .tile-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tile:nth-child(2n) {
    border-right: none;
  }

  .tile:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 900px) {
  .hero-panel-inner,
  .feature-wrap,
  .approach-wrap,
  .contact-wrap,
  .photo-band-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    justify-content: flex-start;
  }

  .feature-accent {
    display: none;
  }

  .media-tall {
    min-height: 18rem;
  }

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

  .contact-details div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .detail-link {
    display: block;
    margin-left: 0;
    margin-top: 0.35rem;
  }
}

@media (max-width: 720px) {
  .header-wrap {
    flex-wrap: wrap;
    padding-block: 0.75rem;
    min-height: 0;
  }

  .brand-logo {
    height: 3rem;
  }

  .site-nav {
    order: 3;
    width: 100%;
    padding-top: 0.55rem;
    border-top: 1px solid var(--line);
  }

  .wrap {
    width: min(100% - 1.75rem, var(--wrap));
  }

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

  .tile,
  .tile:nth-child(n) {
    border-right: none;
    border-bottom: 1px solid var(--line);
    min-height: 0;
  }

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

  .hero-cta .btn {
    width: 100%;
  }

  .section-head-center {
    text-align: left;
  }

  .section-head-center .eyebrow {
    justify-content: flex-start;
  }

  .section-head-center .eyebrow::before {
    display: inline-block;
  }

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

@media (max-width: 420px) {
  .brand-logo {
    height: 2.75rem;
  }
}
