/* ==== 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 {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #171717;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
img {
  max-width: 100%;
  vertical-align: middle;
}
a {
  text-decoration: none;
  color: inherit;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  background: none;
  border: none;
  outline: none;
}

/* ==== VARIABLES (with fallback) ==== */
:root {
  --color-bg: #fff;
  --color-bg-alt: #f6f6f6;
  --color-fg: #161616;
  --color-mid: #555;
  --color-primary: #111;
  --color-secondary: #f6f3eb;
  --color-accent: #e59f2a;
  --color-shadow: rgba(20,20,20,0.09);
  --radius: 16px;
  --shadow-card: 0 5px 28px rgba(20,20,20,0.08);
  --shadow-hover: 0 8px 36px rgba(30,30,30,0.16);
  --transition: 0.28s cubic-bezier(.4,0,.2,1);
}

/* ==== TYPOGRAPHY (sophisticated scale) ==== */
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--color-fg);
  background: var(--color-bg);
}
h1,h2,h3,h4,h5,h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #8d8888;
  letter-spacing: -0.015em;
}
h1 {font-size: 2.75rem; line-height: 1.15; margin-bottom: 32px;}
h2 {font-size: 2rem; line-height: 1.2; margin-bottom: 28px;}
h3 {font-size: 1.2rem; line-height: 1.25; margin-bottom: 16px;}
h4 {font-size: 1rem; font-weight: 600; margin-bottom: 10px;}
p, ul, ol, blockquote {font-size: 1rem; margin-bottom: 16px;}
strong {font-weight: 700;}
em {font-style: italic;}

@media (max-width: 768px) {
  h1 { font-size: 2rem; margin-bottom: 24px; }
  h2 { font-size: 1.3rem; margin-bottom: 20px; }
}

/* ==== LAYOUT CONTAINERS ==== */
.container {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
main {
  background: var(--color-bg);
}
.content-wrapper {
  margin: 0 auto;
  width: 100%;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ==== HEADER ==== */
header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #dedede;
  box-shadow: 0 1.5px 0 #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 90;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 18px 0;
}
.logo { display: flex; align-items: center; margin-right: 18px; }
header nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #161616;
  opacity: 0.84;
  letter-spacing: 0.01em;
  position: relative;
  padding: 2px 0;
  transition: color var(--transition), opacity var(--transition);
}
header nav a:after {
  content: '';
  display: block;
  border-bottom: 2px solid var(--color-primary);
  transform: scaleX(0);
  transition: transform var(--transition);
}
header nav a:hover, header nav a:focus {
  color: #111;
  opacity: 1;
}
header nav a:hover:after, header nav a:focus:after {
  transform: scaleX(1);
}
.button-primary, .button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  background: #fff;
  border: 2px solid #111;
  color: #111;
  box-shadow: 0 2px 14px rgba(20,20,20,0.06);
  min-width: 160px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), border var(--transition);
}
.button-primary {
  background: #111;
  color: #fff;
  border-color: #111;
  box-shadow: 0 2px 14px rgba(20,20,20,0.13);
}
.button-primary:hover, .button-primary:focus {
  background: #222;
  color: #e59f2a;
  border-color: #e59f2a;
  box-shadow: var(--shadow-hover);
}
.button-secondary {
  background: #fff;
  color: #111;
  border-color: #111;
}
.button-secondary:hover, .button-secondary:focus {
  background: #111;
  color: #fff;
  box-shadow: var(--shadow-hover);
  border-color: #e59f2a;
}
header .button-primary {margin-left: 32px;}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #111;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 10px;
  z-index: 120;
  transition: background var(--transition);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #e9e9e9;
}

