/* ---- CSS 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,
b, 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;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  line-height: 1.5;
  background: #F6F1EA;
  color: #3C2E24;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; height: auto; border: none; }
input, button { font-family: inherit; }

/* ---- VINTAGE RETRO DESIGN SYSTEM ---- */
:root {
  --color-primary: #21532A;
  --color-secondary: #FFFFFF;
  --color-bg: #F6F1EA;
  --color-accent: #B04C06;
  --color-retro-green: #21532A;
  --color-retro-cream: #F6F1EA;
  --color-retro-orange: #D16E2B;
  --color-retro-brown: #7C4930;
  --color-retro-yellow: #FFD88A;
  --color-retro-blue: #89A6A8;
  --color-gray-light: #ECE5D7;
  --color-gray-dark: #3C2E24;
  --shadow: 0 6px 18px rgba(57,40,25,0.16);
  --radius: 18px;
  --radius-small: 7px;
  --transition: all 0.22s cubic-bezier(.44,0,.56,1);
}

/* ---- TYPOGRAPHY: Retro Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Roboto:wght@400;500&display=swap');
h1, .h1 {
  font-family: 'Montserrat', 'Arial Black', sans-serif;
  font-size: 2.6rem;
  letter-spacing: -1px;
  color: var(--color-primary);
  text-shadow: 1px 1px 0 var(--color-retro-yellow), 2px 2px 0 var(--color-retro-orange);
  margin-bottom: 20px;
  font-weight: 700;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 20px;
  letter-spacing: -1px;
  font-weight: 700;
  text-shadow: 1px 1px 0 var(--color-retro-yellow);
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.32rem;
  color: var(--color-retro-green);
  margin-bottom: 10px;
  font-weight: 700;
}
h4, .h4 {
  font-size: 1.1rem;
  color: var(--color-retro-brown);
}
p, li, blockquote, cite {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: var(--color-gray-dark);
  margin-bottom: 14px;
  font-size: 1rem;
}
.subtitle {
  font-size: 1.18rem;
  color: var(--color-retro-green);
  font-family: 'Roboto', sans-serif;
  margin-bottom: 20px;
}
em {
  color: var(--color-accent);
  font-style: italic;
  background: var(--color-retro-yellow);
  padding: 1px 6px;
  border-radius: 4px;
}
strong {
  color: var(--color-retro-orange);
  font-weight: 700;
}
blockquote {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.18rem;
  color: var(--color-retro-brown);
  background: var(--color-yellow, var(--color-retro-yellow));
  border-left: 8px solid var(--color-retro-green);
  padding: 15px 23px;
  border-radius: var(--radius-small);
  margin-bottom: 10px;
  box-shadow: 0 4px 10px rgba(33,83,42,0.07);
}
cite {
  color: var(--color-retro-green);
  font-size: 0.95em;
  font-style: normal;
  padding-left: 10px;
}

/* ---- LAYOUT CONTAINER ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  /* Responsive switch to flex-row on wide screens where necessary */
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-retro-cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 24px;
  min-width: 250px;
  flex: 1 1 300px;
  transition: transform .18s;
}
.card:hover, .recipe-card:hover, .course-card:hover {
  transform: translateY(-4px) scale(1.025);
  box-shadow: 0 12px 28px rgba(33,83,42,0.16);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-yellow, var(--color-retro-yellow));
  border-radius: var(--radius-small);
  box-shadow: 0 3px 10px rgba(57,40,25,0.10);
  margin-bottom: 20px;
  border: 1.5px solid var(--color-retro-brown);
  max-width: 620px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- Special container utilities --- */
.service-list, .team-profiles, .articles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.service-list > div, .team-profiles > div, .articles-grid > div {
  background: var(--color-secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  margin-bottom: 20px;
  flex: 1 1 260px;
  min-width: 240px;
}

.recipe-card, .course-card {
  background: var(--color-retro-cream);
  border: 2px solid var(--color-retro-green);
  border-radius: var(--radius-small);
  box-shadow: 0 3px 10px rgba(33,83,42,0.12);
  padding: 22px 18px;
  margin-bottom: 24px;
  font-family: 'Roboto', sans-serif;
}

/* ARTICLE PREVIEWS AND PAGES */
.articles-grid {
  gap: 24px;
}
.category-filter, .tag-filter, .filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 10px 0;
}

