/* Portmund Logistics - site styles.
   Palette is taken from the logo: deep navy ink, antique gold, paper white.
   Every colour lives in :root. Do not hardcode a hex below this block. */

:root {
  --paper: #ffffff;
  --paper-warm: #faf8f5;
  --paper-cool: #f4f6f9;
  --navy: #0a1f44;
  --navy-deep: #06142c;
  --navy-soft: #1b3460;
  --ink: #16202f;
  --muted: #5c6879;
  --rule: #e4e7ec;
  --rule-dark: rgba(255, 255, 255, 0.14);
  --gold: #c0a062;
  --gold-deep: #9c7f45;
  --gold-pale: #e8dcc2;

  --measure: 62ch;
  --wrap: 1200px;
  --gut: 40px;

  --display: "Cormorant Garamond", "Times New Roman", serif;
  --body: "Karla", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin: 0;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

/* Letterspaced small-caps label. Echoes the LOGISTICS line in the mark. */
.label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 18px;
}
.label-light { color: var(--gold); }

/* A gold hairline used as a section opener, never a full-width divider. */
.tick { width: 54px; height: 1px; background: var(--gold); margin: 0 0 26px; }

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

.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.masthead-inner {
  display: flex; align-items: center; gap: 36px;
  height: 92px;
}
.masthead img { height: 52px; width: auto; }
.nav { margin-left: auto; display: flex; gap: 34px; align-items: center; }
.nav a {
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 600; color: var(--muted);
  padding: 6px 0; border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav a:hover { color: var(--navy); border-bottom-color: var(--gold); }
.nav .nav-cta {
  color: var(--navy); border: 1px solid var(--navy);
  padding: 10px 20px; border-radius: 1px;
  transition: background .2s, color .2s;
}
.nav .nav-cta:hover { background: var(--navy); color: #fff; border-bottom-color: var(--navy); }

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

.hero { position: relative; overflow: hidden; padding: 120px 0 104px; }
/* The monogram sits as a watermark, bled off the right edge. */
.hero::after {
  content: ""; position: absolute; top: 50%; right: -120px;
  width: 620px; height: 560px; transform: translateY(-50%);
  background: url("assets/logo-mark.png") no-repeat center / contain;
  opacity: 0.05; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 860px; }
.hero h1 {
  font-size: clamp(2.9rem, 6.2vw, 5.2rem);
  margin-bottom: 30px;
}
.hero h1 em {
  font-style: italic; color: var(--gold-deep);
}
.hero-lede {
  font-size: 1.22rem; color: var(--muted); max-width: 54ch;
  margin-bottom: 38px;
}
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.btn {
  display: inline-block; font-family: var(--body);
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 16px 32px; border-radius: 1px;
  border: 1px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-solid { background: var(--navy); color: #fff; }
.btn-solid:hover { background: var(--navy-deep); }
.btn-line { border-color: var(--rule); color: var(--navy); }
.btn-line:hover { border-color: var(--navy); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-pale); }

/* Hero footnote row: concrete facts, no invented numbers. */
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 0 48px;
  margin-top: 64px; padding-top: 26px; border-top: 1px solid var(--rule);
  max-width: 820px;
}
.hero-facts div { padding: 6px 0; }
.hero-facts dt {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 700; margin-bottom: 4px;
}
.hero-facts dd { margin: 0; font-size: 15px; color: var(--ink); }

/* ---------- generic section ---------- */

section { padding: 112px 0; }
.band-warm { background: var(--paper-warm); }
.band-cool { background: var(--paper-cool); }

/* Two-column editorial split: sticky heading beside flowing content. */
.split { display: grid; grid-template-columns: 340px 1fr; gap: 80px; align-items: start; }
.split-head { position: sticky; top: 132px; }
.split-head h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); margin-bottom: 18px; }
.split-head p { color: var(--muted); font-size: 15.5px; }

