/* ============================================================
   Harbor Import & Export — sourcing house, Yiwu
   Harbor blue (#003C72, from the logo) on warm paper,
   Newsreader serif display over a system sans
   ============================================================ */

@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-normal.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f7f5f0;
  --paper-2: #eeebe4;            /* tinted band */
  --card: #fdfcf9;
  --line: #dedad1;
  --text: #1a2633;
  --text-soft: #56626e;

  --blue: #003c72;               /* Harbor blue — logo, headlines, dark bands */
  --blue-2: #00335f;             /* panel on blue */
  --blue-3: #002a4f;             /* inputs on blue, footer */
  --blue-line: #2a5a88;
  --blue-text: #f3f6f9;
  --blue-soft: #b3c5d8;
  --logo-grey: #e6e6e6;          /* the mark on blue, as in the signature */

  --accent: #003c72;             /* CTAs, routes, marks */
  --accent-hover: #002a52;
  --accent-tint: #e2e9f1;

  --dots: #cbc6bb;               /* map land */

  --radius: 6px;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.section-dark :focus-visible, .event-band :focus-visible, .family-ask :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.08;
  font-optical-sizing: auto;
}

h1, h2 { color: var(--blue); }

h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.4rem; line-height: 1.2; letter-spacing: -0.005em; }

.nowrap { white-space: nowrap; }

