/* ========== CSS Reset & Base ========== */
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;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  color: #513019;
  background: #FFFFFF;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 16px;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #CB7C2A;
  outline-offset: 1px;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  outline: none;
  border: none;
  background: none;
}
button {
  cursor: pointer;
}

/* ========== Brand Variables ========== */
:root {
  --brand-primary: #6B3A16;
  --brand-secondary: #F6E8C2;
  --brand-accent: #CB7C2A;
  --brand-neutral: #FFFFFF;
  --text-main: #513019;
  --text-light: #89725A;
  --border-radius: 12px;
  --shadow-xxs: 0 2px 4px rgba(107,58,22,0.04);
  --shadow-xs: 0 2px 8px rgba(107,58,22,0.08);
  --shadow-sm: 0 4px 14px rgba(107,58,22,0.11);
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  color: #6B3A16;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 20px;
}
h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  margin-bottom: 28px;
  letter-spacing: -1px;
}
h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #513019;
  margin-bottom: 14px;
}
h4, h5, h6 {
  font-size: 1rem;
}
p, blockquote, li {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  color: #513019;
  font-size: 1rem;
  margin-bottom: 12px;
  line-height: 1.7;
}
blockquote {
  font-size: 1.15rem;
  color: #6B3A16;
  font-style: italic;
  border-left: 4px solid #CB7C2A;
  padding-left: 18px;
  margin-bottom: 12px;
}

/* ========== Layout Containers ========== */
.container {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFF;
}
.section:last-child {
  margin-bottom: 0;
}

/* ========== Flex Patterns ========== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FFFFFF;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-xs);
  margin-bottom: 20px;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.22s;
}
.card:hover {
  box-shadow: var(--shadow-sm);
}
.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;
  border-radius: var(--border-radius);
  background: #F6E8C2;
  box-shadow: var(--shadow-xxs);
  margin-bottom: 20px;
  flex-direction: row;
  min-width: 0;
}
.testimonial-card blockquote {
  margin: 0;
  color: #6B3A16;
}
.testimonial-meta {
  font-size: 0.98rem;
  color: #B75C08;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.1px;
  min-width: 110px;
  text-align: right;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ========== Header / Navigation ========== */
header {
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(107,58,22,0.04);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 16px;
  padding-bottom: 16px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
header nav a {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 1rem;
  color: #6B3A16;
  padding: 8px 4px;
  transition: color 0.18s, border-bottom 0.18s;
  border-bottom: 2px solid transparent;
}
header nav a:hover, header nav a:focus {
  color: #CB7C2A;
  border-bottom: 2px solid #CB7C2A;
}
header img {
  height: 38px;
  width: auto;
  margin-right: 16px;
}
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 28px;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  outline: none;
  background: var(--brand-primary);
  color: var(--brand-neutral);
  box-shadow: var(--shadow-xs);
  transition: background 0.18s, color 0.2s, box-shadow 0.18s, transform 0.16s;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--brand-accent);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}
.btn-secondary {
  background: #fff;
  color: var(--brand-accent);
  border: 1.5px solid var(--brand-accent);
  box-shadow: none;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--brand-accent);
  color: #fff;
}

/* ========== Card Styles ========== */
.recipe-cards, .featured-recipes, .category-cards, .tip-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.recipe-card, .category-card, .tip-card {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-xs);
  padding: 28px 20px 24px 24px;
  min-width: 260px;
  flex: 1 1 240px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.22s, transform 0.18s;
}
.recipe-card a, .category-card a, .tip-card a {
  color: var(--brand-accent);
  font-weight: 600;
  margin-top: 10px;
  padding-bottom: 3px;
  border-bottom: 1.5px solid #CB7C2A;
  transition: color 0.17s, border-bottom 0.17s;
}
.recipe-card a:hover, .category-card a:hover, .tip-card a:hover {
  color: var(--brand-primary);
  border-bottom: 2px solid var(--brand-primary);
}
.recipe-card:hover, .category-card:hover, .tip-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px) scale(1.015);
}

