/* ==========================================================
   Navabliss – styles
   Colours and type match the approved mockup.
   ========================================================== */

:root {
  --cream: #F7F1E8;
  --sand: #EFE4D4;
  --paper: #FFFDF9;
  --cocoa: #2E2219;
  --cocoa-soft: #4A3B30;
  --cocoa-muted: #5A4334;
  --line: #8C7A6B;
  --line-soft: #E2D3C1;
  --accent: #A8553A;        /* terracotta buttons */
  --accent-text: #8E4630;   /* terracotta text on cream */
  --sage: #5F6F52;
  --blush-light: #E9B9A3;

  --tint-warm: #E9D3BF;
  --tint-floral: #EAD5D3;
  --tint-fresh: #D8E0CF;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 32px);
  --radius: 20px;
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--cocoa);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

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

a { color: var(--accent-text); }
a:hover { color: #6E3322; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 0;
  line-height: 1.1;
}
h1 { font-size: clamp(44px, 7vw, 68px); letter-spacing: -0.01em; line-height: 1.05; }
h2 { font-size: clamp(34px, 5vw, 48px); }
h3 { font-size: 24px; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  background: var(--cocoa);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 10;
}
.skip-link:focus { top: 16px; }

/* ---------- Staging banner (added by main.js off production) ---------- */
.dev-banner {
  background: var(--sage);
  color: #fff;
  font-size: 14px;
  text-align: center;
  padding: 8px var(--gutter);
}

/* ---------- Header ---------- */
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 20px;
}
.wordmark {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--cocoa);
  text-decoration: none;
  margin: 0;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  font-size: 15px;
  font-weight: 500;
}
.nav-list a {
  display: inline-block;
  padding: 10px 0;
  color: var(--cocoa);
  text-decoration: none;
}
.nav-list a:hover { color: var(--accent-text); }

/* ---------- Shared type ---------- */
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow-light { color: var(--blush-light); }
.lead { font-size: 19px; max-width: 30rem; color: var(--cocoa-soft); }
.lead-small { color: var(--cocoa-soft); max-width: 36rem; }
.h-small { font-size: 24px; }
.fine-print { font-size: 14px; color: var(--cocoa-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #8E4630; color: #fff; }
.btn-dark { background: var(--cocoa); color: #fff; }
.btn-dark:hover { background: #4A3628; color: #fff; }
.btn-outline { border-color: var(--cocoa); color: var(--cocoa); background: transparent; }
.btn-outline:hover { background: var(--cocoa); color: #fff; }
.btn-light-outline { border-color: var(--cream); color: var(--cream); background: transparent; }
.btn-light-outline:hover { background: var(--cream); color: var(--cocoa); }
.btn[disabled] {
  cursor: not-allowed;
  border-color: var(--line);
  background: transparent;
  color: var(--cocoa-muted);
}
.btn-block { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- Placeholders ---------- */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.tint-warm { background: var(--tint-warm); }
.tint-floral { background: var(--tint-floral); }
.tint-fresh { background: var(--tint-fresh); }
.placeholder svg { stroke: var(--cocoa-muted); }

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-block: 48px 96px;
}
.hero-copy { flex: 1 1 420px; display: flex; flex-direction: column; gap: 24px; }
.hero-media { flex: 1 1 380px; }
.hero-media .placeholder,
.hero-media img {
  height: clamp(360px, 45vw, 520px);
  width: 100%;
  object-fit: cover;
  border-radius: 280px 280px 24px 24px;
}

/* ---------- Bands & trio ---------- */
.band { background: var(--sand); }
.trio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  padding-block: 56px;
}
.trio > div { display: flex; flex-direction: column; gap: 8px; }
.trio p { color: var(--cocoa-soft); }

/* ---------- Sections ---------- */
.section {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-block: 96px;
}
#bundles { padding-bottom: 24px; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.section-head > div:first-child { display: flex; flex-direction: column; gap: 8px; }

/* ---------- Controls ---------- */
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
#scent-search {
  width: 240px;
  max-width: 100%;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font: inherit;
  font-size: 15px;
  color: var(--cocoa);
}
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--cocoa);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.filter-btn[aria-pressed="true"] {
  background: var(--cocoa);
  border-color: var(--cocoa);
  color: #fff;
}

/* ---------- Cards ---------- */
.product-grid,
.bundle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.card { display: flex; flex-direction: column; gap: 14px; }
.card-media {
  height: 300px;
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.price { font-weight: 600; white-space: nowrap; }
.notes { font-size: 15px; color: var(--cocoa-soft); }
.meta { font-size: 14px; color: var(--cocoa-muted); }
.card .btn { margin-top: auto; width: 100%; }

.bundle-card {
  padding: 20px;
  border-radius: 24px;
  background: var(--paper);
  border: 1.5px solid var(--line-soft);
}
.bundle-card .card-media { height: 200px; border-radius: 16px; }
.bundle-card h3 { font-size: 26px; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--cocoa-muted);
}
.badge-seasonal { background: var(--sage); color: #fff; }
.badge-soldout { background: var(--cocoa); color: #fff; }

.collection-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  color: var(--cocoa-soft);
}

/* ---------- Markets ---------- */
.markets { background: var(--cocoa); color: var(--cream); }
.markets-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  padding-block: 96px;
}
.markets-intro { flex: 1 1 320px; display: flex; flex-direction: column; gap: 16px; }
.markets-intro p:last-child { color: #E3D6C6; }
.market-list {
  flex: 2 1 520px;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.market {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1.5px solid #5C4838;
}
.market.is-next { background: #4A3628; border-color: var(--blush-light); }
.market-date {
  flex: 0 0 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  border-radius: 14px;
  background: var(--cream);
  color: var(--cocoa);
}
.market-date .mon { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.market-date .day { font-family: var(--serif); font-size: 34px; line-height: 1.1; }
.market-info { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; }
.market-info p { color: #E3D6C6; }
.next-pill {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--blush-light);
  color: var(--cocoa);
}
.markets a:focus-visible { outline-color: var(--blush-light); }

/* ---------- About ---------- */
.about { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 56px; }
.about-media {
  flex: 1 1 380px;
  height: 460px;
  border-radius: 24px;
  object-fit: cover;
}
.about-copy { flex: 1 1 420px; display: flex; flex-direction: column; gap: 18px; color: var(--cocoa-soft); }
.about-copy h2 { color: var(--cocoa); }
.signature { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--accent-text); }

/* ---------- Enquiry form ---------- */
.enquire {
  max-width: 760px;
  padding-block: 96px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.enquire-head { text-align: center; display: flex; flex-direction: column; gap: 10px; }
.enquire-head p:last-child { color: var(--cocoa-soft); }
.enquiry-form { display: flex; flex-direction: column; gap: 18px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; }
.field input,
.field select,
.field textarea {
  min-height: 48px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font: inherit;
  color: var(--cocoa);
}
.field textarea { padding: 14px 16px; resize: vertical; }
.field [aria-invalid="true"] { border-color: #9B2C1F; }
.enquiry-form > .btn { align-self: flex-start; }
.form-status { min-height: 1.6em; font-weight: 500; }
.form-status.is-error { color: #9B2C1F; }
.form-status.is-success { color: var(--sage); }

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: 48px;
}
.site-footer .wordmark { font-size: 24px; }
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  font-size: 15px;
}
.footer-links a { display: inline-block; padding: 10px 0; }
