/* =====================================
   CSS RESET & NORMALIZE (BROWSER SAFE)
   ===================================== */
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F9F6F3;
  color: #3d2f2b;
}
*, *:before, *:after {
  box-sizing: inherit;
}
img, svg {
  max-width: 100%;
  height: auto;
}
input, button, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

/* =============================
   FONTS & TYPOGRAPHY
   ============================= */
@import url('https://fonts.googleapis.com/css?family=Merriweather:400,700|Lato:400,700&display=swap');
html {
  font-size: 16px;
}
body {
  font-family: 'Lato', Arial, sans-serif;
  background: #F9F6F3;
  color: #432e23;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', 'Times New Roman', serif;
  color: #844329;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  line-height: 1.1;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}
.section h2 {
  margin-bottom: 18px;
}

p, li, ul, ol, a, span, em, strong {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  color: #432e23;
}
strong {
  color: #844329;
  font-weight: 700;
}
em {
  font-style: italic;
}

ul, ol {
  margin-left: 1.3em;
  margin-bottom: 18px;
  list-style-position: inside;
}
li {
  margin-bottom: 8px;
}

/* =======================================
   GENERAL LAYOUT CONTAINER & SPACING
   ======================================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  max-width: 850px;
  margin: 0 auto;
  padding: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(49,39,32,0.05);
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 36px;
    padding: 28px 8px;
  }
  .content-wrapper {
    padding: 0;
  }
}

/* =============================
   HEADER & MAIN NAVIGATION
   ============================= */
header {
  background: #fff;
  border-bottom: 1px solid #E7DDD5;
  box-shadow: 0 4px 20px 0 rgba(132, 67, 41, 0.02);
  position: sticky;
  top: 0;
  z-index: 200;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 80px;
}
header a img {
  height: 40px;
  transition: filter 0.2s;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  color: #432e23;
  padding: 7px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.22s, color 0.22s;
  letter-spacing: 0.01em;
}
.main-nav a:hover, .main-nav a:focus {
  color: #197278;
  border-bottom: 2px solid #197278;
}

/* Burger menu button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #844329;
  cursor: pointer;
  z-index: 400;
  margin-left: 26px;
  transition: color 0.18s;
}
.mobile-menu-toggle:hover {
  color: #197278;
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ============================================
   MOBILE MENU - OVERLAY & SLIDE ANIMATION
   ============================================ */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(241,218,200,0.97);
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.32,1.12,.45,1);
  box-shadow: 2px 0 18px 0 rgba(132,67,41,0.06);
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: #844329;
  padding: 18px 30px 10px 0;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 501;
}
.mobile-menu-close:hover { color: #197278; }

.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-top: 40px;
  padding: 0 38px;
}
.mobile-nav a {
  font-family: 'Merriweather', serif;
  font-size: 1.23rem;
  color: #432e23;
  padding: 9px 0;
  border-left: 4px solid transparent;
  width: 100%;
  transition: color 0.18s, border-color 0.23s, background 0.18s;
  border-radius: 4px 0 0 4px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #197278;
  background: #efe3d8;
  border-left: 4px solid #197278;
}

@media (min-width: 900px) {
  .mobile-menu { display: none !important; }
}

/* ===========================
   HERO SECTION & CTA BUTTONS
   =========================== */
.hero {
  background: #F1DAC8;
  color: #432e23;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 4px 38px -19px rgba(132,67,41,0.11);
  padding: 56px 0 44px 0;
  margin-bottom: 42px;
}
.hero .container {
  flex-direction: column;
  align-items: center;
}
.hero .content-wrapper {
  text-align: center;
}
.hero h1 {
  color: #844329;
  font-size: 2.3rem;
}
.hero p {
  margin-bottom: 28px;
}
.cta-btn {
  display: inline-block;
  font-family: 'Merriweather', serif;
  background: #844329;
  color: #fff;
  border-radius: 28px;
  font-weight: bold;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  padding: 12px 36px;
  margin: 5px 0;
  box-shadow: 0 2px 8px 0 rgba(132,67,41,0.09);
  border: 2px solid #844329;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border 0.16s, transform 0.12s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #fff;
  color: #844329;
  border: 2px solid #197278;
  transform: translateY(-2px) scale(1.03);
}