/* ==== MOBILE MENU ==== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: #fff;
  box-shadow: 0 0 0 9999px rgba(20,20,20,0.30);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.47,1.64,.41,.8);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  background: none;
  color: #111;
  border: none;
  margin: 26px 26px 10px 0;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
  transition: background var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #e9e9e9;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  padding: 36px 44px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.22rem;
  color: #111;
  opacity: 0.92;
  letter-spacing: 0.02em;
  border-radius: 10px;
  transition: background var(--transition), color var(--transition);
  padding: 8px 2px 8px 0;
  margin-right: 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #16161613;
  color: #e59f2a;
  opacity: 1;
}
@media (max-width: 1100px) {
  .container {padding-left: 12px; padding-right: 12px;}
}
@media (max-width: 960px) {
  header nav {gap: 12px;}
  header .button-primary {margin-left: 12px;}
}
@media (max-width: 840px) {
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    padding-left: 10px;
    padding-right: 6px;
  }
  .container { padding-left: 7px; padding-right: 7px; }
}
@media (max-width: 768px) {
  header nav, header .button-primary { display: none; }
  .mobile-menu-toggle { display: block; }
  .logo { margin-right: 0; }
  header .container {gap: 0;}
}

/* ==== MAIN CONTENT SPACING ==== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.025);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
@media (max-width: 768px) {
  section { margin-bottom: 32px; padding: 22px 6px; }
}

/* ==== FLEX PATTERNS (MANDATORY) ==== */
.card-container{
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 24px 18px;
  min-width: 220px;
  max-width: 100%;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.card:hover, .card:focus-within {
  box-shadow: var(--shadow-hover);
}
.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;
  width: 100%;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 18px; }
  .content-grid { flex-direction: column; gap: 18px; }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #f6f6f6;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(20,20,20,0.04);
  margin-bottom: 20px;
  max-width: 760px;
  color: #181818;
}
.testimonial-card blockquote {
  margin: 0;
  font-size: 1.12rem;
  color: #181818;
  font-style: italic;
}
.testimonial-card footer {
  display: block;
  font-size: 0.99rem;
  font-style: normal;
  margin-top: 10px;
  color: #656565;
  font-family: 'Roboto',Arial, sans-serif;
}

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

