/* Home page — follows the client's Lovable main page: Bebas Neue display type,
   IBM Plex Mono labels, navy / orange / paper palette, numbered sections. */

@font-face { font-family: 'Bebas Neue'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/bebasneue-latin.woff2') format('woff2'); }

:root {
  --lv-navy: #0C2239;
  --lv-navy-2: #10304F;
  --lv-orange: #EB5B0A;
  --lv-orange-dark: #C74A06;
  --lv-paper: #F3F5F8;
  --lv-ink: #0C2239;
  --lv-muted: #3E4E62;
  --lv-rule: #C9D0D9;
  --lv-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
}

.mono { font-family: var(--mono); }
.h-wrap { max-width: 1324px; margin: 0 auto; padding: 0 var(--gutter); }
.h-accent { color: var(--lv-orange); }
.h-sec { padding: clamp(72px, 10vw, 140px) 0; background: #fff; color: var(--lv-ink); }
.h-paper { background: var(--lv-paper); }
.h-navy { background: var(--lv-navy); color: #fff; }
.h-orange { background: var(--lv-orange); color: #fff; }

/* section kicker: "02 ———— OPERATING BRIEF" with a rule underneath */
.h-kicker { display: flex; gap: 0; align-items: center; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--lv-ink); padding-bottom: 18px; border-bottom: 1px solid var(--lv-rule); margin-bottom: clamp(40px, 6vw, 88px); }
.h-kicker .h-num { width: 90px; color: var(--lv-orange); }
.h-kicker-dark { color: #fff; border-bottom-color: rgba(255,255,255,.28); }
.h-orange .h-kicker .h-num { color: #fff; }
.h-num { color: var(--lv-orange); }

.h-display { font-family: var(--lv-display); font-weight: 400; text-transform: uppercase; font-size: clamp(48px, 7vw, 104px); line-height: .9; letter-spacing: .005em; color: var(--lv-ink); text-wrap: balance; }
.h-display-md { font-size: clamp(40px, 5.2vw, 76px); }
.h-display-xl { font-size: clamp(56px, 9.5vw, 140px); }
.h-display-light { color: #fff; }

.h-split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 6vw, 110px); align-items: start; }
.h-split-top { align-items: start; }
.h-copy { font-size: 16px; line-height: 1.7; color: var(--lv-muted); }
.h-copy p + p { margin-top: 18px; }
.h-lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; color: var(--lv-ink); margin-bottom: 22px; }

.h-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; background: var(--lv-orange); color: #fff; padding: 22px 26px; font-family: var(--mono); font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; border: 0; cursor: pointer; transition: background .25s, transform .25s; }
.h-btn:hover { background: var(--lv-orange-dark); color: #fff; transform: translateY(-2px); }
.h-btn-wide { min-width: min(380px, 100%); }

/* ---- 01 hero ---- */
.h-hero { position: relative; min-height: calc(100vh - 66px); min-height: calc(100svh - 66px); display: flex; overflow: hidden; background: var(--lv-navy); color: #fff; }
.h-hero-bg { position: absolute; inset: -6% 0; }
.h-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,34,57,.82) 0%, rgba(12,34,57,.55) 50%, rgba(12,34,57,.15) 100%), linear-gradient(0deg, rgba(12,34,57,.75) 0%, rgba(12,34,57,0) 40%); }
.h-hero-inner { position: relative; width: 100%; display: flex; flex-direction: column; justify-content: space-between; padding-top: clamp(28px, 5vh, 56px); padding-bottom: clamp(24px, 4vh, 40px); gap: 40px; }
.h-hero-meta { display: flex; gap: clamp(40px, 17vw, 240px); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.h-hero-title { font-family: var(--lv-display); font-weight: 400; text-transform: uppercase; font-size: clamp(64px, 11.6vw, 176px); line-height: .88; letter-spacing: .005em; margin-top: auto; }
.h-hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.7; }
.h-hero-down { color: #fff; display: inline-flex; gap: 14px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.5); padding-bottom: 6px; }
.h-hero-down:hover { color: var(--lv-orange); border-color: var(--lv-orange); }
.h-hero-count { position: absolute; right: clamp(20px, 4vw, 58px); top: clamp(28px, 5vh, 56px); writing-mode: vertical-rl; font-size: 11px; font-weight: 600; letter-spacing: .08em; color: rgba(255,255,255,.8); }

/* ---- 02 brief stats ---- */
.h-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--lv-rule); margin-top: clamp(56px, 8vw, 130px); }
.h-stats > div { padding: clamp(24px, 3vw, 34px); min-height: 170px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.h-stats > div + div { border-left: 1px solid var(--lv-rule); }
.h-stats b { font-family: var(--lv-display); font-weight: 400; font-size: clamp(56px, 6vw, 88px); line-height: .9; color: var(--lv-navy); }
.h-stats span { font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--lv-muted); }

/* ---- 03 field operations ---- */
.h-field { position: relative; min-height: min(100vh, 900px); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; color: #fff; background: var(--lv-navy); }
.h-field-bg { position: absolute; inset: -6% 0; }
.h-field-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,34,57,.78) 0%, rgba(12,34,57,.35) 60%, rgba(12,34,57,.1) 100%); }
.h-field-inner { position: relative; width: 100%; padding-top: clamp(56px, 8vw, 88px); padding-bottom: 60px; }
.h-field-inner .h-display { max-width: 820px; }
.h-field-text { max-width: 520px; font-size: 17px; line-height: 1.6; margin-top: 28px; }
.h-field-cells { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.3); }
.h-field-cells span { padding: 26px var(--gutter); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.h-field-cells span + span { border-left: 1px solid rgba(255,255,255,.3); }

/* ---- 04 year ---- */
.h-year { font-family: var(--lv-display); font-size: clamp(150px, 24vw, 360px); line-height: .82; color: var(--lv-navy); letter-spacing: -.01em; }
.h-split-top .h-display { margin-bottom: 36px; }
.h-regions { margin-top: 40px; border-top: 1px solid var(--lv-rule); }
.h-regions > div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--lv-rule); }
.h-regions b { font-family: var(--lv-display); font-weight: 400; font-size: 30px; color: var(--lv-navy); }
.h-regions span { font-size: 14px; color: var(--lv-muted); text-align: right; }