/* ========== Feature Grid (Index Page Why Us) ========== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  min-width: 240px;
  flex: 1 1 240px;
  background: #FFF;
  padding: 18px 14px 18px 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  transition: box-shadow 0.2s;
}
.feature-grid > div img {
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
}
.feature-grid > div h3 {
  font-size: 1.15rem;
  color: #513019;
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 600;
}

/* ========== Forms & Inputs ========== */
input[type="email"], input[type="text"], textarea, select {
  width: 100%;
  padding: 10px 13px;
  border: 1.2px solid #E1D7CF;
  border-radius: 7px;
  background: #F9F6F2;
  color: #513019;
  font-size: 1rem;
  margin-bottom: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input[type="email"]:focus, input[type="text"]:focus, textarea:focus, select:focus {
  border-color: #CB7C2A;
  box-shadow: 0 1px 6px rgba(203,124,42,0.09);
}
.newsletter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  margin-top: 18px;
}
.newsletter label {
  font-size: 1rem;
  color: #6B3A16;
}
.newsletter input {
  width: 180px;
  max-width: 45vw;
  margin-bottom: 0;
}
.newsletter button {
  background: var(--brand-accent);
  color: #fff;
  padding: 9px 22px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.15s;
}
.newsletter button:hover {
  background: var(--brand-primary);
}
.contact-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  flex-direction: column;
  margin-top: 10px;
}
.contact-fields > div {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.contact-fields textarea {
  min-height: 80px;
  resize: vertical;
}
.contact-fields .btn-primary {
  max-width: 240px;
  min-width: 120px;
  margin-top: 16px;
}

/* ========== Footer ========== */
footer {
  background: #F6E8C2;
  padding: 0 0 18px 0;
  box-shadow: 0 -2px 10px rgba(107,58,22,0.06);
}
footer .container {
  padding-top: 32px;
  padding-bottom: 0;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 8px;
  font-size: 0.98rem;
}
footer nav a {
  color: #6B3A16;
  border-bottom: 1.2px dotted #B75C08;
  padding-bottom: 1.5px;
  transition: color 0.14s, border-bottom 0.15s;
}
footer nav a:hover {
  color: #CB7C2A;
  border-bottom: 1.5px solid #CB7C2A;
}
footer .social-media {
  display: flex;
  gap: 15px;
}
footer .social-media a img {
  height: 28px;
  width: 28px;
  filter: grayscale(25%);
  transition: filter 0.15s, transform 0.14s;
}
footer .social-media a:hover img {
  filter: grayscale(0%);
  transform: scale(1.1);
}
footer p {
  color: #89725A;
  font-size: 0.99rem;
}
.footer-bottom {
  background: #fff;
  text-align: center;
  color: #B5A48C;
  padding: 14px 0;
  font-size: 0.93rem;
}

/* ========== Special Section Patterns ========== */
.recipe-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
}
.filters {
  display: flex;
  gap: 18px;
  align-items: center;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.featured-recipes {
  /* already handled by .recipe-cards flex */
}
.category-cards {
  /* already handled by .card-container */
}
.tip-cards {
  /* already handled by .card-container */
}
.faq-accordion {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 20px;
}
.faq-accordion > div {
  background: #FCF7EB;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-xxs);
  padding: 18px 22px;
}
.tip-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 17px;
}

