@import url("assets/fonts/fonts-local.css");

:root {
  --ink: #081d34;
  --navy: #07345f;
  --blue: #0878bd;
  --sky: #e8f5ff;
  --sun: #bd7a00;
  --green: #1d8a6f;
  --paper: #f7fafc;
  --line: #d9e5ef;
  --muted: #5e7185;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(4, 24, 46, 0.18);
  --font-heading: "Space Grotesk", "Arial", sans-serif;
  --font-body: "Inter", "Arial", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  line-height: 1.55;
}

[hidden] {
  display: none !important;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(8, 29, 52, 0.11);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  font-size: 0.94rem;
  font-family: var(--font-heading);
  font-weight: 700;
}

.main-nav a {
  opacity: 0.88;
}

.main-nav a:hover {
  opacity: 1;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  white-space: nowrap;
}

.header-cta {
  padding: 0 18px;
  color: var(--ink);
  background: var(--sun);
}

.hero {
  position: relative;
  min-height: min(760px, 86vh);
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 20, 38, 0.86) 0%, rgba(4, 20, 38, 0.58) 42%, rgba(4, 20, 38, 0.12) 100%),
    linear-gradient(180deg, rgba(4, 20, 38, 0.42) 0%, rgba(4, 20, 38, 0.10) 50%, rgba(4, 20, 38, 0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  padding: clamp(130px, 18vh, 190px) 0 clamp(70px, 10vh, 110px);
  margin-left: clamp(18px, 7vw, 96px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--sun);
  font-size: 0.78rem;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.feature-content h2,
.process-copy h2,
.contact-copy h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero h1 {
  font-size: clamp(3.9rem, 10vw, 8rem);
}

.company-line {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 2.1vw, 1.52rem);
  font-family: var(--font-heading);
  font-weight: 700;
}

.hero-copy {
  width: min(620px, 100%);
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.90);
  font-size: clamp(1.08rem, 2.2vw, 1.45rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.button.primary {
  color: var(--ink);
  background: var(--sun);
  border-color: var(--sun);
}

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(1180px, calc(100% - 36px));
  margin: -48px auto 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.proof-strip article {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 152px;
  padding: 22px 22px 24px;
  background: var(--white);
  text-align: center;
}

.fact-label {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--green);
  font-size: 0.72rem;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proof-strip strong {
  display: block;
  color: var(--blue);
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 2.85vw, 2.75rem);
  font-weight: 700;
  line-height: 0.98;
}

.proof-strip article > span:not(.fact-label) {
  display: block;
  margin-top: auto;
  color: var(--muted);
  font-size: clamp(0.82rem, 0.95vw, 0.95rem);
  line-height: 1.25;
  white-space: nowrap;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(78px, 10vw, 132px) 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
  gap: clamp(36px, 7vw, 86px);
  align-items: center;
}

.intro {
  overflow-x: clip;
}

.section h2,
.feature-content h2,
.process-copy h2,
.contact-copy h2 {
  color: var(--navy);
  font-size: clamp(2.05rem, 5vw, 4.4rem);
}

.intro-copy p,
.section-heading p,
.feature-content p,
.process-copy p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.intro-visual {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.intro-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.services {
  padding-top: clamp(58px, 9vw, 98px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.6fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
  margin-bottom: 34px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  overflow: visible;
}

.service-card,
.process-step {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.service-card {
  min-height: 328px;
  padding: 28px;
}

.service-card,
.process-step {
  transform-origin: center;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.service-card:hover,
.service-card:focus-within,
.process-step:hover,
.process-step:focus-within {
  border-color: rgba(8, 120, 189, 0.34);
  box-shadow: 0 26px 64px rgba(4, 24, 46, 0.18);
  transform: scale(1.035);
}

.service-number,
.process-step span {
  display: inline-block;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.service-card h3,
.process-step h3 {
  margin: 18px 0 14px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.5rem;
}

.service-card ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 22px;
  margin: 12px 0;
  color: var(--muted);
}

.service-card li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sun);
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(64px, 8vw, 110px) clamp(18px, 5vw, 72px);
  color: var(--white);
  background: #0b3d59;
}

.feature-image {
  overflow: hidden;
  border-radius: 8px;
}

.feature-image img {
  width: 100%;
  aspect-ratio: 1.45 / 1;
  object-fit: cover;
}

.feature-content h2 {
  color: var(--white);
}

.feature-content p {
  color: rgba(255, 255, 255, 0.78);
}

.capacity-list {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
}

.capacity-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.capacity-list dt {
  font-weight: 900;
}

.capacity-list dd {
  margin: 0;
  color: var(--sun);
  font-weight: 900;
  text-align: right;
}

.process {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.process-copy {
  grid-row: span 2;
  align-self: center;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.process-step {
  padding: 22px;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.process-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 8px;
}

.reference-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  grid-auto-rows: 260px;
  gap: 16px;
}

.references {
  overflow-x: clip;
}

.reference-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--navy);
}

.reference-card.large {
  grid-row: span 2;
}

.reference-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 450ms ease;
}

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

.reference-card figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(5, 28, 52, 0.72);
  backdrop-filter: blur(10px);
  font-weight: 800;
}