/* Numbered entries, ruled rather than boxed. No cards, no shadows. */
.entry {
  display: grid; grid-template-columns: 62px 1fr; gap: 28px;
  padding: 40px 0; border-top: 1px solid var(--rule);
}
.entry:last-child { border-bottom: 1px solid var(--rule); }
.entry-no {
  font-family: var(--display); font-size: 1.6rem; color: var(--gold);
  line-height: 1; padding-top: 6px; font-feature-settings: "lnum";
}
.entry h3 { font-size: 1.65rem; margin-bottom: 12px; }
.entry p { color: var(--muted); max-width: var(--measure); }
.entry ul {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 10px;
}
.entry li {
  font-size: 12.5px; letter-spacing: 0.06em; color: var(--navy-soft);
  border: 1px solid var(--rule); padding: 6px 13px; border-radius: 1px;
  background: #fff;
}

/* ---------- dark band ---------- */

.dark {
  background: var(--navy); color: #d9e0ea;
  position: relative; overflow: hidden;
}
.dark::after {
  content: ""; position: absolute; left: -140px; bottom: -160px;
  width: 560px; height: 500px;
  background: url("assets/logo-mark-light.png") no-repeat center / contain;
  opacity: 0.045; pointer-events: none;
}
.dark h2, .dark h3 { color: #fff; }
.dark .split-head p { color: #a9b6c8; }
.dark .entry { border-top-color: var(--rule-dark); }
.dark .entry:last-child { border-bottom-color: var(--rule-dark); }
.dark .entry p { color: #a9b6c8; }
.dark .entry-no { color: var(--gold); }

/* ---------- engagement table ---------- */

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 8px; }
.tier {
  padding: 40px 34px; border-left: 1px solid var(--rule);
  display: flex; flex-direction: column;
}
.tier:first-child { border-left: 0; padding-left: 0; }
.tier:last-child { padding-right: 0; }
.tier h3 { font-size: 1.5rem; margin-bottom: 10px; }
.tier .for {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 700; margin-bottom: 20px;
}
.tier p { color: var(--muted); font-size: 15.5px; }
.tier ul {
  list-style: none; padding: 0; margin: 20px 0 0;
  font-size: 15px; color: var(--ink);
}
.tier li { padding: 9px 0 9px 20px; position: relative; border-top: 1px solid var(--rule); }
.tier li::before {
  content: ""; position: absolute; left: 0; top: 18px;
  width: 7px; height: 1px; background: var(--gold);
}

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; align-items: start; }
.contact-grid h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin-bottom: 20px; }
.contact-grid > div > p { color: var(--muted); max-width: 46ch; }
.contact-panel {
  border: 1px solid var(--rule); padding: 36px; background: #fff;
}
.contact-panel dl { margin: 0; }
.contact-panel dt {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 700; margin-bottom: 5px;
}
.contact-panel dd {
  margin: 0 0 22px; font-size: 15.5px; line-height: 1.6;
}
.contact-panel dd:last-child { margin-bottom: 0; }
.contact-panel a:hover { color: var(--gold-deep); }

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

