/* =========================================================================
   Sopama — dried fruit one-pager
   You normally won't need to touch this file.
   To change brand COLOURS, edit the values in :root below.
   Each product tile's colour is set in index.html (look for  --tile: ).
   ========================================================================= */

:root {
  /* ---- Brand colours (edit these to recolour the whole site) ---- */
  --canvas:      #FCFAF6;   /* page background (warm paper) */
  --ink:         #221A15;   /* main text / dark sections   */
  --ink-soft:    #5A4D43;   /* secondary text              */
  --line:        #E7DECF;   /* hairlines & borders         */
  --apricot:     #E07A2F;   /* lead accent                 */
  --apricot-deep:#C9651E;   /* accent on hover             */
  --tint:        #FBF6EC;   /* soft band background        */

  /* ---- Type ---- */
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body:    'Hanken Grotesk', system-ui, sans-serif;

  --wrap: 1120px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.6;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(56px, 9vw, 112px); }

/* ---------- Headings ---------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h2 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.9rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }

/* ---------- Eyebrow pill ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--apricot-deep);
  background: rgba(224, 122, 47, 0.12);
  padding: 0.4rem 0.8rem; border-radius: 999px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--body); font-weight: 600; font-size: 1rem;
  padding: 0.85rem 1.4rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease,
              box-shadow 0.15s ease, color 0.15s ease;
}
.btn--primary { background: var(--apricot); color: #fff; }
.btn--primary:hover {
  background: var(--apricot-deep); transform: translateY(-2px);
  box-shadow: 0 10px 24px -12px rgba(224, 122, 47, 0.7);
}
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--canvas); }
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.95rem; }

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 250, 246, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 1rem;
}
.brand {
  font-family: var(--display); font-weight: 800; font-size: 1.3rem;
  letter-spacing: -0.02em; text-decoration: none; color: var(--ink);
  white-space: nowrap;
}
.brand span { color: var(--apricot); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; }
.nav-links a {
  text-decoration: none; font-weight: 500; color: var(--ink-soft);
  font-size: 0.98rem; transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(48px, 7vw, 92px); }
.hero .wrap {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero__title { font-size: clamp(2.4rem, 1.6rem + 3.2vw, 3.9rem); margin-block: 1rem; }
.hero__lead {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.22rem);
  color: var(--ink-soft); max-width: 44ch;
}
.hero__cta { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.8rem; }

/* ---------- Image placeholder (swap for real <img> when ready) ---------- */
.ph-img {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; text-align: center;
  border: 2px dashed #D8CBB6; border-radius: 20px;
  background: #F5EEE1; color: #8A775E;
  padding: 2rem; min-height: 320px; font-weight: 500;
}
.ph-img .icon { font-size: 1.7rem; line-height: 1; }
.ph-img small { font-size: 0.85rem; color: #A8957B; }

/* ---------- Trust strip ---------- */
.trust {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--tint);
}
.trust .wrap {
  display: flex; flex-wrap: wrap; gap: 1rem 2.4rem;
  justify-content: center; padding-block: 1.1rem;
}
.trust__item {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-weight: 600; color: var(--ink); font-size: 0.98rem;
}
.trust__item::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--apricot);
}

