/* RESET & BASELINE ----------------------------- */
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 {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #23524C;
  background: #FAFBFC;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.65;
}
a {
  color: #3D8071;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #11513E;
  text-decoration: underline;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
p + p {
  margin-top: 12px;
}
h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #23524C;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.8rem; line-height: 1.12; }
h2 { font-size: 2rem; line-height: 1.2; }
h3 { font-size: 1.32rem; line-height: 1.24; }
h4 { font-size: 1.06rem; }

/* SOFT PASTEL PALETTE ------------------------- */
:root {
  --primary: #23524C;
  --secondary: #87C996;
  --accent: #FFF8E6;
  --pastel-pink: #FFD6E0;
  --pastel-mint: #CFF9E0;
  --pastel-blue: #DEEAFE;
  --pastel-yellow: #FFF8E6;
  --muted: #FBF6F0;
  --border: #E0E5E6;
  --focus: #AEE0C5;
  --shadow: rgba(188, 196, 207, 0.15);
  --black: #202828;
  --white: #fff;
  --gray-text: #627276;
}

/* LAYOUT -------------------------------------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  max-width: 754px;
}

.section:last-child {
  margin-bottom: 0;
}

/* HEADER -------------------------------------- */
header {
  background: linear-gradient(180deg, #FFF8E6 0%, #FAFBFC 100%);
  box-shadow: 0 2px 10px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1090;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 20px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.header-logo {
  flex: 0 0 auto;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
  opacity: 0.97;
  letter-spacing: 0.02em;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
}
.cta-button {
  font-family: 'Montserrat', Arial, sans-serif;
  display: inline-block;
  background: linear-gradient(90deg, #CFF9E0 60%, #FFD6E0 100%);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.12rem;
  border: none;
  border-radius: 28px;
  padding: 12px 32px;
  margin-left: 26px;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--shadow);
  transition: box-shadow .15s, color .18s, background .18s;
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(90deg, #DEEAFE 50%, #CFF9E0 100%);
  color: #11513E;
  box-shadow: 0 4px 16px var(--shadow);
}

/* MOBILE NAVIGATION --------------------------- */
.mobile-menu-toggle {
  display: none;
  background: var(--pastel-mint);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  box-shadow: 0 2px 8px var(--shadow);
  cursor: pointer;
  transition: background .18s;
  z-index: 1201;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--pastel-blue);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: var(--white);
  box-shadow: -4px 0 16px var(--shadow);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.62,.06,.14,1);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 24px 24px 32px;
  gap: 24px;
}
.mobile-menu.active {
  transform: translateX(0);
  box-shadow: -8px 0 24px var(--shadow);
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--pastel-mint);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  font-size: 2.1rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 6px var(--shadow);
  cursor: pointer;
  margin-bottom: 8px;
  z-index: 1201;
  transition: background .18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--pastel-pink);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.32rem;
  color: var(--primary);
  padding: 10px 0;
  border-radius: 8px;
  transition: background .18s, color .15s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--secondary);
  background: var(--pastel-yellow);
}

@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
}

/* SECTION & FLEX LAYOUTS ---------------------- */
.features-grid, .blog-preview-grid, .blog-post-grid, .faq-list, .testimonial-list, .recipes-list, .plans {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 28px;
}
.features-grid > div, .blog-preview-grid > div, .blog-post-grid > div, .faq-list > div, .testimonial-list > .testimonial-card, .recipes-list > div, .plans > div {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 2px 8px var(--shadow);
  padding: 28px 22px;
  min-width: 260px;
  flex: 1 1 260px;
  transition: box-shadow .2s, transform .2s;
  margin-bottom: 20px;
  position: relative;
}
.features-grid > div:hover,
.blog-preview-grid > div:hover,
.blog-post-grid > div:hover,
.faq-list > div:hover,
.plans > div:hover {
  box-shadow: 0 6px 24px var(--shadow);
  transform: translateY(-3px) scale(1.018);
}

@media (max-width: 900px) {
  .features-grid, .blog-preview-grid, .blog-post-grid, .faq-list, .testimonial-list, .recipes-list, .plans {
    flex-direction: column;
    gap: 20px;
  }
  .features-grid > div, .blog-preview-grid > div, .blog-post-grid > div, .faq-list > div, .testimonial-list > .testimonial-card, .recipes-list > div, .plans > div {
    min-width: 0;
  }
}

