/* Uncrewed Maritime Consulting Ltd - site styles
   Palette taken from the existing product cover: deep navy, bright blue accent. */

:root {
  --navy: #0c1831;
  --navy-2: #132d5c;
  --blue: #2f6df0;
  --blue-dark: #1d51c0;
  --blue-light: #e8effe;
  --ink: #0f1a2e;
  --body: #3b4a63;
  --muted: #6b7a94;
  --line: #dde4f0;
  --bg: #ffffff;
  --bg-alt: #f4f7fc;
  --amber: #8a5a00;
  --amber-bg: #fff4d6;
  --radius: 10px;
  --wrap: 1120px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }
.site-footer { flex: none; }

h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: 0.45em; }
a { color: var(--blue-dark); text-underline-offset: 3px; }
a:hover { color: var(--blue); }
strong { color: var(--ink); font-weight: 650; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }
.centre { text-align: center; }
.muted { color: var(--muted); }
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip:focus {
  position: fixed; top: 12px; left: 12px; z-index: 100; width: auto; height: auto;
  clip: auto; background: #fff; color: var(--ink); padding: 12px 18px;
  border-radius: var(--radius); font-weight: 600; box-shadow: 0 6px 24px rgba(0,0,0,.25);
}

/* ---------- header ---------- */

