/* ClearPath Export Solutions NZ – site styles */

:root {
  --navy: #14304f;
  --navy-deep: #0e2440;
  --teal: #1f8a70;
  --teal-dark: #176b57;
  --teal-light: #7fd1b9;
  --ivory: #f4f3ef;
  --sand: #e8c28a;
  --line: #d9d5c9;
  --text: #14304f;
  --muted: #3e4f60;
  --mist: #c9d3da;

  --font-display: 'Source Serif 4', Georgia, serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, sans-serif;

  --radius: 8px;
  --gutter: 80px;
}

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

html {
  scroll-behavior: smooth;
  /* keep anchored sections clear of the sticky header */
  scroll-padding-top: 108px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--ivory);
}

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

a { color: var(--teal-dark); }
a:hover { color: var(--navy); }

h1, h2, h3 { margin: 0; line-height: 1.15; }
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 3.2vw, 42px);
}
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font: 600 16px/1 var(--font-body);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-sm { min-height: 44px; padding: 12px 20px; font-size: 15px; }
.btn-accent { background: var(--teal); color: #fff; }
.btn-accent:hover { background: var(--teal-dark); color: #fff; }
.btn-ghost { border-color: var(--mist); color: var(--ivory); }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn-dark { background: var(--navy); color: var(--ivory); white-space: nowrap; }
.btn-dark:hover { background: var(--navy-deep); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sand);
}
.eyebrow-dark { color: var(--teal-dark); margin-bottom: 14px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  color: var(--ivory);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ivory); }
.brand:hover { color: #fff; }
.brand-badge { width: 52px; height: 52px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 24px; }
.brand-tag { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--teal-light); margin-top: 4px; }

.main-nav { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.main-nav a:not(.btn) { color: var(--ivory); text-decoration: none; }
.main-nav a:not(.btn):hover { color: var(--teal-light); }

/* Mobile menu (hidden on desktop) */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(201, 211, 218, .4);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ivory);
  cursor: pointer;
}
.menu-toggle .icon-close { display: none; }
.menu-open .menu-toggle .icon-open { display: none; }
.menu-open .menu-toggle .icon-close { display: inline; }
.mobile-menu { display: none; }
.hero-art-mobile { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 600px;
  background: var(--navy);
  overflow: hidden;
  display: flex;
  align-items: flex-start;
}
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-content {
  position: relative;
  width: 100%;
  padding-top: 88px;
  padding-bottom: 88px;
  color: var(--ivory);
}
.hero-content > * { max-width: 540px; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 56px);
  max-width: 610px;
  line-height: 1.05;
  margin: 20px 0 22px;
}
.hero .lead { font-size: 19px; line-height: 1.5; color: var(--mist); margin-bottom: 30px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 0 0 88px; }
.section-alt { background: #ebe8df; }

/* How it works */
.steps {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.step { padding-top: 20px; border-top: 2px solid var(--navy); display: flex; flex-direction: column; gap: 10px; }
.step-num { font-family: var(--font-display); font-size: 38px; color: var(--teal); line-height: 1; }
.step p { color: var(--muted); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}
.about-copy h2 { margin-bottom: 24px; }
.about-copy p + p { margin-top: 16px; }
.about-copy p { color: var(--muted); }
.founder-note {
  margin-top: 28px !important;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-style: italic;
}
.values {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.values li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.values h3 { font-size: 18px; margin-bottom: 8px; }
.values h3::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  background: var(--teal);
  margin-bottom: 14px;
}
.values p { font-size: 15px; color: var(--muted); }

/* Who we help */
.who-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.who-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.who-card h3 { margin-bottom: 8px; }
.who-card p { color: var(--muted); }

/* Pricing */
.pricing-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 44px 48px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.pricing-title { font-size: 30px; margin-bottom: 8px; }
.pricing-card p { color: var(--muted); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px;
  align-items: start;
}
.contact-grid h2 { margin-bottom: 18px; }
.contact-grid p { color: var(--muted); }
.contact-direct { margin-top: 20px; font-weight: 600; color: var(--navy) !important; }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
}
.contact-form label { font-size: 14px; font-weight: 600; margin-top: 8px; }
.contact-form input,
.contact-form textarea {
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid #b9b4a6;
  border-radius: 6px;
  background: var(--ivory);
  color: var(--text);
}
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.contact-form .btn { margin-top: 16px; align-self: flex-start; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--mist); font-size: 14px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 32px;
  padding-bottom: 32px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  :root { --gutter: 40px; }
  /* Header: logo + menu button */
  .header-inner { padding-top: 12px; padding-bottom: 12px; }
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .menu-open .mobile-menu {
    display: flex;
    flex-direction: column;
    padding: 8px var(--gutter) 24px;
    border-top: 1px solid rgba(201, 211, 218, .2);
  }
  .mobile-menu a:not(.btn) {
    padding: 14px 0;
    color: var(--ivory);
    text-decoration: none;
    font-size: 18px;
    border-bottom: 1px solid rgba(201, 211, 218, .15);
  }
  .mobile-menu .btn { margin-top: 20px; }

  /* Hero: text first, then the full ship illustration */
  .hero { min-height: 0; flex-direction: column; }
  .hero-art { display: none; }
  .hero-art-mobile { display: block; width: 100%; height: auto; aspect-ratio: 400 / 250; }
  .hero-content { padding-top: 56px; padding-bottom: 16px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }
  html { scroll-padding-top: 84px; }
  body { font-size: 16px; }
  .brand-badge { width: 44px; height: 44px; }
  .brand-name { font-size: 20px; }
  .hero h1 { font-size: 36px; margin: 14px 0 16px; }
  .hero-content { padding-top: 44px; padding-bottom: 8px; }
  .hero .lead { font-size: 17px; margin-bottom: 24px; }
  .eyebrow { font-size: 12px; letter-spacing: .12em; }
  .btn-row { flex-direction: column; gap: 10px; }
  .btn-row .btn { width: 100%; }

  .section { padding: 64px 0; }
  .section-tight { padding: 0 0 64px; }
  .steps, .who-grid, .values { grid-template-columns: 1fr; }
  .pricing-card { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ===== Success popup ===== */
.popup {
  border: 0;
  border-radius: var(--radius);
  padding: 32px;
  max-width: 400px;
  width: calc(100% - 40px);
  text-align: center;
  background: var(--ivory);
  color: var(--text);
  box-shadow: 0 20px 60px rgba(14, 36, 64, .35);
}
.popup::backdrop { background: rgba(14, 36, 64, .6); }
.popup h3 { font-family: var(--font-display); font-size: 26px; margin: 0 0 10px; }
.popup p { color: var(--muted); margin: 0 0 22px; }
