/* ============================================================
   HDShips — Site stylesheet
   Shared shell (nav, footer, buttons, sections) + components.
   Light brand. Import order: variables.css then this file.
   ============================================================ */

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: var(--body-weight);
  background: var(--white);
  color: var(--baltic);
  line-height: var(--body-leading);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, video { max-width: 100%; display: block; }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-hed); font-weight: var(--hed-weight); line-height: 1.1; color: var(--baltic); }

/* ── Accessibility ────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -999px; left: 1rem;
  background: var(--shell); color: var(--white);
  font-weight: 600; font-size: 14px; padding: 10px 18px;
  border-radius: var(--radius-md); z-index: 99999;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--shell); outline-offset: 3px; border-radius: 2px; }
:focus:not(:focus-visible) { outline: none; }

/* ── Layout helpers ───────────────────────────────────────── */
.container { max-width: var(--container-max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow    { max-width: var(--container-narrow); margin-inline: auto; }
.section   { padding-block: clamp(3.5rem, 8vw, 7rem); position: relative; }
.section-soft { background: var(--surface-soft); }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--shell); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--shell); border-radius: 2px; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -0.01em; }
.section-lead  { font-size: clamp(1rem, 1.3vw, 1.12rem); color: var(--n600); max-width: 60ch; margin-top: 16px; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-hed); font-weight: 600;
  font-size: 14px; letter-spacing: 0.02em;
  border-radius: var(--radius-md); padding: 13px 26px;
  transition: background var(--dur-base), color var(--dur-base), border-color var(--dur-base), transform var(--dur-base), box-shadow var(--dur-base);
  white-space: nowrap;
}
.btn-primary { background: var(--shell); color: var(--white); border: 2px solid var(--shell); }
.btn-primary:hover { background: var(--baltic); border-color: var(--baltic); transform: translateY(-2px); box-shadow: var(--shadow-teal); }
.btn-ghost { background: transparent; color: var(--baltic); border: 2px solid var(--border-teal); }
.btn-ghost:hover { background: var(--shell-10); border-color: var(--shell); transform: translateY(-2px); }
.btn-light { background: var(--white); color: var(--shell); border: 2px solid var(--white); }
.btn-light:hover { background: var(--seafoam); border-color: var(--seafoam); color: var(--baltic); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-arrow { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform var(--dur-base); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ── Nav ──────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: 74px; z-index: var(--z-nav);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--gutter);
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-base), border-color var(--dur-base), box-shadow var(--dur-base);
}
.nav.scrolled { background: rgba(255,255,255,0.94); border-bottom-color: var(--border-thin); box-shadow: var(--shadow-sm); }
.nav-logo { display: flex; align-items: center; line-height: 0; }
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2.2rem; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-links a {
  font-size: 14px; font-weight: 600; color: var(--n700); position: relative;
  transition: color var(--dur-base);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 2px;
  background: var(--shell); border-radius: 2px; transition: width var(--dur-base) var(--ease-out);
}
.nav-links a:hover, .nav-links a.active { color: var(--shell); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--baltic); border-radius: 2px; transition: transform var(--dur-base), opacity var(--dur-base); }
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  position: fixed; inset: 74px 0 auto 0; z-index: calc(var(--z-nav) - 1);
  background: var(--white); border-bottom: 1px solid var(--border-thin);
  box-shadow: var(--shadow-md); padding: var(--gutter);
  display: none; flex-direction: column; gap: 4px;
}
.nav-drawer.open { display: flex; }
.nav-drawer a { padding: 14px 8px; font-size: 16px; font-weight: 600; color: var(--baltic); border-bottom: 1px solid var(--border-thin); }
.nav-drawer .btn { margin-top: 14px; justify-content: center; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-actions .btn-ghost { display: none; }
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  padding: 120px var(--gutter) 80px; overflow: hidden; color: var(--white);
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(0,47,70,0.86) 0%, rgba(0,47,70,0.62) 45%, rgba(7,108,136,0.34) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: var(--container-max); margin-inline: auto; width: 100%; }
.hero-eyebrow { color: var(--seafoam); }
.hero-eyebrow::before { background: var(--seafoam); }
.hero h1 {
  color: var(--white); font-size: clamp(2.4rem, 6vw, 4.6rem); letter-spacing: -0.02em;
  max-width: 16ch; margin-bottom: 22px;
}
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: rgba(255,255,255,0.86); max-width: 46ch; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ── Feature cards ────────────────────────────────────────── */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card-bg); border: 1px solid var(--border-thin);
  border-radius: var(--radius-lg); padding: 28px;
  transition: transform var(--dur-base), box-shadow var(--dur-base), border-color var(--dur-base);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-teal); }
.card-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  background: var(--shell-10); color: var(--shell);
}
.card-icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { font-size: 0.95rem; color: var(--n600); }