/* CARD CONTAINER/STYLES ----------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 2px 8px var(--shadow);
  padding: 20px;
  transition: box-shadow 0.19s, transform 0.19s;
}
.card:hover {
  box-shadow:0 6px 24px var(--shadow);
  transform: translateY(-2px) scale(1.012);
}

/* UNIQUE LAYOUTS ----------------------------- */
.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;
  margin-bottom: 32px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* TESTIMONIAL CARD ---------------------------- */
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
}
.testimonial-card {
  background: var(--pastel-blue);
  color: #20322a;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  border-radius: 18px;
  box-shadow: 0 2px 8px var(--shadow);
  min-width: 260px;
  flex: 1 1 325px;
  margin-bottom: 20px;
  position: relative;
}
.testimonial-card p {
  font-size: 1.16rem;
  font-style: italic;
  margin-bottom: 10px;
  color: #28423B;
}
.testimonial-card span {
  font-size: 1rem;
  color: #23524C;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.testimonial-card::after {
  content: '';
  position: absolute;
  top: -18px;
  left: 20px;
  width: 36px; height: 36px;
  background: url('../assets/icons/icon-quote.svg') no-repeat center/contain;
  opacity: 0.15;
  pointer-events: none;
}

/* BADGES & FILTER BUTTONS --------------------- */
.badge {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: bold;
  background: var(--pastel-mint);
  color: var(--primary);
  border-radius: 14px;
  padding: 4px 14px;
  margin-left: 4px;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 3px var(--shadow);
}

button, .blog-tags-filter button, .recipe-filter-row button,
input[type="submit"], input[type="button"] {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 28px;
  padding: 8px 24px;
  font-size: 1rem;
  background: var(--pastel-blue);
  color: var(--primary);
  margin: 0 5px 10px 0;
  cursor: pointer;
  box-shadow: 0 2px 6px var(--shadow);
  transition: background .18s, color .15s, box-shadow .2s;
}
button:focus, .blog-tags-filter button:focus, .recipe-filter-row button:focus {
  outline: none;
  background: var(--pastel-mint);
}
button:hover, .blog-tags-filter button:hover, .recipe-filter-row button:hover {
  background: var(--pastel-pink);
  color: var(--primary);
  box-shadow: 0 4px 18px var(--shadow);
}
.recipe-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.blog-tags-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}
.blog-tags-filter span {
  color: var(--primary);
  font-weight: 700;
}

/* PLANS (Subscription) ---------------------------- */
.plans {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.plans > div {
  border: 1.6px solid var(--pastel-mint);
  background: var(--pastel-yellow);
  border-radius: 18px;
  box-shadow: 0 2px 8px var(--shadow);
  flex: 1 1 260px;
  text-align: left;
  transition: border-color .2s, box-shadow .17s;
}
.plans > div:hover {
  border-color: var(--pastel-pink);
}
.plans h3 {
  font-size: 1.18rem;
  color: var(--primary);
  margin-bottom: 16px;
}
.plans ul {
  list-style: disc inside;
  color: var(--primary);
  padding-left: 0;
}

/* FOOTER ------------------------------------- */
footer {
  background: linear-gradient(180deg, #FAFBFC 60%, #CFF9E0 100%);
  padding-top: 32px;
  padding-bottom: 32px;
  margin-top: 40px;
  color: var(--primary);
  box-shadow: 0 -1px 14px var(--shadow);
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-content > * {
  min-width: 180px;
  margin-bottom: 20px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: var(--primary);
  font-size: 1rem;
  font-family: 'Montserrat', Arial,sans-serif;
  font-weight: 600;
  opacity: 0.89;
  transition: color .18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--secondary);
}
.social-media-links {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 10px;
}
.social-media-links img {
  width: 32px;
  height: 32px;
  filter: grayscale(0.15) brightness(0.94);
  transition: filter .13s, transform .17s;
}
.social-media-links img:hover {
  filter: grayscale(0) brightness(1.10);
  transform: scale(1.10) rotate(-2deg);
}

/* CONTACT DETAILS ---------------------------- */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}
.address-map {
  background: var(--pastel-mint);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 20px;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 6px var(--shadow);
}
address {
  font-style: normal;
  color: var(--primary);
  margin-bottom: 6px;
}

/* TYPOGRAPHY --------------------------------- */
p, li, span, address {
  color: #285A45;
  font-size: 1.04rem;
}
dt, dd {
  font-size: 1rem;
  color: #24434E;
}
strong {
  font-weight: 700;
  color: #23524C;
}

/* FORMS (General) ---------------------------- */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  border: 1.2px solid var(--pastel-mint);
  border-radius: 9px;
  padding: 10px 14px;
  resize: vertical;
  background: #FBF6F0;
  margin-bottom: 16px;
  box-shadow: 0 1px 5px var(--shadow);
  transition: border-color .18s;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--focus);
  border-color: var(--secondary);
}
input[type="submit"], input[type="button"] {
  cursor: pointer;
}