.lede { font-size: 1.14rem; max-width: 33em; color: var(--text-soft); margin-top: 22px; }
.section-lede { font-size: 1.08rem; color: var(--text-soft); max-width: 40em; margin-top: 18px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font: 600 0.98rem var(--sans);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-light { background: var(--blue-text); color: var(--blue); }
.btn-light:hover { background: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-block { width: 100%; justify-content: center; }

.text-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
}
.text-link:hover { color: var(--accent-hover); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 241, 231, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.logo { height: 30px; width: auto; overflow: visible; }
.logo-mark { fill: var(--blue); }
.logo-word { fill: var(--blue); stroke: var(--blue); }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-soft);
}
.site-nav a:hover { color: var(--text); }
.site-nav .nav-cta {
  color: #fff;
  background: var(--accent);
  padding: 9px 18px;
  border-radius: 999px;
}
.site-nav .nav-cta:hover { background: var(--accent-hover); color: #fff; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 1px; margin: 0 8px; }

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

.hero { padding: 72px 0 64px; overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 em { font-style: italic; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-map { margin: 0; }
.hero-map figcaption {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin-top: 10px;
  padding-left: 4px;
}

/* map */
.route-map { width: 100%; height: auto; overflow: visible; }
.map-land { fill: none; stroke: var(--dots); stroke-width: 3.4; stroke-linecap: round; }
.map-route {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.map-port { fill: var(--paper); stroke: var(--accent); stroke-width: 2; }
.map-region { fill: var(--paper); stroke: var(--blue); stroke-width: 1.6; }
.map-home { fill: var(--accent); }
.map-home-halo { fill: var(--accent); opacity: 0.18; transform-origin: center; transform-box: fill-box; }
.map-label { font: 500 12.5px var(--sans); fill: var(--text-soft); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.map-label-home { font-weight: 700; fill: var(--blue); font-size: 13.5px; }
.map-label-region { font-family: var(--serif); font-style: italic; font-size: 14px; fill: var(--blue); }

@media (prefers-reduced-motion: no-preference) {
  .map-route { stroke-dashoffset: 1; animation: draw 2.4s 0.3s cubic-bezier(.45,.05,.35,1) forwards; }
  .map-route:nth-of-type(n+3) { animation-delay: 1.9s; animation-duration: 1.6s; }
  .map-home-halo { animation: pulse 2.8s ease-out infinite; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.35; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ---------- CPHI band ---------- */

.event-band { background: var(--blue); color: var(--blue-text); }
.event-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 36px;
  align-items: center;
  padding: 30px 24px;
}
.event-when { border-right: 1px solid var(--blue-line); padding-right: 36px; }
.event-name { font-family: var(--serif); font-size: 1.55rem; line-height: 1.15; }
.event-meta { font-size: 0.92rem; color: var(--blue-soft); margin-top: 4px; }
.event-copy { color: var(--blue-soft); max-width: 34em; }
.event-copy strong { color: var(--blue-text); font-weight: 600; }

/* ---------- sections ---------- */

.section { padding: 104px 0; }
.section-tint { background: var(--paper-2); }

.section-head { max-width: 760px; margin-bottom: 56px; }

/* how we work */
.ways {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.way { background: var(--card); padding: 36px 36px 38px; }
.way-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.way-icon svg { width: 22px; height: 22px; }
.way p { color: var(--text-soft); margin-top: 10px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1;
  color: var(--blue);
}
.stat-label { display: block; margin-top: 10px; font-size: 0.95rem; color: var(--text-soft); max-width: 15em; }

/* what we ship */
.families {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.family {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 30px;
}
.family h3 { font-size: 1.3rem; }
.family p { color: var(--text-soft); margin-top: 8px; font-size: 0.97rem; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; list-style: none; }
.chips li {
  font-size: 0.84rem;
  line-height: 1.3;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--text);
}
.family-ask { background: var(--blue); border-color: var(--blue); color: var(--blue-text); }
.family-ask h3 { color: var(--blue-text); }
.family-ask p { color: var(--blue-soft); }
.family-ask .text-link { color: var(--blue-text); display: inline-block; margin-top: 18px; }
.family-ask .text-link:hover { color: #fff; }

/* about */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 72px;
  align-items: start;
}
.about-copy p { color: var(--text-soft); font-size: 1.06rem; margin-top: 18px; max-width: 36em; }
.about-copy p:first-child { margin-top: 0; }

.buyers {
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  background: var(--paper-2);
  font-size: 0.97rem;
  color: var(--text-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* contact */
.section-dark { background: var(--blue); color: var(--blue-text); }
.section-dark h2 { color: var(--blue-text); }
.section-dark .section-lede { color: var(--blue-soft); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 72px;
  align-items: start;
}

.contact-details { list-style: none; margin-top: 36px; }
.contact-details li {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--blue-line);
}
.contact-details li:last-child { border-bottom: 1px solid var(--blue-line); }
.contact-details span { color: var(--blue-soft); font-size: 0.92rem; }
.contact-details a { justify-self: start; color: var(--blue-text); text-decoration: none; border-bottom: 1px solid var(--blue-line); }
.contact-details a:hover { border-color: var(--blue-text); }

.enquiry-form {
  background: var(--blue-2);
  border: 1px solid var(--blue-line);
  border-radius: var(--radius);
  padding: 32px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 0.88rem; font-weight: 500; color: var(--blue-soft); margin-bottom: 6px; }
.req { color: var(--blue-soft); margin-left: 2px; }
.form-field input,
.form-field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--blue-text);
  background: var(--blue-3);
  border: 1px solid var(--blue-line);
  border-radius: 4px;
  padding: 11px 13px;
}
.form-field textarea { resize: vertical; min-height: 104px; }
.form-field input:focus,
.form-field textarea:focus { outline: none; border-color: var(--blue-soft); box-shadow: 0 0 0 3px rgba(179, 197, 216, 0.22); }
.form-field input::placeholder,
.form-field textarea::placeholder { color: #7f9bb8; }

.check {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin: 4px 0 24px;
  font-size: 0.95rem;
  color: var(--blue-text);
  cursor: pointer;
}
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: #fff; flex: none; }
.check small { display: block; color: var(--blue-soft); font-size: 0.85rem; }

.hp-field { position: absolute; left: -10000px; }

/* footer */
.site-footer { background: var(--blue-3); color: var(--blue-soft); padding: 34px 0; font-size: 0.9rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer .logo { height: 26px; }
.site-footer .logo-mark { fill: var(--logo-grey); }
.site-footer .logo-word { fill: #fff; stroke: #fff; }
.footer-inner a { color: var(--blue-text); text-decoration: none; }

/* thanks page */
.page-short { min-height: 100vh; display: flex; flex-direction: column; }
.page-short main { flex: 1; }
.thanks-wrap { padding: 120px 0 140px; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-map { max-width: 640px; }
  .event-inner { grid-template-columns: 1fr; gap: 14px; }
  .event-when { border-right: 0; padding-right: 0; }
  .event-inner .btn { justify-self: start; }
  .families { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 36px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
  .site-nav .nav-cta { margin-top: 14px; text-align: center; border-bottom: 0; }

  .hero { padding: 44px 0 48px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .ways { grid-template-columns: 1fr; }
  .way { padding: 28px 24px 30px; }
  .families { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .enquiry-form { padding: 24px 20px; }
  .contact-details li { grid-template-columns: 1fr; gap: 2px; }
  .about-grid { gap: 24px; }

  .map-label { font-size: 19px; stroke-width: 5px; }
  .map-label-home { font-size: 20px; }
  .map-label-region { font-size: 20px; }
}

@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .event-inner { padding: 26px 16px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
}
