/* Destel Energy DMCC — site stylesheet
   One file, no framework. Colours and type are set once in :root. */

@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/montserrat-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/montserrat-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/montserrat-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/montserrat-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --navy: #183661;
  --navy-deep: #0f2647;
  --green: #006c4c;
  --green-dark: #00573d;
  --green-on-navy: #7fd6b5;   /* tint of the brand green, readable on navy */
  --ink: #1e2b3f;
  --text: #334155;
  --muted: #5b6b82;
  --on-navy: #ffffff;
  --on-navy-soft: #c9d5ea;    /* navy-tinted, not gray */
  --line: #dde4ee;
  --line-on-navy: rgba(255, 255, 255, 0.18);
  --mist: #f3f6fa;
  --white: #ffffff;
  --error: #a4262c;
  --error-bg: #fdf3f3;
  --success-bg: #eef8f4;
  --field-border: #8494ab;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(64px, 9vw, 128px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: "Montserrat", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--white);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  caret-color: var(--green); accent-color: var(--green);
}
::selection { background: var(--navy); color: var(--white); }
img { max-width: 100%; height: auto; display: block; }
/* One link look: ink-coloured text, green underline, green on hover */
a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 2px; scroll-margin: calc(var(--header-h) + 24px) 0 24px; }
.on-navy :focus-visible, .site-footer :focus-visible, .hero :focus-visible, .page-banner :focus-visible { outline-color: var(--white); }
h1, h2, h3, h4 { color: var(--navy); font-weight: 700; margin: 0; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(2.5rem, 6.4vw, 5rem); line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.875rem, 3.6vw, 3rem); line-height: 1.1; letter-spacing: -0.025em; }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--mist { background: var(--mist); }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.lead { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.55; color: var(--ink); }
.skip { position: absolute; left: 12px; top: 12px; transform: translateY(-300%); background: var(--navy); color: var(--white); padding: 12px 18px; z-index: 100; font-weight: 600; }
.skip:focus { transform: none; color: var(--white); }
.skip:hover { color: var(--white); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The brand's stacked-bar rule: a heavy short bar over a hairline. Opens each major block. */
.rule { position: relative; height: 1px; background: var(--line); margin: 0 0 clamp(28px, 4vw, 48px); }
.rule::before { content: ""; position: absolute; left: 0; top: -3px; width: min(220px, 40%); height: 4px; background: var(--navy); }
.on-navy .rule { background: var(--line-on-navy); }
.on-navy .rule::before { background: var(--green-on-navy); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 28px;
  font: inherit; font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  border: 2px solid transparent; border-radius: 2px; cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-dark); color: var(--white); }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn--ghost-light { border-color: rgba(255, 255, 255, 0.7); color: var(--white); background: transparent; }
