/* ==========================================================
   Redwagon Farm Market — CanadaWebs farm market template
   WCAG 2.1 AA contrast-checked palette. Barn red + wheat + field green.
   Verified ratios (foreground on background):
     #FFFFFF on #9E2B25  7.43:1     #FFFFFF on #6E1D19 11.33:1
     #FBF6EA on #6E1D19 10.51:1     #FBF6EA on #5A1713 12.43:1
     #2B2420 on #FBF6EA 14.15:1     #2B2420 on #F3E9D2 12.64:1
     #3F6212 on #FBF6EA  6.56:1     #3F6212 on #FFFFFF  7.08:1
     #9E2B25 on #FBF6EA  6.89:1     #9E2B25 on #FFFFFF  7.43:1
     #6E1D19 on #FBF6EA 10.51:1     #6B5E52 on #FFFFFF  6.27:1
     #6B5E52 on #FBF6EA  5.82:1     #E7F0CE on #6E1D19  9.58:1
     #FFFFFF on #3F6212  7.08:1     #2B2420 on #F0C948  9.56:1
   ========================================================== */
:root {
  --red: #9E2B25;          /* barn red — 7.4:1 with white */
  --red-deep: #6E1D19;     /* deep brown-red — dark sections */
  --red-darkest: #5A1713;
  --cream: #FBF6EA;        /* wheat/cream page background */
  --wheat: #F3E9D2;        /* deeper wheat section tint */
  --green: #3F6212;        /* field green — text on light */
  --green-cream: #E7F0CE;  /* cream-green accent on dark */
  --gold: #F0C948;         /* badge gold — with ink text */
  --ink: #2B2420;
  --muted: #6B5E52;        /* 5.8:1 on cream */
  --line: #E6DCC6;
  --white: #fff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { font-family: 'Nunito Sans', -apple-system, sans-serif; font-size: 1.05rem; line-height: 1.6; color: var(--ink); background: var(--cream); }
a { color: var(--red); }
a:hover { color: var(--red-deep); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; color: var(--red-deep); line-height: 1.12; letter-spacing: 0.005em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--red-deep); color: #fff; padding: 0.7rem 1.2rem; z-index: 99; font-weight: 700; }
.skip-link:focus { left: 0; }
.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; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.85rem 1.6rem; font-family: 'Nunito Sans', sans-serif; font-size: 1.05rem; font-weight: 800; text-decoration: none; border: 2px solid transparent; border-radius: 999px; cursor: pointer; min-height: 44px; }
.btn-red { background: var(--red); color: #fff !important; }
.btn-red:hover { background: var(--red-deep); }
.btn-outline { background: transparent; color: var(--red-deep) !important; border-color: var(--red-deep); }
.btn-outline:hover { background: var(--red-deep); color: #fff !important; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.98rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.15rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Open-today strip */
.open-strip { background: var(--red); color: #fff; font-weight: 700; font-size: 0.95rem; }
.open-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 0.45rem; padding-bottom: 0.45rem; flex-wrap: wrap; }
.open-phone { color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.open-phone:hover { color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 2px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.8rem; padding-bottom: 0.8rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-mark { width: 46px; height: 46px; border-radius: 10px; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; }
.brand-mark svg { width: 28px; height: 28px; }
.brand-text { font-family: 'Fraunces', Georgia, serif; font-size: 1.45rem; font-weight: 700; color: var(--red-deep); line-height: 1.05; }
.brand-text em { display: block; font-style: normal; font-family: 'Nunito Sans', sans-serif; font-size: 0.72rem; font-weight: 800; color: var(--green); letter-spacing: 0.22em; text-transform: uppercase; }
.navmenu { display: flex; align-items: center; gap: 0.4rem; }
.navmenu > a { color: var(--ink); text-decoration: none; font-weight: 700; padding: 0.5rem 0.8rem; border-radius: 999px; }
.navmenu > a:not(.btn):hover { background: var(--wheat); color: var(--red-deep); }
.nav-toggle { display: none; align-items: center; gap: 0.5rem; background: var(--red); color: #fff; border: none; padding: 0.55rem 1rem; font-weight: 800; font-size: 1rem; border-radius: 999px; cursor: pointer; min-height: 44px; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; display: block; width: 20px; height: 2.5px; background: #fff; position: relative; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }
@media (max-width: 56rem) {
  .nav-toggle { display: inline-flex; }
  .navmenu { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 0.8rem; }
  .navmenu.open { display: flex; }
  .navmenu > a { padding: 0.85rem 0.8rem; border-bottom: 1px solid var(--line); border-radius: 0; }
}

/* Hero */
.hero { background: var(--cream); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -140px; top: -140px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(240,201,72,0.35), rgba(240,201,72,0) 65%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: repeating-linear-gradient(90deg, var(--green) 0 26px, var(--red) 26px 52px, var(--gold) 52px 78px); }
.hero-inner { position: relative; z-index: 1; padding: 4rem 1.25rem 3.6rem; display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start; }
.eyebrow { font-weight: 800; text-transform: uppercase; letter-spacing: 0.18em; color: var(--green); margin-bottom: 0.6rem; font-size: 0.88rem; }
.eyebrow-light { color: var(--green-cream); }
.hero h1 { font-size: clamp(2.5rem, 6vw, 3.9rem); margin-bottom: 0.7rem; max-width: 13em; }
.hero h1 .accent { color: var(--red); font-style: italic; }
.hero-sub { font-size: 1.18rem; color: var(--ink); max-width: 38rem; margin-bottom: 1.6rem; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.teaser-line { font-size: 0.98rem; color: var(--muted); max-width: 36rem; }
.teaser-line strong { color: var(--green); }
.hero-hours { background: var(--red-deep); color: var(--cream); border-radius: 14px; padding: 1.6rem 1.6rem 1.4rem; box-shadow: 0 10px 24px rgba(90,23,19,0.18); }
.hours-title { font-family: 'Fraunces', Georgia, serif; color: #fff; font-size: 1.45rem; margin-bottom: 0.9rem; }
.hours-list { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.hours-list li { display: flex; flex-direction: column; border-bottom: 1px solid rgba(251,246,234,0.2); padding-bottom: 0.7rem; }
.hours-season { font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green-cream); }
.hours-details { color: var(--cream); }
.hours-note { margin-top: 0.9rem; font-size: 0.88rem; color: var(--green-cream); }
@media (max-width: 56rem) { .hero-inner { grid-template-columns: 1fr; gap: 2rem; } }

/* Sections */
section { padding: 4.2rem 0; }
.section-head { max-width: 48rem; margin-bottom: 2rem; }
.section-lead { color: var(--muted); margin-top: 0.6rem; }

/* What's fresh */
.fresh { background: var(--white); }
.fresh-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.fresh-card { background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 1.4rem 1.4rem 1.3rem; }
.fresh-top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.fresh-card h3 { font-size: 1.3rem; }
.fresh-card p { color: var(--muted); font-size: 0.97rem; }
.badge { display: inline-block; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; padding: 0.28rem 0.75rem; border-radius: 999px; white-space: nowrap; }
.badge-green { background: var(--green); color: #fff; }
.badge-red { background: var(--red); color: #fff; }
.badge-gold { background: var(--gold); color: var(--ink); }

/* On the farm */
.farm { background: var(--wheat); }
.farm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.2rem; }
.farm-card { background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--green); border-radius: 12px; padding: 1.6rem 1.5rem; }
.farm-icon { display: inline-flex; width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: #fff; align-items: center; justify-content: center; margin-bottom: 0.9rem; }
.farm-icon svg { width: 28px; height: 28px; }
.farm-card h3 { font-size: 1.3rem; margin-bottom: 0.15rem; }
.farm-season { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--green); margin-bottom: 0.5rem; }
.farm-card p:not(.farm-season) { color: var(--muted); font-size: 0.97rem; }

/* Events */
.events { background: var(--red-deep); color: var(--cream); }
.events h2 { color: #fff; }
.event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.3rem; }
.event-card { background: rgba(251,246,234,0.07); border: 1px solid rgba(251,246,234,0.16); border-radius: 12px; padding: 1.5rem 1.5rem 1.4rem; }
.event-date { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green-cream); margin-bottom: 0.4rem; }
.event-card h3 { color: #fff; font-size: 1.35rem; margin-bottom: 0.2rem; }
.event-when { font-weight: 700; color: var(--green-cream); font-size: 0.95rem; margin-bottom: 0.6rem; }
.event-summary { color: var(--cream); font-size: 0.97rem; }

/* Plan your visit */
.visit { background: var(--white); }
.visit-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; }
.visit-address { margin: 0.8rem 0 1rem; font-size: 1.05rem; }
.visit-list { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1rem; }
.visit-list li { padding: 0.8rem 1rem; background: var(--cream); border-left: 4px solid var(--green); border-radius: 8px; font-size: 0.98rem; }
.visit-note { font-size: 0.92rem; color: var(--muted); }
.visit-hours h3 { font-size: 1.35rem; margin-bottom: 0.8rem; }
.hours-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.hours-table th, .hours-table td { text-align: left; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); font-size: 0.95rem; vertical-align: top; }
.hours-table thead th { background: var(--red-deep); color: var(--cream); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.82rem; }
.hours-table tbody th { font-weight: 700; color: var(--red-deep); background: var(--cream); width: 55%; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: none; }
@media (max-width: 52rem) { .visit-grid { grid-template-columns: 1fr; gap: 1.8rem; } }

/* Story */
.story { background: var(--cream); }
.story-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: center; }
.story-photo { position: relative; min-height: 300px; border-radius: 14px; background: linear-gradient(150deg, #6F8F3A 0%, #3F6212 55%, #2C4A0B 100%); box-shadow: 0 10px 24px rgba(43,36,32,0.12); }
.photo-pill { position: absolute; left: 16px; bottom: 14px; background: rgba(255,255,255,0.94); color: var(--ink); font-weight: 700; font-size: 0.85rem; padding: 0.35rem 0.9rem; border-radius: 999px; max-width: calc(100% - 32px); }
.story-copy p { margin-bottom: 1rem; }
.story-copy p:last-child { margin-bottom: 0; }
@media (max-width: 52rem) { .story-grid { grid-template-columns: 1fr; gap: 1.6rem; } .story-photo { min-height: 220px; } }

/* Contact */
.contact { background: var(--wheat); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.contact-details { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.98rem; margin: 1rem 0 1.4rem; }
.map-tile { position: relative; min-height: 190px; border-radius: 14px; background: linear-gradient(140deg, #E7F0CE 0%, #C9DCA0 100%); display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); }
.map-pin { color: var(--green); }
.map-pin svg { width: 46px; height: 46px; }
.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 1.8rem; }
.cf-note { font-size: 0.88rem; color: var(--muted); margin-bottom: 1rem; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cf-field { margin-bottom: 1rem; }
.cf-field label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 0.3rem; color: var(--red-deep); }
.cf-field input, .cf-field select, .cf-field textarea { width: 100%; padding: 0.7rem 0.8rem; border: 1.5px solid var(--line); border-radius: 8px; font-family: inherit; font-size: 1rem; color: var(--ink); background: var(--white); }
.cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(158,43,37,0.15); }
@media (max-width: 52rem) { .contact-grid { grid-template-columns: 1fr; gap: 1.6rem; } .cf-row { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--red-deep); color: var(--cream); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding-top: 2.4rem; padding-bottom: 2rem; }
.footer-brand { font-family: 'Fraunces', Georgia, serif; font-size: 1.5rem; font-weight: 700; color: #fff; }
.footer-brand em { font-style: normal; font-family: 'Nunito Sans', sans-serif; color: var(--green-cream); font-size: 0.8rem; font-weight: 800; display: block; letter-spacing: 0.22em; text-transform: uppercase; }
.footer-line { font-size: 0.92rem; color: var(--cream); }
.footer-legal { background: var(--red-darkest); padding: 1rem 0 1.2rem; }
.footer-legal p { font-size: 0.85rem; color: var(--cream); margin: 0.15rem 0; }
.demo-note a { color: var(--green-cream); font-weight: 700; }
