/* =========================
   CSS RESET & 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,
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 { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body {
  line-height: 1.5;
  background: #F9F6F0;
  color: #23272F;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  scroll-behavior: smooth;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #43523D;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover, a:focus {
  color: #B8854A;
}
ul, ol {
  list-style-position: inside;
}

/* =========================
   BRAND VARIABLES
   ========================= */
:root {
  --color-primary: #43523D;
  --color-secondary: #B8854A;
  --color-accent: #F9F6F0;
  --color-body: #23272F;
  --color-light: #ffffff;
  --color-ui: #eaeaea;
  --color-header-bg: #FFFFFF;
  --color-footer-bg: #f4f7fa;
  --color-shadow: rgba(67, 82, 61, 0.07);
  --color-shadow-card: rgba(67, 82, 61, 0.07);
  --color-focus: #B8854A;

  --font-display: 'Merriweather', Georgia, serif;
  --font-body: 'Roboto', Arial, sans-serif;

  --radius-btn: 5px;
  --radius-card: 12px;
  --shadow-md: 0 2px 12px var(--color-shadow-card);
  --shadow-lg: 0 8px 32px var(--color-shadow-card);

  --transition: 0.2s cubic-bezier(.43,.78,.33,1);
}

/* =========================
   TYPOGRAPHY
   ========================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 18px;
}
h1 {
  font-size: 2.6rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.2rem;
}
.subtitle {
  color: var(--color-secondary);
  font-size: 1.2rem;
  margin-bottom: 22px;
  font-weight: 500;
  font-family: var(--font-body);
}
p, ul, ol {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-body);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
  line-height: 1.7;
}
p:last-child, ul:last-child, ol:last-child {
  margin-bottom: 0;
}
strong { font-weight: 600; }

/* =========================
   LAYOUT & SPACING
   ========================= */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FFFFFF;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 24px 22px 22px 22px;
  margin-bottom: 20px;
  position: relative;
  min-width: 275px;
  max-width: 380px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card:last-of-type {
  margin-bottom: 0;
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-card);
  padding: 24px 22px;
  margin-bottom: 24px;
  min-width: 240px;
  max-width: 440px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 22px;
  margin-bottom: 20px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  justify-content: flex-start;
  list-style: none;
}
.feature-grid li {
  flex: 1 1 240px;
  min-width: 220px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 20px 18px;
}

/* Ensure minimum margin between cards */
.card:not(:last-child),
.feature-grid li:not(:last-child),
.testimonial-card:not(:last-child),
.feature-item:not(:last-child) {
  margin-right: 20px;
}

.services-summary ol,
.services-summary ul {
  margin-left: 15px;
}

.categories-filter {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  color: var(--color-secondary);
  flex-wrap: wrap;
}
.categories-filter a {
  color: var(--color-primary);
  padding: 2px 7px;
  border-radius: 3px;
  transition: background 0.13s, color 0.13s;
}
.categories-filter a:hover { background: var(--color-accent); color: var(--color-secondary); }

.recipes-overview ul,
.featured-recipes ul {
  margin-top: 14px;
  margin-bottom: 14px;
}

/* =========================
   BUTTONS & LINKS
   ========================= */
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  padding: 12px 32px;
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  margin-top: 10px;
  margin-bottom: 10px;
  text-align: center;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 4px 16px var(--color-shadow-card);
  transform: translateY(-2px) scale(1.03);
}
.btn-secondary {
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  padding: 10px 26px;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: background var(--transition), color var(--transition);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-primary);
  color: #fff;
}

a.btn-primary, a.btn-secondary {
  text-decoration: none;
}

/* =========================
   HEADER & NAVIGATION
   ========================= */
header {
  background: var(--color-header-bg);
  padding: 0 0;
  box-shadow: 0 2px 8px var(--color-shadow);
  position: relative;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 18px 10px 18px;
}
header nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
header nav a {
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 4px;
  transition: background 0.13s, color 0.13s;
  font-size: 1rem;
}
header nav a:hover, header nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}
header img {
  height: 48px;
  width: auto;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 2rem;
  cursor: pointer;
  margin-left: 12px;
  border-radius: 5px;
  padding: 8px 14px;
  transition: background 0.2s, color 0.15s;
  z-index: 103;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-focus);
  background: var(--color-accent);
}

/* === MOBILE MENU OVERLAY === */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(45,55,60,0.96);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.19,.66,.48,.99);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.4rem;
  color: #fff;
  margin: 24px 24px 0 0;
  cursor: pointer;
  align-self: flex-end;
  z-index: 2100;
  padding: 4px 12px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 40px 0 0 0;
  width: 100%;
  align-items: flex-start;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.2rem;
  font-family: var(--font-body);
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 4px;
  transition: background 0.2s, color 0.15s;
  width: 100%;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