.btn--ghost-light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { background: var(--mist); color: var(--navy); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.arrow-link svg { transition: transform 0.25s var(--ease); }
.arrow-link:hover { color: var(--green); }
.arrow-link:hover svg { transform: translateX(4px); }
.on-navy a:not(.btn) { color: var(--white); text-decoration-color: var(--green-on-navy); }
.on-navy a:not(.btn):hover { color: var(--green-on-navy); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { width: 214px; height: 50px; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav ul { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.nav a.nav-link { position: relative; display: block; padding: 12px 0; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.nav a.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 3px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav a.nav-link:hover::after, .nav a.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav a.nav-link[aria-current="page"] { color: var(--navy); }
.nav-phone { font-size: 0.9375rem; font-weight: 600; color: var(--navy); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nav-phone:hover { color: var(--green); }
.nav .btn { min-height: 46px; padding: 10px 20px; font-size: 0.8125rem; }
.nav-toggle { display: none; width: 48px; height: 48px; padding: 0; background: none; border: 0; cursor: pointer; color: var(--navy); }
.nav-toggle span { display: block; width: 26px; height: 3px; margin: 5px auto; background: currentColor; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 67.5em) { .nav-phone { display: none; } }
@media (max-width: 53.75em) {
  :root { --header-h: 68px; }
  .brand img { width: 171px; height: 40px; }
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px; box-shadow: 0 18px 30px -18px rgba(15, 38, 71, 0.35); }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a.nav-link { padding: 16px 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav a.nav-link::after { display: none; }
  .nav a.nav-link[aria-current="page"] { color: var(--green); }
  .nav-phone { display: block; padding: 18px 0 14px; font-size: 1.0625rem; }
  .nav .btn { min-height: 52px; font-size: 0.9375rem; }
}

/* Home hero */
.hero { position: relative; isolation: isolate; color: var(--white); background: var(--navy-deep); display: flex; flex-direction: column; justify-content: flex-end; min-height: min(880px, calc(100svh - var(--header-h))); }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media picture { display: block; width: 100%; height: 100%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(15, 38, 71, 0.9) 0%, rgba(15, 38, 71, 0.62) 42%, rgba(15, 38, 71, 0.08) 78%),
              linear-gradient(0deg, rgba(15, 38, 71, 0.92) 0%, rgba(15, 38, 71, 0) 42%); }
.hero-copy { padding: clamp(72px, 12vh, 150px) 0 clamp(56px, 9vh, 110px); max-width: 860px; }
.hero h1 { color: var(--white); }
.hero .lead { color: var(--white); margin: clamp(20px, 2.6vw, 32px) 0 clamp(28px, 3.4vw, 40px); max-width: 56ch; }
@media (max-width: 32.5em) {
  /* Phones: the photo fills the top of the hero at near-native sharpness; the copy sits on solid navy below it */
  .hero-media { bottom: auto; height: 56%; }
  .hero-media img { object-position: 60% 50%; }
  .hero::before { background: linear-gradient(0deg, rgba(15, 38, 71, 1) 0%, rgba(15, 38, 71, 1) 46%, rgba(15, 38, 71, 0.72) 62%, rgba(15, 38, 71, 0.2) 100%); }
}

/* Hero entrance: the one authored motion on the site */
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: hero-settle 1.8s var(--ease) both; }
  .hero-copy > * { animation: hero-rise 0.9s var(--ease) both; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
  @keyframes hero-settle { from { transform: scale(1.06); } to { transform: scale(1); } }
  @keyframes hero-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}
/* Reduced motion: colour changes stay, movement goes */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile img, .tile .more svg, .arrow-link svg, .nav a.nav-link::after, .nav-toggle span, .btn, .toc-wrap summary::after { transition-property: background-color, color, border-color, opacity; }
  .btn:active { transform: none; }
  .tile:hover img { transform: none; }
}

/* Inner page banner */
.page-banner { position: relative; isolation: isolate; color: var(--white); background: var(--navy-deep); min-height: clamp(300px, 38vw, 460px); display: flex; align-items: flex-end; }
.page-banner .hero-media img { object-position: center; }
.page-banner::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(15, 38, 71, 0.94) 0%, rgba(15, 38, 71, 0.6) 45%, rgba(15, 38, 71, 0.12) 100%); }
.page-banner .wrap { padding-top: 80px; padding-bottom: clamp(32px, 4.5vw, 56px); }
.page-banner h1 { color: var(--white); font-size: clamp(2.5rem, 6vw, 4.5rem); }
.page-banner p { color: var(--white); font-size: clamp(1.0625rem, 1.6vw, 1.3125rem); font-weight: 500; margin-top: 14px; max-width: 46ch; }

/* Statement block: big heading left, text right */
.statement { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.statement .lead + p, .statement p + .arrow-link, .statement p + .btn-row { margin-top: 1.4em; }
@media (max-width: 53.75em) { .statement { grid-template-columns: 1fr; gap: 24px; } }

/* Fact row (existing company figures) */
.facts { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 72px); }
.facts div { padding: 26px 24px 0 0; }
.facts dt { white-space: nowrap; font-size: clamp(1.5rem, 2.4vw, 2.25rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.facts dd { margin: 10px 0 0; font-size: 0.9375rem; color: var(--muted); line-height: 1.4; }
dl { margin: 0; }
@media (max-width: 43.75em) { .facts { grid-template-columns: repeat(2, 1fr); row-gap: 8px; } }

/* Home: services mosaic */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.mosaic { display: grid; grid-template-columns: 7fr 5fr; grid-template-rows: 1fr 1fr; gap: 20px; }
.tile { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; padding: clamp(22px, 3vw, 36px); color: var(--white); text-decoration: none; overflow: hidden; background: var(--navy-deep); }
.tile:first-child { grid-row: span 2; min-height: 620px; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.9s var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(15, 38, 71, 0.95) 0%, rgba(15, 38, 71, 0.72) 38%, rgba(15, 38, 71, 0.05) 75%); }
.tile:hover { color: var(--white); }
.tile:hover img { transform: scale(1.04); }
.tile h3 { color: var(--white); font-size: clamp(1.5rem, 2.4vw, 2.125rem); letter-spacing: -0.02em; }
.tile p { margin: 10px 0 16px; color: var(--white); font-size: 1rem; line-height: 1.5; max-width: 44ch; }
.tile .more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green-on-navy); }
.tile .more svg { transition: transform 0.25s var(--ease); }
.tile:hover .more svg { transform: translateX(4px); }
@media (max-width: 53.75em) { .mosaic { grid-template-columns: 1fr; grid-template-rows: none; } .tile:first-child { grid-row: auto; min-height: 380px; } .tile { min-height: 300px; } }

