/* ==========================================================================
   Nova Coffee Trading PLC — shared stylesheet
   Palette approximated from the Nova logo. VERIFY exact values against
   NOVA_COFFEE_L.png before launch and adjust the variables below only.
   ========================================================================== */

:root {
  /* Brand color tokens */
  --green:       #628E4F;  /* primary logo green — sampled from NOVA_COFFEE_L.png */
  --green-deep:  #49703A;  /* deeper shade of the logo green */
  --green-dark:  #30492A;  /* darkest tint for text-on-green depth */
  --gold:        #E6A12C;  /* sunburst gold — sampled from NOVA_COFFEE_L.png */
  --gold-soft:   #F2C878;  /* light gold for tints and rays */
  --ink:         #1C1C1A;  /* near-black text */
  --cream:       #FBF8F1;  /* warm off-white background */
  --cream-deep:  #F3EDDF;  /* darker cream for cards / alternate bands */
  --line:        #E4DCC9;  /* hairline borders on cream */

  /* Type tokens */
  --font-display: "Young Serif", Georgia, serif;
  --font-body:    "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "Spline Sans Mono", "Courier New", monospace;

  /* Layout tokens */
  --max: 1120px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 28, 26, 0.08);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-deep); }
a:hover { color: var(--green); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
p  { margin: 0 0 1em; }

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }

