/* =============================
   RESET & NORMALIZE
   ============================= */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  box-sizing: border-box;
  font: inherit;
}
/* html5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FAF6EE;
  color: #372F22;
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul, ol {
  list-style: none;
}
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

:root {
  --cc-primary: #17643D;
  --cc-accent: #CE5D2D;
  --cc-accent-dark: #B04011;
  --cc-secondary: #F2F7F3;
  --cc-bg: #FAF6EE;
  --cc-brown: #372F22;
  --cc-cream: #F8E8CF;
  --cc-mustard: #FFC857;
  --cc-font-display: 'Montserrat', 'Arial Black', Arial, sans-serif;
  --cc-font-body: 'Roboto', Arial, sans-serif;
  --cc-border-radius: 16px;
  --cc-shadow-soft: 0 4px 18px rgba(40,32,18,0.09);
  --cc-shadow-pop: 0 2px 12px rgba(206,93,45,0.14);
  --cc-shadow-vintage: 0 2px 0 #CDA256, 0 4px 8px -2px rgba(27,24,20,0.07);
}

/* =============================
   TYPOGRAPHY - VINTAGE RETRO
   ============================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--cc-font-display);
  color: var(--cc-primary);
  font-weight: 700;
  letter-spacing: 0.015em;
}
h1 {
  font-size: 2.25rem;
  line-height: 1.15;
  margin-bottom: 18px;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
}
p, ul, ol, li {
  font-family: var(--cc-font-body);
  color: var(--cc-brown);
  font-size: 1rem;
  margin-bottom: 14px;
  line-height: 1.6;
}
.subheadline,
.cta-subtext {
  font-size: 1.125rem;
  font-family: var(--cc-font-body);
  color: var(--cc-brown);
  margin-bottom: 24px;
}
strong {
  font-weight: 700;
  color: var(--cc-accent);
}

/* text-section pattern for info pages */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 34px;
}

/* =============================
   CONTAINER & SECTION SPACING
   ============================= */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--cc-secondary);
  border-radius: var(--cc-border-radius);
  box-shadow: var(--cc-shadow-soft);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card-container, .card-grid, .feature-grid, .blog-post-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--cc-cream);
  border-radius: var(--cc-border-radius);
  box-shadow: var(--cc-shadow-vintage);
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
}
.season-calendar {
  display: flex;
  flex-direction: column;
  margin-bottom: 32px;
}

/* =============================
   HERO SECTION
   ============================= */
.hero {
  background: repeating-linear-gradient(135deg, #F8E8CF 0 30px, #FFE2B9 30px 60px), var(--cc-secondary);
  padding: 60px 0 40px 0;
  position: relative;
  border-bottom: 5px double var(--cc-primary);
  box-shadow: 0 4px 14px rgba(206,93,45,0.04);
}
.hero .container {
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: column;
}
.hero h1 {
  color: var(--cc-accent-dark);
  text-shadow: 2px 2px 0 #FFF1D2, 0 2px 6px #CDA25622;
  font-size: 2.4rem;
  margin-bottom: 0;
}

/* =============================
   NAVIGATION (Desktop/Mobile)
   ============================= */
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  background: var(--cc-bg);
  height: 72px;
}
.header-bar > a > img {
  height: 48px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-family: var(--cc-font-display);
  z-index: 9;
}
.main-nav a {
  color: var(--cc-primary);
  font-size: 1rem;
  border-radius: 8px;
  padding: 6px 18px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--cc-accent);
  color: #fff;
}
.mobile-menu-toggle {
  display: none;
  background: var(--cc-cream);
  color: var(--cc-accent-dark);
  border: 2px solid var(--cc-accent);
  font-size: 2rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s, border 0.2s;
  z-index: 30;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--cc-accent);
  color: #fff;
  border-color: var(--cc-accent-dark);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(110deg, #FDF3E6 70%, #FFE0BC 100%);
  z-index: 60;
  transition: transform 0.38s cubic-bezier(.7,.2,.22,1);
  transform: translateX(100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 28px 24px 28px;
  box-shadow: 0 0 0 2px var(--cc-accent);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  padding: 8px;
  background: transparent;
  font-size: 2rem;
  color: var(--cc-primary);
  cursor: pointer;
  border-radius: 50%;
  border: 2px solid var(--cc-accent);
  transition: background 0.2s, color 0.2s;
  margin-bottom: 8px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--cc-accent);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
  width: 100%;
}
.mobile-nav a {
  color: var(--cc-brown);
  font-size: 1.2rem;
  padding: 13px 0 13px 4px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  font-family: var(--cc-font-display);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--cc-accent);
  color: #fff;
}

