/* Atlas Nord Trading
   Palette: cool Nordic paper and ink, zellige green for action, saffron for Moroccan origin. */
:root {
  --paper: #f2f4f3;
  --paper-2: #e6ecea;
  --white: #ffffff;
  --ink: #14212b;
  --ink-soft: #4a5862;
  --fjord: #173d54;
  --zellige: #0e6e5c;
  --zellige-dark: #0a5143;
  --saffron: #e0a526;
  --line: #cdd6d4;

  --font-display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Public Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 136px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--zellige); }
a:hover { color: var(--zellige-dark); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: 64ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header: transparent over the hero, solid once scrolled */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--white); transition: background-color .3s, color .3s, box-shadow .3s; }
.site-header.is-solid { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.brand svg { width: 30px; height: 30px; }
.brand:hover { color: inherit; }
nav { display: flex; align-items: center; gap: 22px; }
nav ul { list-style: none; display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; }
.lang-switch { display: flex; border: 1.5px solid currentColor; border-radius: 6px; overflow: hidden; }
.lang-switch button { font: 600 .8rem/1 var(--font-body); letter-spacing: .02em; background: none; border: 0; color: inherit; padding: 8px 10px; cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--white); color: var(--ink); }
.site-header.is-solid .lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.lang-switch button:focus-visible { outline-offset: -3px; }
nav a { color: inherit; text-decoration: none; font-size: .95rem; font-weight: 500; }
nav a:hover { color: inherit; opacity: .75; }
nav a.nav-cta { background: var(--zellige); color: var(--white); padding: 10px 18px; border-radius: 6px; }
nav a.nav-cta:hover { background: var(--zellige-dark); opacity: 1; }
.nav-toggle { display: none; }

/* Buttons */
.btn {
  display: inline-block; font: 600 1rem/1 var(--font-body);
  padding: 16px 24px; border-radius: 6px; text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background-color .2s, color .2s;
}
.btn-primary { background: var(--zellige); color: var(--white); }
.btn-primary:hover { background: var(--zellige-dark); color: var(--white); }
.btn-light { color: var(--white); border-color: rgba(255,255,255,.8); }
.btn-light:hover { background: var(--white); color: var(--ink); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: var(--white); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,22,30,.72) 0%, rgba(10,22,30,.45) 40%, rgba(10,22,30,0) 70%),
    linear-gradient(180deg, rgba(10,22,30,.5) 0%, rgba(10,22,30,.1) 30%, rgba(10,22,30,.35) 70%, rgba(10,22,30,.8) 100%);
}
.hero-inner { position: relative; width: 100%; padding-top: calc(var(--header-h) + 64px); padding-bottom: 56px; }
.hero-title { max-width: 15ch; }
.hero-title .word { display: inline-block; }
.hero-lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 52ch; color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-strip { position: relative; border-top: 1px solid rgba(255,255,255,.25); background: rgba(10,22,30,.35); backdrop-filter: blur(6px); }
.strip-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0 auto; padding-top: 22px; padding-bottom: 22px; }
.strip-row dt { font-family: var(--font-display); font-weight: 600; color: var(--saffron); font-size: .95rem; }
.strip-row dd { margin: 2px 0 0; font-size: .92rem; line-height: 1.45; color: rgba(255,255,255,.88); }