.city-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.city-line span {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: var(--white);
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: clamp(30px, 7vw, 92px);
  align-items: center;
  padding: clamp(72px, 9vw, 116px) clamp(18px, 6vw, 96px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.72)),
    url("assets/roof-array.webp") center / cover;
}

.contact-panel {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.contact-panel img {
  width: 136px;
  margin-bottom: 18px;
}

.contact-panel address {
  margin: 0 0 20px;
  color: var(--muted);
  font-style: normal;
}

.contact-panel address strong {
  display: block;
  color: var(--navy);
  margin-bottom: 6px;
}

.contact-link {
  display: block;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--blue);
  font-size: 1.15rem;
  font-weight: 900;
}

.legal-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.78);
  background: var(--ink);
  font-size: 0.92rem;
}

.footer-brand {
  display: grid;
  gap: 6px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--white);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-trigger,
.modal-close {
  font: inherit;
  cursor: pointer;
}

.legal-trigger {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.legal-trigger:hover,
.legal-trigger:focus-visible {
  border-color: var(--sun);
  outline: none;
}

body.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(4, 20, 38, 0.72);
  backdrop-filter: blur(10px);
}

.legal-modal {
  position: relative;
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  overflow: auto;
  padding: clamp(26px, 5vw, 42px);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.legal-modal h2 {
  margin: 0 0 18px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.05;
}

.legal-modal p {
  margin: 0 0 16px;
  color: var(--muted);
}

.legal-modal strong,
.legal-modal a {
  color: var(--navy);
}

.modal-note {
  font-size: 0.9rem;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--navy);
  background: var(--sky);
  font-size: 1.35rem;
  font-weight: 900;
}