/* =============================
   CTA BUTTONS & INTERACTIONS
   ============================= */
.cta {
  font-family: var(--cc-font-display);
  font-size: 1.22rem;
  padding: 13px 30px;
  border-radius: 999px;
  background: var(--cc-accent);
  color: #fff;
  font-weight: 700;
  border: 2px solid var(--cc-accent-dark);
  box-shadow: 0 2px 8px rgba(178,81,17,0.10);
  cursor: pointer;
  transition: background 0.13s, box-shadow 0.18s, transform 0.12s;
  display: inline-block;
  letter-spacing: 1px;
  margin-bottom: 0;
}
.cta.primary:hover, .cta:focus {
  background: var(--cc-primary);
  color: #fff5e9;
  box-shadow: 0 4px 16px rgba(23,100,61,0.09);
  transform: translateY(-1.5px) scale(1.04);
}

.cta-block {
  margin-bottom: 50px;
  padding: 30px 0;
  background: #FFD3B6;
  border-radius: var(--cc-border-radius);
  box-shadow: var(--cc-shadow-vintage);
  text-align: center;
}
.cta-block .cta {
  margin: 0 0 18px 0;
}

/* =============================
   FEATURE CARDS & GRIDS
   ============================= */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 8px 0;
}
.feature {
  flex: 1 1 220px;
  background: #EDDFC5;
  border-radius: var(--cc-border-radius);
  box-shadow: var(--cc-shadow-vintage);
  padding: 28px 20px 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-width: 190px;
  max-width: 306px;
  border: 2px dashed #926949;
  filter: drop-shadow(0 1px 0 #d3b171);
}
.feature img {
  width: 46px;
  height: 46px;
  margin-bottom: 8px;
}
.feature h3 {
  color: var(--cc-accent-dark);
  margin-bottom: 0;
  font-size: 1.2rem;
  text-shadow: 0 2px #FFC85744;
}

/* =============================
   TESTIMONIALS
   ============================= */
.testimonial-slider {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fffbe8;
  border-radius: var(--cc-border-radius);
  padding: 27px 24px 16px 24px;
  margin-bottom: 20px;
  box-shadow: var(--cc-shadow-soft);
  border: 1.5px solid #F8E8CF;
  position: relative;
  min-width: 220px;
  max-width: 370px;
  color: #362D1A;
  font-size: 1.08rem;
  font-family: var(--cc-font-body);
}
.testimonial-card p {
  color: #362D1A;
  font-size: 1.08rem;
  line-height: 1.7;
  font-style: italic;
}
.testimonial-card strong {
  color: var(--cc-primary);
}
.testimonial-card > div {
  font-size: 1rem;
  color: #493016;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 13px;
  width: 100%;
}
.testimonial-card span:last-child {
  color: #FFA226;
  font-size: 1.2rem;
  letter-spacing: 2px;
}

/* =============================
   BLOG & CATEGORY CARDS
   ============================= */
.blog-post-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 0 32px 0;
  justify-content: space-between;
}
.blog-post {
  flex: 1 1 280px;
  background: #FFE5D0;
  border-radius: var(--cc-border-radius);
  box-shadow: var(--cc-shadow-soft);
  padding: 20px 18px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 210px;
  max-width: 350px;
  border: 2px solid var(--cc-accent);
  position: relative;
}
.blog-post h3 {
  color: var(--cc-accent-dark);
  margin-bottom: 0;
  font-family: var(--cc-font-display);
}
.blog-post a {
  color: var(--cc-primary);
  text-decoration: underline;
  align-self: flex-end;
  margin-top: 4px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 7px;
  transition: background 0.13s, color 0.13s;
}
.blog-post a:hover, .blog-post a:focus {
  background: var(--cc-accent);
  color: #fff;
}
.blog-categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.blog-categories li {
  background: #F8E8CF;
  color: var(--cc-primary);
  border-radius: 9px;
  padding: 4px 14px;
  font-family: var(--cc-font-display);
  font-weight: 600;
  font-size: 0.98rem;
}

/* =============================
   LISTS & CATEGORY TAGS
   ============================= */
.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 16px 0 24px 0;
}
.category-list li {
  background: #FFE5D0;
  color: var(--cc-accent-dark);
  border-radius: 10px;
  padding: 7px 16px;
  font-family: var(--cc-font-display);
  font-size: 1.01rem;
  font-weight: 700;
}

