/* 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,
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;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.6;
  background: #F7F3ED;
  color: #253245;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  border: 0;
}
a {
  color: #30577A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #253245;
  text-decoration: underline;
  outline: none;
}

/* TYPOGRAPHY */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -1px;
  color: #30577A;
  margin-bottom: 16px;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #30577A;
  margin-bottom: 14px;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #30577A;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #253245;
}
p, ul, ol {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #253245;
  margin-bottom: 16px;
}
strong {
  font-weight: 700;
}
ul, ol {
  margin-left: 18px;
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 8px;
}
blockquote {
  font-style: italic;
  color: #30577A;
  border-left: 4px solid #A8B98C;
  padding-left: 20px;
  margin-bottom: 12px;
  background: #f3f6fa;
}

/* LAYOUT STRUCTURE */
.container {
  width: 100%;
  max-width: 1110px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* SPACING PATTERNS (MANDATORY) */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px 0 rgba(48,87,122,0.07);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(48,87,122,0.05);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  min-width: 240px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover,
.card:focus {
  box-shadow: 0 6px 20px 0 rgba(48,87,122,0.13);
  transform: translateY(-2px) scale(1.02);
}
.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;
  background: #f3f6fa;
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(48,87,122,0.07);
  margin-bottom: 24px;
  min-width: 260px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 16px 0;
}

/* SPECIAL REPEATED GRIDS */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
}
.feature-grid > div {
  flex: 1 1 190px;
  min-width: 190px;
  max-width: 260px;
  background: #f3f6fa;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(48,87,122,0.06);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 18px;
  gap: 14px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 24px 0 rgba(48,87,122,0.16);
  transform: translateY(-1px) scale(1.03);
}

