/* Upsala Grocery — shared stylesheet. Mobile-first, pure CSS, no frameworks. */

:root {
  --green-900: #1e3a24;
  --green-800: #26502f;
  --green-700: #2f6b3b;
  --cream: #faf6ee;
  --cream-dark: #f1e9d8;
  --ink: #22251f;
  --ink-soft: #4c5148;
  --line: #e3dccb;
  --white: #ffffff;
  --gold: #c9962e;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--green-900);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a { color: var(--green-700); }
a:hover { color: var(--green-900); }

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.site-header {
  background: var(--green-900);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  margin-right: auto;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--green-900);
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 1rem;
}

.brand-text {
  font-family: Georgia, serif;
  font-size: 1.35rem;
  letter-spacing: .02em;
}
.brand-text em { font-style: normal; color: var(--gold); }

.site-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--white);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: .95rem;
}
.site-nav a:hover { background: rgba(255,255,255,.12); color: var(--white); }

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

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  padding: 12px 22px;
  border: 2px solid transparent;
  font-size: 1rem;
  cursor: pointer;
}

.btn-primary { background: var(--green-700); color: var(--white); }
.btn-primary:hover { background: var(--green-800); color: var(--white); }

.btn-secondary { background: var(--white); color: var(--green-800); border-color: var(--green-700); }
.btn-secondary:hover { background: var(--cream-dark); color: var(--green-900); }

.btn-call {
  background: var(--gold);
  color: var(--green-900);
  padding: 9px 16px;
  font-size: .95rem;
  white-space: nowrap;
}
.btn-call:hover { background: #d8a93c; color: var(--green-900); }

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

.hero {
  background: var(--green-900);
  color: var(--white);
  padding: 64px 0 56px;
}

.hero-inner h1 { color: var(--white); margin-bottom: .4em; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  color: var(--gold);
  margin-bottom: 1em;
  font-weight: 600;
}

.lede { font-size: 1.12rem; max-width: 640px; color: #e8e4d6; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 32px; }

.hero-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  color: #d9d4c2;
  font-size: .95rem;
}
.hero-facts strong { color: var(--white); }

/* ---------- sections ---------- */

.section { padding: 56px 0; }
.section.alt { background: var(--white); }

.section-lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 680px;
  margin-bottom: 2em;
}

/* ---------- grids & cards ---------- */

.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: 1fr; }
.grid.three { grid-template-columns: 1fr; }

@media (min-width: 720px) {
  .grid.two { grid-template-columns: 1fr 1fr; }
  .grid.three { grid-template-columns: 1fr 1fr 1fr; }
  h1 { font-size: 2.6rem; }
}

.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.section.alt .card { background: var(--cream); }
.section:not(.alt) .card { background: var(--white); }

.card.stat { text-align: center; }
.stat-number {
  display: block;
  font-family: Georgia, serif;
  font-size: 2rem;
  color: var(--green-800);
  margin-bottom: .2em;
}
.stat-label { color: var(--ink-soft); font-size: .95rem; }

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2em;
}
.checklist li {
  padding: 8px 0 8px 30px;
  position: relative;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  color: var(--green-700);
  font-weight: bold;
}

.app-card { max-width: 640px; }

/* ---------- hours table ---------- */

.hours { width: 100%; border-collapse: collapse; margin-bottom: 1em; }
.hours th, .hours td { text-align: left; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 600; color: var(--ink); width: 55%; }
.hours td { color: var(--ink-soft); }

address { font-style: normal; line-height: 1.7; }
address a, .big a { color: var(--green-700); font-weight: 600; }
.big { font-size: 1.5rem; margin: 0 0 .5em; }

.fine { font-size: .88rem; color: var(--ink-soft); }

/* ---------- prose (privacy page) ---------- */

.prose { max-width: 760px; }
.prose h2 { margin-top: 1.8em; font-size: 1.4rem; }
.prose h3 { margin-top: 1.2em; font-size: 1.1rem; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose address { margin: 1em 0 2em; }

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

.site-footer {
  background: var(--green-900);
  color: #cfc9b8;
  padding: 36px 0 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.footer-brand {
  font-family: Georgia, serif;
  font-size: 1.2rem;
  color: var(--white);
  margin: 0 0 .3em;
}

.footer-nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-nav a { color: #e8e4d6; text-decoration: none; font-size: .95rem; }
.footer-nav a:hover { color: var(--white); text-decoration: underline; }

.copyright { margin: 0; border-top: 1px solid rgba(255,255,255,.15); padding-top: 16px; }

/* ---------- small screens ---------- */

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 44px 0 40px; }
  .site-nav { order: 3; width: 100%; }
  .btn-call { margin-left: auto; }
}