/* Sections */
.section { padding: var(--section-y) 0; }
.section-tint { background: var(--paper-2); }
.section-ink { background: var(--fjord); color: #eef3f4; }
.section-head { margin-bottom: 44px; max-width: 720px; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }
.section-ink .section-head p, .section-ink .fineprint { color: #bfd0d8; }
.fineprint { font-size: .85rem; color: var(--ink-soft); margin-top: 20px; }

/* Intro */
.intro-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.intro-copy p { color: var(--ink-soft); font-size: 1.08rem; }
.intro-media { margin: 0; overflow: hidden; border-radius: 10px; aspect-ratio: 4 / 3; }
.intro-media img { width: 100%; height: 118%; object-fit: cover; }

/* Product explorer */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.tab {
  font: 600 .98rem var(--font-body); color: var(--ink); background: transparent;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 18px; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.tab:hover { border-color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }

.product-panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: start; background: var(--white); border-radius: 12px; padding: clamp(16px, 2.5vw, 28px); }
.product-panel:focus-visible { outline-offset: 4px; }
.pp-media { border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; position: sticky; top: calc(var(--header-h) + 20px); }
.pp-media img { width: 100%; height: 100%; object-fit: cover; }
.pp-body h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 700; margin-bottom: .35em; }
.pp-summary { color: var(--ink-soft); }
.pp-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pp-facts dt { font-size: .82rem; color: var(--ink-soft); }
.pp-facts dd { margin: 2px 0 0; font-weight: 600; font-size: .95rem; line-height: 1.4; }
.pp-label { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin: 0 0 4px; }
.pp-basis { font-size: .9rem; color: var(--ink-soft); margin: 0 0 10px; }
.calibre-table { width: 100%; border-collapse: collapse; font-size: .95rem; margin-bottom: 8px; }
.calibre-table th, .calibre-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--paper-2); }
.calibre-table thead th { font-size: .8rem; font-weight: 600; color: var(--ink-soft); border-bottom: 1.5px solid var(--ink); }
.calibre-table tbody th { font-family: var(--font-display); font-weight: 700; width: 40%; }
.calibre-table tbody tr:nth-child(odd) { background: #f7f9f8; }
.pp-note { font-size: .88rem; color: var(--ink-soft); }
.pp-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.pp-lists ul { margin: 0; padding-left: 18px; font-size: .93rem; }
.pp-lists li { margin-bottom: 3px; }
.pp-lists li::marker { color: var(--zellige); }

/* Season calendar */
.calendar { background: var(--white); border-radius: 12px; padding: clamp(16px, 2.5vw, 28px); overflow-x: auto; }
.cal-row { display: grid; grid-template-columns: 150px repeat(12, minmax(34px, 1fr)); align-items: center; gap: 4px; min-width: 620px; }
.cal-row + .cal-row { margin-top: 6px; }
.cal-head { font-size: .8rem; color: var(--ink-soft); font-weight: 600; margin-bottom: 4px; }
.cal-head span { text-align: center; padding: 4px 0; border-radius: 4px; }
.cal-head span.is-now { background: var(--saffron); color: var(--ink); }
.cal-name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.cal-cell { height: 26px; border-radius: 4px; background: var(--paper-2); }
.cal-cell.on { background: var(--zellige); transform-origin: left center; }
.cal-legend { display: flex; gap: 20px; margin-top: 18px; font-size: .85rem; color: var(--ink-soft); }
.cal-legend span::before { content: ""; display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: 8px; vertical-align: -2px; background: var(--zellige); }
.cal-legend span.off::before { background: var(--paper-2); border: 1px solid var(--line); }

/* Steps: a real sequence */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); }
.steps li { counter-increment: step; padding: 0 24px 0 0; position: relative; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--zellige); color: var(--zellige);
  font: 700 1.1rem var(--font-display); margin-bottom: 20px; position: relative; z-index: 2;
}
.steps li::after { content: ""; position: absolute; top: 21px; left: 44px; right: 0; height: 3px; background: var(--line); }
.steps .step-line { position: absolute; top: 21px; left: 44px; right: 0; height: 3px; background: var(--zellige); transform-origin: left; z-index: 1; }
.steps li:last-child::after, .steps li:last-child .step-line { display: none; }
.steps p { font-size: .95rem; color: var(--ink-soft); }

/* Buyer visit */
.visit-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.visit-media { margin: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; position: sticky; top: calc(var(--header-h) + 20px); }
.visit-media img { width: 100%; height: 100%; object-fit: cover; }
.days { list-style: none; margin: 0 0 36px; padding: 0; }
.days li { position: relative; padding: 0 0 26px 30px; border-left: 3px solid var(--line); }
.days li:last-child { padding-bottom: 4px; }
.days li::before { content: ""; position: absolute; left: -9px; top: 3px; width: 15px; height: 15px; border-radius: 50%; background: var(--saffron); border: 3px solid var(--paper-2); }
.days h3 { margin-bottom: .3em; }
.days p { color: var(--ink-soft); margin-bottom: 0; }
.days .day-label { font-weight: 600; font-size: .85rem; color: var(--zellige); margin-bottom: 2px; }
.visit-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.visit-facts h3 { font-size: 1.1rem; }
.visit-facts ul { margin: 0; padding-left: 18px; font-size: .95rem; color: var(--ink-soft); }
.visit-facts li { margin-bottom: 4px; }
.visit-facts li::marker { color: var(--saffron); }
.visit-facts p { color: var(--ink-soft); font-size: .95rem; }