/* ---- 05 equipment run ---- */
.h-equip { position: relative; background: var(--lv-navy); color: #fff; }
.h-equip-pin { padding: clamp(72px, 9vw, 120px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.h-equip-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(36px, 5vw, 64px); }
.h-equip-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #B9C4D2; white-space: nowrap; }
.h-equip-count { font-size: 13px; color: #fff; }
.h-track { display: flex; gap: 0; padding-left: var(--gutter); border-top: 8px solid var(--lv-orange); width: max-content; will-change: transform; }
.h-card { flex: 0 0 auto; width: clamp(280px, 39vw, 560px); min-height: clamp(420px, 62vh, 600px); padding: clamp(28px, 3vw, 42px); display: flex; flex-direction: column; background: #fff; color: var(--lv-ink); border-right: 1px solid var(--lv-rule); }
.h-card:nth-child(3n+2) { background: var(--lv-paper); }
.h-card:nth-child(3n) { background: var(--lv-orange); color: #fff; border-right-color: rgba(255,255,255,.3); }
.h-card-n { font-family: var(--lv-display); font-size: 64px; line-height: 1; }
.h-card h3 { font-family: var(--lv-display); font-weight: 400; text-transform: uppercase; font-size: clamp(34px, 3.4vw, 50px); line-height: .95; margin-top: auto; }
.h-card p { margin-top: 18px; font-size: 15px; line-height: 1.55; opacity: .85; max-width: 380px; }
.h-card small { display: block; margin-top: 40px; padding-top: 14px; border-top: 1px solid currentColor; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; opacity: .75; }
.h-enquire { background: var(--lv-navy); border-top: 1px solid rgba(255,255,255,.14); padding: clamp(40px, 5vw, 64px) 0; }
.h-enquire-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }

/* pinned horizontal run on wide screens (site.js sets the section height) */
.h-equip.is-pinned .h-equip-pin { position: sticky; top: 66px; height: calc(100vh - 66px); display: flex; flex-direction: column; justify-content: center; padding: 0; }
.h-equip.is-pinned .h-card { min-height: min(56vh, 560px); }

/* ---- 06 sectors ---- */
.h-sectors { margin-top: clamp(48px, 7vw, 96px); border-top: 1px solid var(--lv-rule); }
.h-sector { display: grid; grid-template-columns: 80px minmax(200px, 1.1fr) 1.3fr 40px; gap: 20px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--lv-rule); color: var(--lv-ink); transition: background .25s, padding .25s; }
.h-sector b { font-family: var(--lv-display); font-weight: 400; font-size: clamp(32px, 3.2vw, 46px); text-transform: uppercase; line-height: 1; }
.h-sector span:not(.h-num) { font-size: 14.5px; color: var(--lv-muted); }
.h-sector .h-num { font-size: 11px; }
.h-sector i { font-style: normal; font-size: 22px; color: var(--lv-orange); text-align: right; transition: transform .25s; }
.h-sector:hover { background: var(--lv-paper); padding-left: 16px; padding-right: 16px; color: var(--lv-ink); }
.h-sector:hover i { transform: translate(3px, -3px); }

/* ---- 07 compliance ---- */
.h-comp { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(255,255,255,.4); }
.h-comp a { color: #fff; padding: clamp(24px, 3vw, 30px); min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; transition: background .25s; }
.h-comp a + a { border-left: 1px solid rgba(255,255,255,.4); }
.h-comp a:hover { background: rgba(0,0,0,.08); color: #fff; }
.h-comp b { font-family: var(--lv-display); font-weight: 400; font-size: clamp(56px, 5.6vw, 80px); line-height: 1; }
.h-comp span { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.h-comp-note { margin-top: 44px; max-width: 700px; font-size: 14px; line-height: 1.6; }

/* ---- 08 portfolio ---- */
.h-folio { margin-top: clamp(48px, 7vw, 96px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; background: var(--lv-navy); padding: 16px; }
.h-folio figure { position: relative; aspect-ratio: 1; overflow: hidden; }
.h-folio img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.16,1,.3,1); }
.h-folio figure:hover img { transform: scale(1.05); }
.h-folio figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(0deg, rgba(12,34,57,.88), rgba(12,34,57,0)); color: #fff; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; display: flex; gap: 14px; }
.h-folio figcaption span { color: var(--lv-orange); }

/* ---- 09 requirement ---- */
.h-req { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(32px, 6vw, 100px); margin-top: clamp(48px, 6vw, 80px); }
.h-req-side p { font-size: 15.5px; line-height: 1.6; color: #D5DDE7; max-width: 400px; }
.h-req-regions { margin: 60px 0 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.25); display: flex; flex-direction: column; gap: 8px; }
.h-req-regions .h-num { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.h-req-regions b { font-family: var(--lv-display); font-weight: 400; font-size: 34px; line-height: 1.1; }
.h-req-mail a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.h-form { display: flex; flex-direction: column; gap: 30px; }
.h-field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.h-form label { display: flex; flex-direction: column; gap: 10px; }
.h-form label > span { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.h-form input, .h-form select, .h-form textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.4); color: #fff; font-size: 17px; padding: 10px 2px; outline: none; border-radius: 0; transition: border-color .2s; }
.h-form select option { color: var(--lv-ink); }
.h-form textarea { resize: vertical; min-height: 130px; }
.h-form input:focus, .h-form select:focus, .h-form textarea:focus { border-bottom-color: var(--lv-orange); }
.h-form [aria-invalid="true"] { border-bottom-color: #FF8A65 !important; }
.h-form-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.h-form .form-status { margin: 0; flex: 1 1 240px; }

/* ---- sign-off ---- */
.h-sign { padding: clamp(56px, 7vw, 96px) 0; }
.h-sign-inner { display: grid; grid-template-columns: minmax(200px, 360px) 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.h-sign img { width: 100%; max-width: 340px; height: auto; }

/* ---- responsive ---- */
@media (max-width: 960px) {
  .h-split, .h-req, .h-sign-inner { grid-template-columns: 1fr; }
  .h-stats { grid-template-columns: repeat(2, 1fr); }
  .h-stats > div:nth-child(3) { border-left: 0; }
  .h-stats > div:nth-child(n+3) { border-top: 1px solid var(--lv-rule); }
  .h-comp { grid-template-columns: repeat(2, 1fr); }
  .h-comp a:nth-child(3) { border-left: 0; }
  .h-comp a:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.4); }
  .h-comp a { min-height: 200px; }
  .h-sector { grid-template-columns: 50px 1fr 30px; }
  .h-sector span:not(.h-num) { grid-column: 2 / 3; }
  .h-sector i { grid-row: 1; grid-column: 3; }
  .h-folio { grid-template-columns: repeat(2, 1fr); }
  .h-equip-row { flex-direction: column; align-items: flex-start; }
  .h-equip-meta { align-items: flex-start; }
  .h-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-right: var(--gutter); scrollbar-width: thin; }
  .h-card { scroll-snap-align: start; width: min(82vw, 420px); min-height: 380px; }
}
@media (max-width: 600px) {
  .h-hero-meta { flex-direction: column; gap: 6px; }
  .h-hero-foot { flex-direction: column; align-items: flex-start; }
  .h-hero-count { display: none; }
  .h-field-cells { grid-template-columns: 1fr; }
  .h-field-cells span + span { border-left: 0; border-top: 1px solid rgba(255,255,255,.3); }
  .h-field-pair { grid-template-columns: 1fr; }
  .h-folio { grid-template-columns: 1fr; padding: 10px; gap: 10px; }
  .h-kicker .h-num { width: 56px; }
  .h-btn-wide { width: 100%; }
  .h-regions > div { flex-direction: column; gap: 2px; }
  .h-regions span { text-align: left; }
}