.site-header {
  background: var(--navy);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand-mark {
  width: auto; height: 34px; flex: none; display: block;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { color: #fff; font-size: 1rem; font-weight: 650; letter-spacing: -0.01em; }
.brand-text span { color: #93a7c9; font-size: 0.78rem; letter-spacing: 0.09em; text-transform: uppercase; }
.site-header nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-header nav a {
  color: #d5e0f2; text-decoration: none; font-size: 0.95rem; font-weight: 550;
  padding: 8px 12px; border-radius: 6px;
}
.site-header nav a:hover { color: #fff; background: rgba(255,255,255,.09); }
.site-header nav a[aria-current="page"] { color: #fff; background: rgba(47,109,240,.28); }

@media (max-width: 560px) {
  .header-inner { min-height: 0; gap: 6px; }
  .site-header nav { gap: 2px; width: 100%; }
  .site-header nav a { font-size: 0.88rem; padding: 7px 9px; }
}

/* ---------- hero ---------- */

.hero {
  background:
    radial-gradient(1100px 420px at 88% -10%, rgba(47,109,240,.42), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, #10224a 55%, var(--navy-2) 100%);
  color: #cfdcf1;
  padding: clamp(56px, 9vw, 112px) 0 clamp(56px, 8vw, 96px);
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .5;
}
.hero .wrap { position: relative; z-index: 1; max-width: 900px; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .standfirst { color: #b9cbe6; font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem); max-width: 62ch; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.11em; font-size: 0.76rem;
  font-weight: 650; color: #6f9bf5; margin: 0 0 14px;
}
.eyebrow a { color: inherit; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--blue); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 0.98rem; font-family: inherit;
  padding: 12px 22px; border: 2px solid var(--blue); border-radius: var(--radius);
  cursor: pointer; transition: background .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-lg { padding: 15px 28px; font-size: 1.03rem; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.btn-buy { width: 100%; flex-direction: column; gap: 2px; }
.btn.is-disabled {
  background: var(--bg-alt); border-color: var(--line); color: var(--muted);
  cursor: not-allowed; font-weight: 600;
}
.btn-note { font-size: 0.78rem; font-weight: 500; letter-spacing: .02em; }

.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- bands ---------- */

.band { padding: clamp(44px, 6vw, 76px) 0; }
.band-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.band-accent { background: var(--blue-light); border-block: 1px solid #c9dafc; }
.band-dark {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #b9cbe6;
}
.band-dark h2 { color: #fff; }
.band-dark .btn { background: var(--blue); border-color: var(--blue); }
.section-lead { max-width: 62ch; margin-bottom: 32px; font-size: 1.05rem; }
.section-more { margin: 28px 0 0; }

.page-head {
  background: var(--bg-alt); border-bottom: 1px solid var(--line);
  padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px);
}
.standfirst { font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.2rem); color: var(--body); max-width: 60ch; margin-bottom: 0; }

.measure, .prose { max-width: 68ch; }
.service-list, .pack-body { max-width: 68ch; }
.prose h2 { margin-top: 0; }
.prose + .prose { margin-top: 44px; }

/* ---------- grid and cards ---------- */

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card:hover { border-color: #b9c9e6; box-shadow: 0 10px 30px rgba(12,24,49,.09); transform: translateY(-2px); }
.card h3 { margin-bottom: 8px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--blue-dark); }
.card p { margin-bottom: 0; font-size: 0.97rem; }
.card-body { flex: 1; }
.card-foot {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line);
}
.pack-card .eyebrow { color: var(--muted); }
.pack-card.bundle { border-color: var(--blue); }
.service-card h3 a { text-decoration: none; }

.price { font-weight: 700; color: var(--ink); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.price-lg { font-size: 1.9rem; display: block; line-height: 1.1; }

.bundle-strip {
  margin-top: 22px; background: var(--navy); color: #b9cbe6;
  border-radius: var(--radius); padding: 30px;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.bundle-strip h3 { color: #fff; font-size: 1.35rem; }
.bundle-strip p:last-child { margin-bottom: 0; }
.bundle-strip .eyebrow { color: #6f9bf5; }
.bundle-strip > div:first-child { flex: 1 1 380px; }
.bundle-buy { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.bundle-buy .price { color: #fff; }

/* ---------- services ---------- */

.service-list .service + .service { margin-top: 48px; padding-top: 44px; border-top: 1px solid var(--line); }
.service h2 { scroll-margin-top: 96px; }

/* ---------- pack page ---------- */

.pack-head-grid { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .pack-head-grid { grid-template-columns: 1fr 320px; gap: 48px; } }

.buybox {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 8px 28px rgba(12,24,49,.07);
}
.buybox .muted { margin-bottom: 18px; font-size: 0.9rem; }
.buybox-list { list-style: none; padding: 0; margin: 18px 0 0; font-size: 0.92rem; }
.buybox-list li { padding-left: 24px; position: relative; color: var(--body); }
.buybox-list li::before {
  content: ""; position: absolute; left: 4px; top: 0.55em;
  width: 9px; height: 5px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}
.pack-body .files { margin-top: 44px; }
.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 0.6em;
  width: 10px; height: 6px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}
.fineprint {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 0.88rem; color: var(--muted);
}

/* ---------- forms ---------- */

.signup { display: flex; flex-wrap: wrap; gap: 10px; }
.signup input { flex: 1 1 260px; }
input, textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  padding: 12px 14px; border: 1px solid #b9c6dd; border-radius: var(--radius); width: 100%;
}
input:focus, textarea:focus { border-color: var(--blue); }
.contact-form { margin-top: 44px; max-width: 34rem; }
.contact-form label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: 0.95rem; }
.contact-card { margin-top: 40px; padding: 26px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-card h2 { font-size: 1.1rem; }
.big { font-size: 1.2rem; font-weight: 600; margin-bottom: 0; }

/* ---------- pending placeholder ---------- */

.pending {
  display: inline-block; background: var(--amber-bg); color: var(--amber);
  border: 1px dashed #d3a53d; border-radius: 5px;
  padding: 1px 8px; font-size: 0.85em; font-weight: 600;
}

/* ---------- footer ---------- */

.site-footer { background: var(--navy); color: #93a7c9; padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.footer-grid h2 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: #6f83a6; margin-bottom: 12px; }
.footer-grid p { font-size: 0.95rem; margin-bottom: 0; line-height: 1.9; }
.site-footer a { color: #d5e0f2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { color: #fff; font-weight: 650; margin-bottom: 4px; }
.footer-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }
.footer-legal p { font-size: 0.85rem; margin: 0; color: #7b8fb2; }
.footer-legal .pending { background: rgba(255,255,255,.1); color: #ffd782; border-color: rgba(255,215,130,.5); }

/* ==========================================================================
   Corporate expansion - services, sectors, engagement, proof strip
   ========================================================================== */

.small { font-size: 0.9rem; }

/* ---------- header nav with more items ---------- */

.site-header nav { gap: 2px; }
@media (max-width: 900px) {
  .header-inner { align-items: flex-start; }
  .site-header nav {
    width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 2px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    padding-bottom: 2px;
  }
  .site-header nav::-webkit-scrollbar { display: none; }
  .site-header nav a { white-space: nowrap; font-size: 0.88rem; padding: 7px 10px; }
}

/* ---------- proof strip under the hero ---------- */

.proof { background: var(--navy-2); color: #c7d7ef; border-bottom: 1px solid rgba(255,255,255,.1); }
.proof-grid {
  display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.proof-item { padding: 26px 28px 26px 0; border-right: 1px solid rgba(255,255,255,.12); padding-right: 28px; }
.proof-item + .proof-item { padding-left: 28px; }
.proof-item:last-child { border-right: 0; }
.proof-label {
  color: #fff; font-weight: 650; font-size: 0.98rem; margin-bottom: 6px; letter-spacing: -0.01em;
}
.proof-item p:last-child { margin-bottom: 0; font-size: 0.92rem; line-height: 1.6; color: #a8bcda; }
@media (max-width: 760px) {
  .proof-item, .proof-item + .proof-item {
    padding: 20px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .proof-item:last-child { border-bottom: 0; }
}

/* ---------- service grid groups ---------- */

.group-head {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.11em;
  color: var(--muted); font-weight: 650; margin: 0 0 16px;
}
.grid + .group-head { margin-top: 40px; }
.service-card .card-foot { border-top-color: var(--line); }
.service-card .eyebrow { color: var(--muted); margin-bottom: 10px; }

/* ---------- engagement steps ---------- */

.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; margin-bottom: 14px;
  background: var(--blue-light); color: var(--blue-dark); font-weight: 700; font-size: 0.95rem;
}
.step h3 { margin-bottom: 8px; }
.step p { margin-bottom: 0; font-size: 0.97rem; }

/* ---------- split layout ---------- */

.split { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.15fr 1fr; gap: 56px; }
  .split-tight { grid-template-columns: 1fr 1fr; gap: 48px; }
}
.split > div > p { max-width: 60ch; }

.chips { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.chips li {
  background: var(--bg-alt); border: 1px solid var(--line); border-left: 3px solid var(--blue);
  border-radius: 6px; padding: 13px 16px; font-weight: 600; color: var(--ink); font-size: 0.95rem;
  margin: 0;
}

/* ---------- sector list on the home page ---------- */

.sector-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.sector-list li { margin: 0; }
.sector-list a {
  display: block; text-decoration: none; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sector-list a:hover { border-color: #b9c9e6; box-shadow: 0 8px 24px rgba(12,24,49,.07); }
.sector-list strong { display: block; color: var(--ink); margin-bottom: 3px; }
.sector-list span { display: block; color: var(--body); font-size: 0.93rem; }

/* ---------- sectors page ---------- */

.sector-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .sector-grid { grid-template-columns: 1fr 1fr; gap: 48px 56px; } }
.sector h2 { scroll-margin-top: 110px; font-size: 1.3rem; }
.sector .prose { max-width: 56ch; }
.sector .prose p:last-child { margin-bottom: 0; }

/* ---------- service detail page ---------- */

.service-head-grid { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 980px) { .service-head-grid { grid-template-columns: 1fr 340px; gap: 56px; } }
.service-head .eyebrow a { text-decoration: none; }
.service-body { max-width: 68ch; }
.service-body .prose + .prose { margin-top: 40px; }

.glance {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: 0 8px 28px rgba(12,24,49,.07);
}
.glance h2 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.glance .ticks { margin-bottom: 20px; font-size: 0.95rem; }
.glance .ticks li { margin-bottom: 0.6em; }
.glance p { margin-bottom: 0; }
.glance .btn { width: 100%; }

/* ---------- toolkit strip on the home page ---------- */

.pack-mini { display: grid; gap: 8px; align-content: start; }
.pack-mini a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 13px 16px; text-decoration: none; color: var(--ink); font-size: 0.95rem;
  transition: border-color .15s ease;
}
.pack-mini a:hover { border-color: var(--blue); color: var(--ink); }
.pack-mini .price { font-size: 0.95rem; white-space: nowrap; color: var(--body); }
.pack-mini .mini-bundle { border-color: var(--blue); font-weight: 650; }

/* ---------- footer additions ---------- */

.footer-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-about { grid-column: span 1; }
.footer-h2-second { margin-top: 22px; }
.footer-legal p + p { margin-top: 10px; max-width: 78ch; }

/* ---------- corrections after render check ---------- */

/* Nav wraps on small screens so every item stays visible. */
@media (max-width: 900px) {
  .site-header nav { flex-wrap: wrap; overflow: visible; }
}

/* Footer muted text needs to lift off the navy. */
.site-footer .muted { color: #93a7c9; }
.footer-legal .muted { color: #7b8fb2; }

/* Service detail: prose plus a sticky index of the other services. */
.service-layout { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) {
  .service-layout { grid-template-columns: minmax(0, 68ch) 1fr; gap: 64px; }
  .service-side { position: sticky; top: 96px; }
}
.service-body { max-width: 68ch; }
.service-side h2 {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted); margin-bottom: 14px;
}
.service-side ul { list-style: none; padding: 0; margin: 0 0 20px; border-top: 1px solid var(--line); }
.service-side li { margin: 0; border-bottom: 1px solid var(--line); }
.service-side a {
  display: block; padding: 11px 0; text-decoration: none; color: var(--body);
  font-size: 0.94rem; font-weight: 550;
}
.service-side a:hover { color: var(--blue-dark); }
.service-side a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.side-note { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* Contents column on the longer company pages. */
.service-side ul li a[href^="#"] { font-weight: 500; }
.prose h2[id] { scroll-margin-top: 110px; }

/* Registered office is a legal disclosure, not a selling point. Small print. */
.footer-address {
  font-size: 0.72rem; color: #5c7095; margin: 8px 0 0; letter-spacing: 0.005em;
}

/* Brand lockup uses the UMC mark; the wordmark stays as live text so it scales
   and always reads the registered name. */
.brand { gap: 13px; }
.brand-text strong { letter-spacing: 0.01em; }
@media (max-width: 420px) {
  .brand-mark { height: 28px; }
  .brand-text strong { font-size: 0.92rem; }
  .brand-text span { font-size: 0.7rem; }
}

/* Footer gets the mark too, at a quiet size. */
.footer-about .footer-mark { height: 44px; width: auto; display: block; margin-bottom: 14px; opacity: .95; }

/* Final logo and footer polish. */
.brand-mark { height: 38px; }
@media (max-width: 420px) { .brand-mark { height: 30px; } }
.footer-address { font-size: 0.7rem; color: #4f6289; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.35fr 1.15fr 0.9fr 1fr; }
}
.footer-brand { font-size: 0.98rem; }

/* Sales-final note under the buy button. */
.buybox-note {
  margin: 16px 0 0; font-size: 0.84rem; line-height: 1.5; color: var(--muted);
  padding-top: 14px; border-top: 1px solid var(--line);
}