@media (max-width: 768px) {
  .hero {
    border-radius: 0 0 18px 18px;
    padding: 32px 0 24px 0;
    margin-bottom: 24px;
  }
  .hero h1 {
    font-size: 1.58rem;
    margin-bottom: 14px;
  }
}

/* ==============
   FEATURES LIST
   ============== */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  background: none;
  box-shadow: none;
  border-radius: 0;
  margin-bottom: 60px;
  padding-bottom: 0;
}
.features .content-wrapper {
  width: 100%;
}
.features h2 {
  text-align: center;
  margin-bottom: 28px;
  font-size: 1.4rem;
}
.features ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.features ul li {
  background: #fff;
  border: 1px solid #F1DAC8;
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(132,67,41,0.07);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 220px;
  max-width: 290px;
  font-size: 1.02rem;
  flex: 1 0 220px;
  transition: box-shadow 0.18s, border 0.16s;
}
.features ul li img {
  height: 36px;
  width: 36px;
  flex-shrink: 0;
  margin-right: 12px;
}
.features ul li:hover {
  border: 1.5px solid #197278;
  box-shadow: 0 6px 18px -3px rgba(25,114,120,0.13);
}

@media (max-width: 970px) {
  .features ul {
    flex-wrap: wrap;
    gap: 18px;
  }
  .features ul li {
    flex: 1 1 180px;
    padding: 18px 10px;
    max-width: 280px;
  }
}
@media (max-width: 600px) {
  .features ul {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .features ul li {
    min-width: unset;
    max-width: unset;
    width: 100%;
    padding: 14px 6px;
  }
}

/* ===========================================
   CARD CONTAINER, PREVIEW-GRID, CONTENT-GRID
   =========================================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 8px 0 rgba(132,67,41,0.08);
  border: 1px solid #F1DAC8;
  padding: 28px 24px 22px 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s, border 0.18s;
}
.card:hover, .card:focus-within {
  border: 1.2px solid #197278;
  box-shadow: 0 7px 27px 0 rgba(25,114,120,0.13);
  z-index: 2;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
@media (max-width: 800px) {
  .content-grid { flex-direction: column; }
}

.preview-grid {
  margin-bottom: 56px;
}
.preview-grid ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-start;
  margin: 0;
  padding-left: 0;
}
.preview-grid li {
  background: #F9F6F3;
  border-left: 4px solid #844329;
  border-radius: 7px;
  padding: 13px 16px;
  min-width: 220px;
  margin-bottom: 0;
  font-size: 1.01rem;
}
@media (max-width: 700px) {
  .preview-grid ul { flex-direction: column; gap: 8px; }
  .preview-grid li { min-width: unset; }
}

/* =========================================
   TEXT-IMAGE & FEATURE-ITEM FLEX SECTIONS
   ========================================= */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 10px 0;
}

/* ===============================
   TESTIMONIAL SECTION & CARDS
   =============================== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  border: 1.5px solid #F1DAC8;
  box-shadow: 0 2px 14px 0 rgba(132,67,41,0.07);
  margin-bottom: 24px;
  transition: box-shadow 0.15s, border 0.14s;
}
.testimonial-card .text-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.testimonial-card p {
  font-family: 'Merriweather', serif;
  font-size: 1.15rem;
  color: #432e23;
  margin-bottom: 0;
  line-height: 1.44;
}
.testimonial-card span {
  font-size: 0.93rem;
  color: #197278;
  font-style: italic;
}
.testimonial-card:hover {
  border: 1.5px solid #197278;
  box-shadow: 0 8px 29px 0 rgba(25,114,120,0.16);
  z-index: 1;
}
@media (max-width: 700px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 9px;
    gap: 12px;
  }
}

/* ===================================
   CTA BANNER (REUSED ACROSS PAGES)
   =================================== */