.pagination {
  display: flex;
  gap: 10px;
  margin: 18px 0 0 0;
  align-items: center;
}
.pagination a, .pagination span {
  font-family: 'Montserrat', sans-serif;
  background: var(--color-retro-yellow);
  color: var(--color-primary);
  padding: 6px 14px;
  border-radius: var(--radius-small);
  font-weight: 700;
  font-size: 1em;
  box-shadow: 0 2px 8px rgba(158,133,65,0.10);
  transition: background var(--transition);
}
.pagination a:hover {
  background: var(--color-accent);
  color: #fff;
}
.pagination .current {
  background: var(--color-primary);
  color: #fff;
}

/* --- HERO STYLING --- */
section:first-of-type {
  background: var(--color-retro-green);
  color: var(--color-retro-cream);
  box-shadow: 0 8px 36px rgba(33,83,42,0.11);
  border-radius: 0 0 var(--radius) var(--radius);
}
section:first-of-type h1, section:first-of-type h2, section:first-of-type .subtitle {
  color: #fff;
  text-shadow: 1px 2px 0 var(--color-retro-orange);
}
section:first-of-type .button {
  box-shadow: 0 3px 10px rgba(255,216,138,0.22);
}

/* ---- BUTTONS ---- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1em;
  letter-spacing: .5px;
  background: var(--color-retro-orange);
  color: #fff;
  border: none;
  border-radius: var(--radius-small);
  box-shadow: 0 3px 12px rgba(33,83,42,0.09);
  cursor: pointer;
  padding: 12px 32px;
  margin-top: 12px;
  margin-bottom: 12px;
  transition: background var(--transition), transform .15s;
  outline: none;
  gap: 10px;
}
.button.primary {
  background: var(--color-primary);
  color: #fff;
}
.button.secondary {
  background: var(--color-retro-yellow);
  color: var(--color-primary);
  border: 1.5px solid var(--color-accent);
}
.button.small {
  font-size: 0.96em;
  padding: 8px 18px;
  background: var(--color-retro-blue);
  color: var(--color-primary);
  border: 1.2px solid var(--color-retro-green);
}
.button:hover, .button:focus {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 7px 18px rgba(176,76,6,0.12);
}
.button.secondary:hover, .button.secondary:focus {
  background: var(--color-accent);
  color: #fff;
}
.button.primary:hover, .button.primary:focus {
  background: var(--color-retro-orange);
}
.button:active {
  transform: scale(0.98);
}

/* ---- FORM & SEARCH BAR ---- */
.search-bar, .blog-search {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
  align-items: center;
}
.search-bar input, .blog-search input {
  padding: 10px 16px;
  font-size: 1em;
  border: 1.5px solid var(--color-retro-green);
  border-radius: var(--radius-small) 0 0 var(--radius-small);
  outline: none;
  background: var(--color-gray-light);
  color: var(--color-retro-green);
}
.search-bar button, .blog-search button {
  background: var(--color-retro-orange);
  color: #fff;
  border: none;
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
  padding: 10px 18px;
  cursor: pointer;
  transition: background var(--transition);
}
.search-bar button:hover, .blog-search button:hover {
  background: var(--color-primary);
}
.search-bar input[disabled], .blog-search input[disabled],
.search-bar button[disabled], .blog-search button[disabled] {
  background: #ECE5D7;
  opacity: 0.65;
  cursor: not-allowed;
}

/* ---- HEADER + NAVIGATION ---- */
header {
  width: 100%;
  background: var(--color-retro-cream);
  box-shadow: 0 2px 10px rgba(33,83,42,0.08);
  border-bottom: 3px dotted var(--color-retro-orange);
  padding: 0 0 0 0;
  z-index: 90;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  min-height: 74px;
}
header nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', sans-serif;
  color: var(--color-primary);
  font-size: 1.05em;
  padding: 6px 5px;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
}
header nav a:hover, header nav a:focus {
  background: var(--color-retro-yellow);
  color: var(--color-accent);
}
header .button.primary {
  margin-left: 18px;
  font-size: 1.04em;
  padding: 11px 19px;
  letter-spacing: 1.1px;
}
.mobile-menu-toggle {
  display: none;
  background: var(--color-retro-orange);
  color: #fff;
  border: none;
  font-size: 2.2em;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  margin-left: 16px;
  z-index: 112;
  transition: background var(--transition);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-primary);
  color: #fff;
}

