/* ============================================================
   Africa Coffee Park v3 — Public site styles
   Palette: Coffee Editorial (cream / saffron / deep-red / matcha)
   All colors via var(--*) — no hard-coded hex or rgb.
   Works at 360 px width. Respects prefers-reduced-motion.
   ============================================================ */

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--burgundy); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Global focus ring — accessibility */
:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── Staff bar ──────────────────────────────────────────────────────────── */
#staff-bar {
  background: var(--charcoal);
  color: var(--cream);
  padding: 10px 24px;
  text-align: center;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  /* slide-in animation */
  animation: staffBarIn .4s ease both;
}
@keyframes staffBarIn {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
#staff-bar[hidden] { display: none; }
#staff-bar a { color: var(--saffron); font-weight: 700; }
#staff-bar a:hover { color: var(--saffron-dark); }
#staff-bar-close {
  background: none;
  border: none;
  color: var(--cream);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: .6;
  margin-left: 4px;
  padding: 0 4px;
}
#staff-bar-close:hover { opacity: 1; }

/* ── Top bar ─────────────────────────────────────────────────────────────── */
.bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--cream) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}
.brand-row:hover { text-decoration: none; }
.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}
.bar-nav { margin-left: auto; }
.bar-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  align-items: center;
}
.bar-nav a {
  color: var(--charcoal);
  font-weight: 500;
  font-size: 15px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}
.bar-nav a:hover {
  color: var(--burgundy);
  background: color-mix(in oklab, var(--warm-cream) 80%, transparent);
  text-decoration: none;
}
.bar-end {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
}
.cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--charcoal);
  color: var(--cream);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: background .2s, transform .15s;
}
.cta:hover {
  background: var(--espresso);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--cream);
  padding: 12px 0 16px;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; }
.mobile-nav a {
  display: block;
  padding: 10px 24px;
  color: var(--charcoal);
  font-weight: 500;
  font-size: 16px;
}
.mobile-nav a:hover { background: var(--warm-cream); text-decoration: none; }
.mobile-cta {
  display: inline-block;
  margin: 8px 24px 0;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--charcoal);
  color: var(--cream) !important;
  font-weight: 600;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      color-mix(in oklab, var(--espresso) 78%, transparent) 0%,
      color-mix(in oklab, var(--espresso) 55%, transparent) 50%,
      color-mix(in oklab, var(--espresso) 30%, transparent) 100%
    );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 120px 24px 100px;
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--saffron);
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 6.5vw, 76px);
  line-height: 1.05;
  letter-spacing: -.025em;
  color: var(--cream);
  text-shadow: 0 2px 24px var(--shadow-black-35);
  max-width: 820px;
}
.hero h1 em {
  font-style: italic;
  color: color-mix(in oklab, var(--saffron) 90%, var(--cream));
}
.hero p.lead {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: clamp(16px, 1.8vw, 19px);
  color: color-mix(in oklab, var(--cream) 85%, transparent);
  line-height: 1.7;
}
.hero .actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--burgundy);
  color: var(--cream);
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  display: inline-block;
}
.btn-primary:hover {
  background: color-mix(in oklab, var(--burgundy) 80%, black);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px color-mix(in oklab, var(--burgundy) 35%, transparent);
}
.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--glass-white-55);
  color: var(--cream);
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: border-color .2s, background .2s, transform .15s;
  display: inline-block;
}
.btn-ghost:hover {
  border-color: var(--cream);
  background: var(--glass-white-10);
  text-decoration: none;
  transform: translateY(-2px);
}
.hero-scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: var(--cream);
  opacity: .5;
  animation: scrollCue 2.2s ease-in-out infinite;
}
@keyframes scrollCue {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: .5; }
  50%       { transform: translateX(-50%) translateY(8px); opacity: .8; }
}

/* ── Section base ────────────────────────────────────────────────────────── */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 88px 24px;
}
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  letter-spacing: -.02em;
  color: var(--espresso);
  margin-top: 8px;
}
.section p.tag {
  color: var(--saffron-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px;
  margin-bottom: 6px;
}
.section-sub {
  color: color-mix(in oklab, var(--charcoal) 65%, transparent);
  font-size: 17px;
  margin-top: 10px;
  max-width: 640px;
}

/* ── Product grid ────────────────────────────────────────────────────────── */
.products {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 44px;
}
.product {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px color-mix(in oklab, var(--charcoal) 13%, transparent);
}
.product-media {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--warm-cream);
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product:hover .product-media img {
  transform: scale(1.04);
}
.product-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product .name {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--espresso);
  letter-spacing: -.01em;
}
.product .desc {
  color: color-mix(in oklab, var(--charcoal) 68%, transparent);
  font-size: 14px;
  line-height: 1.55;
  flex: 1;
}
.product .pill {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  background: var(--warm-cream);
  border-radius: 999px;
  font-size: 11px;
  color: var(--saffron-dark);
  font-weight: 700;
  letter-spacing: .04em;
  align-self: flex-start;
}