.reveal {
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .motion-ready .intro-copy.reveal {
    opacity: 0;
    filter: blur(10px);
    transform: translate3d(clamp(-620px, -48vw, -180px), 0, 0);
    transition-duration: 1650ms;
    transition-property: opacity, transform, filter;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
  }

  .motion-ready .intro-visual.reveal {
    opacity: 0;
    filter: blur(10px);
    transform: translate3d(clamp(180px, 48vw, 620px), 0, 0);
    transition-duration: 1650ms;
    transition-delay: 90ms;
    transition-property: opacity, transform, filter;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
  }

  .motion-ready .intro-copy.reveal.is-visible,
  .motion-ready .intro-visual.reveal.is-visible {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
    will-change: auto;
  }

  .motion-ready .proof-strip.reveal strong {
    display: inline-block;
    overflow: hidden;
    clip-path: inset(0 100% 0 0);
  }

  .motion-ready .proof-strip.reveal.is-visible strong {
    animation: kpi-write 1550ms steps(16, end) forwards;
    animation-delay: calc(var(--kpi-order) * 230ms);
  }

  .motion-ready .feature-content.reveal .capacity-list dd {
    display: inline-block;
    overflow: hidden;
    max-width: 100%;
    clip-path: inset(0 100% 0 0);
  }

  .motion-ready .feature-content.reveal.is-visible .capacity-list dd {
    animation: capacity-write 1350ms steps(30, end) forwards;
    animation-delay: calc(260ms + var(--capacity-order) * 190ms);
  }

  .motion-ready .service-card.reveal,
  .motion-ready .process-step.reveal,
  .motion-ready .process-image.reveal {
    opacity: 0;
    transform: scale(0.64);
    transition: none;
  }

  .motion-ready .service-card.reveal.is-visible,
  .motion-ready .process-step.reveal.is-visible,
  .motion-ready .process-image.reveal.is-visible {
    opacity: 1;
    transform: scale(1);
    transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
    animation: service-pop 980ms cubic-bezier(0.2, 0.88, 0.2, 1) backwards;
    animation-delay: calc(var(--card-order) * 140ms);
  }

  .motion-ready .service-card.reveal.is-visible:hover,
  .motion-ready .service-card.reveal.is-visible:focus-within,
  .motion-ready .process-step.reveal.is-visible:hover,
  .motion-ready .process-step.reveal.is-visible:focus-within {
    opacity: 1;
    transform: scale(1.045);
    border-color: rgba(8, 120, 189, 0.34);
    box-shadow: 0 30px 74px rgba(4, 24, 46, 0.22);
    transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
  }

  .motion-ready .reference-card.reveal {
    opacity: 0;
    transform: translate3d(clamp(88px, 12vw, 190px), 0, 0);
    transition: none;
  }

  .motion-ready .reference-card.reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    animation: reference-fly-in 940ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: calc(var(--reference-order) * 170ms);
  }

  .proof-strip article:nth-child(1) strong {
    --kpi-order: 0;
  }

  .proof-strip article:nth-child(2) strong {
    --kpi-order: 1;
  }

  .proof-strip article:nth-child(3) strong {
    --kpi-order: 2;
  }

  .proof-strip article:nth-child(4) strong {
    --kpi-order: 3;
  }

  .capacity-list div:nth-child(1) dd {
    --capacity-order: 0;
  }

  .capacity-list div:nth-child(2) dd {
    --capacity-order: 1;
  }

  .capacity-list div:nth-child(3) dd {
    --capacity-order: 2;
  }

  .service-grid .service-card:nth-child(1) {
    --card-order: 0;
  }

  .service-grid .service-card:nth-child(2) {
    --card-order: 1;
  }

  .service-grid .service-card:nth-child(3) {
    --card-order: 2;
  }

  .process-steps .process-step:nth-child(1) {
    --card-order: 0;
  }

  .process-steps .process-step:nth-child(2) {
    --card-order: 1;
  }

  .process-steps .process-step:nth-child(3) {
    --card-order: 2;
  }

  .reference-grid .reference-card:nth-child(1) {
    --reference-order: 0;
  }

  .reference-grid .reference-card:nth-child(2) {
    --reference-order: 1;
  }

  .reference-grid .reference-card:nth-child(3) {
    --reference-order: 2;
  }

  .reference-grid .reference-card:nth-child(4) {
    --reference-order: 3;
  }
}

@keyframes kpi-write {
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes capacity-write {
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes service-pop {
  0% {
    opacity: 0;
    transform: scale(0.64);
    box-shadow: 0 0 0 rgba(4, 24, 46, 0);
  }

  68% {
    opacity: 1;
    transform: scale(1.045);
    box-shadow: 0 20px 48px rgba(4, 24, 46, 0.15);
  }

  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: none;
  }
}

@keyframes reference-fly-in {
  0% {
    opacity: 0;
    transform: translate3d(clamp(88px, 12vw, 190px), 0, 0);
  }

  72% {
    opacity: 1;
    transform: translate3d(-10px, 0, 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 920px) {
  .site-header {
    gap: 12px;
  }

  .main-nav {
    display: none;
  }

  .hero-content {
    margin-right: 18px;
  }

  .proof-strip,
  .service-grid,
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .intro-grid,
  .section-heading,
  .feature-band,
  .process,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .process-copy {
    grid-row: auto;
  }

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

  .reference-card.large {
    grid-column: span 2;
    grid-row: auto;
  }
}

@media (max-width: 620px) {
  .brand span {
    display: none;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 14px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    width: calc(100% - 32px);
    padding-top: 116px;
    padding-bottom: clamp(46px, 8vw, 58px);
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .proof-strip,
  .service-grid,
  .process-steps,
  .reference-grid {
    grid-template-columns: 1fr;
  }

  .proof-strip {
    margin-top: -28px;
  }

  .reference-card.large {
    grid-column: auto;
  }

  .reference-grid {
    grid-auto-rows: 230px;
  }

  .capacity-list div {
    display: block;
  }

  .capacity-list dd {
    margin-top: 4px;
    text-align: left;
  }
}