/* ==== COMPONENTS SPECIFIC (GRID ALIASES) ==== */
.recipe-teasers, .recipe-grid, .alphabet-filter, .ingredient-grid, .blog-posts, .blog-post-list, .tips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.recipe-teasers .recipe-card, .recipe-grid .recipe-card, .tips-grid .tip-item, .ingredient-grid .ingredient-item, .blog-posts .blog-post, .blog-post-list .blog-post {
  background: #fff;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-bottom: 0 !important;
  flex: 1 1 220px;
  max-width: 310px;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.recipe-card:hover, .recipe-card:focus-within, .tip-item:hover, .ingredient-item:hover {
  box-shadow: var(--shadow-hover);
  border-color: #e59f2a;
}
@media (max-width: 850px) {
  .recipe-teasers, .recipe-grid, .alphabet-filter, .ingredient-grid,.blog-posts,.blog-post-list, .tips-grid {
    gap: 14px;
  }
  .recipe-teasers .recipe-card, .recipe-grid .recipe-card, .tips-grid .tip-item, .ingredient-grid .ingredient-item, .blog-posts .blog-post, .blog-post-list .blog-post {
    min-width: 170px;
    max-width: 100%;
    flex-basis: 100%;
  }
}
@media (max-width: 600px) {
  .recipe-teasers, .recipe-grid, .alphabet-filter, .ingredient-grid,.blog-posts,.blog-post-list, .tips-grid {
    flex-direction: column;
    gap: 10px;
  }
  .recipe-teasers .recipe-card, .recipe-grid .recipe-card, .tips-grid .tip-item, .ingredient-grid .ingredient-item, .blog-posts .blog-post, .blog-post-list .blog-post {
    min-width: unset; max-width: unset; width: 100%;
  }
}

.categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.categories-list a {
  background: #eee;
  color: #171717;
  padding: 8px 20px;
  border-radius: 22px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.categories-list a:hover, .categories-list a:focus {
  background: #161616;
  color: #fff;
}
.filters {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
  flex-wrap: wrap;
}
.filters button {
  background: #161616;
  color: #fff;
  border-radius: 14px;
  padding: 7px 18px;
  font-size: 0.97rem;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
}
.filters button:hover, .filters button:focus {
  background: #e59f2a;
  color: #111;
}

.alphabet-filter {
  gap: 10px;
  margin-bottom: 20px;
}
.alphabet-filter button {
  background: #ececec;
  border-radius: 8px;
  border: none;
  font-size: 1.05rem;
  padding: 8px 16px;
  color: #343434;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.alphabet-filter button:hover, .alphabet-filter button:focus {
  background: #111;
  color: #fff;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 22px;
  flex-wrap: wrap;
}
.search-bar input[type="text"] {
  background: #fff;
  border: 1.5px solid #cccccc;
  border-radius: 7px;
  padding: 10px 14px;
  min-width: 180px;
  font-size: 1rem;
  color: #171717;
  transition: border var(--transition), box-shadow var(--transition);
}
.search-bar input[type="text"]:focus {
  border-color: #e59f2a;
  box-shadow: 0 0 0 2px #e6c78999;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}
.tags-cloud span {
  padding: 7px 12px;
  background: #ececec;
  border-radius: 10px;
  color: #171717;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
}

.newsletter-signup {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 18px;
  margin-bottom: 20px;
  border: 1.5px solid #efefef;
}

.team-image-placeholder, .location-map-placeholder {
  width: 90px;
  height: 90px;
  display: flex;
  background: #f6f6f6;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  margin: 18px 0 15px 0;
}
.team-image-placeholder img, .location-map-placeholder img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* ==== FOOTER ==== */
footer {
  background: #111;
  color: #fff;
  padding: 34px 0 28px 0;
  position: relative;
  z-index: 10;
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.footer-nav {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 1rem;
  opacity: 0.87;
  padding: 2px 0;
  border-radius: 0;
  transition: color var(--transition), opacity var(--transition);
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #e59f2a;
  opacity: 1;
}
footer address {
  font-style: normal;
  color: #c0c0c0;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  margin-left: 0;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
footer img {
  display: inline-block;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 3px;
}

/* ==== LISTS ==== */
ul, ol {
  margin-bottom: 20px;
  margin-left: 0;
  padding-left: 24px;
}
ul li, ol li {
  margin-bottom: 12px;
  color: #414141;
  position: relative;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  padding-left: 30px;
  line-height: 1.55;
}
ul li img {
  position: absolute;
  left: 0;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  margin-right: 6px;
  opacity: 0.87;
}

@media (max-width: 600px) {
  ul li, ol li {padding-left: 28px;}
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 12px;
}
.contact-info-list li img {
  margin-right: 8px;
}

/* ==== MICRO-INTERACTIONS & HOVER ==== */
a, button, .button-primary, .button-secondary, .categories-list a, .filters button, .alphabet-filter button, .mobile-nav a, .footer-nav a {
  transition: color var(--transition), background var(--transition), box-shadow var(--transition), border var(--transition), opacity var(--transition);
}

/* ==== SPACING & ALIGNMENT CRITICAL RULES ==== */
section .content-wrapper > *:not(:last-child) {
  margin-bottom: 22px;
}
section:not(:last-child) {
  margin-bottom: 60px;
}
.card, .recipe-card, .tip-item, .ingredient-item, .blog-post, .testimonial-card {
  margin-bottom: 20px;
}
.card-container, .content-grid, .text-image-section, .testimonial-card, .feature-item {
  gap: 20px;
}

/* ==== COOKIE BANNER ===== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #222;
  color: #fff;
  padding: 30px 18px 22px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  z-index: 3000;
  box-shadow: 0 -3px 18px rgba(0,0,0,0.12);
  gap: 16px;
  transition: transform var(--transition), opacity var(--transition);
}
.cookie-consent-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(110%);
}
.cookie-consent-banner .cookie-msg {
  flex: 1 1 auto;
  font-family: 'Roboto', Arial, sans-serif;
  color: #fff;
  font-size: 0.96rem;
  margin-right: 18px;
}
.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cookie-buttons button {
  background: #fff;
  color: #222;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 10px 22px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(0,0,0,0.02);
  transition: color var(--transition), background var(--transition);
}
.cookie-buttons .accept {
  background: #e59f2a;
  color: #181818;
  border: none;
}
.cookie-buttons .accept:hover, .cookie-buttons .accept:focus {
  background: #fff3dd;
  color: #e59f2a;
}
.cookie-buttons .reject {
  background: #fff;
  color: #1a1a1a;
  border: 1.2px solid #bbb;
}
.cookie-buttons .reject:hover, .cookie-buttons .reject:focus {
  color: #e34a4a;
  border-color: #e34a4a;
}
.cookie-buttons .settings {
  background: #f7f7f7;
  color: #1a1a1a;
  border: 1.2px solid #bbb;
}
.cookie-buttons .settings:hover, .cookie-buttons .settings:focus {
  color: #e59f2a;
  border-color: #e59f2a;
}
@media (max-width: 670px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 6px 18px;
    gap: 12px;
  }
  .cookie-consent-banner .cookie-msg {margin-right:0;}
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0;left:0;right:0;bottom:0;
  width: 100vw;height: 100vh;
  background: rgba(30,30,30,0.50);
  z-index: 3500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity var(--transition);
}
.cookie-modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  padding: 38px 32px 30px 32px;
  border-radius: 21px;
  box-shadow: 0 8px 60px rgba(36,36,36,0.15);
  max-width: 425px; min-width: 250px;
  width: 93vw;
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-height: 91vh;
  overflow-y: auto;
  color: #181818;
  position: relative;
  z-index: 3600;
  animation: cookie-modal-pop 0.35s cubic-bezier(.07,1.35,.35,0.91);
}
@keyframes cookie-modal-pop { 0% {transform: scale(0.74);} 100%{transform: scale(1);} }
.cookie-modal h3 {
  font-size: 1.28rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 10px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-category input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: #e59f2a;
  margin: 0 0 0 0;
}
.cookie-category label {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #1b1b1b;
}
.cookie-modal-footer {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}
.cookie-modal-footer button {
  padding: 8px 18px;
  font-size: 1rem;
  border-radius: 7px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  background: #e59f2a;
  color: #191919;
  transition: background var(--transition), color var(--transition);
}
.cookie-modal-footer .close {
  background: #fff;
  color: #181818;
  border: 1.5px solid #bbb;
}
.cookie-modal-footer .close:hover, .cookie-modal-footer .close:focus {
  background: #f7f7f7; color: #e59f2a; border-color: #e59f2a;}
.cookie-modal-footer .save {
  background: #e59f2a;
  color: #181818;
}
.cookie-modal-footer .save:hover,.cookie-modal-footer .save:focus {
  background: #fff3dd;
  color: #e59f2a;
}

/* ==== SCROLL-BAR (modern browser support) ==== */
html::-webkit-scrollbar {width:10px;}
html::-webkit-scrollbar-thumb {background:#222; border-radius: 5px;}
html::-webkit-scrollbar-track {background: #f7f7f7;}

/* ==== TRANSITIONS + SELECTION ==== */
::selection {
  background: #222;
  color: #fff;
}

/* ==== RESPONSIVE FLEX DIRECTIONS & COMPONENTS ==== */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; }
  .card-container, .content-grid, .feature-item { flex-direction: column; }
}

/* ==== DARK MODE SUPPORT (Optional, for users with dark-set browser) ==== */
@media (prefers-color-scheme: dark) {
  body {
    background: #141414;
    color: #f5f5f5;
  }
  section, .card, .recipe-card, .tip-item, .ingredient-item, .blog-post, .newsletter-signup {
    background: #181818;
    color: #564f4f;
    box-shadow: 0 3px 22px rgba(0,0,0,0.15);
  }
  .testimonial-card {
    background: #212121;
    color: #f6f3eb;
  }
  .cookie-consent-banner {
    background: #141414;
    color: #F6F3EB;
  }
  .footer-nav a { color:#fff; }
}

/* ==== END ==== */