/* ── About ──────────────────────────────────────────────────────────────── */
.about { background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-text h2 { margin-top: 8px; }
.about-text p {
  font-size: 16px;
  margin-top: 18px;
  color: color-mix(in oklab, var(--charcoal) 80%, transparent);
  line-height: 1.75;
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--burgundy);
  border-radius: 2px 0 0 2px;
}
.num {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--burgundy);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.lab {
  color: color-mix(in oklab, var(--charcoal) 60%, transparent);
  font-size: 13px;
  margin-top: 4px;
}

/* About side photo */
.about-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px color-mix(in oklab, var(--charcoal) 18%, transparent);
}
.about-photo img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.about-photo-caption,
.export-photo .about-photo-caption,
.visit-photo .about-photo-caption {
  font-size: 12px;
  color: color-mix(in oklab, var(--charcoal) 55%, transparent);
  margin-top: 8px;
  font-style: italic;
}

/* ── Quote ──────────────────────────────────────────────────────────────── */
.quote {
  background: var(--espresso);
  color: var(--cream);
  padding: 100px 24px;
  overflow: hidden;
  position: relative;
}
.quote::before {
  /* Subtle texture wash */
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 0% 50%, color-mix(in oklab, var(--deep-red) 25%, transparent), transparent 60%),
    radial-gradient(ellipse 80% 60% at 100% 60%, color-mix(in oklab, var(--saffron) 12%, transparent), transparent 55%);
  pointer-events: none;
}
.quote-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 56px;
  position: relative;
  z-index: 1;
}
.quote-portrait {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--saffron);
  box-shadow: 0 8px 32px var(--shadow-black-45);
  filter: grayscale(20%);
}
.quote-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.quote-text { flex: 1; position: relative; }
.quote-mark {
  font-family: var(--font-display);
  font-size: 120px;
  line-height: .7;
  color: var(--saffron);
  opacity: .25;
  position: absolute;
  top: -18px;
  left: -16px;
  pointer-events: none;
  user-select: none;
}
blockquote {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.4;
  letter-spacing: -.01em;
  font-style: italic;
  position: relative;
  z-index: 1;
}
cite {
  display: block;
  margin-top: 20px;
  font-style: normal;
  font-size: 13px;
  color: var(--saffron);
  font-family: var(--font-sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ── Split sections (Export / Visit) ─────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.split.rev > :first-child { order: 2; }
.split.rev > :last-child  { order: 1; }
.split-text h2 { margin-top: 8px; }
.split-text p {
  color: color-mix(in oklab, var(--charcoal) 78%, transparent);
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.7;
}
.bullets {
  padding-left: 20px;
  margin-top: 14px;
  color: color-mix(in oklab, var(--charcoal) 78%, transparent);
}
.bullets li { margin: 8px 0; font-size: 15px; }
.export-photo, .visit-photo {
  margin-top: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 48px color-mix(in oklab, var(--charcoal) 15%, transparent);
}
.export-photo img, .visit-photo img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}

/* ── Form card ──────────────────────────────────────────────────────────── */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 40px 40px;
}
.form-title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--espresso);
  margin-bottom: 22px;
  letter-spacing: -.01em;
}
.form-grid { display: grid; gap: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label {
  font-size: 12px;
  color: color-mix(in oklab, var(--charcoal) 65%, transparent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.req { color: var(--deep-red); }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-size: 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--charcoal);
  transition: border-color .18s, box-shadow .18s;
}
.field input:hover,
.field textarea:hover,
.field select:hover {
  border-color: color-mix(in oklab, var(--saffron) 60%, var(--line));
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--deep-red) 12%, transparent);
}
.field textarea { min-height: 110px; resize: vertical; }
.honey { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form-foot {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 4px;
}
.status {
  font-size: 13px;
  flex: 1;
  line-height: 1.4;
  font-weight: 500;
}
.status.ok { color: var(--matcha-dark); }
.status.err { color: var(--deep-red); }

/* Success check animation */
.check-anim {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999;
  pointer-events: none;
}
.check-anim[hidden] { display: none; }
.check-circle {
  stroke: var(--matcha);
  stroke-width: 2;
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
  animation: drawCircle .6s ease forwards;
}
.check-tick {
  stroke: var(--matcha);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: drawTick .4s ease .5s forwards;
}
@keyframes drawCircle {
  to { stroke-dashoffset: 0; }
}
@keyframes drawTick {
  to { stroke-dashoffset: 0; }
}

/* ── Contact section ─────────────────────────────────────────────────────── */
.contact-section { background: var(--warm-cream); }
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.contact-intro h2 { margin-top: 8px; }
.contact-intro p {
  margin-top: 14px;
  color: color-mix(in oklab, var(--charcoal) 75%, transparent);
  font-size: 16px;
}
.contact-addr {
  font-style: normal;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  color: color-mix(in oklab, var(--charcoal) 80%, transparent);
  line-height: 1.7;
}
.contact-addr a { color: var(--burgundy); font-weight: 600; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.foot {
  background: var(--charcoal);
  color: color-mix(in oklab, var(--cream) 80%, transparent);
  padding: 64px 24px 40px;
}
.foot-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
}
.foot-brand .foot-logo {
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .85;
  margin-bottom: 16px;
}
.foot-tagline {
  font-size: 14px;
  line-height: 1.7;
  max-width: 300px;
  color: color-mix(in oklab, var(--cream) 65%, transparent);
  margin-bottom: 22px;
}
.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid color-mix(in oklab, var(--cream) 20%, transparent);
  color: color-mix(in oklab, var(--cream) 70%, transparent);
  transition: border-color .2s, color .2s, background .2s;
}
.social-link:hover {
  border-color: var(--saffron);
  color: var(--saffron);
  background: var(--glass-white-05);
  text-decoration: none;
}
.foot-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--saffron);
  margin-bottom: 16px;
}
.foot-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.foot-links a {
  font-size: 14px;
  color: color-mix(in oklab, var(--cream) 75%, transparent);
  transition: color .2s;
}
.foot-links a:hover { color: var(--cream); text-decoration: none; }
.foot-addr {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: color-mix(in oklab, var(--cream) 75%, transparent);
}
.foot-addr a { color: var(--saffron); }
.foot-addr a:hover { color: var(--cream); text-decoration: none; }
.foot-copy {
  font-size: 12px;
  color: color-mix(in oklab, var(--cream) 45%, transparent);
  margin-top: 4px;
  line-height: 1.6;
}

