/* ==========================================================
   MASTER ONE-PAGER TEMPLATE  -  styles.css
   Part 1: Brand settings + base styles
   ----------------------------------------------------------
   To re-brand this template for a new client, change ONLY
   the values inside "1. BRAND SETTINGS" below.
   ========================================================== */


/* ---------- 1. BRAND SETTINGS ---------- */
:root {
  /* Colours (from the client's shop sign) */
  --color-sage: #A9BEB7;
  --color-teal: #3E5C57;
  --color-teal-dark: #2F4743;
  --color-gold: #B8955A;
  --color-cream: #F7F3E8;
  --color-plum: #6E5A63;
  --color-charcoal: #2C2A29;
  --color-white: #FFFFFF;

  /* What each colour is used for */
  --page-background: var(--color-cream);
  --text-color: var(--color-charcoal);
  --heading-color: var(--color-teal);
  --accent-color: var(--color-gold);
  --button-background: var(--color-teal);
  --button-background-hover: var(--color-teal-dark);
  --button-text: var(--color-cream);
  --line-color: var(--color-plum);

  /* Fonts */
  --font-heading: "Cinzel", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  /* Rounded corners (soft feel) */
  --radius-button: 999px;
  --radius-image: 16px;
  --radius-card: 20px;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;

  /* Layout */
  --content-width: 1120px;
  --text-width: 680px;
  --header-height: 80px;

  /* Motion */
  --transition: 0.25s ease;
}


/* ---------- 2. RESET (makes all browsers behave the same) ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page-background);
  color: var(--text-color);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-image);
}

/* Respect visitors who prefer less movement on screen */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}


/* ---------- 3. TEXT ---------- */
h1,
h2,
h3 {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--heading-color);
}

h1 {
  font-size: clamp(2.25rem, 6vw, 4rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 var(--space-sm);
}

a {
  color: var(--heading-color);
  text-underline-offset: 3px;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-color);
}

/* Small gold line used under headings */
.divider {
  width: 48px;
  height: 1px;
  margin: var(--space-sm) 0 var(--space-md);
  border: 0;
  background: var(--accent-color);
}

.text-center {
  text-align: center;
}

.text-center .divider {
  margin-left: auto;
  margin-right: auto;
}


/* ---------- 4. LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

.section--sage {
  background: var(--color-sage);
}

.text-block {
  max-width: var(--text-width);
}

.text-center .text-block {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 640px) {
  .container {
    padding: 0 var(--space-sm);
  }
  .section {
    padding: var(--space-lg) 0;
  }
}


/* ---------- 5. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.9rem;
  border: 1px solid var(--button-background);
  border-radius: var(--radius-button);
  background: var(--button-background);
  color: var(--button-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn:hover {
  background: var(--button-background-hover);
  border-color: var(--button-background-hover);
  color: var(--button-text);
}

/* Outline version (second button next to the main one) */
.btn--outline {
  background: transparent;
  color: var(--button-background);
}

.btn--outline:hover {
  background: var(--button-background);
  color: var(--button-text);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.text-center .button-row {
  justify-content: center;
}


/* ---------- 6. ACCESSIBILITY HELPERS ---------- */
/* Clear outline when someone moves around with the keyboard */
:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
}

/* Hidden on screen but read aloud by screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* "Skip to content" link for keyboard users (appears when focused) */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-sm);
  z-index: 1000;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-button);
  background: var(--button-background);
  color: var(--button-text);
}

.skip-link:focus {
  top: var(--space-sm);
}


/* ---------- 7. SMALL TEXT STYLES ---------- */
.eyebrow {
  margin: 0 0 var(--space-xs);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-color);
}

.muted {
  opacity: 0.75;
}

.small {
  font-size: 0.85rem;
}

.section--light {
  background: var(--color-white);
}

.button-row--center {
  justify-content: center;
  margin-top: var(--space-md);
}


/* ---------- 8. HEADER AND MENU ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--page-background);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
  border-bottom-color: rgba(110, 90, 99, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: var(--space-sm);
}

.wordmark {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--heading-color);
  text-decoration: none;
  white-space: nowrap;
}

.wordmark:hover {
  color: var(--heading-color);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.site-nav ul {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav ul a {
  font-size: 0.95rem;
  color: var(--text-color);
  text-decoration: none;
}

.site-nav ul a:hover {
  color: var(--accent-color);
}

.btn--small {
  padding: 0.6rem 1.3rem;
  font-size: 0.85rem;
}

/* The three-line "hamburger" button, only shown on smaller screens */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-button);
  background: transparent;
  cursor: pointer;
  position: relative;
}

