/* ============================================================
   BLACK BEANS COFFEE CO. — brand tokens
   Ivory & burgundy, estate-ledger typography, botanical restraint.
   ============================================================ */

:root {
  --ivory: #ECE9E6;
  --cream: #F6F3EE;
  --burgundy: #351210;
  --burgundy-soft: #4A1E1B;
  --copper: #B36425;
  --espresso: #1C1410;
  --line: rgba(53, 18, 16, 0.16);
  --line-soft: rgba(53, 18, 16, 0.08);

  --serif: 'Times New Roman', Georgia, 'Iowan Old Style', serif;
  --sans: Calibri, 'Segoe UI', 'Candara', Optima, sans-serif;

  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--espresso);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--burgundy);
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; }
h3 { font-size: 1.3rem; line-height: 1.25; }

p { max-width: 62ch; }

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

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

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(236, 233, 230, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  background: var(--burgundy);
  color: var(--ivory);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--serif);
  color: var(--burgundy);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.15;
}

.brand-name span {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.68rem;
  color: var(--copper);
  letter-spacing: 0.14em;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.main-nav a {
  text-decoration: none;
  color: var(--espresso);
  font-size: 0.96rem;
  position: relative;
  padding: 6px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.main-nav a[aria-current="page"] {
  color: var(--burgundy);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--burgundy);
  position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 84px;
    left: 0; right: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 32px 20px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .nav-toggle { display: flex; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 92px 0 76px;
  overflow: hidden;
}

.hero-eyebrow {
  font-family: var(--sans);
  color: var(--copper);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-lede {
  margin-top: 20px;
  font-size: 1.12rem;
  color: var(--burgundy-soft);
}

.hero-art {
  justify-self: end;
  opacity: 0.92;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { justify-self: start; width: 60%; }
}

/* ---------- generic section rhythm ---------- */

section { padding: 76px 0; }
section + section { border-top: 1px solid var(--line-soft); }

.section-head {
  max-width: 60ch;
  margin-bottom: 44px;
}

.section-tag {
  font-size: 0.82rem;
  color: var(--copper);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.band {
  background: var(--burgundy);
  color: var(--ivory);
}
.band h2, .band h3 { color: var(--ivory); }
.band .section-tag { color: #D9A26B; }
.band p { color: #E4D9D6; }
.band .journey-step h4 { color: var(--ivory); }
.band .journey-step p { color: #C9B0AC; }
.band .journey-step .num { background: transparent; border-color: #D9A26B; color: #D9A26B; }
.band .journey::before { background: rgba(236, 233, 230, 0.22); }

/* ---------- about page specifics ---------- */

.regions-panel {
  border: 1px solid var(--line);
  background: var(--cream);
  padding: 36px 40px;
}

.regions-panel h3 {
  margin-bottom: 4px;
}

.regions-panel .sub {
  color: var(--burgundy-soft);
  font-size: 0.92rem;
  margin-bottom: 22px;
}

.region-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  columns: 2;
  column-gap: 24px;
}

.region-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--serif);
  color: var(--espresso);
  break-inside: avoid;
}

.region-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  font-size: 0.88rem;
  color: var(--burgundy-soft);
}

.region-stats strong {
  display: block;
  color: var(--burgundy);
  font-family: var(--serif);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .region-list { columns: 1; }
}

/* journey / process timeline (genuine sequence) */

.journey {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  margin-top: 8px;
}

.journey::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 4%;
  right: 4%;
  height: 1px;
  background: var(--line);
}

.journey-step {
  position: relative;
  padding-top: 44px;
  text-align: left;
  padding-right: 18px;
}

.journey-step .num {
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  border: 1px solid var(--burgundy);
  background: var(--ivory);
  color: var(--burgundy);
  font-family: var(--serif);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.journey-step h4 {
  font-family: var(--serif);
  font-size: 0.98rem;
  color: var(--burgundy);
  margin-bottom: 4px;
}

.journey-step p {
  font-size: 0.82rem;
  color: var(--burgundy-soft);
  max-width: 22ch;
}

@media (max-width: 900px) {
  .journey { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .journey::before { display: none; }
}
@media (max-width: 520px) {
  .journey { grid-template-columns: 1fr; }
}

.closer {
  text-align: center;
  padding: 88px 0;
}
.closer h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--burgundy);
  color: var(--burgundy);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover { background: var(--burgundy); color: var(--ivory); }

.btn-solid {
  background: var(--burgundy);
  color: var(--ivory);
}
.btn-solid:hover { background: var(--copper); border-color: var(--copper); color: var(--espresso); }

.btn-ivory {
  border-color: var(--ivory);
  color: var(--ivory);
}
.btn-ivory:hover { background: var(--ivory); color: var(--burgundy); }

/* ---------- catalogue page ---------- */

.sku-hero {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.sku-hero img {
  border: 1px solid var(--line);
}

@media (max-width: 860px) {
  .sku-hero { grid-template-columns: 1fr; }
}

.spec-table {
  border-top: 1px solid var(--burgundy);
  border-bottom: 1px solid var(--line);
}

.spec-row {
  display: grid;
  grid-template-columns: 160px repeat(3, 1fr);
  border-bottom: 1px solid var(--line-soft);
}

.spec-row.head {
  border-bottom: 1px solid var(--burgundy);
}

.spec-row.head .spec-cell {
  font-family: var(--serif);
  color: var(--burgundy);
  font-size: 1.05rem;
  padding-top: 24px;
}

.spec-label {
  padding: 16px 16px 16px 0;
  color: var(--copper);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  align-self: center;
}

.spec-cell {
  padding: 16px;
  font-size: 0.92rem;
  align-self: center;
  border-left: 1px solid var(--line-soft);
}

@media (max-width: 760px) {
  .spec-table { overflow-x: auto; }
  .spec-row { grid-template-columns: 120px repeat(3, minmax(150px,1fr)); min-width: 640px; }
}

.origin-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.origin-card {
  border: 1px solid var(--line);
  padding: 26px 28px;
  background: var(--cream);
}

.origin-card.soon {
  background: transparent;
  border-style: dashed;
}

.origin-card .tag {
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--copper);
  margin-bottom: 8px;
}

@media (max-width: 700px) {
  .origin-strip { grid-template-columns: 1fr; }
}

/* ---------- contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.contact-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}

.contact-list .k {
  color: var(--copper);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  flex-shrink: 0;
  width: 120px;
}

.contact-list .v a { text-decoration: none; }
.contact-list .v a:hover { color: var(--copper); }

.offices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
}

.office {
  border-left: 2px solid var(--copper);
  padding-left: 16px;
}

.office h4 {
  font-family: var(--serif);
  color: var(--burgundy);
  font-size: 0.98rem;
}

.office p { margin: 4px 0 0; font-size: 0.9rem; color: var(--burgundy-soft); }

.qr-block {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--line);
  background: var(--cream);
  padding: 20px;
}

.qr-block img {
  width: 96px;
  height: 96px;
  border: 1px solid var(--line);
  background: #fff;
}

.qr-block .qr-text h4 {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--burgundy);
  margin-bottom: 4px;
}
.qr-block .qr-text p { font-size: 0.86rem; color: var(--burgundy-soft); margin: 0; }

form.contact-form {
  border: 1px solid var(--line);
  padding: 36px;
  background: var(--cream);
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 0.82rem;
  color: var(--copper);
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--espresso);
  padding: 10px 2px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom: 1px solid var(--burgundy);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.form-note {
  font-size: 0.8rem;
  color: var(--burgundy-soft);
  margin-top: 10px;
}

.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  display: none;
}
.form-status.show { display: block; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--burgundy);
  color: var(--ivory);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}

.site-footer .brand-name { color: var(--ivory); }
.site-footer .brand-name span { color: #D9A26B; }

.footer-tagline {
  margin-top: 14px;
  font-family: var(--serif);
  font-style: italic;
  color: #D9CFCB;
  font-size: 0.98rem;
}

.footer-col h5 {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: #D9A26B;
  margin: 0 0 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li { margin-bottom: 10px; }
.footer-col a { text-decoration: none; color: #E4D9D6; font-size: 0.92rem; }
.footer-col a:hover { color: var(--ivory); }

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(236,233,230,0.16);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.8rem;
  color: #C9B9B5;
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
