/* ----------------------------------------------------------
   RESET & BASELINE NORMALIZATION  
----------------------------------------------------------*/
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;
  font: inherit;
  box-sizing: border-box;
}
html { box-sizing: border-box; height: 100%; font-size: 16px; }
*, *:before, *:after { box-sizing: inherit; }
body {
  min-height: 100vh;
  background: #F6E7CA;
  color: #412A13; /* dark retro brown for classic vintage text */
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #20317C; text-decoration: underline; cursor: pointer; transition: color 0.18s; }
a:hover, a:focus { color: #8E5020; outline: none; }
ul, ol { padding-left: 2rem; margin: 0 0 1rem 0; }
li { margin-bottom: 0.5rem; }
strong { font-weight: 700; }
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -0.5em; }
sub { bottom: -0.25em; }
table { border-collapse: collapse; width: 100%; margin-bottom: 1.5rem; }
th, td { border: 1px solid #E3D3B1; padding: 8px 12px; text-align: left; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', 'Georgia', serif;
  color: #20317C;  /* deep blue retro */
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; margin-bottom: 18px; }
h2 { font-size: 1.8rem; margin-bottom: 14px; }
h3 { font-size: 1.32rem; margin-bottom: 10px; }
h4 { font-size: 1.1rem; }
p, .subheadline { font-family: 'Roboto', Arial, sans-serif; font-size: 1.06rem; margin-bottom: 16px; }
.subheadline {
  color: #8E5020;
  font-size: 1.18rem;
  font-style: italic;
  margin-bottom: 28px;
}
/* ----------------------------------------------------------
   CONTAINER & LAYOUT STRUCTURE (FLEXBOX ONLY)
----------------------------------------------------------*/
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
main {
  flex: 1 1 auto;
  width: 100%;
}
/* Section spacing */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background-repeat: repeat;
  background-size: 220px 160px;
  border-radius: 20px;
  box-shadow: 0 2px 16px 0 rgba(32,49,124,0.06);
  position: relative;
}
section:nth-child(even) {
  background-color: #F7F3E8;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 22 16' width='22' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cellipse cx='11' cy='8' rx='11' ry='8' fill='%238E502013'/%3E%3C/svg%3E");
}
section:nth-child(odd) {
  background-color: #F6E7CA;
}
/* ----------------------------------------------------------
   NAVBAR & HEADER
----------------------------------------------------------*/
header {
  width: 100%;
  background: #fffbe6;
  padding: 16px 0;
  border-bottom: 5px solid #8E5020;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 200;
  box-shadow: 0 4px 18px 0 rgba(32,49,124,0.07);
}
header a {
  text-decoration: none;
  transition: color 0.18s;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
header img {
  height: 54px;
  width: auto;
  margin-right: 16px;
}
.cta-btn {
  background: #20317C;
  color: #fffbe6;
  font-family: 'Lora', 'Georgia', serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 1.13rem;
  padding: 13px 30px;
  border: none;
  border-radius: 32px;
  box-shadow: 0 2px 12px 0 rgba(32,49,124,0.11);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
  margin-left: 20px;
  position: relative;
}
.cta-btn:hover, .cta-btn:focus {
  background: #8E5020;
  color: #fffbe6;
  box-shadow: 0 5px 22px 0 rgba(142,80,32,0.13);
  outline: none;
}
header nav a {
  font-family: 'Lora', 'Georgia', serif;
  font-size: 1.04rem;
  color: #20317C;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
header nav a:hover, header nav a.active {
  border-bottom: 2px solid #8E5020;
  color: #8E5020;
}
.header .cta-btn { margin-left: auto; }
/* Mobile menu toggle */
.mobile-menu-toggle {
  display: block;
  background: #20317C;
  color: #fffbe6;
  border: none;
  border-radius: 8px;
  font-size: 2rem;
  padding: 8px 18px;
  position: fixed;
  top: 14px;
  right: 18px;
  z-index: 1000;
  cursor: pointer;
  transition: background 0.15s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover { background: #8E5020; }
/* Hide desktop nav on mobile, hide mobile-toggle on desktop */
@media (max-width: 992px) {
  header nav,
  .cta-btn { display: none !important; }
  .mobile-menu-toggle { display: block !important; }
}
@media (min-width: 993px) {
  .mobile-menu-toggle, .mobile-menu { display: none !important; }
}
/* ----------------------------------------------------------
   MOBILE MENU (Slide In Overlay)
----------------------------------------------------------*/
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: #fffbe6;
  z-index: 1200;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.77,0,.18,1);
  box-shadow: 0 12px 50px 0 rgba(32,49,124,0.19);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  background: none;
  border: none;
  color: #20317C;
  font-size: 2.1rem;
  margin: 26px 0 0 28px;
  cursor: pointer;
  padding: 4px 15px;
  border-radius: 8px;
  transition: background 0.14s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover { background: #E3D3B1; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 36px 36px 16px 36px;
  width: 100%;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: 'Lora', 'Georgia', serif;
  font-size: 1.25rem;
  color: #20317C;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 1.5px;
  transition: color 0.16s, border-bottom 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #8E5020;
  border-bottom: 2px solid #8E5020;
  outline: none;
}
/* ----------------------------------------------------------
   FOOTER
----------------------------------------------------------*/
footer {
  width: 100%;
  background: #fffbe6;
  border-top: 5px solid #8E5020;
  padding: 40px 0 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  font-size: 0.98rem;
  letter-spacing: 0.1px;
}
footer img { height: 35px; margin-bottom: 10px; }
footer nav {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  font-family: 'Lora', 'Georgia', serif;
}
footer nav a {
  color: #8E5020;
  text-decoration: none;
  padding: 0 4px;
  transition: color 0.17s;
}
footer nav a:hover { color: #20317C; }
footer small {
  color: #756946;
  margin-top: 7px;
  display: block;
}
/* ----------------------------------------------------------
   FLEXBOX LAYOUTS FOR CONTENT COMPONENTS
----------------------------------------------------------*/
.feature-grid,
.card-container,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card,
.feature-item {
  background: #fffbe6;
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(32,49,124,0.08);
  padding: 24px 22px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.19s, transform 0.17s;
}
.card:hover, .feature-item:hover {
  box-shadow: 0 12px 30px 0 rgba(142,80,32,0.10);
  transform: translateY(-3px) scale(1.02);
}
.feature-item img {
  width: 48px;
  height: 48px;
  margin-bottom: 5px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}
.testimonial-card {
  background: #fffbe6;
  border: 2.5px dashed #8E5020;
  color: #312016;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 28px;
  min-width: 250px;
  max-width: 370px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px 0 #F6E7CA99;
  transition: box-shadow 0.18s, transform 0.15s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 20px 0 rgba(32,49,124,0.11);
  transform: translateY(-3px) scale(1.02);
}
.testimonial-card p {
  font-family: 'Lora',serif;
  font-size: 1.07rem;
  color: #412A13;
  margin-bottom: 5px;
}
.testimonial-card span {
  color: #8E5020;
  font-size: 1.08rem;
  letter-spacing: 1.2px;
}
.testimonial-card small {
  font-family: 'Roboto',Arial,sans-serif;
  font-size: 0.98rem;
  color: #20317C;
}
/* Responsive hierarchy: cards in a row on desktop */
@media (min-width: 770px) {
  .testimonial-slider { flex-direction: row; }
  .feature-grid      { flex-direction: row; }
  .card-container    { flex-direction: row; }
}
/* Card container aligning cards evenly */
.card-container,
.content-grid {
  justify-content: space-between;
  align-items: stretch;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.service-list {
  margin-bottom: 20px;
}
.service-list li {
  margin-bottom: 16px;
  font-size: 1.08rem;
}
.category-links, .region_filter, .filter-by-time {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin: 15px 0 12px 0;
  font-family: 'Lora', serif;
}
.category-links a, .region_filter a, .filter-by-time a {
  color: #8E5020;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.15s;
}
.category-links a:hover, .region_filter a:hover, .filter-by-time a:hover {
  color: #20317C;
}
.quick-recipe-list ul, .classic_recipes_list ul, .featured-recipes-list ul, .course-list {
  padding: 0;
  margin: 0 0 18px 0;
  list-style: none;
}
.quick-recipe-list li, .classic_recipes_list li, .featured-recipes-list li, .course-list li {
  margin-bottom: 14px;
  font-size: 1.07rem;
  background: #F7F3E8;
  border-radius: 9px;
  padding: 12px 15px;
  border-left: 4px solid #8E5020;
  font-family: 'Lora', serif;
}
.tips-panel {
  background: #fffbe6;
  border: 2.5px dotted #8E5020;
  border-radius: 12px;
  padding: 20px 22px;
  font-family: 'Lora', serif;
  margin-top: 19px;
}
.tips-panel h3 { color: #8E5020; font-size: 1.13rem; margin-bottom: 11px; }
.tips-panel ul { margin: 0 0 4px 1em; }
.tips-panel li { font-size: 1.04rem; color: #20317C; }
.map {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fffbe6;
  padding: 15px 20px;
  border-radius: 10px;
  margin-top: 15px;
  font-size: 1.04rem;
  color: #412A13;
}
.map img { width: 28px; }
.core-values ul {
  list-style: none;
  padding: 0;
}
.core-values li {
  margin-bottom: 10px;
  background: #F7F3E8;
  padding: 9px 13px;
  border-radius: 7px;
  border-left: 5px solid #20317C;
}
.community-engagement {
  background: #fffbe6;
  padding: 12px 20px;
  border-radius: 10px;
  margin-top: 15px;
}
.filter-by-time, .region_filter {
  font-size: 1rem;
  margin-bottom: 10px;
}
.featured_traditions {
  background: #fffbe6;
  border-radius: 10px;
  padding: 10px 16px;
  border: 1.5px solid #E3D3B1;
  margin-top: 20px;
}
.featured_traditions h3 { color: #8E5020; font-size: 1.13rem; }
/* Form fields, Search Bar */
.search-bar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 15px 0 11px 0;
  width: 100%;
}
.search-bar input {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.02rem;
  padding: 10px 15px;
  border: 2px solid #E3D3B1;
  border-radius: 8px;
  background: #fffbe6;
  width: 100%;
  max-width: 360px;
  transition: border 0.13s;
}
.search-bar input:focus {
  border-color: #8E5020;
  outline: none;
}
.filters {
  margin-bottom: 17px;
}
.filters ul {
  list-style: none; display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 9px 0 0 0;
}
.filters li {
  background: #fffbe6;
  border-radius:8px;
  padding: 5px 15px;
  border: 1.5px solid #E3D3B1;
  transition: border 0.15s;
}
.filters a:hover { color: #8E5020; border-bottom: 2px solid #8E5020; }
/* .card, .feature-item (per instructions above) spacing ensured */
.card {
  min-width: 250px; max-width: 360px; width: 100%;
}
/* ----------------------------------------------------------
   COOKIE CONSENT BANNER (STYLED FIXED BOTTOM)
----------------------------------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 1500;
  background: #fffbe6;
  border-top: 3px solid #8E5020;
  box-shadow: 0px -4px 22px 0 rgba(32,49,124,0.10);
  padding: 28px 8vw 22px 8vw;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  justify-content: space-between;
  font-size: 1.07rem;
  transition: transform 0.34s cubic-bezier(.77,0,.18,1);
  transform: translateY(0);
}
.cookie-banner.hide { transform: translateY(130%); }
.cookie-banner .cookie-text {
  flex: 1 1 250px;
  color: #412A13;
  font-family: 'Lora', serif;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 16px;
}
.cookie-banner button {
  background: #20317C;
  color: #fffbe6;
  border: none;
  border-radius: 22px;
  font-family: 'Lora', serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.07rem;
  padding: 10px 27px;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
  box-shadow: 0 1px 6px 0 rgba(32,49,124,0.08);
}
.cookie-banner button.accept { background: #20317C; color: #fffbe6; }
.cookie-banner button.reject { background: #8E5020; color: #fffbe6; }
.cookie-banner button.settings {
  background: #fffbe6;
  color: #20317C;
  border: 2px solid #20317C;
}
.cookie-banner button:focus, .cookie-banner button:hover {
  background: #8E5020;
  color: #fffbe6;
  outline: none;
}
.cookie-banner button.settings:focus, .cookie-banner button.settings:hover {
  background: #20317C;
  color: #fffbe6;
}
/* COOKIE SETTINGS MODAL POPUP */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 1600;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(32,49,124,0.19);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: background 0.15s;
}
.cookie-modal {
  background: #fffbe6;
  border-radius: 20px 20px 0 0;
  padding: 36px 28px 28px 28px;
  box-shadow: 0 6px 32px 0 rgba(32,49,124,0.18);
  min-width: 320px; max-width: 450px;
  font-family: 'Roboto', Arial, sans-serif;
  position: relative;
  transform: translateY(100%);
  animation: cookiemodalin 0.7s cubic-bezier(.45,1.45,.19,.99) forwards;
}
@keyframes cookiemodalin {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 { color: #20317C; font-size: 1.22rem; margin-bottom: 15px; }
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 17px;
  right: 17px;
  background: none;
  border: none;
  color: #20317C;
  font-size: 1.45rem;
  cursor: pointer;
  border-radius: 8px;
  padding: 3px 12px;
  transition: background 0.13s;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  background: #E3D3B1;
}
.cookie-modal .cookie-category {
  margin-bottom: 18px;
}
.cookie-modal label {
  font-size: 1.06rem;
  color: #412A13;
  display: flex;
  align-items: center;
  gap: 9px;
}
.cookie-modal input[type=checkbox]:disabled + span {
  color: #B9B1A5;
  font-style: italic;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}
.cookie-modal .cookie-actions button {
  border-radius: 18px;
  background: #8E5020;
  color: #fffbe6;
  border: none;
  font-family: 'Lora',serif;
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 8px 20px;
  transition: background 0.17s;
}
.cookie-modal .cookie-actions button.cancel {
  background: #20317C;
}
.cookie-modal .cookie-actions button:focus,
.cookie-modal .cookie-actions button:hover {
  background: #412A13;
  color: #fffbe6;
}
/* ----------------------------------------------------------
   RESPONSIVE BREAKPOINTS (MOBILE-FIRST)  
----------------------------------------------------------*/
@media (max-width: 770px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.32rem; }
  h3 { font-size: 1.11rem; }
  .container { padding: 0 5vw; }
  section { padding: 20px 7px; margin-bottom: 38px; }
  .feature-grid, .card-container, .content-grid, .testimonial-slider {
    flex-direction: column;
    gap: 20px;
  }
  .content-wrapper { gap: 15px; }
  .text-image-section { flex-direction: column; gap: 18px; }
  .feature-item, .card { min-width: 150px; max-width: initial; }
  .testimonial-card { max-width: 96vw; padding: 16px 10px; }
  .search-bar input { max-width: 98vw; }
}
@media (max-width: 520px) {
  .container { padding: 0 3vw; }
  section { border-radius: 8px; }
  .feature-item img { width: 34px; height: 34px; }
  .testimonial-card { padding: 12px 3vw; font-size: 0.97rem; }
}
/* Utility classes for spacing */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mb-0 { margin-bottom: 0 !important; }
.gap-xs { gap: 10px !important; }
.gap-sm { gap: 14px !important; }
.gap-md { gap: 22px !important; }
.gap-lg { gap: 28px !important; }
/* ----------------------------------------------------------
   MICRO-INTERACTIONS & ANIMATIONS
----------------------------------------------------------*/
.cta-btn,
header nav a,
.mobile-nav a,
footer nav a {
  transition: background 0.17s, color 0.15s, box-shadow 0.19s, border 0.14s;
}
.card, .feature-item, .testimonial-card {
  transition: box-shadow 0.19s cubic-bezier(.57,.04,.36,.95), transform 0.14s;
}
.card:hover, .feature-item:hover, .testimonial-card:hover {
  box-shadow: 0 8px 26px 0 rgba(142,80,32,0.15);
  transform: translateY(-3px) scale(1.01);
}
input, button {
  transition: border 0.13s, background 0.13s, color 0.13s;
}
/* ----------------------------------------------------------
   VINTAGE-RETRO EXTRAS (PATTERNS, BORDERS)
----------------------------------------------------------*/
section {
  border: 2.5px solid #E3D3B1;
  box-shadow: 0 2px 12px 0 #E3D3B155;
  background-image: url('data:image/svg+xml,%3Csvg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="36" height="36"%3E%3Ccircle cx="9" cy="9" r="8.5" stroke="%238E5020" stroke-opacity="0.13"/%3E%3C/svg%3E');
  background-repeat: repeat;
  background-size: 96px 96px;
}
.feature-item, .card, .testimonial-card {
  border-style: dashed;
  border-width: 2px;
  border-color: #E3D3B1;
}
.testimonial-card {
  border-style: dashed;
  border-color: #8E5020;
  background: #fffbe6;
}
/* ----------------------------------------------------------
   HIGH CONTRAST FOR TESTIMONIALS/REVIEW TEXTS
----------------------------------------------------------*/
.testimonial-card {
  color: #251606;
  background: #fffbe6;
}
.testimonial-card p, .testimonial-card small {
  color: #1B1B1B;
}
.testimonial-card span {
  color: #8E5020;
}
/* ----------------------------------------------------------
   OVERRIDE: PREVENT OVERLAPS & ENSURE GAPS
----------------------------------------------------------*/
section, .feature-item, .card, .testimonial-card, .content-wrapper, .card-container, .feature-grid, .testimonial-slider {
  margin-bottom: 20px; /* extra insurance to always have content gap */
}
section { margin-bottom: 60px; }
.card-container, .feature-grid, .testimonial-slider, .content-grid {
  gap: 24px;
}
.text-image-section { gap: 30px; }
.feature-item { gap: 15px; }
.testimonial-card { gap: 20px; }
/* ----------------------------------------------------------
   PRINT FONTS (BRING RETRO TO PRINT VERSIONS)
----------------------------------------------------------*/
@media print {
  body, h1, h2, h3, h4, h5, h6 { color: #20317C; background: none !important; }
  section, .feature-item, .card, .testimonial-card { background: none !important; }
}