ul, ol {
  margin-left: 20px;
  margin-bottom: 12px;
}

/* =============================
   CONTACT MAP & INFO
   ============================= */
.contact-info, .contact-map {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-map {
  align-items: flex-start;
  margin-top: 16px;
}
.contact-map img {
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
}
.contact-info div, .contact-map p {
  font-size: 1rem;
  color: var(--cc-primary);
  line-height: 1.4;
}

/* =============================
   FOOTER
   ============================= */
footer {
  background: #F8E8CF;
  border-top: 3px double var(--cc-primary);
  padding: 40px 0 16px 0;
  font-size: 0.97rem;
}
.footer-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 36px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer-wrapper nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 18px;
}
.footer-wrapper nav a {
  color: var(--cc-primary);
  font-family: var(--cc-font-display);
  font-size: 0.98rem;
  transition: color 0.16s;
}
.footer-wrapper nav a:hover, .footer-wrapper nav a:focus {
  color: var(--cc-accent);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--cc-primary);
  font-family: var(--cc-font-body);
}
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}
.footer-contact img {
  width: 22px;
  height: 22px;
  opacity: 0.76;
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 12px;
}
.footer-social a img {
  width: 32px;
  height: 32px;
  transition: transform 0.15s;
}
.footer-social a:hover img {
  transform: scale(1.1) rotate(-8deg);
}

/* =============================
   COOKIE CONSENT BANNER
   ============================= */
#cookie-consent-banner, .cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FFE2B9;
  color: var(--cc-primary);
  box-shadow: 0 -2px 18px rgba(50,40,22,0.08);
  border-top: 3px double var(--cc-primary);
  padding: 22px 30px 20px 30px;
  z-index: 9999;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-family: var(--cc-font-body);
  font-size: 1rem;
  animation: slideInBanner 0.4s ease;
}
@keyframes slideInBanner {
  0% {transform: translateY(110%); opacity: 0;}
  100% {transform: translateY(0); opacity: 1;}
}
.cookie-consent-banner .cookie-consent-btn, .cookie-consent-btn {
  font-family: var(--cc-font-display);
  font-size: 1rem;
  margin: 0 7px;
  padding: 7px 22px;
  border-radius: 999px;
  border: 2px solid var(--cc-accent-dark);
  color: #fff;
  background: var(--cc-accent);
  font-weight: bold;
  box-shadow: 0 3px 8px rgba(178,81,17,0.09);
  cursor: pointer;
  transition: background 0.13s, color 0.13s;
  outline: none;
}
.cookie-consent-btn.secondary {
  background: var(--cc-secondary);
  color: var(--cc-accent-dark);
  border-color: var(--cc-accent-dark);
}
.cookie-consent-btn.settings {
  background: #F8E8CF;
  color: var(--cc-primary);
  border-color: var(--cc-primary);
}
.cookie-consent-btn:hover, .cookie-consent-btn:focus {
  background: var(--cc-primary);
  color: #fff5e5;
  border-color: var(--cc-accent-dark);
}
.cookie-consent-btn.settings:hover {
  background: var(--cc-accent);
  color: #fff;
}

/* Cookie settings modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(66, 52, 32, 0.53);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInCookieModal 0.2s ease;
}
@keyframes fadeInCookieModal {
  0% {opacity: 0;}
  100% {opacity: 1;}
}
.cookie-modal {
  background: #FFE5D0;
  color: var(--cc-primary);
  border-radius: 22px;
  padding: 38px 28px 28px 28px;
  box-shadow: 0 8px 42px rgba(178,81,17,0.13);
  min-width: 320px;
  max-width: 98vw;
  font-family: var(--cc-font-body);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--cc-accent-dark);
  cursor: pointer;
}
.cookie-setting-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 10px;
}
.cookie-setting-list label {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 7px;
}
.cookie-setting-list input[type="checkbox"] {
  accent-color: var(--cc-accent);
  width: 18px;
  height: 18px;
}
.cookie-setting-essential {
  color: #b46c08;
  font-weight: bold;
  font-size: 1.01rem;
}


/* =============================
   RESPONSIVE: MOBILE FIRST
   ============================= */
