/* =================================================
   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;
  box-sizing: border-box;
}
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  background: #fff;
}
body {
  line-height: 1.6;
  background: #fafaf8;
  color: #202020;
  min-height: 100vh;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  position: relative;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
ol, ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* =============================
   BRAND COLORS (MONOCHROME VARIANT)
   ============================= */
:root {
  --primary: #202020; /* deep black for titles/buttons */
  --secondary: #555555; /* dark grey for subtext/labels */
  --accent: #fafaf8; /* background */
  --border: #dddddd;
  --gray-100: #fafaf8;
  --gray-200: #ededed;
  --gray-300: #d6d6d6;
  --gray-600: #888;
  --gray-800: #2a2a2a;
  --cta-highlight: #1E3D2F; /* brand primary dark green as subtle accent */
  --cta-highlight-contrast: #fff;
  --brand-gold: #D8A54E;
}

/* ===========
   TYPOGRAPHY
   =========== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500|Open+Sans:400,600,700&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.1;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 18px;
  line-height: 1.2;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 10px;
}
p, ul, ol, li, label {
  color: var(--gray-800);
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 10px;
}
strong {
  font-weight: 700;
  color: var(--primary);
}
blockquote {
  font-style: italic;
  border-left: 4px solid var(--primary);
  padding-left: 16px;
  color: var(--primary);
  background: var(--gray-100);
  margin-bottom: 12px;
  font-size: 1.1rem;
}

/* ===========
   CONTAINER
   =========== */
.container {
  width: 100%;
  max-width: 1180px;
  padding: 0 20px;
  margin: 0 auto;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===================================================
           HEADER & NAVIGATION
   =================================================== */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: sticky;
  top: 0; left: 0;
  z-index: 100;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  display: flex;
  align-items: center;
  max-width: 180px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.1em;
  font-size: 1rem;
  padding: 4px 0;
  position: relative;
  transition: color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--brand-gold);
}
.cta-btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 12px 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  background: var(--primary);
  color: var(--cta-highlight-contrast);
  border-radius: 25px;
  border: none;
  box-shadow: 0 2px 12px rgba(0,0,0,0.09);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  margin-left: 20px;
}
.cta-btn-primary:hover, .cta-btn-primary:focus {
  background: var(--brand-gold);
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(216,165,78,0.14);
}

/* MOBILE MENU BUTTON */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  display: none;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--brand-gold);
}

/* ===========
   MOBILE MENU
   =========== */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(24,24,24,0.98);
  transform: translateX(100vw);
  transition: transform 0.35s cubic-bezier(.62,.08,.13,1.01);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  z-index: 500;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  pointer-events: auto;
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.3rem;
  border: none;
  padding: 18px 18px 8px 18px;
  align-self: flex-end;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 32px;
  gap: 12px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #fff;
  font-size: 1.25rem;
  padding: 14px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-gold);
  color: var(--primary);
}

/* Responsive Hide/Show of Main Nav and burger menu */
@media (max-width: 1040px){
  .main-nav, .cta-btn-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1041px){
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none!important;
  }
}

/* ==============
   SECTIONS & LAYOUT
   ============= */
section {
  background: transparent;
  width: 100%;
  margin-bottom: 60px;
  padding: 40px 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* Content-grid or flex wrapper pattern */
.content-grid, .feature-grid, .tips-grid, .card-container, .teaser-cards, .testimonial-list, .recipe-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: stretch;
}

