/* ============================================================================
   css/site-chrome.css — Shared site chrome (announce bar, header, footer)
   Single source of truth for the navigation UI across all 17 pages.
   Loaded via <link rel="stylesheet" href="/css/site-chrome.css"> in <head>.
   ============================================================================ */

/* ---------- Variables ---------- */
:root {
  --cream: #FAF7F0;
  --bone: #F1ECDF;
  --forest: #2C5530;
  --forest-dark: #1E3D22;
  --leaf: #4A7C4F;
  --sage: #A8C09A;
  --sage-soft: #D4E0CC;
  --clay: #C97B5A;
  --terracotta: #B85838;
  --gold: #D4A659;
  --bark: #4A3A2C;
  --ink: #1A1F1A;
  --text: #2D3A2E;
  --muted: #6B7268;
  --line: #E1DCC9;
  --line-dark: #C9C4AF;
  --sale: #B8412C;
}

/* ---------- Base resets for chrome only ---------- */
html { scroll-behavior: smooth; }
header, footer { font-family: 'Inter', system-ui, sans-serif; }
header a, footer a { color: inherit; text-decoration: none; }
header img, footer img { display: block; max-width: 100%; }
header button, footer button { font-family: inherit; cursor: pointer; }

header a:focus-visible, footer a:focus-visible, header button:focus-visible, footer button:focus-visible, header input:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 2px;
  border-radius: 2px;
}

.container { max-width: 1400px; margin: 0 auto; padding: 0 32px; }

/* ---------- ANNOUNCEMENT BAR ---------- */
.announce {
  background: var(--forest);
  color: var(--cream);
  text-align: center;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.announce strong { color: var(--gold); font-weight: 600; }

/* ---------- HEADER ---------- */
header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  padding: 16px 0;
}
.header-actions-left { display: flex; gap: 24px; font-size: 13px; color: var(--muted); }
.header-actions-left a:hover { color: var(--forest); }
.header-actions-right { display: flex; align-items: center; gap: 8px; justify-self: end; }
.search-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--bone); border-radius: 24px;
  padding: 10px 16px; width: 280px;
}
.search-box input {
  background: transparent; border: none; outline: none;
  flex: 1; font-size: 14px; color: var(--text); font-family: inherit;
}
.search-box input::placeholder { color: var(--muted); }
.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%; color: var(--text);
  background: transparent; border: 0;
  position: relative;
  transition: background 0.2s;
  -webkit-appearance: none; appearance: none;
}
.icon-btn:hover { background: var(--bone); }
.icon-btn .badge,
.icon-btn .bag-count {
  position: absolute;
  top: 4px; right: 4px;
  background: var(--terracotta);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 50%;
  display: grid; place-items: center;
  line-height: 1; padding: 0 4px;
  box-sizing: border-box;
}
.icon-btn .bag-count { display: none; }
.icon-btn .bag-count[data-count]:not([data-count="0"]) { display: grid; }
.logo { display: flex; align-items: center; gap: 10px; justify-self: center; }
.logo-img { display: block; height: 50px; width: auto; }
@media (max-width: 600px) { .logo-img { height: 38px; } }

/* ---------- PRIMARY NAV ---------- */
.primary-nav { border-top: 1px solid var(--line); }
.nav-list {
  display: flex; justify-content: center; list-style: none;
  gap: 4px; padding: 0; margin: 0;
}
.nav-list a {
  display: block; padding: 14px 18px; font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--text);
  border-bottom: 2px solid transparent; transition: border-color 0.2s, color 0.2s;
}
.nav-list a:hover { color: var(--forest); border-bottom-color: var(--forest); }
.nav-list a.sale { color: var(--sale); }
.nav-list a.sale:hover { border-bottom-color: var(--sale); }

/* ---------- FOOTER ---------- */
footer {
  background: var(--ink);
  color: var(--cream);
  padding: 56px 0 24px;
}
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.foot-col h5 {
  font-family: 'Fraunces', serif; font-size: 16px; font-weight: 600;
  margin-bottom: 16px; color: var(--gold); letter-spacing: -0.01em;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: 9px; }
.foot-col a { font-size: 13px; color: rgba(250,247,240,0.7); transition: color 0.2s; }
.foot-col a:hover { color: var(--gold); }
.foot-brand .logo { justify-self: start; margin-bottom: 12px; }
.foot-desc { font-size: 13px; opacity: 0.7; line-height: 1.55; margin-bottom: 18px; max-width: 280px; }
.foot-social { display: flex; gap: 10px; }
.foot-social a {
  width: 36px; height: 36px; background: rgba(250,247,240,0.08);
  border-radius: 50%; display: grid; place-items: center;
  transition: background 0.2s;
}
.foot-social a:hover { background: var(--gold); color: var(--ink); }
.foot-bottom {
  border-top: 1px solid rgba(250,247,240,0.1);
  padding-top: 22px; display: flex; justify-content: space-between;
  gap: 24px; font-size: 12px; opacity: 0.6; flex-wrap: wrap;
}
.foot-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .foot-grid { grid-template-columns: 1fr 1fr !important; gap: 32px; }
  /* Home page sections: ensure hero and feature-grid collapse */
  .hero-grid { grid-template-columns: 1fr !important; gap: 32px; padding: 40px 0; }
  .hero h1 { font-size: 44px; }
  .feature-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr !important; gap: 28px; padding: 32px 0; }
  .hero h1 { font-size: 38px; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .feature-tiles { grid-template-columns: repeat(2, 1fr) !important; gap: 14px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 14px; }
  .prod-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 14px; }
  .res-grid { grid-template-columns: 1fr !important; }
  .ben-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .foot-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 720px) {
  .header-top { grid-template-columns: 1fr auto 1fr; gap: 12px; }
  .header-actions-left { display: none; }
  .search-box { display: none; }
  .nav-list { overflow-x: auto; justify-content: flex-start; -webkit-overflow-scrolling: touch; }
  .nav-list a { padding: 14px 12px; white-space: nowrap; }
  .hero h1 { font-size: 32px; line-height: 1.08; }
  .hero-sub { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .feature-tiles { grid-template-columns: 1fr !important; }
  .feature-text h2 { font-size: 28px; }
  .feature-text p { max-width: 100%; }
  .cat-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
  .cat-card { padding: 18px 12px; }
  .cat-name { font-size: 14px; }
  .cat-count { font-size: 11px; }
  .prod-name { font-size: 14px; }
  .prod-grid { grid-template-columns: 1fr 1fr !important; gap: 12px; }
  .section-head h2 { font-size: 24px; }
  .section-head p { font-size: 14px; }
  .newsletter h2 { font-size: 24px; }
  .nl-form { flex-direction: column; }
  .deal-strip-inner { flex-direction: column; text-align: center; }
  .deal-strip-text { flex-direction: column; }
  .ben-grid { grid-template-columns: 1fr !important; }
  .foot-grid { grid-template-columns: 1fr !important; }
  .foot-bottom { flex-direction: column; text-align: center; }
  .foot-bottom-links { justify-content: center; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .container { padding: 0 16px; }
  .foot-brand .logo-img { height: 36px; }
}

