/* =========================================================
   Gozo Mushroom Cooperative — styles
   Palette: deep green, warm cream/sand, terracotta accent
   ========================================================= */

:root {
  --green-900: #163026;
  --green-800: #1d4132;
  --green-700: #2f6b4f;
  --green-600: #3b805f;
  --green-500: #4a9d6f;
  --terracotta: #c4683f;
  --terracotta-dark: #ab572f;
  --cream: #f8f5ed;
  --sand: #efe7d5;
  --sand-dark: #e4dac3;
  --ink: #232a22;
  --ink-soft: #4d564a;
  --white: #ffffff;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(22, 48, 38, .07);
  --shadow-md: 0 14px 40px rgba(22, 48, 38, .12);
  --maxw: 1140px;

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.12;
  color: var(--green-900);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.3rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; color: var(--ink-soft); }

a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--terracotta); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--green-900); color: #fff; padding: 10px 16px;
  border-radius: 8px; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; font-weight: 600; font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s, color .2s, border-color .2s;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terracotta-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--green-700); color: var(--green-800); }
.btn-ghost:hover { background: var(--green-700); color: #fff; }
.btn-sm { padding: .55rem 1.1rem; font-size: .9rem; }
.btn-block { width: 100%; }

.text-link { font-weight: 600; color: var(--green-700); }

.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  font-weight: 700; color: var(--terracotta); margin: 0 0 .75rem;
}
.eyebrow--dark { color: var(--terracotta-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 245, 237, .9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--sand-dark);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--green-900); }
.brand:hover { color: var(--green-900); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; }
.brand-text small { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }

.nav-list { list-style: none; display: flex; align-items: center; gap: 1.6rem; margin: 0; padding: 0; }
.nav-list a { color: var(--green-900); font-weight: 500; font-size: .96rem; }
.nav-list a:hover { color: var(--terracotta); }
.nav-list .btn:hover { color: #fff; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  cursor: pointer; position: relative; border-radius: 10px;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  content: ""; position: absolute; left: 11px; width: 22px; height: 2.4px;
  background: var(--green-900); border-radius: 2px; transition: transform .25s, opacity .2s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.lead { font-size: 1.22rem; color: var(--ink-soft); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.8rem 0 2.4rem; }

.hero-stats { display: flex; gap: 2.4rem; margin: 0; flex-wrap: wrap; }
.hero-stats div { margin: 0; }
.hero-stats dt { font-family: var(--font-head); font-size: 2rem; color: var(--green-700); line-height: 1; }
.hero-stats dd { margin: .3rem 0 0; font-size: .86rem; color: var(--ink-soft); }

/* Hero visual (photo placeholders) */
.hero-visual { position: relative; min-height: 420px; }
.photo-card {
  background:
    linear-gradient(135deg, rgba(47,107,79,.14), rgba(196,104,63,.14)),
    var(--sand);
  border: 1px solid var(--sand-dark); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); position: relative; overflow: hidden;
  display: flex; align-items: flex-end; min-height: 160px;
}
.photo-note {
  font-size: .8rem; color: var(--green-800); background: rgba(255,255,255,.72);
  padding: .3rem .7rem; border-radius: 999px; margin: .8rem; font-weight: 600;
}
.photo-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-card--lg { height: 340px; }
.photo-card--sm { position: absolute; right: -10px; bottom: -22px; width: 55%; height: 180px; }
.hero-visual .photo-card--lg { width: 82%; }

.leaf-badge {
  position: absolute; left: -14px; top: 26px; background: var(--white);
  border-radius: 999px; box-shadow: var(--shadow-sm); padding: .5rem .9rem .5rem .55rem;
  display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .85rem;
  color: var(--green-900); border: 1px solid var(--sand-dark);
}