/* Compact service chip */
.service {
  background: var(--surface-soft); border: 1px solid var(--border-thin);
  border-radius: var(--radius-md); padding: 20px 22px;
  transition: transform var(--dur-base), box-shadow var(--dur-base), background var(--dur-base);
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); background: var(--white); }
.service h3 { font-size: 1.02rem; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.service h3 svg { width: 20px; height: 20px; stroke: var(--shell); fill: none; stroke-width: 1.8; flex-shrink: 0; }
.service p { font-size: 0.88rem; color: var(--n600); }

/* ── Split feature row ────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split.reverse .split-media { order: -1; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split.reverse .split-media { order: 0; } }
.split-media {
  border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md);
  background: var(--grad-button); min-height: 280px; aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center; color: var(--white);
}
.split h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 16px; }
.split p { color: var(--n600); margin-bottom: 14px; }
.checklist { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; color: var(--n700); }
.checklist svg { width: 22px; height: 22px; flex-shrink: 0; stroke: var(--shell); fill: none; stroke-width: 2; margin-top: 1px; }

/* ── CTA band ─────────────────────────────────────────────── */
.cta-band { background: var(--baltic); color: var(--white); border-radius: var(--radius-xl); padding: clamp(2.5rem, 5vw, 4rem); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: var(--grad-soft); opacity: 0.10; }
.cta-band h2 { color: var(--white); font-size: clamp(1.6rem, 3.4vw, 2.6rem); position: relative; }
.cta-band p { color: rgba(255,255,255,0.8); max-width: 52ch; margin: 16px auto 28px; position: relative; }
.cta-band .btn { position: relative; }

/* ── Contact form ─────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--n700); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 15px; color: var(--baltic);
  background: var(--white); border: 1px solid var(--border-mid);
  border-radius: var(--radius-md); padding: 13px 15px; width: 100%;
  transition: border-color var(--dur-base), box-shadow var(--dur-base);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--shell); box-shadow: 0 0 0 3px var(--shell-10); }
.field-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--n600); }
.field-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--shell); }
.form-note { font-size: 13px; margin-top: 14px; }
.form-note.ok { color: var(--color-success); }
.form-note.err { color: var(--color-alert); }

/* ── Prose (legal pages, post body) ───────────────────────── */
.prose { max-width: var(--container-narrow); margin-inline: auto; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
.prose .updated { color: var(--n500); font-size: 14px; margin-bottom: 40px; }
.prose h2 { font-size: 1.4rem; margin: 40px 0 14px; }
.prose h3 { font-size: 1.12rem; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--n700); margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose a { color: var(--shell); text-decoration: underline; text-underline-offset: 3px; }

/* ── Footer ───────────────────────────────────────────────── */
.footer { background: var(--baltic); color: var(--n200); position: relative; overflow: hidden; }
.footer::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, rgba(139,230,224,0.06) 0%, transparent 55%);
}
.footer-body {
  max-width: var(--container-max); margin-inline: auto; padding: 64px var(--gutter);
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.08); position: relative; z-index: 2;
}
@media (max-width: 900px) { .footer-body { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-body { grid-template-columns: 1fr; } }
.footer-logo img { height: 40px; margin-bottom: 18px; }
.footer-desc { font-size: 14px; color: var(--n300); line-height: 1.7; max-width: 300px; }
.footer-contact { margin-top: 20px; font-size: 14px; display: flex; flex-direction: column; gap: 8px; }
.footer-contact a { color: var(--seafoam); }
.footer-col-title { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 14px; color: var(--n200); transition: color var(--dur-base), padding-left var(--dur-base); }
.footer-links a:hover { color: var(--seafoam); padding-left: 5px; }
.footer-base {
  max-width: var(--container-max); margin-inline: auto; padding: 22px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  font-size: 13px; color: var(--n400); position: relative; z-index: 2;
}
.footer-social { display: flex; gap: 14px; }
.footer-social a { width: 32px; height: 32px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.06); transition: background var(--dur-base); }
.footer-social a:hover { background: var(--shell); }
.footer-social img { width: 16px; height: 16px; }
@media (max-width: 560px) { .footer-base { flex-direction: column; text-align: center; } }

/* ── Scroll reveal ────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Legal layout: sticky TOC + prose ─────────────────────── */
.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  max-width: var(--container-max);
  margin-inline: auto;
  align-items: start;
}
.legal-layout .prose { margin-inline: 0; max-width: 760px; }
.legal-toc {
  position: sticky; top: 96px;
  max-height: calc(100vh - 120px); overflow-y: auto;
  border-left: 2px solid var(--border-thin); padding-left: 18px;
}
.legal-toc-title {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--shell); margin-bottom: 14px;
}
.legal-toc ul { display: flex; flex-direction: column; gap: 2px; }
.legal-toc a {
  display: block; font-size: 13px; line-height: 1.4; color: var(--n500);
  padding: 5px 10px; border-radius: var(--radius-sm);
  border-left: 2px solid transparent; margin-left: -20px; padding-left: 18px;
  transition: color var(--dur-base), border-color var(--dur-base), background var(--dur-base);
}
.legal-toc a:hover { color: var(--baltic); background: var(--surface-soft); }
.legal-toc a.active { color: var(--shell); border-left-color: var(--shell); font-weight: 600; }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { display: none; }
}

/* Footer socials hidden until real HD handles are confirmed
   (guessed URLs 404'd). Re-enable per-icon once verified. */
.footer-social { display: none; }
