/*
Theme Name: SSS
Theme URI: https://www.sss-sxm.com/
Author: St. Maarten Shipping & Stevedoring N.V.
Description: Custom theme for St. Maarten Shipping & Stevedoring N.V. (SSS): stevedoring and terminal operations, inland container haulage, chassis maintenance and cruise provisioning in the Port of St. Maarten. Includes a one-click setup under Appearance > SSS Setup.
Version: 1.0.2
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sss
*/

/* Heavy-equipment brand site. Saturated royal-blue blocks, Taylor-red signals, wide black type for
   headlines and big numbers, photos framed on offset color slabs. Single light theme. */
:root {
  color-scheme: light;
  --royal: #0a1fa3;       /* SSS logo blue */
  --royal-deep: #06135e;  /* dark sections */
  --red: #d7262f;         /* Taylor reach-stacker red */
  --red-deep: #a81c24;
  --ink: #0a0f2c;
  --muted: #4a5378;
  --mist: #eef1fb;
  --line: #d6dbf1;
  --white: #ffffff;
  --on-royal: #c9d1ff;
  --f: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1280px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { background: var(--white); color: var(--ink); font-family: var(--f); font-size: 17px; line-height: 1.6; font-stretch: 100%; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.display { font-weight: 900; font-stretch: 118%; text-transform: uppercase; line-height: .92; letter-spacing: -.01em; }
.label { font-weight: 700; font-stretch: 75%; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.btn { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-stretch: 85%; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: 16px 26px; border-radius: 6px; border: 2px solid transparent; transition: transform .15s ease, background-color .15s ease; }
.btn::after { content: "→"; font-stretch: 100%; transition: transform .15s ease; }
.btn:hover::after { transform: translateX(4px); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-deep); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--royal); }
.btn-royal { background: var(--royal); color: var(--white); }
.btn-royal:hover { background: var(--royal-deep); }
.mail-link { color: inherit; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- Header ---------- */
.topbar { background: var(--royal-deep); color: var(--on-royal); font-size: 13px; font-weight: 600; font-stretch: 85%; letter-spacing: .06em; text-transform: uppercase; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 4px 28px; padding-block: 9px; }
.topbar b { color: var(--white); font-weight: 700; }
.topbar .live { display: inline-flex; align-items: center; gap: 8px; }
.topbar .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(215,38,47,.3); }
.topbar .right { margin-left: auto; }
.topbar a { text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 96px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: 0 1 auto; min-width: 0; }
.brand img { width: 84px; }
.brand .name { font-weight: 900; font-stretch: 110%; font-size: 15px; line-height: 1.05; text-transform: uppercase; color: var(--royal); letter-spacing: .02em; }
.brand .name span { display: block; font-weight: 600; font-stretch: 85%; color: var(--muted); letter-spacing: .12em; font-size: 11px; margin-top: 4px; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.main-nav a { display: block; font-weight: 700; font-stretch: 85%; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 6px; }
.main-nav a:hover { background: var(--mist); color: var(--royal); }
.main-nav .nav-cta a { background: var(--red); color: var(--white); padding: 12px 18px; margin-left: 8px; }
.main-nav .nav-cta a:hover { background: var(--red-deep); color: var(--white); }
.menu-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border: 2px solid var(--royal); border-radius: 6px; background: none; padding: 0 11px; cursor: pointer; }
.menu-toggle span { display: block; height: 3px; background: var(--royal); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { background: var(--royal); color: var(--white); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.035) 0 2px, transparent 2px 22px); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; padding-block: 72px 112px; }
.hero-copy { display: grid; gap: 26px; min-width: 0; }
.hero-copy .label { color: var(--on-royal); display: flex; align-items: center; gap: 12px; }
.hero-copy .label::before { content: ""; width: 36px; height: 4px; background: var(--red); }
.hero h1 { font-size: clamp(38px, 6.2vw, 86px); font-stretch: 115%; }
.hero h1 em { font-style: normal; color: var(--white); background: linear-gradient(transparent 62%, var(--red) 62% 92%, transparent 92%); padding: 0 .04em; }
.hero-sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--on-royal); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { position: relative; margin: 0; justify-self: end; width: min(100%, 470px); }
.hero-photo::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; background: var(--red); border-radius: 10px; }
.hero-photo img { position: relative; border-radius: 10px; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.hero-photo figcaption { position: absolute; left: 14px; bottom: 14px; background: var(--white); color: var(--royal); font-weight: 800; font-stretch: 85%; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 8px 12px; border-radius: 4px; }

/* ---------- Stat strip ---------- */
.stats { position: relative; z-index: 2; margin-top: -64px; }
.stats-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; background: var(--white); border-radius: 12px; box-shadow: 0 24px 50px rgba(6,19,94,.18); overflow: hidden; }
.stat { padding: 28px 28px 30px; display: grid; gap: 6px; align-content: start; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; background: var(--red); color: var(--white); }
.stat .num { font-weight: 900; font-stretch: 125%; font-size: clamp(40px, 4.4vw, 60px); line-height: .95; color: var(--royal); font-variant-numeric: tabular-nums; }
.stat:first-child .num { color: var(--white); font-size: clamp(54px, 6vw, 84px); }
.stat p { font-weight: 600; font-size: 15px; line-height: 1.4; color: var(--muted); }
.stat:first-child p { color: #ffe3e4; }

/* ---------- Section heads ---------- */
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 56px; align-items: end; margin-bottom: 48px; }
.sec-head .lead { display: grid; gap: 16px; }
.sec-head .label { color: var(--red); }
.sec-head h2 { font-size: clamp(36px, 4.6vw, 64px); color: var(--royal); }
.sec-head > p { color: var(--muted); max-width: 54ch; }