/* --- MOBILE NAV MENU --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-retro-cream);
  box-shadow: 0 8px 22px rgba(33,83,42,0.12);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform .38s cubic-bezier(.44,0,.56,1);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  right: 26px;
  top: 20px;
  background: var(--color-retro-orange);
  color: #fff;
  border: none;
  font-size: 2em;
  border-radius: 8px;
  padding: 6px 16px;
  cursor: pointer;
  z-index: 211;
  transition: background var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: 95px 42px;
}
.mobile-nav a {
  font-family: 'Montserrat', sans-serif;
  color: var(--color-primary);
  font-size: 1.32em;
  padding: 10px 0;
  border-bottom: 2px dotted var(--color-retro-yellow);
  width: 100%;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover {
  background: var(--color-retro-yellow);
  color: var(--color-accent);
  border-radius: 4px;
}

/* ---- FOOTER ---- */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 40px 0 20px 0;
  border-top: 6px double var(--color-retro-yellow);
  font-size: 1em;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: space-between;
  margin-bottom: 20px;
}
footer nav, footer ul{
  display: flex;
  flex-direction: column;
  gap: 6px;
}
footer nav a {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1em;
  text-shadow: 1px 1px 0 var(--color-retro-brown);
  margin: 2px 0;
  transition: color var(--transition);
}
footer nav a:hover {
  color: var(--color-retro-yellow);
}
footer h3 {
  font-size: 1.02em;
  color: var(--color-retro-yellow);
  margin-bottom: 8px;
}
footer ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1em;
}
footer .social-links {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
}
footer .social-links a img {
  width: 28px;
  transition: filter .2s;
}
footer .social-links a img:hover {
  filter: brightness(1.25) drop-shadow(0 0 4px var(--color-retro-yellow));
}
footer p {
  font-size: 0.98em;
  color: var(--color-retro-yellow);
  text-align: center;
  margin: 0 auto 0;
}

/* --- DETAILS (FAQ) --- */
details {
  background: var(--color-retro-yellow);
  border: 1.5px solid var(--color-retro-green);
  border-radius: var(--radius-small);
  padding: 15px 18px;
  margin-bottom: 13px;
  cursor: pointer;
  transition: box-shadow var(--transition);
  font-size: 1em;
  color: var(--color-retro-green);
}
details[open] {
  box-shadow: 0 4px 18px rgba(33,83,42,0.19);
  background: #fffbe3;
}
details summary {
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size:1em;
  color: var(--color-retro-brown);
  cursor: pointer;
  padding-bottom: 7px;
}
details p {
  padding-top: 4px;
  font-size: 0.97em;
}

/* ---- COOKIE CONSENT BANNER ---- */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-retro-brown);
  color: var(--color-retro-yellow);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 22px 18px 18px 18px;
  border-top: 4px solid var(--color-retro-orange);
  box-shadow: 0 -6px 20px rgba(33,83,42,0.09);
  z-index: 2500;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity .35s, transform .4s;
}
.cookie-consent-banner.active {
  opacity: 1;
  transform: translateY(0);
}
.cookie-consent-banner .cookie-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 1em;
  color: #fff;
  background: var(--color-retro-orange);
  border: none;
  border-radius: var(--radius-small);
  margin: 0 8px;
  padding: 10px 17px;
  cursor: pointer;
  transition: background var(--transition);
}
.cookie-consent-banner .cookie-btn.settings {
  background: var(--color-retro-yellow);
  color: var(--color-retro-brown);
  border: 1.5px solid var(--color-retro-green);
}
.cookie-consent-banner .cookie-btn:hover {
  background: var(--color-retro-green);
  color: #fff;
}