/* Navy block + ports index */
.on-navy { background: var(--navy); color: var(--on-navy-soft); }
.on-navy h2, .on-navy h3 { color: var(--white); }
.on-navy .lead { color: var(--white); }
.ports-index { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 4vw, 56px); margin-top: clamp(36px, 5vw, 64px); }
.ports-index section { border-top: 1px solid var(--line-on-navy); padding: 22px 0 30px; }
.ports-index h3 { font-size: 1.0625rem; letter-spacing: 0; margin-bottom: 8px; }
.ports-index h3 a { color: var(--white); text-decoration: none; }
.ports-index h3 a:hover { color: var(--green-on-navy); }
.ports-index p { font-size: 0.9375rem; line-height: 1.6; color: var(--on-navy-soft); }
@media (max-width: 53.75em) { .ports-index { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 32.5em) { .ports-index { grid-template-columns: 1fr; } }

/* Quote band */
.quote-band { background: var(--green); color: var(--white); padding: clamp(56px, 7vw, 96px) 0; }
.quote-band .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.quote-band h2 { color: var(--white); }
.quote-band p { color: var(--white); margin-top: 16px; font-size: 1.125rem; }
.quote-band .contact-lines { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 6px 28px; font-weight: 600; font-variant-numeric: tabular-nums; }
.quote-band .contact-lines a { color: var(--white); padding: 8px 0; }
.quote-band .contact-lines a:hover { color: var(--white); text-decoration-thickness: 2px; }
.quote-band :focus-visible { outline-color: var(--white); }
@media (max-width: 53.75em) { .quote-band .wrap { grid-template-columns: 1fr; } }

/* Clients */


/* Services page blocks */
.service { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.service-media { position: relative; min-height: clamp(320px, 42vw, 600px); background: var(--navy-deep); }
.service-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-body { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 6vw, 96px) clamp(24px, 6vw, 96px); }
.service-body > * { max-width: 560px; }
.service-body h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 20px; }
.service:nth-of-type(even) .service-media { order: 2; }
.service:nth-of-type(even) { background: var(--mist); }
.checks { margin: 22px 0 30px; }
.checks li { position: relative; padding: 9px 0 9px 34px; font-weight: 600; color: var(--ink); border-top: 1px solid var(--line); }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 16px; height: 9px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); transform-origin: left top; top: 22px; }
@media (max-width: 53.75em) { .service { grid-template-columns: 1fr; } .service:nth-of-type(even) .service-media { order: 0; } .service-media { min-height: 260px; } }