/* ========== Responsive Layout ========== */
@media (max-width: 1080px) {
  .container {
    max-width: 98vw;
    padding-left: 10px;
    padding-right: 10px;
  }
  .recipe-card, .category-card, .tip-card, .feature-grid > div {
    min-width: 170px;
    flex: 1 1 180px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 1.55rem;
  }
  h2 {
    font-size: 1.15rem;
  }
  .header,
  .container {
    padding-left: 5vw;
    padding-right: 5vw;
  }
  .section {
    padding: 28px 6px;
    margin-bottom: 36px;
  }
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
  }
  .feature-grid,
  .recipe-cards, .featured-recipes, .category-cards, .tip-cards {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .newsletter input {
    max-width: 100%;
    width: 100%;
  }
  .recipe-tools {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .filters {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.2rem; }
  .btn-primary, .btn-secondary {
    padding: 10px 16px;
    font-size: 0.99rem;
  }
  .testimonial-card {
    padding: 14px;
  }
}

/* ========== Mobile Navigation ========== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.98);
  border-radius: 100%;
  border: 1.5px solid #F6E8C2;
  font-size: 2rem;
  color: #6B3A16;
  z-index: 300;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1.5px 7px rgba(107,58,22,0.08);
  transition: background 0.2s;
}
.mobile-menu-toggle:focus {
  border-color: #CB7C2A;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(246,232,194,0.98);
  z-index: 400;
  transform: translateX(100vw);
  transition: transform 0.38s cubic-bezier(.77,.07,.64,.98);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 26px;
  padding-left: 0;
  box-shadow: -3px 0 16px rgba(107,58,22,0.07);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.3rem;
  color: #8D6340;
  border: none;
  background: transparent;
  padding: 10px 18px;
  margin-bottom: 16px;
  margin-left: 16px;
  cursor: pointer;
  align-self: flex-start;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-size: 1.25rem;
  width: 100vw;
  min-height: 65vh;
  align-items: flex-start;
  padding-left: 40px;
  padding-top: 14px;
}
.mobile-nav a {
  color: #6B3A16;
  padding: 12px 0 7px 0;
  font-weight: 500;
  transition: color 0.18s, background 0.18s;
  border-bottom: 1.5px solid transparent;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #CB7C2A;
  border-bottom: 1.5px solid #CB7C2A;
}
@media (max-width: 1024px) {
  header nav, header .btn-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* ========== Cookie Consent Banner ========== */
.cookie-banner {
  position: fixed;
  left: 38px;
  right: 38px;
  bottom: 24px;
  z-index: 600;
  background: #FFFFFF;
  box-shadow: 0 8px 24px rgba(107,58,22,0.09);
  border-radius: 20px;
  padding: 26px 22px 22px 30px;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  min-width: 240px;
  max-width: 520px;
  margin: 0 auto;
  font-size: 1rem;
  color: #6B3A16;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.32s, transform 0.32s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(80px);
}
.cookie-banner-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-btn {
  background: #F6E8C2;
  color: #6B3A16;
  padding: 7px 20px;
  font-size: 1rem;
  border-radius: 16px;
  border: 1px solid #E1D7CF;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.18s, color 0.16s, border 0.18s;
}
.cookie-btn.accept {
  background: #CB7C2A;
  color: #FFF;
  border: 1px solid #CB7C2A;
}
.cookie-btn.reject {
  background: #fff;
  color: #6B3A16;
  border: 1.2px solid #B75C08;
}
.cookie-btn.settings {
  background: #F6E8C2;
  color: #6B3A16;
  border: 1.2px solid #F6E8C2;
}
.cookie-btn.accept:hover {
  background: #6B3A16;
  color: #fff;
}
.cookie-btn.reject:hover {
  background: #F6E8C2;
  border-color: #CB7C2A;
}
.cookie-btn.settings:hover {
  background: #FFEED8;
  border-color: #CB7C2A;
}
@media (max-width: 600px) {
  .cookie-banner {
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 99vw;
    padding: 20px 8px 18px 13px;
    border-radius: 0;
  }
}

/* ========== Cookie Modal ========== */
.cookie-modal-overlay {
  position: fixed;
  z-index: 800;
  inset: 0;
  background: rgba(91,51,17,0.27);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.24s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  width: 98vw;
  max-width: 420px;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 20px 42px rgba(107,58,22,0.11);
  padding: 32px 28px 18px 28px;
  margin-bottom: 0;
  animation: modalSlideUp 0.44s cubic-bezier(.22,1,.36,1);
  color: #513019;
  position: relative;
}
@keyframes modalSlideUp {
  0% { transform: translateY(100vh); }
  100% { transform: translateY(0); }
}
.cookie-modal h3 {
  margin-bottom: 16px;
  font-size: 1.15rem;
  font-weight: 700;
}
.cookie-category {
  margin-bottom: 19px;
}
.cookie-category label {
  display: flex;
  align-items: center;
  font-size: 1rem;
  gap: 12px;
}
.cookie-category input[type="checkbox"] {
  accent-color: #CB7C2A;
  margin-right: 7px;
}
.cookie-category.disabled input[type="checkbox"] {
  accent-color: #CB7C2A;
  opacity: 0.5;
  pointer-events: none;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 22px;
}
.cookie-modal-close {
  position: absolute;
  top: 8px;
  right: 15px;
  font-size: 1.6rem;
  color: #8D6340;
  background: transparent;
  border: none;
  padding: 6px 8px;
  cursor: pointer;
}

/* ========== Misc ========== */
::-webkit-input-placeholder {
  color: #B5A48C; opacity: 1;
}
::-moz-placeholder {
  color: #B5A48C; opacity: 1;
}
:-ms-input-placeholder {
  color: #B5A48C; opacity: 1;
}
::placeholder {
  color: #B5A48C; opacity: 1;
}

/* ========== Print (for legal) ========== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay{ display: none !important; }
  body { background: #fff; color: #111; }
}
