/* OpenLink Partners — direction A "Steel & Signal" */

:root {
  --navy: #0b1f3a;
  --navy-2: #13294a;
  --blue: #05448a;
  --orange: #f26b1d;
  --orange-d: #d65a0f;
  --orange-soft: #ffb38a;
  --ink: #0b1f3a;
  --ink-2: #4a5a70;
  --ink-3: #6b7a8f;
  --line: #e0e5ec;
  --soft: #f4f6f9;
  --white: #fff;
  --f-head: "Archivo", system-ui, sans-serif;
  --f-body: "Public Sans", system-ui, sans-serif;
  --max: 1200px;
  --gut: 24px;
  --header-h: 84px;
  --radius: 6px;
  --shadow: 0 12px 40px rgba(11, 31, 58, .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.08; letter-spacing: -.015em; margin: 0; color: var(--navy); }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: calc(var(--max) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.eyebrow { font-family: var(--f-head); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.lede { font-size: 19px; color: var(--ink-2); max-width: 640px; }
.section { padding: 96px 0; }
.section.soft { background: var(--soft); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(32px, 4vw, 44px); font-weight: 800; margin: 12px 0 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 4px; font-family: var(--f-body); font-weight: 600; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-d); }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: 10px 16px; font-size: 15px; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }
.arrow-link { font-weight: 600; text-decoration: none; color: var(--blue); }
.arrow-link::after { content: " →"; }
.arrow-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.site-header .logo img { height: 46px; width: auto; }
.site-header .logo .on-dark { display: none; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--navy); text-decoration: none; font-weight: 500; font-size: 15px; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { color: var(--orange); }
.site-nav .btn { color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy); }
.nav-toggle svg { width: 28px; height: 28px; }