.foot { background: var(--navy-deep); color: #9fadc0; padding: 72px 0 34px; }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
.foot img { height: 78px; width: auto; margin-bottom: 20px; }
.foot p { font-size: 14.5px; max-width: 38ch; }
.foot h4 {
  color: #fff; font-family: var(--body); font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; margin: 0 0 16px;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.foot a:hover { color: var(--gold); }
.foot-base {
  margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--rule-dark);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: #7d8b9e;
}

/* ---------- interior pages ----------
   Terms, privacy, refunds and contact. Same editorial language as the home
   page: a sticky heading beside flowing content, hairline rules, gold used
   only for numerals and ticks. */

.page-head { padding: 92px 0 0; }
.page-title { font-size: clamp(2.5rem, 5vw, 4rem); max-width: 17ch; margin-bottom: 20px; }
.page-lede { font-size: 1.15rem; color: var(--muted); max-width: 58ch; margin-bottom: 0; }
.page-meta {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
  margin: 34px 0 0; padding-top: 20px;
  border-top: 1px solid var(--rule);
}

/* Clause list beside the clauses themselves. */
.legal { padding-top: 64px; }
.toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.toc a { color: var(--muted); border-bottom: 1px solid transparent; }
.toc a:hover { color: var(--navy); border-bottom-color: var(--gold); }

.legal .entry h2 { font-size: 1.45rem; margin-bottom: 12px; }
.legal .entry p { color: var(--ink); font-size: 16px; }
/* The big type on an interior page is the h1, so headings under it step
   down. Without this the contact page inherits the home page display size. */
.legal .contact-grid h2 { font-size: 1.6rem; margin-bottom: 14px; }

/* A prose list, ruled and gold-ticked like the engagement tiers. It has to
   stand on its own because the contact page uses it outside .entry. */
.rule-list {
  display: grid; gap: 0; list-style: none;
  margin: 18px 0 0; padding: 0; max-width: var(--measure);
}
.rule-list li {
  border-top: 1px solid var(--rule); padding: 9px 0 9px 20px;
  position: relative; font-size: 15.5px; color: var(--ink);
}
.rule-list li::before {
  content: ""; position: absolute; left: 0; top: 18px;
  width: 7px; height: 1px; background: var(--gold);
}
/* .entry li is a bordered pill on the home page. Inside a clause it is
   prose, so cancel the pill rather than inherit it. */
.entry ul.rule-list li {
  border-left: 0; border-right: 0; border-bottom: 0; border-radius: 0;
  background: none; letter-spacing: normal; font-size: 15.5px;
}

/* A fact only the owner can supply. Deliberately loud: it must not survive
   quietly onto a live page. Search the HTML for fillin before launch. */
.fillin {
  background: var(--gold-pale); color: var(--navy-deep);
  padding: 1px 7px; font-weight: 700; font-size: 0.9em;
  letter-spacing: 0.04em;
}

/* Contact page */
.contact-note { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--rule); }
.contact-note h3 { font-size: 1.25rem; margin-bottom: 12px; }

/* ---------- responsive ----------
   Track definitions live here and nowhere else. Never put a
   grid-template-columns in a style attribute: an inline style beats every
   media query and the column silently survives onto a phone. */

@media (max-width: 1040px) {
  .split { grid-template-columns: 1fr; gap: 44px; }
  .split-head { position: static; }
  .tiers { grid-template-columns: 1fr; }
  .tier { border-left: 0; border-top: 1px solid var(--rule); padding: 32px 0; }
  .tier:first-child { border-top: 0; padding-top: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  /* The clause list stops being a sidebar and becomes an opener. */
  .legal .split-head { padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
}

@media (max-width: 720px) {
  :root { --gut: 22px; }
  /* The hand-set line breaks in the headline are a desktop typographic
     choice. On a narrow screen they produce orphans, so let the text wrap.
     The markup carries a space before every one of those breaks. Hiding a
     br removes the break but adds nothing back, so without that space the
     words either side fuse. Do not strip it from the HTML. */
  .hero h1 br { display: none; }
  body { font-size: 16px; }
  .nav { display: none; }
  .masthead-inner { height: 74px; }
  .masthead img { height: 42px; }
  section { padding: 72px 0; }
  .hero { padding: 72px 0 64px; }
  .hero::after { display: none; }
  .hero-facts { gap: 0 32px; margin-top: 44px; }
  .entry { grid-template-columns: 1fr; gap: 10px; }
  .entry-no { padding-top: 0; font-size: 1.2rem; }
  .foot-top { grid-template-columns: 1fr; gap: 34px; }
  .actions .btn { flex: 1 1 auto; text-align: center; }
  .page-head { padding-top: 56px; }
  .legal { padding-top: 44px; }
  .legal .entry h2 { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Section-opener heading + lede used where there is no .split-head. */
.sec-title { font-size: clamp(2rem, 3.6vw, 3rem); max-width: 20ch; margin-bottom: 16px; }
.sec-lede { color: var(--muted); max-width: 56ch; margin-bottom: 46px; }
.actions-mt { margin-top: 30px; }

/* Nothing may widen the viewport. Decorative absolutes are already clipped
   by overflow:hidden on their section; this is the backstop. */
html, body { overflow-x: hidden; max-width: 100%; }