@media (max-width: 1024px) {
  header .container { gap: 18px; }
}
@media (max-width: 900px) {
  header nav { gap: 8px; }
  header .container { flex-wrap: wrap; }
}
@media (max-width: 768px) {
  header nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .btn-primary { margin-left: 0 !important; }
}
@media (max-width: 480px) {
  header img { height: 36px; }
}

/* =========================
   HERO & CTA SECTIONS
   ========================= */
.hero {
  background: linear-gradient(120deg, var(--color-primary) 54%, var(--color-accent) 100%);
  color: #fff;
  min-height: 340px;
  display: flex;
  align-items: center;
  padding: 60px 0 50px 0;
  border-radius: 0 0 44px 44px;
  position: relative;
  margin-bottom: 60px;
}
.hero .container {
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.hero h1, .hero .subtitle { color: #fff; }
.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 18px;
  text-shadow: 0 4px 18px rgba(67, 82, 61,0.11);
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
}
.cta-banner, .cta-feedback, .cta-contact {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 12px var(--color-shadow-card);
  border-radius: 18px;
  margin-bottom: 60px;
}
.cta-banner h2, .cta-banner a, .cta-feedback h2, .cta-contact h2 {
  color: #fff;
}
.cta-banner .btn-primary, .cta-feedback .btn-primary, .cta-contact .btn-primary {
  background: #fff;
  color: var(--color-primary);
}
.cta-banner .btn-primary:hover {
  background: var(--color-secondary);
  color: #fff;
}

/* =========================
   TESTIMONIALS & GALLERY
   ========================= */
.testimonials-preview .testimonial-card,
.testimonials-gallery .testimonial-card,
.testimonials .testimonial-card {
  background: #fff;
  color: var(--color-body);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 24px 22px;
  min-width: 220px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.testimonial-card p {
  font-size: 1.13rem;
  color: var(--color-body);
}
.testimonial-card .stars {
  color: #FCC21B;
  font-size: 1.35rem;
  margin-bottom: 8px;
  letter-spacing: 2px;
}
.testimonial-card span {
  color: var(--color-secondary);
  font-size: 1rem;
  font-style: italic;
  align-self: flex-end;
  font-family: var(--font-body);
  margin-top: 2px;
}

/* Card grid sizing */
.testimonials .content-wrapper, 
.testimonials-gallery .content-wrapper {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-stretch;
}

@media (max-width: 950px) {
  .testimonials .content-wrapper, .testimonials-gallery .content-wrapper {
    flex-direction: column;
  }
}

/* =========================
   FOOTER
   ========================= */
footer {
  background: var(--color-footer-bg);
  padding: 28px 0 0 0;
  margin-top: 60px;
  border-top: 1px solid #dde0e5;
}
footer .container {
  flex-direction: row;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
footer a {
  color: var(--color-primary);
  font-size: 1rem;
  padding: 0 7px;
  border-radius: 2px;
  transition: background 0.12s, color 0.13s;
}
footer nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  min-width: 140px;
}
footer nav a:hover, footer nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.97rem;
  color: var(--color-primary);
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
footer img {
  height: 36px;
  min-width: 36px;
  margin-right: 13px;
}

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

/* =========================
   POLICY PAGES & SUCCESS
   ========================= */
.policy, .success-message {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  margin-bottom: 60px;
}
.policy h1, .success-message h1 { color: var(--color-primary); }

/* =========================
   UTILITIES & ANIMATIONS
   ========================= */
.shadow {
  box-shadow: var(--shadow-md) !important;
}
.rounded {
  border-radius: var(--radius-card) !important;
}

.fade-in {
  animation: fadeIn 0.7s 0.1s both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.slide-in {
  animation: slideIn 0.43s cubic-bezier(.44,1.54,.55,1) both;
}
@keyframes slideIn {
  from { transform: translateX(100vw); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* =========================
   COOKIE CONSENT BANNER
   ========================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  box-shadow: 0 -2px 10px var(--color-shadow-card);
  border-top: 2px solid var(--color-secondary);
  z-index: 3000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  gap: 30px;
  font-family: var(--font-body);
  font-size: 1.02rem;
  transition: transform 0.25s cubic-bezier(.1,.5,.6,1);
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.cookie-banner .cookie-message {
  color: var(--color-primary);
  max-width: 660px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 8px 23px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: background 0.17s, color 0.13s, box-shadow 0.17s;
}
.cookie-banner .accept-all {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
}
.cookie-banner .accept-all:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-banner .reject-all {
  background: #eaeaea;
  color: var(--color-secondary);
  font-weight: 600;
}
.cookie-banner .reject-all:hover {
  background: #eee3d6;
  color: var(--color-primary);
}
.cookie-banner .settings-btn {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-banner .settings-btn:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17,27,34,0.45);
  z-index: 4001;
  transition: opacity 0.21s;
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-backdrop.open { opacity: 1; pointer-events: all; }
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, 110%) scale(0.97);
  background: #fff;
  min-width: 340px;
  max-width: 97vw;
  width: 430px;
  padding: 32px 28px 28px 28px;
  box-shadow: 0 4px 44px var(--color-shadow-card),0 1px 3px #ccc6;
  border-radius: 15px;
  z-index: 4002;
  opacity: 0;
  transition: all 0.32s cubic-bezier(.38,1.22,.58,0.96);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}
.cookie-modal h2 {
  color: var(--color-primary);
  margin-bottom: 3px;
  font-size: 1.38rem;
}
.cookie-modal .close-modal {
  position: absolute;
  right: 22px;
  top: 16px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--color-body);
  cursor: pointer;
}
.cookie-settings-group {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 14px 0;
}
.cookie-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 9px;
}
.cookie-setting label {
  font-size: 1rem;
  color: var(--color-primary);
}
.cookie-setting input[type="checkbox"] {
  accent-color: var(--color-secondary);
  width: 20px;
  height: 20px;
}
.cookie-setting .always-on {
  font-size: 0.99rem;
  color: #b3b3b3;
  font-style: italic;
}
.cookie-modal .modal-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}
.cookie-modal .btn-save {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  padding: 8px 21px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-modal .btn-save:hover {
  background: var(--color-secondary);
}

@media (max-width: 630px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 14px;
    gap: 16px;
    font-size: 0.98rem;
  }
  .cookie-banner .cookie-actions { gap: 8px; }
  .cookie-modal { width: 97vw; padding-left: 16px; padding-right: 16px; }
}