.cta-banner {
  margin: 62px 0 0 0;
  background: #197278;
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 rgba(25,114,120,0.11);
}
.cta-banner .content-wrapper {
  text-align: center;
}
.cta-banner h2,
.cta-banner p {
  color: #fff;
}
.cta-banner .cta-btn {
  margin-top: 15px;
  background: #fff;
  color: #197278;
  border: 2px solid #fff;
  transition: background 0.18s, color 0.18s, border 0.16s, transform 0.12s;
}
.cta-banner .cta-btn:hover, .cta-banner .cta-btn:focus {
  background: #F1DAC8;
  color: #844329;
  border: 2px solid #197278;
}
@media (max-width: 700px){ .cta-banner{ border-radius: 9px;} }

/* ==========================
   QUICK TIPS MINI BANNER
   ========================== */
.quick-tips {
  margin: 30px 0 0 0;
  padding: 16px 22px;
  background: #F1DAC8;
  border-radius: 10px;
  font-size: 1rem;
  font-style: italic;
  border-left: 4px solid #197278;
  color: #432e23;
}

/* ======================
   FOOTER DESIGN
   ====================== */
footer {
  background: #fff;
  border-top: 1px solid #E7DDD5;
  box-shadow: 0 -2px 30px 0 rgba(49,39,32,0.04);
  margin-top: 58px;
  padding: 32px 0 8px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 26px;
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 4px;
}
.footer-brand img {
  height: 36px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin: 0 0 8px 0;
}
.footer-nav a {
  color: #844329;
  font-size: 1rem;
  padding: 2px 0;
  font-family: 'Merriweather', serif;
  transition: color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #197278;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 4px 0 0 0;
  font-size: 0.98rem;
}
.footer-contact img {
  vertical-align: middle;
  margin-right: 4px;
  height: 19px;
}
.footer-contact a {
  color: #197278;
  text-decoration: underline;
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 10px;
}
.footer-social a img {
  height: 24px;
  transition: filter 0.17s;
}
.footer-social a:hover img { filter: brightness(0.7) sepia(1) hue-rotate(-35deg) saturate(2); }
.footer-copy {
  margin: 16px 0 0 0;
  text-align: left;
  font-size: 0.9rem;
  color: #b38c7e;
}
@media (max-width: 600px) {
  .footer-nav, .footer-contact, .footer-social {
    flex-direction: column;
    gap: 12px;
  }
  .footer-copy { text-align: left; }
}