/* Header over the home hero */
.site-header.is-overlay { position: absolute; left: 0; right: 0; background: transparent; border-bottom: 0; }
.site-header.is-overlay .logo .on-light { display: none; }
.site-header.is-overlay .logo .on-dark { display: block; }
.site-header.is-overlay .site-nav ul a { color: #fff; }
.site-header.is-overlay .site-nav ul a:hover { color: var(--orange-soft); }
.site-header.is-overlay .nav-toggle { color: #fff; }

/* Home hero */
.hero { position: relative; min-height: 720px; background: var(--navy) url(../hero/openlink-hero-1600.jpg) center 40% / cover; background-image: image-set(url(../hero/openlink-hero-1600.jpg) 1x, url(../hero/openlink-hero-2400.jpg) 2x); display: flex; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 24, 48, .9) 0%, rgba(8, 24, 48, .62) 48%, rgba(8, 24, 48, .05) 85%); }
.hero .wrap { position: relative; width: 100%; padding-top: calc(var(--header-h) + 80px); padding-bottom: 140px; }
.hero .copy { max-width: 700px; color: #fff; }
.hero .eyebrow { color: var(--orange-soft); }
.hero h1 { color: #fff; font-weight: 800; font-size: clamp(42px, 6vw, 64px); line-height: 1.02; letter-spacing: -.02em; margin: 16px 0 22px; }
.hero p { font-size: 19px; color: #dfe6f0; max-width: 580px; text-wrap: pretty; }
.hero .btns { margin-top: 34px; }

/* Stats bar */
.stats { position: relative; z-index: 2; margin-top: -72px; background: var(--white); box-shadow: var(--shadow); border-top: 4px solid var(--orange); display: grid; grid-template-columns: repeat(4, 1fr); }
.stats > div { padding: 26px 28px; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats b { display: block; font-family: var(--f-head); font-weight: 800; font-size: 40px; letter-spacing: -.02em; line-height: 1.1; }
.stats span { display: block; font-size: 14px; color: var(--ink-2); line-height: 1.4; margin-top: 4px; }
.stats-note { margin-top: 14px; font-size: 14px; color: var(--ink-3); text-align: right; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { border-top: 3px solid var(--navy); padding-top: 22px; }
.step .num { font-family: var(--f-head); font-weight: 800; font-size: 14px; color: var(--orange); letter-spacing: .1em; }
.step h3 { font-size: 23px; font-weight: 700; margin: 8px 0 10px; }
.step p { color: var(--ink-2); font-size: 16px; }

/* Portfolio split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .photo { aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--soft) center / cover; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 32px; border-top: 1px solid var(--line); }
.facts > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts > div:nth-child(odd) { padding-right: 20px; }
.facts b { display: block; font-family: var(--f-head); font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.facts span { font-size: 14px; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips span { background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); }

/* Locator preview */
.loc-preview { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: center; }
.loc-preview .map-svg a circle { transition: r .15s; cursor: pointer; }
.loc-preview .map-svg a:hover circle, .loc-preview .map-svg a:focus circle { fill: var(--navy); }
.site-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--white); }
.site-card .id { font-size: 13px; color: var(--orange); font-weight: 700; letter-spacing: .06em; }
.site-card h3 { font-size: 24px; margin: 4px 0 2px; }
.site-card .where { color: var(--ink-2); font-size: 14px; margin-bottom: 16px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin: 0; }
.kv dt { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; line-height: 1.3; }
.kv dd { margin: 2px 0 0; font-weight: 600; font-size: 17px; }
.kv + .kv { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.site-card .btn { margin-top: 20px; width: 100%; justify-content: center; }

/* Providers */
.provider { display: grid; grid-template-columns: 300px 1fr auto; gap: 40px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 36px; background: var(--white); }
.provider img { width: 100%; height: auto; }
.provider h3 { font-size: 22px; margin-bottom: 6px; }
.provider p { color: var(--ink-2); font-size: 16px; }
.provider .tags { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.provider .tags span { font-size: 13px; font-weight: 600; color: var(--blue); background: #e9f0f9; border-radius: 4px; padding: 3px 10px; }

/* CTA band */
.cta-band { background: var(--navy); color: #fff; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-top: 72px; padding-bottom: 72px; }
.cta-band h2 { color: #fff; font-size: clamp(30px, 3.6vw, 40px); font-weight: 800; margin: 10px 0 12px; }
.cta-band p { color: #b9c6d8; max-width: 560px; }
.cta-band .eyebrow { color: var(--orange-soft); }

/* Page hero (inner pages) */
.page-hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.page-hero.has-photo { background: var(--navy) center / cover; }
.page-hero.has-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 24, 48, .94) 0%, rgba(8, 24, 48, .7) 55%, rgba(8, 24, 48, .25) 100%); }
.page-hero .wrap { position: relative; padding-top: 72px; padding-bottom: 72px; }
.page-hero h1 { color: #fff; font-size: clamp(36px, 5vw, 52px); font-weight: 800; letter-spacing: -.02em; margin: 14px 0 16px; max-width: 760px; }
.page-hero p { color: #cdd7e4; font-size: 19px; max-width: 640px; }
.page-hero .eyebrow { color: var(--orange-soft); }
.page-hero .btns { margin-top: 28px; }

/* Cards grid */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--white); }
.card b { display: block; font-family: var(--f-head); font-weight: 800; font-size: 34px; letter-spacing: -.02em; line-height: 1.1; }
.card h3 { font-size: 19px; margin: 6px 0 8px; }
.card p { color: var(--ink-2); font-size: 15px; }

/* Forms */
.form-layout { display: grid; grid-template-columns: 1fr 360px; gap: 56px; align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field label .opt { color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); padding: 12px 14px; border: 1.5px solid #cfd7e2; border-radius: 4px; background: var(--white); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(5, 68, 138, .15); }
.field .err { display: none; color: #b42318; font-size: 13px; margin-top: 4px; }
.field.invalid input, .field.invalid textarea { border-color: #b42318; }
.field.invalid .err { display: block; }
.form-status { grid-column: 1 / -1; padding: 14px 16px; border-radius: 4px; font-size: 15px; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #ecf7ef; color: #1b5e2f; }
.form-status.warn { background: #fff4e5; color: #8a4b08; }
.contact-box { background: var(--soft); border-radius: var(--radius); padding: 28px; }
.contact-box h3 { font-size: 20px; margin-bottom: 16px; }
.contact-box dl { margin: 0; display: grid; gap: 14px; }
.contact-box dt { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.contact-box dd { margin: 2px 0 0; font-weight: 600; }
.contact-box a { color: var(--navy); text-decoration: none; }

/* Prose (methodology) */
.prose { max-width: 780px; }
.prose h2 { font-size: 32px; font-weight: 800; margin: 12px 0 18px; }
.prose h3 { font-size: 20px; margin: 32px 0 8px; }
.prose p, .prose li { color: var(--ink-2); font-size: 16px; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; margin: 10px 0; }
.prose li + li { margin-top: 8px; }
.prose strong { color: var(--navy); }
.defs { display: grid; grid-template-columns: 220px 1fr; gap: 0; border-top: 1px solid var(--line); margin: 16px 0 0; }
.defs dt, .defs dd { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; font-size: 15px; }
.defs dt { font-weight: 700; color: var(--navy); padding-right: 16px; }
.defs dd { color: var(--ink-2); }

/* Footer */
.site-footer { background: #081830; color: #a9b6c8; font-size: 15px; }
.site-footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-top: 64px; padding-bottom: 48px; }
.site-footer img { height: 44px; width: auto; margin-bottom: 18px; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #d5deea; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; padding-bottom: 28px; font-size: 13px; color: #7f8ea3; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 1080px) {
  .site-nav ul { gap: 18px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .provider { grid-template-columns: 220px 1fr; }
  .provider .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 900px) {
  :root { --gut: 16px; --header-h: 68px; }
  .site-header .logo img { height: 36px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gut) 20px; box-shadow: 0 12px 24px rgba(11, 31, 58, .12); }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .site-header.is-overlay .site-nav ul a { color: var(--navy); }
  .site-nav .btn { margin-top: 16px; justify-content: center; }
  .hero { min-height: 0; }
  .hero .wrap { padding-top: calc(var(--header-h) + 48px); padding-bottom: 120px; }
  .hero p { font-size: 17px; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: -64px; }
  .stats > div { padding: 18px; border-bottom: 1px solid var(--line); }
  .stats > div:nth-child(2n) { border-right: 0; }
  .stats > div:nth-last-child(-n+2) { border-bottom: 0; }
  .stats b { font-size: 30px; }
  .stats-note { text-align: left; }
  .section { padding: 64px 0; }
  .steps, .split, .loc-preview, .form-layout { grid-template-columns: 1fr; gap: 32px; }
  .provider { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .provider img { max-width: 260px; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; padding-top: 56px; padding-bottom: 56px; }
  .form { grid-template-columns: 1fr; }
  .defs { grid-template-columns: 1fr; }
  .defs dt { border-bottom: 0; padding-bottom: 0; }
  .site-footer .top { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
}

.steps.steps-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .steps.steps-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps.steps-4 { grid-template-columns: 1fr; } }

/* Phone hero: vertical crop of the same scene, tower at the right edge, darker top-to-bottom overlay */
@media (max-width: 900px) {
  .hero { background-image: url(../hero/openlink-hero-mobile-800.jpg); background-image: image-set(url(../hero/openlink-hero-mobile-800.jpg) 1x, url(../hero/openlink-hero-mobile-1536.jpg) 2x); background-position: 85% 35%; }
  .hero::before { background: linear-gradient(180deg, rgba(8, 24, 48, .78) 0%, rgba(8, 24, 48, .7) 60%, rgba(8, 24, 48, .45) 100%); }
}

/* New home (10/9): hero without the stats bar, story split, towers section */
.hero.hero-home .wrap { padding-bottom: 110px; }
.split-h2 { font-size: clamp(32px, 4vw, 44px); font-weight: 800; margin: 12px 0 20px; }
.split.split-story { align-items: center; }
.story p { color: var(--ink-2); font-size: 17px; }
.story p + p { margin-top: 14px; }
.loc-preview.loc-home { grid-template-columns: 1fr 440px; }
@media (max-width: 900px) {
  .loc-preview.loc-home { grid-template-columns: 1fr; }
  .loc-preview.loc-home > div:first-child { order: 2; }
}

/* Network tab hero: close-up of the radios (home keeps the golden-hour shot) */
.hero.hero-network { background-image: url(../hero/openlink-network-1600.jpg); background-image: image-set(url(../hero/openlink-network-1600.jpg) 1x, url(../hero/openlink-network-2400.jpg) 2x); background-position: center 40%; }
@media (max-width: 900px) {
  .hero.hero-network { background-image: url(../hero/openlink-network-1600.jpg); background-position: 80% center; }
}