/* Cookie Consent Modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-60%) scale(.93);
  background: var(--color-retro-cream);
  color: var(--color-retro-brown);
  border: 3px solid var(--color-retro-orange);
  border-radius: var(--radius);
  box-shadow: 0 12px 52px rgba(158,133,65,.19);
  padding: 32px 28px 26px 28px;
  min-width: 320px;
  max-width: 90vw;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .4s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal h2 {
  color: var(--color-retro-orange);
  font-size: 1.28em;
  margin-bottom: 13px;
}
.cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.cookie-category {
  padding: 10px 9px 9px 9px;
  font-size: 1em;
  color: var(--color-retro-brown);
  background: #fff;
  border-radius: var(--radius-small);
  border: 1px solid var(--color-retro-blue);
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-toggle {
  appearance: none;
  width: 44px;
  height: 26px;
  background: var(--color-retro-yellow);
  border-radius: 13px;
  outline: none;
  border: 2px solid var(--color-retro-green);
  transition: background var(--transition);
  position: relative;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: var(--color-retro-green);
}
.cookie-toggle:before {
  content: '';
  display: block;
  position: absolute;
  left: 3px;
  top: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: left .22s, background var(--transition);
}
.cookie-toggle:checked:before {
  left: 22px;
  background: var(--color-retro-yellow);
}
.cookie-modal .cookie-btn {
  margin-top: 13px;
}
.cookie-modal .close-modal {
  position: absolute;
  right: 16px;
  top: 16px;
  background: var(--color-retro-orange);
  color: #fff;
  border: none;
  font-size: 1.5em;
  border-radius: 7px;
  padding: 5px 13px;
  cursor: pointer;
  z-index: 1;
}
.cookie-modal .close-modal:hover {
  background: var(--color-accent);
}

/* ---- RESPONSIVE STYLES ---- */
@media (max-width:1200px) {
  .service-list > div, .team-profiles > div, .card, .course-card, .recipe-card, .articles-grid > div, .testimonial-card {
    min-width: 200px;
    flex: 1 1 210px;
  }
}
@media (max-width:991px) {
  .container, footer .container {
    max-width: 96vw;
    padding-left: 8px;
    padding-right: 8px;
  }
  .content-wrapper, footer .content-wrapper {
    gap: 11px;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .service-list, .team-profiles, .articles-grid,.card-container, .content-grid {
    flex-direction: column;
  }
}
@media (max-width: 768px) {
  h1, .h1 { font-size:2.1rem; }
  h2, .h2 { font-size:1.45rem; }
  h3, .h3 { font-size:1.1rem; }
  .section { padding:25px 6px;margin-bottom:36px; }
  .content-wrapper, .card-container, .service-list, .team-profiles, .content-grid, .articles-grid {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card, .card, .course-card, .recipe-card, .articles-grid > div, .service-list > div, .team-profiles > div {
    min-width: 110px;
    padding: 12px 9px;
  }
  header .container { flex-direction: row; padding-left: 8px; padding-right: 8px; }
  header nav, header .button.primary { display: none; }
  .mobile-menu-toggle { display: block; margin-left: auto; }
}
@media (max-width:480px){
  h1, .h1{font-size:1.43rem;}
  h2, .h2{font-size:1.12rem;}
  .container{padding-left:2px;padding-right:2px;}
  .cookie-consent-banner{font-size:0.95rem;}
  .cookie-modal{padding:13px 6px 13px 6px;min-width:180px;}
  .mobile-nav{padding:77px 12px;font-size:1.02em;}
}
@media (max-width: 400px) {
  .cookie-category {font-size:0.92em;padding:8px 5px;}
  .cookie-consent-banner,.cookie-modal{font-size:.89em;}
}

/* --- MICRO-INTERACTION: transitions --- */
.card, .testimonial-card, .service-list > div, .team-profiles > div, .course-card, .recipe-card, .articles-grid > div {
  transition: box-shadow .22s, transform .14s; 
}
.card:hover, .service-list>div:hover, .team-profiles>div:hover, .course-card:hover, .recipe-card:hover, .articles-grid>div:hover {
  box-shadow: 0 12px 46px rgba(33,83,42,.16);
  z-index: 2;
}

a:focus-visible, button:focus-visible, .cookie-btn:focus-visible {
  outline: 2px dotted var(--color-retro-orange);
  outline-offset: 2px;
}

/* --- MISC RETRO DETAILS & DECOR --- */
.section {
  border: 3.5px double var(--color-retro-green);
  background-image: repeating-linear-gradient(135deg,var(--color-retro-yellow),var(--color-retro-yellow) 10px,transparent 10px,transparent 20px), repeating-linear-gradient(45deg,transparent,transparent 10px,var(--color-retro-blue) 10px, var(--color-retro-blue) 11px);
  background-blend-mode: multiply;
}
.testimonial-card {
  background: var(--color-retro-yellow);
  color: var(--color-retro-brown);
}
.testimonial-card blockquote, .testimonial-card cite {
  color: var(--color-retro-brown) !important;
}

/* --- Retro-Pattern for specific areas --- */
.card, .recipe-card, .course-card, .service-list>div {
  background-image: repeating-linear-gradient(-45deg,rgba(255,216,138,0.13),rgba(255,216,138,0.13) 14px,transparent 14px,transparent 28px);
}

/* --- Accessibility --- */
.testimonial-card, .testimonial-card * { color: #33170A; }
.testimonial-card cite { color: #226733; }

/* --- Spacing / Flex Consistency --- */
main > section { margin-bottom: 60px; }

/* --- Hide scroll on modal open (class for JS) --- */
.body-modal-open { overflow: hidden; }