/* ---------- Product range (the palette wall) ---------- */
.range__head { max-width: 60ch; margin-bottom: clamp(28px, 4vw, 48px); }
.range__head p { color: var(--ink-soft); margin-top: 0.8rem; }
.range__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}
.tile {
  position: relative; min-height: 260px; border-radius: 18px; overflow: hidden;
  display: flex; align-items: flex-end;
  background-color: var(--tile, #8a8a8a);  /* colour comes from index.html */
  background-size: cover; background-position: center;
  text-decoration: none; color: #fff; isolation: isolate;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tile::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(20,12,6,0) 35%, rgba(20,12,6,0.55) 100%);
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(34,26,21,0.55); }
.tile__body { position: relative; z-index: 1; padding: 1.2rem 1.3rem 1.25rem; }
.tile__name { color: #fff; font-size: 1.3rem; }
.tile__note { color: rgba(255,255,255,0.88); font-size: 0.95rem; margin-top: 0.15rem; }

/* ---------- About / story ---------- */
.about .wrap {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.about__text p { color: var(--ink-soft); }
.about__text p + p { margin-top: 1rem; }
.about__text .eyebrow { margin-bottom: 1rem; }
.about__text h2 { margin-bottom: 0.4rem; }

/* ---------- How it works (a real sequence → numbered) ---------- */
.steps { background: var(--tint); }
.steps__head { max-width: 55ch; margin-bottom: clamp(28px, 4vw, 48px); }
.steps__head p { color: var(--ink-soft); margin-top: 0.8rem; }
.steps__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 32px);
}
.step {
  background: #FFFDF9; border: 1px solid var(--line);
  border-radius: 18px; padding: clamp(1.4rem, 2vw, 2rem);
}
.step__num {
  font-family: var(--display); font-weight: 800; font-size: 1.05rem;
  width: 2.4rem; height: 2.4rem; display: flex; align-items: center;
  justify-content: center; border-radius: 50%;
  background: var(--apricot); color: #fff; margin-bottom: 1rem;
}
.step h3 { margin-bottom: 0.4rem; }
.step p { color: var(--ink-soft); }

/* ---------- Contact (dark closing band) ---------- */
.contact { background: var(--ink); color: #F5EEE1; }
.contact .wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px); align-items: start;
}
.contact h2 { color: #fff; }
.contact__lead { color: rgba(245,238,225,0.8); margin-top: 1rem; max-width: 40ch; }
.contact__details { margin-top: 1.8rem; display: grid; gap: 1.1rem; }
.contact__row { display: grid; gap: 0.15rem; }
.contact__row .label {
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(245,238,225,0.55);
}
.contact__row a, .contact__row span { color: #F5EEE1; text-decoration: none; font-weight: 500; }
.contact__row a:hover { color: var(--apricot); }

/* form */
.form {
  display: grid; gap: 0.9rem;
  background: #2B211B; padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 20px; border: 1px solid #3A2E26;
}
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: rgba(245,238,225,0.85); }
.field input, .field textarea {
  font-family: var(--body); font-size: 1rem; width: 100%;
  padding: 0.8rem 0.9rem; border-radius: 12px;
  border: 1px solid #46382F; background: #1E1611; color: #F5EEE1;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #9A8B7C; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--apricot);
  box-shadow: 0 0 0 3px rgba(224,122,47,0.25);
}
.form .btn { justify-content: center; margin-top: 0.4rem; }
.form__note { font-size: 0.82rem; color: rgba(245,238,225,0.6); margin-top: 0.2rem; }
.hp { position: absolute; left: -9999px; }  /* spam honeypot, leave empty */

/* ---------- Footer ---------- */
.footer { background: var(--canvas); border-top: 1px solid var(--line); }
.footer .wrap {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  justify-content: space-between; align-items: center; padding-block: 2.4rem;
}
.footer__brand { font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.footer__brand span { color: var(--apricot); }
.footer__links { display: flex; gap: 1.2rem; list-style: none; }
.footer__links a {
  text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: 0.95rem;
}
.footer__links a:hover { color: var(--ink); }
.footer__meta {
  width: 100%; color: #A8957B; font-size: 0.85rem;
  border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: 0.4rem;
}

/* ---------- Accessibility: visible keyboard focus ---------- */
a:focus-visible, .btn:focus-visible, button:focus-visible {
  outline: 3px solid var(--apricot); outline-offset: 3px; border-radius: 6px;
}

/* ---------- Scroll reveal (degrades gracefully without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap, .about .wrap, .contact .wrap { grid-template-columns: 1fr; }
  .hero__media { order: -1; }            /* image above text on mobile, optional */
}
@media (max-width: 820px) {
  .range__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .steps__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }          /* short page → menu hidden on phones */
}
@media (max-width: 480px) {
  .range__grid { grid-template-columns: 1fr; }
  .brand { font-size: 1.15rem; }
  .site-nav .wrap { padding-inline: 16px; }
  .wrap { padding-inline: 18px; }
  .ph-img { min-height: 230px; }
}