/* COOKIE CONSENT ----------------------------- */
#cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--pastel-yellow);
  color: #23524C;
  box-shadow: 0 -2px 16px var(--shadow);
  padding: 22px 16px;
  z-index: 1500;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  animation: cookieSlideIn .7s cubic-bezier(.68,-0.21,.27,1.09);
}
@keyframes cookieSlideIn {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
#cookie-banner p {
  margin: 0 0 8px 0;
  color: #23524C;
}
#cookie-banner .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
#cookie-banner button {
  background: var(--pastel-mint);
  color: #23524C;
  font-weight: 700;
  border: none;
  box-shadow: 0 2px 6px var(--shadow);
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 1rem;
  transition: background .17s, color .17s, box-shadow .17s;
}
#cookie-banner button:hover {
  background: var(--pastel-pink);
  color: #23524C;
  box-shadow: 0 4px 18px var(--shadow);
}

/* COOKIE MODAL ----------------------------- */
#cookie-modal {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(34, 82, 76, 0.18);
  z-index: 1510;
  align-items: center;
  justify-content: center;
  transition: opacity .24s;
  animation: fadeInModal .18s cubic-bezier(.68,-0.21,.27,1.09);
}
#cookie-modal.active {
  display: flex;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity:1; }
}
.cookie-modal-content {
  background: var(--white);
  border-radius: 22px;
  max-width: 456px;
  width: 95%;
  margin: 0 auto;
  padding: 44px 24px 28px 24px;
  box-shadow: 0 4px 40px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  animation: modalIn .28s cubic-bezier(.81,-0.25,.23,1.23);
}
@keyframes modalIn {
  from { transform: scale(.85) translateY(60px); opacity: 0 }
  to { transform: scale(1) translateY(0); opacity: 1 }
}
.cookie-modal-content h2 {
  font-size: 1.28rem;
  color: var(--primary);
  margin-bottom: 10px;
}
.cookie-prefs-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-pref-category {
  background: var(--pastel-mint);
  border-radius: 12px;
  padding: 14px 12px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 1.06rem;
  font-weight: 500;
}
.cookie-pref-category label {
  flex: 1;
  cursor: pointer;
}
.cookie-toggle {
  width: 44px;
  height: 24px;
  background: var(--pastel-blue);
  border-radius: 14px;
  position: relative;
  transition: background .17s;
  cursor: pointer;
  border: 1px solid var(--pastel-pink);
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-toggle-slider {
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 1px 5px var(--shadow);
  transition: transform .18s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  transform: translateX(20px);
  background: var(--pastel-mint);
}
.cookie-pref-category[data-essential] .cookie-toggle {
  opacity: 0.6;
  pointer-events: none;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 18px;
  font-size: 1.7rem;
  background: transparent;
  border: none;
  color: var(--primary);
  cursor: pointer;
  z-index: 2;
  transition: color .14s;
}
.cookie-modal-close:hover {
  color: var(--secondary);
}

/* RESPONSIVE STYLES -------------------------- */
@media (max-width: 768px) {
  h1 {font-size: 2rem;}
  h2 {font-size: 1.36rem;}
  .container {
    padding: 0 10px;
  }
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .section {
    padding: 28px 6px;
    margin-bottom: 36px;
  }
  .testimonial-card {
    padding: 18px 13px;
    min-width: 0;
    flex-basis: 100%;
  }
  .features-grid, .blog-preview-grid, .blog-post-grid, .faq-list, .testimonial-list, .recipes-list, .plans {
    gap: 14px;
    margin-top: 16px;
  }
}

/* ANIMATION/MICRO-INTERACTIONS --------------- */
.card, .features-grid > div, .plans > div, .blog-preview-grid > div, .blog-post-grid > div {
  transition: box-shadow .15s, transform .15s;
}
.card:active, .features-grid > div:active, .plans > div:active {
  transform: scale(0.98);
}

a, button, .cta-button {
  transition: background .14s, color .16s, box-shadow .17s, border .14s;
}

/* VISUAL & DECORATIVE ELEMENTS ---------------- */
.features-grid img, .blog-preview-grid img, .blog-post-grid img, .social-media-links img, .contact-details img {
  border-radius: 12px;
  background: var(--pastel-yellow);
  box-shadow: 0 1px 3px var(--shadow);
  margin-right: 7px;
}
h2:after {
  content: '';
  display: block;
  width: 64px; height: 3px;
  margin-top: 10px;
  border-radius: 2px;
  background: linear-gradient(90deg,var(--pastel-pink),var(--secondary) 70%,var(--pastel-mint));
}
h2.text-center:after {
  margin-left: auto; margin-right: auto;
}

/* UTILITIES & OVERRIDES ----------------------- */
.text-center { text-align: center; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-4 { margin-bottom: 4px !important; }
.mb-8 { margin-bottom: 8px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mt-16 { margin-top: 16px !important; }
.pb-0 { padding-bottom: 0 !important; }

/* Hide cookie/overlay by default if not rendered in HTML 
   (you may need to use class/id toggling JS for modal/banner) */
#cookie-banner, #cookie-modal { display: none; }

/* DIALOG POLYFILL (for full compatibility) ---- */
dialog[open] {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(34,82,76,.18);
  border: none;
}

/* END OF CSS */