/* =========================
   RESPONSIVE DESIGN (MOBILE-FIRST)
   ========================= */
@media (max-width: 1024px) {
  .container {
    max-width: 92vw;
    padding-left: 12px;
    padding-right: 12px;
  }
  .feature-grid {
    gap: 14px;
  }
}
@media (max-width: 850px) {
  .feature-grid { flex-direction: column; }
  .testimonial-card,
  .card {
    min-width: 180px;
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.35rem; }
  .section, section {
    padding: 28px 7px;
    margin-bottom: 38px;
  }
  .cta-banner, .cta-feedback, .cta-contact {
    padding: 18px 8px 22px 8px;
    border-radius: 8px;
    margin-bottom: 36px;
  }
  .feature-grid, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .card-container,
  .testimonials .content-wrapper,
  .testimonials-gallery .content-wrapper {
    flex-direction: column;
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 19px;
  }
  .card,
  .feature-item {
    padding: 14px 10px;
    min-width: 90vw;
    margin-bottom: 16px;
    max-width: 100%;
  }
}
@media (max-width: 600px) {
  .hero {
    padding: 36px 0 26px 0;
    border-radius: 0 0 25px 25px;
    min-height: 180px;
  }
  .content-wrapper {
    gap: 10px;
  }
  .section, section {
    margin-bottom: 22px;
    padding: 13px 3vw;
  }
}
@media (max-width: 400px) {
  .hero h1 { font-size: 1.25rem; }
}

/* ==========================
   ACCESSIBILITY
   ========================== */
:focus {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}
.btn-primary:focus, .btn-secondary:focus, .cookie-banner button:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* ==========================
   MISCELLANEOUS
   ========================== */
.founder-profile {
  background: #f6f7f5;
  padding: 16px 14px;
  border-radius: 7px;
  font-size: 1.02rem;
  margin-bottom: 8px;
}
.founder-profile h3 {
  margin-bottom: 7px;
  font-size: 1rem;
  color: var(--color-secondary);
}
.awards ul, .awards li {
  list-style: none;
  margin-left: 0;
}
.awards li {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 14px 14px 14px 14px;
}

.contact-info p, .footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Hide last margin-right on flex children */
.card:last-child, .feature-grid li:last-child, .testimonial-card:last-child, .feature-item:last-child {
  margin-right: 0;
}

/* Prevent text selection on icons */
.mobile-menu-toggle, .mobile-menu-close {
  user-select: none;
}