/* Fallback specific spacing (see required patterns) */
.card-container { gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px 24px; margin-bottom: 18px; border-radius: 12px; background: #fff; box-shadow: 0 2px 10px rgba(32,32,32,0.08); min-width: 265px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

@media (max-width: 768px){
  .content-wrapper, .content-grid, .feature-grid, .card-container, .teaser-cards, .testimonial-list, .recipe-grid, .tips-grid {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  section, .section {
    padding: 30px 8px;
  }
}

/* ==============
  CARD/TILE Patterns
  ============== */
.feature-grid, .recipe-grid, .teaser-cards, .tips-grid, .recipe-list{
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature, .teaser-card, .recipe-card, .tip-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(32,32,32,0.07);
  padding: 24px 20px 20px 20px;
  flex: 1 1 260px;
  min-width: 260px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.18s, box-shadow 0.18s;
  border: 1px solid var(--gray-200);
  position: relative;
}
.feature:hover, .teaser-card:hover, .recipe-card:hover, .tip-card:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: 0 6px 22px rgba(32,32,32,0.14);
  border-color: var(--brand-gold);
}
.feature img, .tip-card img, .recipe-card img {
  margin-bottom: 14px;
  max-width: 48px;
  border-radius: 6px;
  background: var(--gray-100);
}
.teaser-card h3, .recipe-card h3, .tip-card h3 {
  margin-bottom: 6px;
  font-size: 1.08rem;
  font-weight: 700;
}
.teaser-card a, .recipe-card a.cta-link {
  margin-top: auto;
  color: var(--primary);
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 6px 0;
  text-decoration: underline;
  transition: color 0.2s;
}
.teaser-card a:hover, .teaser-card a:focus, .recipe-card a.cta-link:hover, .recipe-card a.cta-link:focus {
  color: var(--brand-gold);
}
.tag {
  display: inline-block;
  font-size: 0.88rem;
  background: var(--gray-200);
  color: var(--secondary);
  border-radius: 18px;
  padding: 4px 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-top: 7px;
  font-weight: 600;
}

/* ===========
  FILTERS & SEARCH
  =========== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
  justify-content: flex-start;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 14px;
  padding: 18px 14px 10px 14px;
  box-shadow: 0 1px 4px rgba(32,32,32,0.07);
}
.filter-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-bar input[type="text"] {
  padding: 7px 13px;
  border-radius: 6px;
  background: #ededed;
  border: 1px solid #ccc;
  font-size: 1rem;
}
.sorting-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
select {
  background: #fff;
  border: 1px solid #bbb;
  border-radius: 6px;
  padding: 6px 16px 6px 10px;
  min-width: 110px;
  color: var(--primary);
  font-size: 1rem;
  transition: border-color 0.18s;
}
select:focus {
  border-color: var(--brand-gold);
}
.filter-controls button {
  margin-top: 4px;
  padding: 7px 15px;
  background: var(--gray-100);
  border-radius: 8px;
  border: 1px solid var(--gray-300);
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.16s, border-color 0.19s, color 0.16s;
}
.filter-controls button:hover, .filter-controls button:focus {
  background: var(--brand-gold);
  color: var(--primary);
  border-color: var(--brand-gold);
}

/* ============
  FEATURE LIST (UL)
  ============ */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 14px 0 18px 0;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1rem;
  color: var(--gray-800);
  padding: 8px 0;
}
.feature-list img {
  width: 32px;
  height: auto;
  border-radius: 6px;
}

/* ===========
  TESTIMONIALS
  =========== */
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 24px 26px 20px 26px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 18px rgba(32,32,32,0.11);
  min-width: 270px;
  max-width: 380px;
  flex: 1 1 270px;
  margin-bottom: 20px;
  border: 1px solid var(--gray-200);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(32,32,32,0.18);
  border-color: var(--brand-gold);
}
.testimonial-user {
  font-size: 1rem;
  margin-top: 2px;
  color: var(--brand-gold);
  font-style: normal;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}

/* Force high contrast for testimonial text on white */
.testimonial-card blockquote {
  color: #121212;
  background: none;
  border-left: 4px solid var(--brand-gold);
}

/* ============
  CTA-LINK
  ============ */
.cta-link {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: var(--primary);
  font-size: 1.08rem;
  margin-top: 15px;
  text-decoration: underline;
  transition: color 0.18s;
  display: inline-block;
}
.cta-link:hover, .cta-link:focus {
  color: var(--brand-gold);
}

/* =============
  NEWSLETTER SIGNUP
  ============= */
.newsletter-signup {
  background: var(--gray-200);
  border-radius: 13px;
  padding: 18px 18px;
  color: var(--primary);
  font-size: 1.01rem;
}
.newsletter-signup a {
  color: var(--primary);
  text-decoration: underline;
}

/* ================
     TEXT SECTIONS (LEGAL)
   ================ */
.text-section {
  margin-bottom: 18px;
}
.text-section ul, .brand-values ul {
  margin: 8px 0 12px 18px;
  padding-left: 20px;
}
.text-section ul li, .brand-values ul li {
  margin-bottom: 6px;
  padding-left: 5px;
  color: var(--gray-800);
}
.brand-values {
  background: var(--gray-100);
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 18px;
}
.brand-values h3 {
  font-size: 1.07rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 14px;
}
.contact-list li {
  display: flex;
  align-items: center;
  font-size: 1rem;
  gap: 10px;
}
.contact-list img {
  width: 22px;
  margin-right: 3px;
}

/* ===================
       FOOTER
   =================== */
footer {
  background: #1a1a1a;
  color: #ededed;
  padding: 36px 0 16px 0;
}
footer .container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: #ededed;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition: color 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--brand-gold);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.96rem;
  color: #ededed;
}
.footer-contact img {
  width: 17px;
  margin-right: 6px;
  filter: grayscale(1) invert(1) opacity(0.7);
  vertical-align: middle;
}
.footer-logo {
  max-width: 90px;
  align-self: flex-end;
  opacity: 0.85;
}

@media (max-width: 900px){
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-logo { align-self: flex-start; }
}