/* ---------- Strip ---------- */
.strip { background: var(--green-900); color: var(--sand); }
.strip-inner {
  display: flex; flex-wrap: wrap; gap: 1rem 2.4rem; justify-content: center;
  padding: 1rem 22px; font-size: .95rem; font-weight: 500;
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.4rem, 7vw, 6rem) 0; }
.section--tint { background: var(--sand); }
.section--dark { background: var(--green-900); }
.section--dark h2 { color: #fff; }
.section--dark .eyebrow { color: #e8a784; }

.section-head { max-width: 640px; margin: 0 auto clamp(2rem, 4vw, 3.2rem); text-align: center; }
.section-sub { font-size: 1.1rem; }
.section-sub--light { color: var(--sand); }

.two-col {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.two-col--reverse .photo-stack { order: -1; }

/* About feature list */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.feature-list li {
  background: var(--white); border: 1px solid var(--sand-dark); border-left: 4px solid var(--green-500);
  border-radius: var(--radius); padding: 1.2rem 1.4rem; box-shadow: var(--shadow-sm);
}
.feature-list h3 { margin-bottom: .25rem; color: var(--green-800); }
.feature-list p { margin: 0; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  background: var(--white); border: 1px solid var(--sand-dark); border-radius: var(--radius-lg);
  padding: 2rem 1.7rem; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(74,157,111,.14); color: var(--green-700); margin-bottom: 1.1rem;
}
.card h3 { color: var(--green-900); }
.card p { margin: 0; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 1.3rem; }
.steps li { display: flex; gap: 1rem; align-items: flex-start; }
.step-num {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: var(--terracotta); color: #fff; font-weight: 700;
  display: grid; place-items: center; font-family: var(--font-head);
}
.steps h3 { margin-bottom: .15rem; color: var(--green-800); }
.steps p { margin: 0; }

.photo-stack { min-height: 380px; }
.photo-card--tall { height: 440px; align-items: flex-end; }

/* ---------- Produce ---------- */
.produce-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.produce-card {
  background: var(--white); border: 1px solid var(--sand-dark); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.produce-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.produce-photo {
  height: 190px; display: flex; align-items: flex-end;
  background: linear-gradient(135deg, rgba(196,104,63,.22), rgba(47,107,79,.18)), var(--sand);
}
.produce-photo--more { background: linear-gradient(135deg, rgba(47,107,79,.2), rgba(74,157,111,.12)), var(--sand); }
.produce-body { padding: 1.3rem 1.4rem 1.5rem; }
.produce-body h3 { color: var(--green-900); }
.produce-body p { font-size: .96rem; }
.tag {
  display: inline-block; margin-top: .4rem; font-size: .76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--green-700);
  background: rgba(74,157,111,.14); padding: .3rem .7rem; border-radius: 999px;
}
.tag--muted { color: var(--ink-soft); background: var(--sand); }

/* ---------- Join / For farmers ---------- */
.join { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.checks { list-style: none; margin: 1.2rem 0 1.8rem; padding: 0; display: grid; gap: .7rem; }
.checks li { position: relative; padding-left: 1.9rem; color: var(--ink); }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: #fff; font-weight: 700;
  background: var(--green-500); width: 1.35rem; height: 1.35rem; border-radius: 50%;
  display: grid; place-items: center; font-size: .8rem;
}
.join-card {
  background: var(--green-900); color: var(--sand); border-radius: var(--radius-lg);
  padding: 1.8rem; box-shadow: var(--shadow-md);
}
.join-card h3 { color: #fff; margin-top: 1.2rem; }
.join-card h3:first-child { margin-top: 0; }
.join-card p { color: var(--sand); margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-details { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .9rem; }
.contact-details li { display: flex; flex-direction: column; color: var(--sand); }
.contact-details span { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: #e8a784; }
.contact-details a { color: #fff; font-weight: 600; }
.contact-details a:hover { color: #e8a784; }

.contact-form {
  background: var(--cream); border-radius: var(--radius-lg); padding: 1.8rem;
  box-shadow: var(--shadow-md); display: grid; gap: 1rem;
}
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .9rem; color: var(--green-900); }
.field input, .field select, .field textarea {
  font: inherit; padding: .7rem .85rem; border: 1.5px solid var(--sand-dark);
  border-radius: 10px; background: #fff; color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(74,157,111,.18);
}
.field textarea { resize: vertical; }
.form-note { margin: 0; font-size: .9rem; font-weight: 600; min-height: 1.2em; color: var(--green-700); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: var(--sand); padding: 3rem 0 1.6rem; }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between;
  align-items: flex-start; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand { max-width: 340px; }
.site-footer .brand, .site-footer .brand-text strong { color: #fff; }
.site-footer .brand-text small { color: var(--sand); }
.footer-brand p { color: var(--sand); margin: 1rem 0 0; font-size: .95rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-nav a { color: var(--sand); font-weight: 500; }
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between;
  padding-top: 1.4rem;
}
.footer-bottom small { color: rgba(239,231,213,.75); }

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--terracotta); outline-offset: 2px; border-radius: 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .two-col, .join { grid-template-columns: 1fr; }
  .two-col--reverse .photo-stack { order: 0; }
  .hero-visual { min-height: 360px; margin-top: 1rem; }
  .cards, .produce-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-list {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--sand-dark);
    padding: .5rem 22px 1rem; box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-list.open { display: flex; }
  .nav-list li { width: 100%; }
  .nav-list a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--sand-dark); }
  .nav-list .btn { margin-top: .7rem; }
  .cards, .produce-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