/* ── Print styles ────────────────────────────────────────────────────────── */
@media print {
  #staff-bar,
  .bar .cta,
  .hamburger,
  .mobile-nav,
  .hero-scroll-cue,
  .social-links,
  .foot { display: none !important; }

  .bar {
    position: static;
    border-bottom: 2px solid var(--charcoal);
    backdrop-filter: none;
    background: white;
    padding: 12px 24px;
  }
  .hero {
    min-height: auto;
    padding: 48px 24px 32px;
  }
  .hero-bg { display: none; }
  .hero-content { padding: 0; }
  .hero h1, .hero .lead { color: var(--charcoal); text-shadow: none; }
  .hero .actions { display: none; }
  body { background: white; color: black; }
  .section { padding: 32px 24px; }
  .form-card { border: 1px solid var(--line); }
  a[href]:after { content: " (" attr(href) ")"; font-size: 10px; color: gray; }
}

/* ── Responsive breakpoints ──────────────────────────────────────────────── */

/* Tablet: ≤ 1024px */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { max-width: 640px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 36px; }
  .foot-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .foot-brand { grid-column: 1 / -1; }
}

/* Tablet small + large phone: ≤ 768px */
@media (max-width: 768px) {
  .bar-nav { display: none; }
  .hamburger { display: flex; }
  .bar-end .cta { display: none; }

  .hero { min-height: 80vh; }
  .hero-content { padding: 90px 20px 80px; }

  .section { padding: 60px 20px; }

  .split {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .split.rev > :first-child,
  .split.rev > :last-child { order: unset; }

  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }

  .foot-inner { grid-template-columns: 1fr; gap: 32px; }
  .foot-brand { grid-column: auto; }

  .form-card { padding: 24px 20px 28px; }

  .quote-inner { flex-direction: column; gap: 28px; text-align: center; }
  .quote-mark { left: 50%; transform: translateX(-50%); }
  .quote-portrait { width: 90px; height: 90px; }
}

/* Small phone: ≤ 480px */
@media (max-width: 480px) {
  .products { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-foot .btn-primary { text-align: center; }
}

/* Minimum: 360px */
@media (max-width: 360px) {
  .bar-inner { padding: 10px 16px; }
  .brand-logo { height: 30px; }
  .hero h1 { font-size: 30px; }
  .section { padding: 48px 16px; }
}