.menu-toggle-bar,
.menu-toggle-bar::before,
.menu-toggle-bar::after {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--heading-color);
  transition: transform var(--transition), background var(--transition);
}

.menu-toggle-bar {
  top: 21px;
}

.menu-toggle-bar::before,
.menu-toggle-bar::after {
  content: "";
  left: 0;
}

.menu-toggle-bar::before {
  top: -7px;
}

.menu-toggle-bar::after {
  top: 7px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar::before {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar::after {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 960px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md) var(--space-md);
    background: var(--page-background);
    border-bottom: 1px solid rgba(110, 90, 99, 0.18);
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav ul a {
    display: block;
    padding: 0.8rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(110, 90, 99, 0.12);
  }
}


/* ---------- 9. HERO ---------- */
.hero {
  padding: calc(var(--space-xl) * 1.2) 0 var(--space-xl);
}

.hero h1 {
  margin-bottom: 0;
}

.hero-tagline {
  max-width: 560px;
  margin: 0 auto var(--space-md);
  font-size: 1.2rem;
}


/* ---------- 10. PRODUCE (no boxes: thin gold line above each) ---------- */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  padding-top: var(--space-sm);
  border-top: 1px solid var(--accent-color);
}

.feature h3 {
  font-size: 1.1rem;
}

.text-link {
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--heading-color);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.text-link:hover {
  color: var(--accent-color);
}


/* ---------- 11. VEG BOXES ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin: var(--space-lg) 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-sm);
  border: 1px solid var(--accent-color);
  border-radius: 50%;
  font-family: var(--font-heading);
  color: var(--accent-color);
}

.step h3 {
  font-size: 1.1rem;
}

.in-season {
  max-width: var(--text-width);
  margin: 0 auto;
  padding: var(--space-md);
  border-radius: var(--radius-card);
  background: var(--color-white);
}

.in-season-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: var(--space-sm) 0 0;
  padding: 0;
  list-style: none;
}

.in-season-list li {
  padding: 0.35rem 1rem;
  border: 1px solid var(--color-sage);
  border-radius: var(--radius-button);
  font-size: 0.95rem;
}


/* ---------- 12. EMBED SLOTS (Instagram, reviews) ---------- */
.embed-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  margin-bottom: var(--space-md);
  border: 1px dashed rgba(62, 92, 87, 0.4);
  border-radius: var(--radius-card);
  color: var(--heading-color);
}

.embed-slot p {
  margin: 0;
}


/* ---------- 13. VISIT US ---------- */
.visit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
  max-width: 820px;
  margin: 0 auto;
}

.visit-block h3 {
  font-size: 1.1rem;
}

address {
  margin-bottom: var(--space-sm);
  font-style: normal;
}

.hours {
  width: 100%;
  border-collapse: collapse;
}

.hours th,
.hours td {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(110, 90, 99, 0.12);
  text-align: left;
  font-weight: 400;
}

.hours td {
  text-align: right;
}


/* ---------- 14. FOOTER ---------- */
.site-footer {
  padding: var(--space-lg) 0;
  background: var(--color-teal);
  color: var(--color-cream);
  text-align: center;
}

.site-footer a {
  color: var(--color-cream);
}

.site-footer a:hover {
  color: var(--color-gold);
}

.footer-inner p {
  margin-bottom: var(--space-xs);
}

.wordmark--footer {
  display: inline-block;
  margin-bottom: var(--space-sm);
  font-size: 1.4rem;
  color: var(--color-cream);
}

.wordmark--footer:hover {
  color: var(--color-gold);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin: var(--space-sm) 0;
  padding: 0;
  list-style: none;
}


/* ---------- 15. POP-UPS (MODALS) ---------- */
.modal {
  width: min(92vw, 520px);
  max-height: 85vh;
  padding: var(--space-md);
  border: 0;
  border-radius: var(--radius-card);
  background: var(--page-background);
  color: var(--text-color);
}

.modal::backdrop {
  background: rgba(44, 42, 41, 0.55);
}

.modal h2 {
  padding-right: 2.5rem;
  font-size: 1.6rem;
}

.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--heading-color);
  cursor: pointer;
}

.modal-close:hover {
  background: rgba(62, 92, 87, 0.08);
}

.order-options {
  display: grid;
  gap: 0.75rem;
  margin: var(--space-md) 0 0;
  padding: 0;
  list-style: none;
}

.order-options .btn {
  width: 100%;
}

.order-options [aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

body.modal-open {
  overflow: hidden;
}


/* ---------- 16. CONTRAST FIXES ---------- */
/* Gold small text is too faint on sage, so use deep teal there */
.section--sage .eyebrow {
  color: var(--color-teal-dark);
}

.section--sage .divider {
  background: var(--color-teal);
}