/* ---------- Services ---------- */
.services .wrap { padding-block: 104px 96px; }
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.svc { position: relative; border-radius: 12px; padding: 30px 26px 30px; display: flex; flex-direction: column; gap: 14px; min-height: 360px; transition: transform .2s ease; overflow: hidden; }
.svc:hover { transform: translateY(-4px); }
.svc .label { opacity: .8; }
.svc h3 { font-weight: 900; font-stretch: 112%; font-size: 26px; line-height: 1; text-transform: uppercase; }
.svc p { font-size: 16px; line-height: 1.55; }
.svc .chips { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.svc .chips span { font-weight: 700; font-stretch: 85%; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.svc svg { width: 46px; height: 46px; }
.svc.royal { background: var(--royal); color: var(--white); }
.svc.royal p { color: var(--on-royal); }
.svc.royal .chips span { background: rgba(255,255,255,.14); }
.svc.red { background: var(--red); color: var(--white); }
.svc.red p { color: #ffe3e4; }
.svc.red .chips span { background: rgba(255,255,255,.18); }
.svc.ink { background: var(--ink); color: var(--white); }
.svc.ink p { color: #c3c8de; }
.svc.ink .chips span { background: rgba(255,255,255,.12); }
.svc.light { background: var(--mist); color: var(--ink); }
.svc.light h3 { color: var(--royal); }
.svc.light p { color: var(--muted); }
.svc.light .chips span { background: var(--white); color: var(--royal); }

/* ---------- Fleet ---------- */
.fleet { background: var(--royal-deep); color: var(--white); }
.fleet .fleet-top { padding-block: 104px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; }
.fleet-photo { position: relative; margin: 0; }
.fleet-photo::before { content: ""; position: absolute; inset: -22px 22px 22px -22px; background: var(--royal); border-radius: 10px; }
.fleet-photo img { position: relative; border-radius: 10px; width: 100%; }
.fleet-photo figcaption { position: relative; margin-top: 12px; font-size: 13px; color: var(--on-royal); }
.fleet-copy { display: grid; gap: 22px; min-width: 0; }
.fleet-copy .label { color: #ff8a90; }
.fleet-copy h2 { font-size: clamp(36px, 4.4vw, 60px); }
.fleet-copy > p { color: var(--on-royal); max-width: 58ch; }
.partner-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.partner-chips span { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; }

/* ---------- Track record ---------- */
.record .wrap { padding-block: 104px; }
.record-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 4px solid var(--royal); }
.rec { padding: 28px 26px 30px; border-left: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.rec:first-child { border-left: 0; padding-left: 0; }
.rec .num { font-weight: 900; font-stretch: 125%; font-size: clamp(38px, 4vw, 54px); line-height: .95; color: var(--red); }
.rec h3 { font-weight: 800; font-size: 19px; line-height: 1.25; color: var(--royal); }
.rec p { color: var(--muted); font-size: 16px; }

/* ---------- Training ---------- */
.training { background: var(--mist); }
.training .wrap { padding-block: 104px; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.train-photo { margin: 0; position: relative; }
.train-photo::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; background: var(--red); border-radius: 10px; }
.train-photo img { position: relative; border-radius: 10px; width: 100%; }
.train-copy { display: grid; gap: 20px; min-width: 0; }
.train-copy .label { color: var(--red); }
.train-copy h2 { font-size: clamp(30px, 3.4vw, 48px); color: var(--royal); }
.train-copy > p { color: var(--muted); }
.steps { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 0; border-left: 4px solid var(--royal); }
.steps li { position: relative; padding: 0 0 18px 22px; display: grid; gap: 2px; }
.steps li::before { content: ""; position: absolute; left: -10px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--red); border: 3px solid var(--mist); }
.steps .when { font-weight: 800; font-stretch: 85%; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.steps .what { font-weight: 600; color: var(--ink); }

/* ---------- News ---------- */
.news .wrap { padding-block: 104px; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post { display: grid; grid-template-rows: auto 1fr; text-decoration: none; border-radius: 12px; overflow: hidden; background: var(--white); border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease; }
.post:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(6,19,94,.14); }
.post-img { position: relative; aspect-ratio: 16 / 10; max-width: 100%; overflow: hidden; background: var(--royal-deep); }
.post-img .fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(18px) brightness(.45) saturate(.8); transform: scale(1.2); }
.post-img .photo { position: relative; width: 100%; height: 100%; object-fit: contain; }
.post-body { padding: 22px 22px 26px; display: grid; gap: 10px; align-content: start; }
.post .tag { font-weight: 700; font-stretch: 80%; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.post h3 { font-weight: 900; font-stretch: 105%; font-size: 22px; line-height: 1.1; color: var(--royal); }
.post p { color: var(--muted); font-size: 15px; }

/* ---------- Community ---------- */
.community { background: var(--red); color: var(--white); }
.community .wrap { padding-block: 96px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.com-copy { display: grid; gap: 18px; min-width: 0; }
.com-copy .label { color: #ffd2d4; }
.com-copy h2 { font-size: clamp(34px, 4vw, 56px); }
.com-copy p { color: #ffe3e4; }
.com-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.com-list li { display: flex; gap: 12px; align-items: baseline; font-weight: 600; }
.com-list li::before { content: ""; width: 10px; height: 10px; background: var(--white); border-radius: 2px; flex: none; transform: translateY(-1px); }
.com-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.com-photos img { border-radius: 10px; width: 100%; box-shadow: 0 20px 40px rgba(80,0,8,.35); }
.com-photos figure { margin: 0; }
.com-photos figure:nth-child(2) { margin-top: 48px; }

/* ---------- Contact ---------- */
.contact { background: var(--royal); color: var(--white); position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.035) 0 2px, transparent 2px 22px); }
.contact .wrap { position: relative; padding-block: 96px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.contact h2 { font-size: clamp(38px, 5vw, 68px); }
.contact .label { color: var(--on-royal); margin-bottom: 18px; display: block; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.contact-card { background: var(--white); color: var(--ink); border-radius: 12px; padding: 10px 28px; box-shadow: 0 24px 50px rgba(0,0,0,.25); }
.contact-card dl { margin: 0; }
.contact-card dl div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-card dl div:last-child { border-bottom: 0; }
.contact-card dt { font-weight: 700; font-stretch: 80%; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.contact-card dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c3c8de; }
.site-footer .wrap { padding-block: 56px 28px; display: grid; gap: 36px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 16px; }
.foot-brand img { width: 72px; }
.foot-brand strong { display: block; color: var(--white); font-weight: 800; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.foot-nav a { text-decoration: none; font-weight: 700; font-stretch: 85%; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--white); }
.foot-nav a:hover { color: #ff8a90; }
.legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 1150px) {
  .main-nav a { padding: 8px 8px; font-size: 14px; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc { min-height: 0; }
  .record-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rec:nth-child(3) { border-left: 0; padding-left: 0; }
  .rec:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 920px) {
  .topbar .right { display: none; }
  .header-row { min-height: 80px; flex-wrap: wrap; }
  .brand img { width: 64px; }
  .menu-toggle { display: block; }
  .main-nav { display: none; flex: 1 1 100%; margin: 0; }
  .site-header.open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 14px; }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav .nav-cta a { margin: 12px 0 0; border-radius: 6px; text-align: center; }
  .hero .wrap, .fleet .fleet-top, .training .wrap, .community .wrap, .contact .wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero .wrap { padding-block: 56px 104px; }
  .hero h1 { font-size: clamp(36px, 10.6vw, 78px); }
  .header-row { flex-wrap: nowrap; }
  .site-header.open .header-row { flex-wrap: wrap; }
  .hero-photo { justify-self: start; width: min(100% - 22px, 420px); }
  .sec-head { grid-template-columns: minmax(0, 1fr); }
  .news-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .fleet-photo { margin-left: 22px; }
  .train-photo { margin-right: 22px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .stats-grid, .svc-grid, .record-grid { grid-template-columns: minmax(0, 1fr); }
  .stat, .stat:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
  .rec, .rec:nth-child(3) { border-left: 0; padding: 22px 0 24px; border-top: 1px solid var(--line); }
  .rec:first-child { border-top: 0; }
      .contact-card { padding: 6px 18px; }
  .sec-head h2, .fleet-copy h2, .train-copy h2, .com-copy h2, .contact h2 { font-size: clamp(28px, 8.4vw, 42px); }
  .brand .name { font-size: 12px; }
  .brand .name span { display: none; }
  .brand img { width: 52px; }
  .contact-card dl div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .com-photos figure:nth-child(2) { margin-top: 24px; }
  .services .wrap, .record .wrap, .news .wrap, .training .wrap { padding-block: 72px; }
  .fleet .fleet-top { padding-block: 72px; }
}

/* ================= Inner pages ================= */
.main-nav a[aria-current="page"] { color: var(--royal); box-shadow: inset 0 -3px 0 var(--red); border-radius: 6px 6px 0 0; }
.main-nav .nav-cta a[aria-current="page"] { color: var(--white); box-shadow: none; border-radius: 6px; background: var(--red-deep); }

/* ---------- Page hero ---------- */
.page-hero { background: var(--royal); color: var(--white); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.035) 0 2px, transparent 2px 22px); pointer-events: none; }
.page-hero .wrap { position: relative; padding-block: 72px 88px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.page-hero.plain .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 72px 80px; }
.ph-copy { display: grid; gap: 24px; min-width: 0; }
.ph-copy .label { color: var(--on-royal); display: flex; align-items: center; gap: 12px; }
.ph-copy .label::before { content: ""; width: 36px; height: 4px; background: var(--red); flex: none; }
.page-hero h1 { font-size: clamp(40px, 6vw, 84px); font-stretch: 115%; }
.page-hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--red) 62% 92%, transparent 92%); padding: 0 .04em; }
.page-hero .intro { font-size: clamp(17px, 1.6vw, 20px); color: var(--on-royal); max-width: 58ch; }
.page-hero.red { background: var(--red); }
.page-hero.red .ph-copy .label, .page-hero.red .intro { color: #ffe3e4; }
.page-hero.red .ph-copy .label::before { background: var(--white); }
.page-hero.red h1 em { background: linear-gradient(transparent 62%, var(--royal) 62% 92%, transparent 92%); }
.ph-photo { position: relative; margin: 0; justify-self: end; width: min(100%, 520px); }
.ph-photo::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; background: var(--red); border-radius: 10px; }
.page-hero.red .ph-photo::before { background: var(--royal); }
.ph-photo img { position: relative; border-radius: 10px; width: 100%; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.ph-photo figcaption { position: absolute; left: 14px; bottom: 14px; background: var(--white); color: var(--royal); font-weight: 800; font-stretch: 85%; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 8px 12px; border-radius: 4px; }

/* ---------- Jump links ---------- */
.jump { background: var(--white); border-bottom: 1px solid var(--line); }
.jump .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-block: 18px; }
.jump .label { color: var(--muted); margin-right: 6px; }
.jump a { font-weight: 700; font-stretch: 85%; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--royal); background: var(--mist); border-radius: 999px; padding: 9px 16px; }
.jump a:hover { background: var(--royal); color: var(--white); }

/* ---------- Generic sections ---------- */
.sec .wrap { padding-block: 96px; }
.sec.mist { background: var(--mist); }
.sec.dark { background: var(--royal-deep); color: var(--white); }
.sec.red { background: var(--red); color: var(--white); }
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.split.flip > :first-child { order: 2; }
.split.center { align-items: center; }
.copy { display: grid; gap: 20px; min-width: 0; align-content: start; }
.copy .label { color: var(--red); }
.copy h2 { font-size: clamp(32px, 4vw, 56px); color: var(--royal); }
.copy > p { color: var(--muted); max-width: 62ch; }
.copy .num-tag { font-weight: 900; font-stretch: 125%; font-size: 15px; color: var(--red); letter-spacing: .1em; }
.sec.dark .copy h2, .sec.red .copy h2 { color: var(--white); }
.sec.dark .copy > p { color: var(--on-royal); }
.sec.dark .copy .label { color: #ff8a90; }
.sec.red .copy .label, .sec.red .copy > p { color: #ffe3e4; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; font-weight: 600; }
.ticks li::before { content: ""; width: 10px; height: 10px; background: var(--red); border-radius: 2px; flex: none; transform: translateY(-1px); }
.sec.red .ticks li::before { background: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Fact panel: big numbers beside the copy */
.factpanel { border-radius: 12px; padding: 8px 30px; display: grid; min-width: 0; }
.factpanel > div { padding: 22px 0 24px; display: grid; gap: 6px; border-bottom: 1px solid rgba(255,255,255,.2); }
.factpanel > div:last-child { border-bottom: 0; }
.factpanel .num { font-weight: 900; font-stretch: 125%; font-size: clamp(40px, 4.4vw, 60px); line-height: .95; font-variant-numeric: tabular-nums; }
.factpanel p { font-weight: 600; font-size: 15px; line-height: 1.45; }
.factpanel.royal { background: var(--royal); color: var(--white); }
.factpanel.royal p { color: var(--on-royal); }
.factpanel.red { background: var(--red); color: var(--white); }
.factpanel.red p { color: #ffe3e4; }
.factpanel.white { background: var(--white); color: var(--ink); }
.factpanel.white > div { border-bottom-color: var(--line); }
.factpanel.white .num { color: var(--royal); }
.factpanel.white p { color: var(--muted); }

/* Simple spec list (label / detail rows) */
.speclist { margin: 0; border-top: 4px solid var(--royal); }
.speclist > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.speclist dt { font-weight: 800; font-stretch: 85%; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); padding-top: 3px; }
.speclist dd { margin: 0; font-weight: 700; }
.sec.dark .speclist { border-top-color: var(--red); }
.sec.dark .speclist > div { border-bottom-color: rgba(255,255,255,.16); }
.sec.dark .speclist dt { color: #ff8a90; }

/* Process steps */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.process li { counter-increment: step; position: relative; background: var(--mist); border-radius: 12px; padding: 26px 22px 28px; display: grid; gap: 8px; align-content: start; }
.process li::before { content: "0" counter(step); font-weight: 900; font-stretch: 125%; font-size: 40px; line-height: 1; color: var(--red); }
.process li:not(:last-child)::after { content: "→"; position: absolute; right: -15px; top: 30px; width: 24px; height: 24px; display: grid; place-items: center; background: var(--royal); color: var(--white); border-radius: 50%; font-size: 13px; z-index: 1; }
.process h3 { font-weight: 900; font-stretch: 112%; font-size: 22px; text-transform: uppercase; color: var(--royal); line-height: 1; }
.process p { color: var(--muted); font-size: 15px; }

/* Quote */
.quote { margin: 0; display: grid; gap: 22px; padding-left: 28px; border-left: 6px solid var(--red); }
.quote p { font-weight: 700; font-size: clamp(22px, 2.5vw, 32px); line-height: 1.3; }
.quote footer { font-weight: 700; font-stretch: 85%; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.sec.dark .quote footer { color: var(--on-royal); }

/* No-crop photo frame: the full photo sits on a blurred copy of itself */
.frame { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--royal-deep); margin: 0; }
.frame .fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(18px) brightness(.45) saturate(.8); transform: scale(1.2); }
.frame .photo { position: relative; width: 100%; height: 100%; object-fit: contain; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gallery figure { margin: 0; display: grid; gap: 10px; align-content: start; }
.gallery figcaption { font-size: 14px; color: var(--muted); }
.sec.dark .gallery figcaption { color: var(--on-royal); }

/* Section head variant for dark backgrounds */
.sec.dark .sec-head h2 { color: var(--white); }
.sec.dark .sec-head .label { color: #ff8a90; }
.sec.dark .sec-head > p { color: var(--on-royal); }

/* Timeline (long form) */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 4px solid var(--royal); }
.timeline > li { position: relative; padding: 0 0 36px 32px; display: grid; gap: 8px; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before { content: ""; position: absolute; left: -12px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--red); border: 4px solid var(--white); }
.sec.mist .timeline > li::before { border-color: var(--mist); }
.timeline .when { font-weight: 800; font-stretch: 85%; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.timeline h3 { font-weight: 900; font-stretch: 108%; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.1; color: var(--royal); }
.timeline p { color: var(--muted); max-width: 66ch; }
.timeline .ticks { margin-top: 4px; }

/* News page */
.story-feature { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 0; border-radius: 12px; overflow: hidden; background: var(--white); border: 1px solid var(--line); margin-bottom: 28px; }
.story-feature .frame { border-radius: 0; aspect-ratio: auto; min-height: 100%; }
.story-feature .frame .photo { position: absolute; inset: 0; }
.story-body { padding: 34px 34px 36px; display: grid; gap: 14px; align-content: center; }
.story-body .tag, .post .tag { font-weight: 700; font-stretch: 80%; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.story-body h2 { font-weight: 900; font-stretch: 108%; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.05; color: var(--royal); }
.story-body p { color: var(--muted); }
.read { font-weight: 800; font-stretch: 85%; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--royal); text-decoration: none; display: inline-flex; gap: 8px; }
.read::after { content: "→"; }
.read:hover { color: var(--red); }
.post-body .read { margin-top: 4px; }
.news-list .news-grid { row-gap: 28px; }
.source { font-size: 13px; color: var(--muted); }

/* Topic cards (contact + community) */
.topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.topic { background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--royal); border-radius: 10px; padding: 24px 22px 26px; display: grid; gap: 10px; align-content: start; text-decoration: none; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.topic:nth-child(even) { border-top-color: var(--red); }
a.topic:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(6,19,94,.14); }
.topic .label { color: var(--red); }
.topic h3 { font-weight: 900; font-stretch: 108%; font-size: 21px; line-height: 1.1; color: var(--royal); }
.topic p { color: var(--muted); font-size: 15px; }
.topic .go { margin-top: 6px; font-weight: 800; font-stretch: 85%; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--royal); }
.topic .go::after { content: " →"; }

/* Pull band: one big line on royal */
.band { background: var(--royal); color: var(--white); position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.035) 0 2px, transparent 2px 22px); }
.band .wrap { position: relative; padding-block: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.band h2 { font-size: clamp(30px, 3.6vw, 48px); max-width: 22ch; }
.band p { color: var(--on-royal); margin-top: 12px; max-width: 54ch; }

/* ---------- Inner page responsive ---------- */
@media (max-width: 1150px) {
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process li:nth-child(2)::after { display: none; }
  .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .page-hero .wrap, .split, .story-feature { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .story-feature { gap: 0; }
  .story-feature .frame { aspect-ratio: 4 / 3; min-height: 0; }
  .split.flip > :first-child { order: 0; }
  .ph-photo { justify-self: start; width: min(100% - 22px, 460px); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--red); padding-left: 14px; border-radius: 0; }
}
@media (max-width: 560px) {
  .page-hero .wrap, .page-hero.plain .wrap { padding-block: 52px 64px; }
  .page-hero h1 { font-size: clamp(34px, 10vw, 56px); }
  .sec .wrap { padding-block: 72px; }
  .copy h2, .band h2 { font-size: clamp(28px, 8.4vw, 42px); }
  .process, .topics, .gallery { grid-template-columns: minmax(0, 1fr); }
  .process li::after { display: none !important; }
  .speclist > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .factpanel { padding: 4px 22px; }
  .story-body { padding: 24px 20px 26px; }
  .quote { padding-left: 18px; }
}

/* Fleet: plain equipment list */
.yard { margin: 0; border-top: 4px solid var(--royal); }
.yard > div, .yard-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.yard-head { padding: 0 0 12px; border-bottom: 0; font-weight: 700; font-stretch: 80%; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.yard dt { font-weight: 900; font-stretch: 110%; font-size: 21px; line-height: 1.1; text-transform: uppercase; color: var(--royal); }
.yard dd { margin: 0; font-weight: 600; }
.yard .count { font-weight: 800; color: var(--red); }
.big-ticks { gap: 0; border-top: 4px solid var(--royal); }
.big-ticks li { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
@media (max-width: 720px) {
  .yard-head { display: none; }
  .yard > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .yard dt { margin-bottom: 4px; }
}

/* Hero followed by the overlapping stat strip */
.page-hero.has-stats .wrap, .page-hero.plain.has-stats .wrap { padding-bottom: 136px; }
.contact-strip { grid-template-columns: 1fr 1fr 1.3fr 1fr; }
.contact-strip .k { font-weight: 700; font-stretch: 80%; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.contact-strip .stat p.v { font-weight: 800; font-size: clamp(18px, 1.7vw, 22px); color: var(--ink); line-height: 1.3; overflow-wrap: anywhere; }
@media (max-width: 1150px) { .contact-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .page-hero.has-stats .wrap, .page-hero.plain.has-stats .wrap { padding-bottom: 112px; }
  .contact-strip { grid-template-columns: minmax(0, 1fr); }
}

/* Later additions */
.gallery.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.news-list .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-img.graphic, .frame.graphic { display: grid; place-content: center; justify-items: center; gap: 6px; background: var(--royal); background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.05) 0 2px, transparent 2px 22px); color: var(--white); }
.graphic .g-num { font-weight: 900; font-stretch: 125%; font-size: clamp(56px, 7vw, 96px); line-height: .9; }
.graphic .g-sub { font-weight: 700; font-stretch: 80%; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-royal); }
.quote.small { padding-left: 20px; border-left-width: 5px; gap: 12px; }
.quote.small p { font-size: clamp(19px, 1.8vw, 23px); color: var(--ink); }
.quote.small footer { color: var(--muted); font-size: 13px; }
@media (max-width: 560px) {
  .gallery.two, .news-list .news-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ================= WordPress ================= */
.screen-reader-text { border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link { position: absolute; left: 16px; top: -200px; z-index: 1000; background: var(--red); color: var(--white); padding: 10px 16px; font-weight: 800; font-stretch: 85%; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border-radius: 6px; }
.skip-link:focus { top: 12px; }
body.admin-bar .skip-link:focus { top: 44px; }

/* Menus built in Appearance > Menus mark the current page with these classes */
.main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a, .blog .main-nav .current_page_parent > a, .single-post .main-nav .current_page_parent > a, .archive .main-nav .current_page_parent > a { color: var(--royal); box-shadow: inset 0 -3px 0 var(--red); border-radius: 6px 6px 0 0; }
.main-nav .nav-cta.current-menu-item > a { color: var(--white); box-shadow: none; border-radius: 6px; background: var(--red-deep); }
@media (max-width: 920px) {
  .main-nav .current-menu-item > a, .blog .main-nav .current_page_parent > a, .single-post .main-nav .current_page_parent > a, .archive .main-nav .current_page_parent > a { box-shadow: inset 4px 0 0 var(--red); padding-left: 14px; border-radius: 0; }
}

/* Story card without a photo: year on a royal panel */
.post-img.graphic { aspect-ratio: 16 / 10; }
a.post { color: inherit; }
.post .post-body { align-content: start; }

/* Single story */
.single-hero .meta { color: var(--on-royal); font-weight: 700; font-stretch: 85%; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.single-hero h1 { font-size: clamp(34px, 5vw, 68px); max-width: 20ch; }
.single-media { position: relative; overflow: hidden; background: var(--royal-deep); display: flex; justify-content: center; margin: 0; }
.single-media .fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(24px) brightness(.45) saturate(.8); transform: scale(1.2); }
.single-media .photo { position: relative; width: auto; max-width: 100%; max-height: min(78vh, 880px); height: auto; }
.entry { padding-block: 72px 96px; }
.entry-content { max-width: 720px; margin: 0 auto; font-size: 18px; line-height: 1.65; color: var(--ink); }
.entry-content > * { margin-block: 0; }
.entry-content > * + * { margin-top: 1.25em; }
.entry-content h2 { font-weight: 900; font-stretch: 112%; text-transform: uppercase; font-size: clamp(28px, 3.2vw, 38px); line-height: 1; color: var(--royal); margin-top: 1.6em; }
.entry-content h3 { font-weight: 900; font-stretch: 108%; font-size: 24px; line-height: 1.1; color: var(--royal); margin-top: 1.4em; }
.entry-content a { color: var(--royal); text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.2em; }
.entry-content li + li { margin-top: .4em; }
.entry-content figure { margin-inline: 0; }
.entry-content img { height: auto; border-radius: 8px; }
.entry-content blockquote, .wp-block-quote { margin-inline: 0; padding: 4px 0 4px 24px; border-left: 6px solid var(--red); }
.entry-content blockquote p { font-weight: 700; font-size: clamp(21px, 2.2vw, 27px); line-height: 1.3; color: var(--ink); }
.wp-block-quote cite { display: block; margin-top: 10px; font-weight: 700; font-stretch: 85%; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-style: normal; }
.wp-element-caption, .entry-content figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; text-align: left; }
.entry-content .alignwide { width: min(1040px, calc(100vw - 32px)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .wp-block-gallery.has-nested-images { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image { flex: 1 1 calc(50% - 6px); width: auto !important; max-width: none; margin: 0; min-width: 0; }
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image img { width: 100%; height: auto; }
/* Photos are never cropped: gallery "crop" setting is ignored */
.wp-block-gallery.is-cropped .wp-block-image img { object-fit: contain !important; background: var(--royal-deep); }
.source-box { max-width: 720px; margin: 40px auto 0; padding: 18px 22px; background: var(--mist); border-left: 5px solid var(--royal); border-radius: 0 8px 8px 0; display: grid; gap: 4px; }
.source-box .label { color: var(--red); }
.source-box a { font-weight: 700; color: var(--royal); text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.entry-foot { max-width: 720px; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }

/* News list and archives */
.cat-nav { background: var(--white); border-bottom: 1px solid var(--line); }
.cat-nav .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-block: 18px; }
.cat-nav a { font-weight: 700; font-stretch: 85%; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--royal); background: var(--mist); border-radius: 999px; padding: 9px 16px; }
.cat-nav a:hover, .cat-nav a[aria-current="page"] { background: var(--royal); color: var(--white); }
a.story-feature { text-decoration: none; color: inherit; transition: box-shadow .2s ease; }
a.story-feature:hover { box-shadow: 0 18px 40px rgba(6,19,94,.14); }
.story-feature .frame.graphic { aspect-ratio: auto; min-height: 320px; border-radius: 0; }
.pagination { margin-top: 56px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { font-weight: 800; font-stretch: 85%; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--royal); text-decoration: none; border: 1px solid var(--line); border-radius: 6px; padding: 9px 15px; }
.pagination .page-numbers.current { background: var(--royal); border-color: var(--royal); color: var(--white); }
.pagination a.page-numbers:hover { border-color: var(--royal); }
.empty-note { color: var(--muted); }
.more-link-row { margin-top: 40px; }

/* Community stories (from the Community news category) */
.com-story + .com-story { border-top: 1px solid var(--line); }
.com-story .frame { aspect-ratio: 4 / 3; }
.year-panel { border-radius: 12px; background: var(--red); color: var(--white); min-height: 280px; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 32px; background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.06) 0 2px, transparent 2px 22px); }
.year-panel .g-num { font-weight: 900; font-stretch: 125%; font-size: clamp(64px, 8vw, 110px); line-height: .9; }
.year-panel .g-sub { font-weight: 700; font-stretch: 80%; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: #ffe3e4; }

/* 404 */
.notfound .wrap { padding-block: 72px 96px; display: grid; gap: 24px; }
.notfound .ticks { max-width: 420px; }
.notfound .ticks a { color: var(--royal); }

@media (max-width: 920px) {
  .entry { padding-block: 48px 64px; }
  .entry-content { font-size: 17px; }
  .entry-content .wp-block-gallery.has-nested-images figure.wp-block-image { flex-basis: 100%; }
  .story-feature .frame.graphic { min-height: 220px; }
}