/* Ports page */
.region-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: clamp(28px, 4vw, 44px) 0 0; }
.region-nav a { display: inline-flex; align-items: center; min-height: 46px; padding: 8px 18px; border: 1px solid var(--navy); color: var(--navy); font-size: 0.9375rem; font-weight: 600; text-decoration: none; border-radius: 2px; transition: background-color 0.2s var(--ease), color 0.2s var(--ease); }
.region-nav a:hover { background: var(--navy); color: var(--white); }
.regions { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(40px, 5vw, 72px) clamp(28px, 4vw, 64px); }
.region h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 18px 0 16px; border-top: 4px solid var(--navy); font-size: 1.25rem; }
.region h3 span { font-size: 0.875rem; font-weight: 600; color: var(--muted); letter-spacing: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.region li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.region li span { font-weight: 400; font-size: 0.9375rem; color: var(--muted); text-align: right; }
.region .arrow-link { margin-top: 20px; font-size: 0.9375rem; }
.note { margin-top: clamp(40px, 5vw, 64px); padding: 24px 28px; background: var(--white); border: 1px solid var(--line); max-width: 760px; }
@media (max-width: 61.25em) { .regions { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 37.5em) { .regions { grid-template-columns: 1fr; } }

/* Company page */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.two-col h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 14px; }
.plain-list { margin-top: 18px; }
.plain-list li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink); }
.plain-list li:last-child { border-bottom: 1px solid var(--line); }
.plain-list b { color: var(--navy); }
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); }
.reasons h3 { padding-top: 18px; border-top: 4px solid var(--green); margin-bottom: 12px; }
@media (max-width: 53.75em) { .two-col, .reasons { grid-template-columns: 1fr; } }

/* History */
.pull { font-size: clamp(1.375rem, 2.6vw, 2.125rem); line-height: 1.35; font-weight: 500; color: var(--navy); letter-spacing: -0.015em; max-width: 30ch; margin: 0; }
.pull p { max-width: none; }
.timeline { margin: clamp(32px, 4vw, 56px) 0 0; padding: 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: minmax(120px, 2fr) 9fr; gap: clamp(20px, 5vw, 80px); padding: clamp(26px, 3.4vw, 44px) 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .year { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: var(--navy); font-variant-numeric: tabular-nums; }
.timeline h3 { margin-bottom: 8px; }
@media (max-width: 37.5em) { .timeline li { grid-template-columns: 1fr; gap: 10px; } }

/* Terms */
.with-aside { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.terms h2 { font-size: 1.125rem; letter-spacing: 0.04em; margin: 2.6em 0 1em; padding-top: 1.6em; border-top: 4px solid var(--navy); }
.terms .clause { display: grid; grid-template-columns: 3.2em 1fr; gap: 0 8px; margin-bottom: 1em; }
.terms .clause .num { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.terms .clause p, .terms .def { max-width: 70ch; }
.terms .def { margin-left: calc(3.2em + 8px); padding-left: 16px; border-left: 1px solid var(--line); }
.terms-end { margin-top: 3em; padding-top: 1.6em; border-top: 1px solid var(--line); color: var(--ink); }
.toc { list-style: none; margin: 0; padding: 0; font-size: 0.9375rem; }
.toc a { display: block; padding: 3px 0; color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--green); text-decoration: underline; }
@media (max-width: 53.75em) { .toc { columns: 2; column-gap: 24px; } }
@media (max-width: 30em) { .toc { columns: 1; } .terms .clause { grid-template-columns: 2.6em 1fr; } .terms .def { margin-left: 0; } }
.aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 14px; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
.aside h2 { font-size: 1.25rem; letter-spacing: -0.01em; margin: 18px 0 4px; }
.aside .btn { width: 100%; justify-content: flex-start; text-transform: none; letter-spacing: 0; font-size: 1rem; }
.contact-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list svg { margin-top: 4px; color: var(--green); }
.contact-list a { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.contact-list a:hover { color: var(--green); }
.fine { font-size: 0.9375rem; color: var(--muted); }
@media (max-width: 53.75em) { .with-aside { grid-template-columns: 1fr; } .aside { position: static; max-height: none; } .terms-page .aside { order: -1; } }

/* Quote form */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; margin-top: 28px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.field label small { font-weight: 400; color: var(--muted); font-size: 0.875rem; }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--field-border); border-radius: 2px; padding: 13px 14px; min-height: 52px; width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:hover, .field textarea:hover { border-color: var(--navy); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 108, 76, 0.28); }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field .error { font-size: 0.9375rem; font-weight: 600; color: var(--error); }
.hp { position: absolute; left: -9999px; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-top: 6px; }
.form-status { grid-column: 1 / -1; padding: 18px 20px; font-weight: 600; border: 2px solid; display: none; }
.form-status.is-error { display: block; color: var(--error); border-color: var(--error); background: var(--error-bg); }
.form-status.is-success { display: block; color: var(--green-dark); border-color: var(--green); background: var(--success-bg); }
.form-status a { color: inherit; }
@media (max-width: 37.5em) { .form { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-navy-soft); padding: clamp(56px, 7vw, 96px) 0 0; font-size: 0.9375rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 3fr)); gap: clamp(28px, 4vw, 64px); }
.site-footer .brand img { width: 210px; height: 49px; margin-bottom: 20px; }
.site-footer p { max-width: 38ch; }
.site-footer h2 { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin-bottom: 14px; }
.site-footer li { margin: 0; }
.site-footer li a, .site-footer address a { display: inline-block; padding: 7px 0; color: var(--on-navy-soft); text-decoration: none; }
.site-footer li a:hover, .site-footer address a:hover { color: var(--white); text-decoration: underline; }
.site-footer address { line-height: 1.6; }
.site-footer address a { font-weight: 600; color: var(--white); font-variant-numeric: tabular-nums; }
.legal { margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line-on-navy); padding: 10px 0 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; font-size: 0.875rem; }
.legal p { max-width: none; margin: 0; }
.legal a { display: inline-block; padding: 12px 2px; color: var(--on-navy-soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-on-navy); }
.legal a:hover { color: var(--white); text-decoration-color: currentColor; }
@media (max-width: 56.25em) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 30em) { .footer-grid { grid-template-columns: 1fr; } }