.recipe-listings {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.recipe-listings > div {
  flex: 1 1 240px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(48,87,122,0.07);
  padding: 20px 18px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  min-width: 200px;
}
.recipe-listings > div:hover {
  box-shadow: 0 6px 18px 0 rgba(48,87,122,0.15);
  transform: translateY(-2px) scale(1.02);
}
.recipe-listings h3 {
  margin-bottom: 8px;
  color: #30577A;
}
.recipe-listings a {
  font-weight: 600;
  align-self: flex-start;
  color: #30577A;
  border-bottom: 1px dashed #30577A;
  margin-top: 12px;
  transition: color 0.2s;
}
.recipe-listings a:hover { color: #A8B98C; border-bottom: 1px dashed #A8B98C; }

/* HEADER & NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(48,87,122,0.04);
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 18px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #30577A;
  font-weight: 500;
  transition: color 0.2s;
  padding: 4px 8px;
  border-radius: 6px;
}
header nav a:hover,
header nav a:focus {
  background: #F7F3ED;
  color: #253245;
}
header nav .button-primary {
  background: #30577A;
  color: #fff !important;
  border-radius: 8px;
  font-weight: 700;
  padding: 9px 18px;
  margin-left: 10px;
  border: none;
  box-shadow: 0 2px 8px 0 rgba(48,87,122,0.06);
  transition: background 0.22s, box-shadow 0.2s, transform 0.15s;
}
header nav .button-primary:hover,
header nav .button-primary:focus {
  background: #A8B98C;
  color: #253245 !important;
  transform: scale(1.03);
  box-shadow: 0 4px 16px 0 rgba(48,87,122,0.16);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #30577A;
  cursor: pointer;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 100vh;
  background: rgba(48,87,122,0.94);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.77,0,.18,1);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  width: 100vw;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 26px 28px 0 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-top: 32px;
  gap: 14px;
  padding-left: 42px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.3rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 8px 0 8px 2px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  min-width: 200px;
  margin-bottom: 6px;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #A8B98C;
  color: #253245;
}

/* MAIN & SECTION STYLING */
main {
  min-height: calc(100vh - 240px);
  margin-bottom: 32px;
}
section {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px 0 rgba(48,87,122,0.07);
  margin-bottom: 60px;
  padding: 40px 20px;
  width: 100%;
}

/* FORM ELEMENTS & INPUTS */
input[type="search"], select {
  border: 1.5px solid #D6DCE5;
  background: #f3f6fa;
  color: #253245;
  border-radius: 7px;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  outline: none;
  margin-bottom: 18px;
  margin-right: 10px;
  width: 100%;
  max-width: 340px;
  transition: border 0.18s, box-shadow 0.18s;
}
input[type="search"]:focus, select:focus {
  border-color: #30577A;
  box-shadow: 0 0 4px #30577A22;
}
.sort-options {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 12px 0;
}
.sort-options label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #30577A;
}

/* BUTTONS */
.button-primary,
.button-primary[type="submit"],
.button-primary:visited {
  cursor: pointer;
  background: #30577A;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 1.1rem;
  margin-top: 14px;
  margin-bottom: 6px;
  box-shadow: 0 2px 8px 0 rgba(48,87,122,0.05);
  transition: background 0.18s, box-shadow 0.18s, color 0.18s, transform 0.15s;
  display: inline-block;
  outline: none;
}
.button-primary:hover, .button-primary:focus {
  background: #A8B98C;
  color: #253245;
  box-shadow: 0 6px 20px 0 rgba(168,185,140,0.18);
  transform: scale(1.04);
}
.button-secondary {
  background: #fff;
  color: #30577A;
  border: 2px solid #30577A;
  border-radius: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 10px 22px;
  font-size: 1rem;
  transition: background 0.18s, color 0.18s, border 0.18s, transform 0.15s;
}
.button-secondary:hover {
  background: #30577A;
  color: #fff;
  border: 2px solid #30577A;
  transform: scale(1.03);
}

/* FOOTER STYLES */
footer {
  background: #30577A;
  color: #fff;
  width: 100%;
  padding: 44px 0 24px 0;
  box-shadow: 0 -2px 20px 0 rgba(48,87,122,0.09);
  margin-top: 32px;
  font-size: 1rem;
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
footer nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.92;
  transition: opacity 0.17s, color 0.17s;
}
footer nav a:hover, footer nav a:focus {
  opacity: 1;
  text-decoration: underline;
  color: #A8B98C;
}
footer address {
  font-style: normal;
  line-height: 1.7;
  color: #f7f3ed;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
footer address img {
  width: 16px;
  height: 16px;
  margin-right: 7px;
  vertical-align: middle;
  filter: brightness(0) invert(1);
}

/* TEXT-IMAGE & OTHER UTILITY SECTIONS */
.text-section {
  margin-bottom: 12px;
  font-size: 1rem;
  color: #253245;
}
.text-section img {
  width: 16px;
  vertical-align: text-bottom;
  margin-right: 7px;
}

/* COOKIE CONSENT BANNER & MODAL */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #fff;
  color: #253245;
  width: 100%;
  min-height: 70px;
  box-shadow: 0 -2px 18px 0 rgba(48,87,122,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 18px 24px 18px 24px;
  font-size: 1rem;
  transition: transform 0.3s cubic-bezier(.77,0,.18,1);
  opacity: 1;
}
.cookie-banner.hide {
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-banner-content {
  flex: 1 0 215px;
  min-width: 200px;
  margin-bottom: 8px;
}
.cookie-banner button, .cookie-banner .button-primary,
.cookie-banner .button-secondary {
  margin: 0 7px;
  padding: 10px 18px;
  min-width: 132px;
}
.cookie-banner .button-primary {
  background: #30577A;
  color: #fff;
}
.cookie-banner .button-primary:hover {
  background: #A8B98C;
  color: #253245;
}
.cookie-banner .button-secondary {
  background: #f3f6fa;
  color: #30577A;
  border: 1.5px solid #A8B98C;
}

.cookie-modal {
  display: none;
  position: fixed;
  left: 0; top: 0; right:0; bottom:0;
  z-index: 10999;
  background: rgba(45,66,104,0.45);
  justify-content: center;
  align-items: center;
  animation: fadeIn .4s;
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 18px;
  padding: 34px 28px 28px 28px;
  box-shadow: 0 8px 44px 0 rgba(48,87,122,0.16);
  max-width: 420px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.23s cubic-bezier(.77,0,.18,1);
  color: #253245;
}
.cookie-modal-content h3 {
  color: #30577A;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.cookie-modal-content label {
  display: flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 500;
  gap: 8px;
  margin-bottom: 8px;
}
.cookie-modal-content input[type=checkbox] {
  accent-color: #30577A;
}
.cookie-modal-content .close-modal {
  align-self: flex-end;
  font-size: 1.6rem;
  background: none;
  border: none;
  color: #30577A;
  margin-top: -18px;
  margin-bottom: 3px;
  cursor: pointer;
}

@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

/* MICRO-INTERACTIONS & TRANSITIONS */
button, .button-primary, .button-secondary {
  cursor: pointer;
  transition: background 0.21s, color 0.21s, box-shadow 0.18s, transform 0.13s;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .container {
    max-width: 97vw;
    padding: 0 12px;
  }
  .feature-grid {
    gap: 18px;
  }
  .card-container {
    gap: 18px;
  }
}
@media (max-width: 850px) {
  .footer .container,
  .container {
    gap: 12px;
    max-width: 99vw;
    flex-direction: column;
    align-items: flex-start;
  }
  .footer nav {
    gap: 13px;
    margin-bottom: 8px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .container {
    max-width: 100vw;
    padding: 0 8px;
  }
  .section, section {
    padding: 30px 10px;
    margin-bottom: 44px;
  }
  .feature-grid, .content-grid, .card-container, .recipe-listings {
    flex-direction: column;
    gap: 18px;
  }
  header .container {
    flex-direction: row;
    align-items: center;
    padding: 10px 8px;
    min-height: 64px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 10px;
  }
  .feature-grid > div,
  .card,
  .recipe-listings > div {
    max-width: 100%;
    min-width: 0;
  }
}
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  h1, .h1 { font-size: 1.48rem; }
  h2, .h2 { font-size: 1.17rem; }
  .section, section {
    padding: 18px 4px;
  }
  .cookie-modal-content {
    padding: 22px 7px 18px 7px;
  }
  .mobile-nav {
    padding-left: 20px;
  }
}

/* Z-INDEX LAYERING AND ACCESSIBILITY */
header,
footer,
.mobile-menu,
.cookie-banner,
.cookie-modal {
  z-index: 100;
}
.mobile-menu {
  z-index: 1100;
}
.cookie-modal {
  z-index: 10999 !important;
}

/* SELECTION & FOCUS */
:focus {
  outline: 2px solid #A8B98C;
  outline-offset: 2px;
}

::-webkit-input-placeholder { color: #A8B98C; opacity: 1; }
::-moz-placeholder { color: #A8B98C; opacity: 1; }
:-ms-input-placeholder { color: #A8B98C; opacity: 1; }
::placeholder { color: #A8B98C; opacity: 1; }

/* SCROLLBAR */
body::-webkit-scrollbar {
  width: 12px;
  background: #E1E6EE;
}
body::-webkit-scrollbar-thumb {
  background: #A8B98C;
  border-radius: 6px;
}

/* CUSTOM UTILITIES */
.mt-0 { margin-top: 0!important; }
.mb-0 { margin-bottom: 0!important; }
.mb-20 { margin-bottom: 20px!important; }

/* OVERRIDES FOR DARK BG ACCESSIBILITY (Testimonials, etc.) */
.testimonial-card, .feature-grid > div {
  color: #253245;
  background: #f3f6fa;
  border-radius: 14px;
}
.testimonial-card blockquote {
  background: none;
  border-left: 3px solid #A8B98C;
  color: #30577A;
}
.testimonial-card strong {
  color: #30577A;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* Table support */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin-bottom: 28px;
}
th, td {
  border: 1px solid #D6DCE5;
  padding: 10px;
  text-align: left;
}
th {
  background: #30577A;
  color: #fff;
}

/* Animation Effects */
.button-primary, .button-secondary {
  transition: transform 0.13s, background 0.19s, box-shadow 0.19s, color 0.18s;
}
.button-primary:active, .button-secondary:active {
  transform: scale(0.97);
}

/* Custom Scroll Animations */
.section, section, .card, .feature-grid > div, .testimonial-card {
  opacity: 1;
  transition: opacity 0.29s, transform 0.22s;
}

/* Hide unwanted absolute positioning */
.card, .feature-grid > div, .testimonial-card, .recipe-listings > div {
  position: relative;
}