@media (max-width: 1200px) {
  .container {
    max-width: 920px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
  }
  .footer-wrapper { gap: 22px; }
}
@media (max-width: 768px) {
  .container { padding: 0 8px; }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .feature-grid, .blog-post-grid, .testimonial-slider, .card-container, .card-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
  .footer-wrapper {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .hero {
    padding: 40px 0 18px 0;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.17rem; }
  h3 { font-size: 1rem; }
  .section {
    padding: 27px 7px;
    margin-bottom: 37px;
  }
  .cta-block { padding: 18px 0; }
}
@media (max-width: 540px) {
  .header-bar {
    height: auto;
    flex-direction: column;
    gap: 12px;
    padding: 13px 0 10px 0;
    align-items: flex-start;
  }
  .hero .container { padding: 0 2px; }
  .content-wrapper { gap: 12px; }
  .blog-post, .card, .feature, .testimonial-card {
    max-width: 100%;
    min-width: 0;
    padding: 15px 7px;
  }
  .testimonial-card { padding: 18px 10px; }
  .cookie-modal {
    padding: 18px 7px;
    min-width: 0;
  }
  #cookie-consent-banner, .cookie-consent-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 13px;
    padding: 14px 6px 12px 6px;
    font-size: 0.96rem;
  }
}

/* =============================
   INTERACTIONS & MICROS
   ============================= */
a, .cta, .main-nav a, .mobile-nav a, .blog-post a, .cookie-consent-btn, .blog-categories li {
  transition: background 0.16s, color 0.16s, box-shadow 0.16s, transform 0.13s;
}
a:focus, .cta:focus, .main-nav a:focus, .mobile-nav a:focus {
  outline: 2px dotted var(--cc-primary);
  outline-offset: 1.5px;
}

.card, .feature, .blog-post, .testimonial-card {
  transition: box-shadow 0.15s, transform 0.11s;
}
.card:hover, .feature:hover, .blog-post:hover, .testimonial-card:hover {
  box-shadow: 0 7px 25px rgba(206,93,45,0.14), var(--cc-shadow-vintage);
  transform: translateY(-3px) scale(1.01);
}

/* =============================
   VINTAGE/RETRO DECORATIVE ELEMENTS
   ============================= */
.section {
  border-radius: 22px;
  background: repeating-linear-gradient(135deg,#FFF1D2 0 12px,#F8E8CF 12px 28px) var(--cc-secondary);
  filter: sepia(0.08) contrast(1.03);
  border: 2.5px solid #E7C38A;
}
.card, .feature, .blog-post, .testimonial-card {
  border-radius: 14px;
  border: 2px solid #E7C38A;
  background-blend-mode: multiply;
}

hr {
  border: none;
  border-top: 2px dashed #CDA256;
  margin: 24px 0;
}

/* =============================
   FLEXBOX SPACING ENFORCEMENT
   ============================= */
.section, .card-container, .card-grid, .feature-grid, .blog-post-grid, .testimonial-slider, .footer-wrapper, .content-wrapper, .category-list, .blog-categories ul {
  gap: 20px;
}
.card, .feature, .testimonial-card, .blog-post {
  margin-bottom: 20px;
}
/* .section: last-child, .card: last-child, .card-container: last-child, override margin-bottom when required */
.section:last-child, .card:last-child, .card-container:last-child, .feature:last-child, .testimonial-card:last-child {
  margin-bottom: 0 !important;
}

/* =============================
   MISC COMPONENT OVERRIDES
   ============================= */
.season-calendar h3 {
  color: var(--cc-accent);
  margin-bottom: 7px;
}
.season-calendar ul li {
  background: #FFD3B6;
  border-radius: 8px;
  color: var(--cc-primary);
  margin-bottom: 6px;
  padding: 4px 10px;
  font-size: 0.98rem;
}
.recipe-overview {
  background: #FFE5D0;
  border-radius: var(--cc-border-radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--cc-shadow-soft);
  border: 1.5px solid #F8E8CF;
}
.recipe-overview h3 { font-size:1.11rem; margin-bottom:10px; }
.recipe-overview ul {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  margin: 0 0 7px 0;
  align-items: center;
}
.recipe-overview ul li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.99rem;
  background: #F8E8CF;
  border-radius: 6px;
  padding: 4px 8px;
}
.recipe-overview ul li img {
  width: 20px; height: 20px;
}

/* =============================
   ACCESSIBILITY COLORS
   ============================= */
.testimonial-card,
.testimonial-card p,
.testimonial-card strong,
.testimonial-card span,
.testimonial-card > div {
  color: #3c2910;
  background: none;
}

/* =============================
   PRINT (hide menu, banner)
   ============================= */
@media print {
  .header-bar, .main-nav, .mobile-menu, .mobile-menu-toggle, #cookie-consent-banner, .cookie-consent-banner, .cookie-modal-overlay { display: none !important; }
  .container { max-width: 100vw !important; }
}