/* 404 */
.notfound { min-height: 60vh; display: flex; align-items: center; }
.notfound h1 { margin-bottom: 20px; }
.notfound .btn-row { margin-top: 32px; }

/* Long-form text pages (privacy) */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); margin-bottom: 24px; }
.prose h2 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); letter-spacing: -0.01em; margin: 2.2em 0 0.6em; }
.prose .plain-list { margin: 0 0 1.1em; }
.draft-flag { padding: 14px 18px; border: 2px solid var(--error); color: var(--error); background: var(--error-bg); }
.form-foot .fine { margin: 0; }

/* Terms: collapsible clause list */
.toc-wrap { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toc-wrap summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; cursor: pointer; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; color: var(--navy); list-style: none; }
.toc-wrap summary::-webkit-details-marker { display: none; }
.toc-wrap summary::after { content: ""; width: 10px; height: 10px; border-right: 3px solid var(--navy); border-bottom: 3px solid var(--navy); transform: rotate(45deg); margin-right: 6px; transition: transform 0.25s var(--ease); }
.toc-wrap[open] summary::after { transform: rotate(-135deg); }
.toc-wrap .toc { padding-bottom: 14px; }
.aside-contact { display: grid; gap: 14px; }
@media (max-width: 53.75em) {
  .terms-page .aside-contact { display: none; }   /* contact is in the footer on phones */
  .toc { columns: 1; }
}

/* Touch screens: every tappable line is at least 44px tall */
@media (pointer: coarse) {
  .site-footer li a, .site-footer address a { display: flex; align-items: center; min-height: 44px; padding: 0; }
  .toc a { display: flex; align-items: center; min-height: 44px; padding: 0; }
  .contact-list a { display: inline-flex; align-items: center; min-height: 44px; }
  .contact-list li { align-items: center; }
  .contact-list svg { margin-top: 0; }
  .arrow-link { min-height: 44px; }
  .ports-index h3 a { display: flex; align-items: center; min-height: 44px; }
  .ports-index h3 { margin-bottom: 0; }
  .facts dd a { display: inline-block; padding: 12px 0; }
  .brand { padding: 2px 0; }
}

.form-intro { margin-top: 16px; }
.aside .aside-first { margin-top: 0; }
.aside-contact + .btn, .contact-list + .btn { margin-top: 10px; }
.btn, .region-nav a, .field input, .field textarea { min-width: 0; overflow-wrap: anywhere; }
.regions > *, .statement > *, .with-aside > *, .footer-grid > *, .two-col > *, .reasons > * { min-width: 0; }