/* =========================
      COOKIE BANNER & MODAL
   ========================= */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 990;
  width: 100vw;
  background: #171717;
  color: #fff;
  padding: 22px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.12);
  gap: 22px;
  animation: slideInUp 0.55s cubic-bezier(.72,.01,.22,1.01);
}
.cookie-banner p {
  color: #e4e4e4;
  font-size: 1rem;
  text-align: center;
}
.cookie-banner-buttons {
  display: flex;
  gap: 20px;
  margin-top: 7px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 10px 22px;
  border-radius: 22px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  margin: 0;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  transition: background 0.19s, color 0.19s, box-shadow 0.18s;
}
.cookie-banner .btn-accept {
  background: var(--brand-gold);
  color: var(--primary);
}
.cookie-banner .btn-accept:hover, .cookie-banner .btn-accept:focus {
  background: #b58132;
  color: #fff;
}
.cookie-banner .btn-reject {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--gray-300);
}
.cookie-banner .btn-reject:hover, .cookie-banner .btn-reject:focus {
  background: var(--gray-300);
}
.cookie-banner .btn-settings {
  background: transparent;
  color: var(--brand-gold);
  border: 1px solid var(--brand-gold);
}
.cookie-banner .btn-settings:hover, .cookie-banner .btn-settings:focus {
  background: var(--brand-gold);
  color: #fff;
}
@keyframes slideInUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* COOKIE MODAL OVERLAY */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: rgba(24,24,24,0.78);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  color: var(--primary);
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(32,32,32,0.23);
  padding: 32px 26px 26px 26px;
  min-width: 350px;
  max-width: 98vw;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: fadeInModal 0.32s;
  position: relative;
}
@keyframes fadeInModal {
  from { transform: scale(0.92) translateY(6vw); opacity: 0.4; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 1.3rem;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 1rem;
}
.cookie-modal .cookie-categories {
  width: 100%;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cookie-modal .cookie-category-legend {
  font-size: 1.06rem;
  margin: 10px 0 4px 0;
  font-weight: bold;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 9px;
}
.cookie-modal-close {
  position: absolute;
  top: 11px; right: 13px;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--secondary);
  cursor: pointer;
  padding: 0;
  transition: color 0.16s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--brand-gold);
}

.cookie-switch {
  width: 40px;
  height: 22px;
  border-radius: 12px;
  background: var(--gray-300);
  position: relative;
  margin-right: 10px;
  transition: background 0.15s;
  display: inline-block;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-switch-slider {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.14s, background 0.18s;
  box-shadow: 0 1px 4px rgba(24,24,24,0.06);
}
.cookie-switch input:checked + .cookie-switch-slider {
  left: 20px;
  background: var(--brand-gold);
}
.cookie-modal .cookie-category-desc {
  color: var(--gray-600);
  font-size: 0.97rem;
  margin-bottom: 4px;
  margin-left: 10px;
}

/* DISABLE SCROLL (modal open) */
body.modal-open {
  overflow-y: hidden;
}

/* ============
   MEDIA QUERIES
   ============ */
@media (max-width: 1000px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.38rem; }
  .feature, .teaser-card, .recipe-card, .tip-card, .testimonial-card {
    min-width: 200px;
    padding: 18px 12px 12px 12px;
  }
}
@media (max-width: 768px) {
  .main-nav, .cta-btn-primary {
    display: none !important;
  }
  .container {
    padding-left: 6px; padding-right: 6px;
  }
  h1 { font-size: 1.25rem; }
  h2 { font-size: 1rem; }
  h3 { font-size: 0.96rem; }
  .feature, .teaser-card, .recipe-card, .tip-card, .testimonial-card {
    min-width: 140px;
  }
  .footer-logo { max-width: 65px; }
  .cookie-modal {
    min-width: unset;
    padding: 18px 8px 12px 13px;
  }
}

/* ============
   MISC
   ============ */
::-webkit-scrollbar {
  width: 8px;
  background: #ececec;
}
::-webkit-scrollbar-thumb {
  background: #cccccc;
  border-radius: 4px;
}
:focus {
  outline: 2px solid var(--brand-gold);
  outline-offset: 0.5px;
}

/* Hide visually (for JS) */
.sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/* =============
   ANIMATIONS
   ============= */
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

/* ==============
   OVERRIDE DEFAULTS FOR BUTTON & LINK
   ============== */
button, .cta-btn-primary, .cookie-banner button {
  cursor: pointer;
  user-select: none;
}

/* Ensure no overlap, correct stacking, proper spacing everywhere */
section, .section, .feature, .teaser-card, .recipe-card, .tip-card, .testimonial-card {
  margin-bottom: 20px; /* fallback, spacing between items */
}

/* ==============
   END OF STYLES
   ============== */