/* ================================================
   COOKIE CONSENT BANNER & COOKIE SETTINGS MODAL
   ================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff6f1;
  border-top: 1.5px solid #dabba2;
  z-index: 9999;
  box-shadow: 0 -2px 16px 0 rgba(132,67,41,0.08);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px;
  font-size: 1.03rem;
  transition: transform 0.32s;
}
.cookie-banner.hide {
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner .cookie-message {
  flex: 1 1 0%;
  font-family: 'Lato', Arial, sans-serif;
  color: #432e23;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.cookie-btn, .cookie-btn-main {
  border: none;
  border-radius: 32px;
  padding: 9px 26px;
  font-size: 1rem;
  cursor: pointer;
  font-family: 'Merriweather', serif;
  font-weight: 600;
  box-shadow: 0 1px 8px 0 rgba(132,67,41,0.07);
  transition: background 0.16s, color 0.16s, transform 0.12s;
}
.cookie-btn-main {
  background: #844329;
  color: #fff;
  border: 2px solid #844329;
}
.cookie-btn-main:hover {
  background: #197278;
  border: 2px solid #197278;
  color: #fff;
  transform: scale(1.03);
}
.cookie-btn {
  background: #fff;
  color: #432e23;
  border: 2px solid #197278;
}
.cookie-btn:hover {
  background: #197278;
  color: #fff;
  transform: scale(1.03);
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 10px;
    gap: 8px;
    font-size: 0.97rem;
  }
  .cookie-banner .cookie-actions {
    width: 100%;
  }
}

/* Cookie settings MODAL */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(67,46,35,0.25);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.cookie-modal.hide { display: none; }
.cookie-modal-content {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 38px 0 rgba(132,67,41,0.17);
  max-width: 420px;
  padding: 36px 30px 24px 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: cookie-modal-in 0.36s cubic-bezier(.4,2,.53,1.4);
}
@keyframes cookie-modal-in {
  0% { transform: translateY(70px) scale(0.97); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-modal-content h3 {
  font-size: 1.32rem;
  color: #844329;
  margin-bottom: 10px;
}
.cookie-category {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.cookie-category label {
  font-size: 1rem;
  color: #432e23;
}
.cookie-toggle {
  appearance: none;
  width: 36px;
  height: 20px;
  background: #F1DAC8;
  border-radius: 12px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
}
.cookie-toggle:checked {
  background: #197278;
}
.cookie-toggle:before {
  content: '';
  display: block;
  position: absolute;
  left: 4px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}
.cookie-toggle:checked:before {
  transform: translateX(16px);
  background: #fff;
}
.cookie-category .cookie-category-essential {
  color: #aaa;
  font-size: 0.94rem;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 8px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  right: 20px;
  top: 16px;
  background: none;
  border: none;
  font-size: 1.46rem;
  color: #844329;
  cursor: pointer;
  transition: color 0.17s;
}
.cookie-modal-close:hover { color: #197278; }
@media (max-width: 530px) {
  .cookie-modal-content {
    max-width: 98vw;
    padding: 20px 7px 12px 8px;
    border-radius: 10px;
  }
}

/* =============================
   RECIPE FILTER BUTTONS
   ============================= */
.recipe-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 6px 0;
  justify-content: center;
}
.recipe-filters button {
  background: #fff;
  color: #844329;
  border: 2px solid #F1DAC8;
  border-radius: 22px;
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 22px;
  box-shadow: 0 1px 3px 0 rgba(132,67,41,0.06);
  cursor: pointer;
  transition: background 0.13s, border 0.15s, color 0.14s;
}
.recipe-filters button:hover, .recipe-filters button:focus {
  background: #F1DAC8;
  border: 2px solid #197278;
  color: #197278;
}

/* ================
   THANK YOU PAGE
   ================ */
.thank-you-section {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fff;
  border-radius: 18px;
  margin: 36px 0;
  box-shadow: 0 4px 18px 0 rgba(132,67,41,0.07);
  padding: 50px 30px;
}
.thank-you-section h1 {
  color: #197278;
  font-size: 2.1rem;
}
@media (max-width: 700px) {
  .thank-you-section{ border-radius:9px; padding: 24px 7px;}
}

/* ===========================
   UTILITIES & MICRO ANIMATION
   =========================== */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeInUp 0.8s forwards;
}
@keyframes fadeInUp {
  to { opacity: 1; transform: none; }
}
.card, .section, .testimonial-card, .feature-item, .partials, .footer-brand, .cta-btn {
  will-change: box-shadow, transform, border;
  transition: box-shadow 0.18s, border 0.14s, transform 0.12s;
}

/* ============================
   RESPONSIVE SPACING & FLEXBOX
   ============================ */
@media (max-width: 1100px) {
  .container { max-width: 98vw; padding: 0 10px; }
}
@media (max-width: 900px) {
  .container { max-width: 98vw; }
  .section { margin-bottom: 36px; padding: 22px 2vw; }
}

/* ===============================
   ACCESSIBILITY IMPROVEMENTS
   =============================== */
:focus {
  outline: 2px solid #197278;
  outline-offset: 2px;
}
[tabindex="0"]:focus {
  outline: 2px solid #197278;
  outline-offset: 2px;
}

/* ================================
   PRINT FRIENDLY
   ================================ */
@media print {
  header, footer, .cta-banner, .cookie-banner, .mobile-menu { display: none !important; }
  body { background: #fff; }
  .section, .card, .testimonial-card { box-shadow: none; border-radius: 0; }
}