/* Print: content only */
@media print {
  .site-header, .site-footer, .quote-band, .aside, .skip, .region-nav, .btn-row, .hero-media { display: none !important; }
  .hero, .page-banner { min-height: 0; background: none; color: #000; }
  .hero::before, .page-banner::before { display: none; }
  .hero h1, .hero .lead, .page-banner h1, .page-banner p { color: #000; }
  .page-banner .wrap, .hero-copy { padding: 0 0 12pt; }
  .with-aside { display: block; }
  .section { padding: 12pt 0; }
  body { font-size: 10.5pt; }
  .terms h2 { break-after: avoid; }
  .terms .clause { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}

/* Enlarged text: let long words and rows wrap instead of pushing the page sideways */
body { overflow-wrap: break-word; }
.service > *, .facts > *, .ports-index > *, .mosaic > *, .timeline li > * { min-width: 0; }
.terms .clause { grid-template-columns: 3.2em minmax(0, 1fr); }
.region h3, .region li { flex-wrap: wrap; }
.region h3 span { white-space: normal; }

/* Home intro: heading across the top, text in two columns */
.statement-head { max-width: 26ch; margin-bottom: clamp(24px, 3vw, 40px); }
.two-col--text > * { min-width: 0; }
.two-col--text p + .arrow-link { margin-top: 1.4em; }

/* Port map */
.ports-map { width: 100%; height: auto; margin-top: clamp(32px, 5vw, 56px); }
.ports-map + .ports-index { margin-top: clamp(24px, 3vw, 40px); }

/* Links inside buttons, tiles, nav and the brand keep their own look */
.btn, .tile, .brand, .nav a, .region-nav a, .skip, .toc a, .site-footer li a, .site-footer address a, .ports-index h3 a { text-decoration: none; }
.quote-band a:not(.btn) { color: var(--white); text-decoration-color: rgba(255, 255, 255, 0.7); }
.form-status a { text-decoration-color: currentColor; }

/* Services rows: the text column lines up with the page's content edges (same lines as the logo and the menu) */
.service-body { padding-left: clamp(32px, 5vw, 80px); padding-right: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.service-body > * { max-width: none; }
.service:nth-of-type(even) .service-body { padding-right: clamp(32px, 5vw, 80px); padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
@media (max-width: 53.75em) {
  .service-body, .service:nth-of-type(even) .service-body { padding-left: var(--gutter); padding-right: var(--gutter); }
}

/* Date fields match the text fields */
.field input[type="date"] { -webkit-appearance: none; appearance: none; font-variant-numeric: tabular-nums; }
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
picture > .ports-map { display: block; }

picture + .ports-index { margin-top: clamp(24px, 3vw, 40px); }

/* Fuel grades table and lubricant brands (services) */
.grades { width: 100%; border-collapse: collapse; margin: 24px 0 12px; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.grades th, .grades td { text-align: left; vertical-align: top; padding: 11px 16px 11px 0; border-top: 1px solid var(--line); }
.grades tbody tr:last-child > * { border-bottom: 1px solid var(--line); }
.grades thead th { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted, #5b6473); border-top: 0; padding-top: 0; }
.grades tbody th { font-weight: 700; color: var(--navy); white-space: nowrap; }
.grades td:nth-child(2) { white-space: nowrap; }
.grades td:last-child { padding-right: 0; }
.grades-note { font-size: 0.875rem; color: var(--muted, #5b6473); margin: 0 0 30px; }
.brands { margin: 22px 0 0; }
.brands b { color: var(--navy); }
@media (max-width: 30em) { .grades { font-size: 0.875rem; } .grades th, .grades td { padding-right: 10px; } .grades tbody th, .grades td:nth-child(2) { white-space: normal; } }
@media print { .grades th, .grades td { border-color: #999; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ISO certification seals (services facts, company mission) */
.cert-seal { display: block; height: auto; }
.facts dt { display: flex; align-items: flex-end; height: clamp(40px, 3.6vw, 52px); }
.facts .fact-cert picture { display: block; flex: none; }
.facts .fact-cert .cert-seal { width: auto; max-width: none; height: clamp(40px, 3.6vw, 52px); }
.certs { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.certs picture { background: #fff; border: 1px solid var(--line); padding: 12px 16px; }
.certs .cert-seal { width: auto; height: 104px; }
@media print { .certs picture { border-color: #999; } }


/* Proof strip on the home page: certifications, grades, brands, terms */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px clamp(24px, 3vw, 48px); margin: clamp(48px, 6vw, 80px) 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.proof dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.proof dd { margin: 0; color: var(--ink); line-height: 1.55; }
.proof a { font-weight: 600; }
@media (max-width: 64em) { .proof { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 30em) { .proof { grid-template-columns: 1fr; } }

/* Fewer single-word last lines */
p, li, dd { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

.timeline p { max-width: 56ch; }