/* Logistics */
.logistics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.transit { width: 100%; border-collapse: collapse; }
.transit caption { text-align: left; font-size: .88rem; color: #bfd0d8; padding-bottom: 10px; }
.transit th, .transit td { text-align: left; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.18); font-weight: 400; }
.transit thead th { font-size: .82rem; color: #bfd0d8; font-weight: 600; }
.transit tbody td { text-align: right; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--white); }
.transit thead th:last-child { text-align: right; }
.route { margin: 0; max-width: 480px; justify-self: center; width: 100%; }
.route svg { width: 100%; height: auto; }
.leg { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.leg-land { stroke: var(--saffron); }
.leg-sea { stroke: #7fb3cf; stroke-width: 5; }
.leg-north { stroke: #3fb59c; }
.stops circle { stroke: var(--white); stroke-width: 3; }
.stops.origin circle { fill: var(--saffron); }
.stops.dest circle { fill: var(--fjord); }
.stops text { font: 500 14px var(--font-body); fill: #e6eef2; }
.stops text.hub { font: 700 16px var(--font-display); fill: var(--white); }
.leg-note { font: italic 400 13px var(--font-body); fill: #9ec3d6; }

/* Markets */
.markets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 2px solid var(--ink); }
.markets li { padding: 22px 20px 8px 0; }
.markets strong { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin-bottom: 6px; }
.markets span { font-size: .93rem; color: var(--ink-soft); line-height: 1.5; display: block; }

/* About + growers */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.people { display: grid; gap: 18px; margin-top: 32px; }
.person { display: flex; align-items: center; gap: 18px; }
.avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--line); display: grid; place-items: center; font-size: .75rem; color: var(--ink-soft); flex-shrink: 0; }
.person strong { display: block; font-family: var(--font-display); font-size: 1.15rem; }
.person span { color: var(--ink-soft); font-size: .95rem; }
.grower-box { background: var(--white); border-top: 4px solid var(--saffron); border-radius: 0 0 12px 12px; padding: clamp(24px, 3vw, 40px); }
.grower-box h3 { font-size: 1.5rem; }
.grower-box p { color: var(--ink-soft); }

/* Form */
.contact-alt { color: var(--ink-soft); }
.quote-form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.quote-form label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
.quote-form input, .quote-form select, .quote-form textarea {
  font: 400 1rem var(--font-body); color: var(--ink);
  background: var(--white); border: 1px solid #a9b6b4; border-radius: 6px; padding: 12px 14px; width: 100%;
}
.quote-form textarea { resize: vertical; }
.request-type { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.request-type legend { font-weight: 500; font-size: .95rem; padding: 0; margin-bottom: 8px; }
.quote-form .request-type label {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 16px;
  transition: border-color .2s, background-color .2s;
}
.quote-form .request-type label:has(input:checked) { border-color: var(--zellige); background: #e3f1ed; }
.quote-form .request-type input { width: auto; margin: 0; padding: 0; accent-color: var(--zellige); }
.quote-form [aria-invalid="true"] { border-color: #b3261e; }
.quote-form .btn { justify-self: start; }
.form-error { color: #b3261e; margin: 0; }
.form-done { color: var(--zellige-dark); font-weight: 600; margin: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #c9d2d6; padding: 52px 0; font-size: .92rem; }
.site-footer strong { color: var(--white); font-family: var(--font-display); font-size: 1.15rem; }
.site-footer a { color: var(--white); margin-right: 18px; }
.footer-row { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 1180px) {
  nav { gap: 16px; }
  nav ul { gap: 18px; }
}
@media (max-width: 1020px) {
  .intro-grid, .logistics-grid, .split, .product-panel { grid-template-columns: 1fr; }
  .pp-media, .visit-media { position: static; }
  .visit-grid { grid-template-columns: 1fr; }
  .strip-row { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li { padding: 0 0 0 64px; }
  .steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .steps li::after, .steps .step-line { top: 44px; left: 20px; width: 3px; height: auto; bottom: -28px; right: auto; }
  .steps .step-line { transform-origin: top; }
  .markets { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-toggle {
    display: block; font: 600 .95rem var(--font-body); background: none; border: 1.5px solid currentColor;
    border-radius: 6px; padding: 8px 14px; color: inherit; cursor: pointer;
  }
  nav ul {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px;
  }
  nav ul.open { display: flex; }
  nav { gap: 10px; }
  nav li a { display: block; padding: 12px 0; }
  nav a.nav-cta { text-align: center; margin-top: 8px; }
  .hero-inner { padding-bottom: 36px; }
  .strip-row { grid-template-columns: 1fr 1fr; gap: 14px 18px; padding-top: 16px; padding-bottom: 16px; }
  .strip-row dd { font-size: .82rem; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
  .tab { flex-shrink: 0; }
  .pp-facts { grid-template-columns: 1fr; gap: 10px; }
  .pp-lists, .visit-facts { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .markets { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