/* Mono eyebrow label used above headings */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 1.6em; height: 2px;
  background: var(--gold);
}
.on-dark .eyebrow { color: var(--gold-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-gold  { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #f0b04a; color: var(--ink); }
.btn-green { background: var(--green-deep); color: #fff; }
.btn-green:hover { background: var(--green); color: #fff; }
.btn-ghost { border-color: var(--green-deep); color: var(--green-deep); background: transparent; }
.btn-ghost:hover { background: var(--green-deep); color: #fff; }
.on-dark .btn-ghost { border-color: rgba(255,255,255,0.7); color: #fff; }
.on-dark .btn-ghost:hover { background: rgba(255,255,255,0.12); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(28,28,26,0.08); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 0.8rem; padding-bottom: 0.8rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand img { height: 48px; width: auto; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem; color: var(--ink); line-height: 1.1;
}
.brand-name small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--green-deep);
}

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.site-nav a {
  text-decoration: none; color: var(--ink);
  font-weight: 500; font-size: 0.98rem;
  padding: 0.3em 0.1em;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.site-nav a:hover { color: var(--green-deep); border-bottom-color: var(--gold); }
.site-nav a[aria-current="page"] { color: var(--green-deep); border-bottom-color: var(--green-deep); }
.site-nav .btn { border-bottom: none; padding: 0.6em 1.3em; font-size: 0.95rem; }

.nav-toggle {
  display: none;
  background: none; border: 2px solid var(--green-deep); border-radius: 8px;
  padding: 0.45em 0.6em; cursor: pointer; color: var(--green-deep);
}
.nav-toggle svg { display: block; }

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch;
    padding: 1rem var(--pad) 1.5rem;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.7em 0.2em; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 0.8rem; text-align: center; }
}

/* ---------- Hero with sunburst backdrop (signature motif) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(4.5rem, 11vw, 8.5rem) 0;
}
.hero .rays {
  position: absolute; inset: 0; margin: auto;
  width: min(160vw, 1400px); height: min(160vw, 1400px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }
.hero p.lede {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  max-width: 620px; margin: 0 auto 2rem;
  color: #45443f;
}
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero .amharic {
  font-size: 0.9em;
  color: var(--green-deep);
  white-space: nowrap;
}

/* Ray-tick divider between sections (echo of the logo rays) */
.ray-divider {
  display: flex; justify-content: center; gap: 6px;
  padding: 0; height: 18px; align-items: flex-end;
}
.ray-divider span {
  width: 3px; background: var(--gold);
  border-radius: 2px;
  height: 8px;
}
.ray-divider span:nth-child(2), .ray-divider span:nth-child(6) { height: 12px; }
.ray-divider span:nth-child(3), .ray-divider span:nth-child(5) { height: 15px; }
.ray-divider span:nth-child(4) { height: 18px; background: var(--green-deep); }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem 1.8rem;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
/* Rays fan out along the card's top edge on hover */
.card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: repeating-linear-gradient(90deg,
    var(--gold) 0 10px, transparent 10px 18px);
  transform: scaleX(0.25);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.card:hover::before { transform: scaleX(1); }
.card h3 { color: var(--green-dark); }
.card .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); background: #FDF3E0;
  border: 1px solid #F3DFB6;
  padding: 0.25em 0.8em; border-radius: 999px;
  display: inline-block; margin-bottom: 0.9rem;
}
.card a.more { font-weight: 600; text-decoration: none; }
.card a.more::after { content: " →"; }

/* ---------- Origins strip (home) ---------- */
.origins-strip { background: var(--cream-deep); position: relative; overflow: hidden; }
.origins-strip .ghost {
  position: absolute; right: -0.05em; bottom: -0.28em;
  font-family: var(--font-display);
  font-size: clamp(8rem, 24vw, 18rem);
  color: rgba(91, 154, 71, 0.09);
  line-height: 1; user-select: none; pointer-events: none;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 0.7rem; position: relative; }
.chip {
  font-family: var(--font-mono);
  font-size: 0.85rem; letter-spacing: 0.06em;
  text-decoration: none; color: var(--green-dark);
  background: #fff; border: 1px solid var(--line);
  padding: 0.55em 1.2em; border-radius: 999px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.chip:hover { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }

/* ---------- Process (real sequence → numbered) ---------- */
.process-list { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 0; }
.process-list li {
  counter-increment: step;
  display: grid; grid-template-columns: 64px 1fr; gap: 1.4rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.process-list li:last-child { border-bottom: none; }
.process-list li::before {
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 1.4rem; color: var(--gold);
  border: 2px solid var(--gold-soft); border-radius: 50%;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
}
.process-list h3 { margin-bottom: 0.25em; font-size: 1.2rem; }
.process-list p { margin: 0; color: #45443f; }

/* ---------- Dark green band (sustainability, CTA) ---------- */
.on-dark {
  background: var(--green-dark);
  color: #F3F1E8;
}
.on-dark h2, .on-dark h3 { color: #fff; }
.on-dark p { color: #DCE5D2; }
.on-dark a { color: var(--gold-soft); }
.cta-band { text-align: center; position: relative; overflow: hidden; }
.cta-band .rays { position: absolute; inset: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 900px; height: 900px; opacity: 0.14; pointer-events: none; }
.cta-band .wrap { position: relative; }

.two-col { display: grid; gap: 2.5rem; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

/* Traceability checklist.
   Note: the ✦ marker is absolutely positioned rather than a grid column —
   grid turns inline children like <strong> into separate grid items,
   which shredded the layout when items began with bold lead-ins. */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.check-list li { position: relative; padding-left: 1.9rem; }
.check-list li::before {
  content: "✦";
  position: absolute; left: 0; top: 0;
  color: var(--gold); font-size: 1rem; line-height: 1.65;
}

/* ---------- About page ---------- */
.values-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.mv-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .mv-grid { grid-template-columns: 1fr; } }
.mv-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.8rem; }
.mv-card .eyebrow { margin-bottom: 0.6rem; }

/* ---------- Coffees page ---------- */
.origin-card table {
  width: 100%; border-collapse: collapse;
  font-family: var(--font-mono); font-size: 0.82rem;
  margin-top: 1rem;
}
.origin-card td {
  padding: 0.45em 0; border-top: 1px dashed var(--line);
  vertical-align: top;
}
.origin-card td:first-child {
  color: var(--green-deep); text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 0.72rem;
  width: 38%; padding-right: 0.8em;
}
.placeholder { color: #9a8f74; font-style: italic; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr 1.2fr; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem 1.8rem;
}
.contact-card dl { margin: 0; }
.contact-card dt {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--green-deep); margin-top: 1.2rem;
}
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 0.2rem 0 0; }

form.inquiry { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line);
  border-radius: 10px; padding: 0.7em 0.9em;
  transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--green); outline: none;
  box-shadow: 0 0 0 3px rgba(91,154,71,0.18);
}
.field-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.88rem; color: #6b675c; }
.map-embed {
  width: 100%; aspect-ratio: 16 / 9;
  border: 1px solid var(--line); border-radius: var(--radius);
  margin-top: 2.5rem;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem); text-align: center; }
.page-hero p { max-width: 640px; margin: 0 auto; color: #45443f; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--cream-deep);
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 2rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  margin-bottom: 2.5rem;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand img { height: 44px; }
.site-footer h4 {
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--green-deep); margin: 0 0 0.8rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { text-decoration: none; }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em;
  color: #6b675c;
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Page-load reveal for the hero */
.hero-content > * { opacity: 0; transform: translateY(18px); animation: rise 0.8s ease forwards; }
.hero-content > *:nth-child(2) { animation-delay: 0.12s; }
.hero-content > *:nth-child(3) { animation-delay: 0.24s; }
.hero-content > *:nth-child(4) { animation-delay: 0.36s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-content > * { animation: none; opacity: 1; transform: none; }
  .btn, .card, .card::before { transition: none; }
}
