/* ================================================== */
/* 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, body { height: 100%; }
article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section { display: block; }
body { line-height: 1.5; background: #F9F6EE; color: #2B6777; font-family: 'Roboto', Arial, Helvetica, sans-serif; min-height: 100vh; }
*::before, *::after, * {
  box-sizing: border-box;
}
a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; border: 0; }
button, input, select, textarea { font-family: inherit; font-size: 100%; } 

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;800&family=Roboto:wght@400;500;700&display=swap');

/* ================================================== */
/* SCANDINAVIAN CLEAN BASE COLORS & TYPOGRAPHY        */
/* ================================================== */
:root {
  --primary: #2B6777;
  --primary-darker: #204953;
  --secondary: #F2CB05;
  --accent: #F9F6EE;
  --gray-light: #EFEFEA;
  --gray-lighter: #FAFAF8;
  --gray-mid: #CED6D5;
  --gray-dark: #444C5C;
  --text-main: #1C2D36;
  --text-secondary: #597481;
  --radius: 16px;
  --shadow: 0 4px 16px 0 rgba(44, 74, 92, 0.08);
  --shadow-hover: 0 6px 24px rgba(44,74,92,0.12);
  --transition: all 0.18s cubic-bezier(.4,.1,.4,1);
}

body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: var(--text-main);
  background: var(--accent);
  font-weight: 400;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--primary);
}
h1 { font-size: 2.5rem; line-height: 1.1; margin-bottom: 18px; }
h2 { font-size: 2rem; line-height: 1.15; margin-bottom: 16px; }
h3 { font-size: 1.35rem; margin-bottom: 10px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; font-weight: 600; }

p, ul, ol {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 12px;
}
.subheadline {
  color: var(--gray-dark);
  font-size: 1.2rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 500;
  margin-bottom: 20px;
}

strong { font-weight: 700; color: var(--primary); }

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

/* ================================================== */
/* HEADER & NAVIGATION                                */
/* ================================================== */
header {
  background: #fff; 
  box-shadow: 0 2px 16px rgba(44,74,92,0.01);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}
header img {
  height: 44px;
  width: auto;
  display: flex;
  align-items: center;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--primary);
  border-radius: var(--radius);
  padding: 6px 10px;
  transition: var(--transition);
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--secondary);
  background: var(--gray-lighter);
}
.main-nav .button.primary {
  margin-left: 12px;
}

/* ================================================== */
/* BUTTONS & INTERACTIVES                             */
/* ================================================== */
.button,
.button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  border-radius: var(--radius);
  padding: 12px 28px;
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  outline: none;
  margin-top: 12px;
  margin-bottom: 8px;
}
.button.primary {
  background: var(--primary);
}
.button.secondary {
  background: var(--secondary);
  color: var(--primary);
}
.button:active,
.button:hover, .button:focus {
  background: var(--primary-darker);
  color: #fff;
  box-shadow: var(--shadow-hover);
}
.button.secondary:hover, .button.secondary:focus {
  background: #ffe871;
  color: var(--primary-darker);
}

/* Link styled as button */
a.button, a.button.primary, a.button.secondary {
  text-align: center;
  text-decoration: none;
}

/* ================================================== */
/* MOBILE BURGER MENU                                 */
/* ================================================== */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  cursor: pointer;
  z-index: 151;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(249,246,238,0.97);
  box-shadow: 0 10px 40px rgba(40,40,40,.12);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 32px 24px 24px 24px;
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform .36s cubic-bezier(.4,.6,.4,1);
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--primary);
  padding: 0 4px;
  margin-bottom: 16px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--secondary);
  color: var(--primary-darker);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.25rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: var(--primary);
  padding: 12px 0;
  transition: var(--transition);
  border-radius: 8px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--gray-light);
  color: var(--secondary);
}

@media (max-width: 1020px) {
  .container { padding-left: 14px; padding-right: 14px; }
  header .container { padding-left: 8px; padding-right: 8px; }
  .main-nav { gap: 16px; }
}
@media (max-width: 900px) {
  .main-nav a { font-size: 0.98rem; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

@media (max-width: 768px) {
  .main-nav { display: none !important; }
  .mobile-menu-toggle { display: flex; }
  header .container { min-height: 58px; }
}
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* ================================================== */
/* HERO & SECTIONS                                    */
/* ================================================== */
.hero {
  background: linear-gradient(98deg, #F9F6EE 60%, #EFEFEA 100%);
  min-height: 320px;
  margin-bottom: 60px; padding: 40px 20px;
  display: flex;
  align-items: center;
}
.hero .content-wrapper {
  max-width: 640px;
  margin: auto 0;
  gap: 12px;
}
.hero h1 {
  margin-bottom: 10px;
}

/* Generic section spacing and wrapper */
.section, section {
  margin-bottom: 60px; padding: 40px 20px;
}
@media (max-width: 600px) {
  .section, section {
    padding: 24px 8px; margin-bottom: 38px;
  }
}

.about, .about-details, .trends-overview, .recipes-overview, .community-favorites,
.quality, .usps, .thank-you, .legal, .contact, .contact-info, .categories, .features, .testimonials, .blog-posts, .about-innovation {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (max-width: 600px) {
  .about, .about-details, .trends-overview, .recipes-overview, .community-favorites,
  .quality, .usps, .thank-you, .legal, .contact, .contact-info, .categories, .features, .testimonials, .blog-posts, .about-innovation {
    border-radius: 10px;
  }
}

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

/* Helper content flex layout for text-image combos */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; }
}

/* List Styles */
ul, ol {
  padding-left: 20px;
  margin-bottom: 18px;
}
ul li, ol li { margin-bottom: 10px; font-size: 1rem; color: var(--text-secondary); }

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin-top: 32px;
}
.feature-item {
  background: var(--accent);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex-basis: calc(33% - 22px);
  min-width: 220px;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(44,74,92,0.07);
  padding: 32px 20px 26px 20px;
  transition: box-shadow var(--transition);
  margin-bottom: 20px;
}
.feature-item img {
  width: 38px; height: 38px; margin-bottom: 12px; 
}
.feature-item h3 { font-size: 1.15rem; font-weight: 700; }
.feature-item p { font-size: 1rem; }
.feature-item:hover, .feature-item:focus-within {
  box-shadow: var(--shadow-hover);
}
@media (max-width: 900px) {
  .feature-grid { gap: 20px; }
  .feature-item { flex-basis: 100%; min-width: 0; }
}
@media (max-width: 600px) {
  .feature-item { padding: 18px 10px; }
}

/* Cards (for main content, blog, etc.) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.7rem 1.2rem 1.4rem 1.2rem;
  gap: 12px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
@media (max-width: 900px) {
  .content-grid { gap: 12px; }
}

/* Blog Post Teasers */
.blog-post-teasers {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.teaser {
  flex: 1 1 300px;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 2px 9px rgba(44,74,92,0.08);
  padding: 26px 20px 18px 20px;
  margin-bottom: 20px;
  transition: box-shadow .2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.teaser:hover, .teaser:focus-within { box-shadow: var(--shadow-hover); }
.topic-tags {
  display: inline-block;
  font-size: 0.92rem;
  background: var(--gray-mid);
  color: #fff;
  border-radius: 10px;
  padding: 4px 10px;
  margin-right: 8px;
  font-weight: 500;
}
.author-info {
  font-size: 0.96rem;
  color: var(--text-secondary);
  margin-left: 4px;
}

/* Testimonials */
.testimonials, .community-favorites {
  background: #fff;
}
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 32px 24px 32px;
  background: var(--gray-light);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(44,74,92,0.06);
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 390px;
  transition: box-shadow 0.15s;
  border-left: 7px solid var(--primary);
}
.testimonial-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
}
.testimonial-card p {
  color: var(--gray-dark);
  font-size: 1.06rem;
  line-height: 1.7;
  margin-bottom: 0;
}
.testimonial-list .testimonial-card {
  margin-right: 0;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: var(--shadow-hover);
  border-left-color: var(--secondary);
}
@media (max-width: 900px) {
  .testimonial-list { gap: 12px; }
  .testimonial-card { padding: 14px 13px 14px 18px; }
}
@media (max-width: 600px) {
  .testimonial-list, .community-favorites .content-wrapper {
    flex-direction: column;
    gap: 12px;
  }
  .testimonial-card { max-width: 100%; }
}

/* Feature (USP) icons */
.quality-icons {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 16px;
}
.quality-icons img {
  width: 40px; height: 40px; background: var(--gray-mid); border-radius: 50%; padding: 5px;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 15px;
  margin-bottom: 15px;
}
.contact-info li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--text-main);
}
.contact-info img {
  width: 26px; height: 26px;
}
.cta-row {
  display: flex;
  flex-direction: row;
  gap: 18px;
}

/* Thank You Page Styles */
.thank-you {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: left;
}
.thank-you h1 { font-size: 2rem; }

/* Legal Page Styles */
.legal address {
  background: var(--gray-light);
  border-radius: 8px;
  padding: 8px 16px;
  font-style: normal;
  font-size: 1rem;
  margin-bottom: 12px;
}

/* ================================================== */
/* FOOTER                                             */
/* ================================================== */
footer {
  background: #fff;
  border-top: 1px solid var(--gray-mid);
  margin-top: 48px;
}
footer .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px 12px 20px;
}
.footer-nav, .footer-contact {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  font-size: 1rem;
}
.footer-nav a {
  color: var(--gray-dark);
  font-family: 'Roboto', Arial, sans-serif;
  transition: color 0.17s;
  padding: 2px 4px;
  border-radius: 6px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--secondary);
  background: var(--gray-light);
}
@media (max-width: 900px) {
  footer .container { flex-direction: column; gap: 10px; }
  .footer-nav { flex-wrap: wrap; gap: 9px; }
}

/* ================================================== */
/* SECTION SPACING & FLEXBOX REQS (MANDATORY)          */
/* ================================================== */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* No CSS Grid or columns anywhere. Flexbox only! */

/* ================================================== */
/* RESPONSIVE LAYOUTS                                 */
/* ================================================== */
@media (max-width: 900px) {
  .hero { min-height: 210px; }
  .feature-grid,
  .content-grid,
  .blog-post-teasers {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.38rem; }
  h2 { font-size: 1.15rem; }
  .container { padding-left: 4px; padding-right: 4px; }
}

/* ================================================== */
/* COOKIE CONSENT BANNER & MODAL                       */
/* ================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  box-shadow: 0 -2px 18px rgba(44,74,92,0.13);
  padding: 22px 16px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  z-index: 9988;
  border-radius: 18px 18px 0 0;
  transition: bottom .3s;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.cookie-banner.hide {
  bottom: -220px;
  opacity: 0;
  pointer-events: none;
  transition: bottom .34s, opacity .15s;
}
.cookie-banner__actions {
  display: flex;
  gap: 15px;
  margin-top: 8px;
}
.cookie-banner__actions .button,
.cookie-banner__actions .button.primary,
.cookie-banner__actions .button.secondary {
  padding: 10px 20px;
  font-size: 1rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
}
.cookie-banner__actions .button.secondary {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--gray-mid);
}
.cookie-banner__actions .button.secondary:hover {
  background: var(--gray-light);
  color: var(--primary-darker);
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 9999;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(44,74,92,0.20);
  display: flex;
  align-items: flex-end; /* for mobile slide-up */
  justify-content: center;
}
.cookie-modal {
  background: #fff;
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 430px;
  box-shadow: 0 14px 20px rgba(40, 60, 38, 0.10);
  margin-bottom: 0;
  padding: 32px 22px 22px 22px;
  min-height: 280px;
  position: relative;
  animation: cookie-modal-in 0.36s cubic-bezier(.4,.7,.7,1) 1;
}
@keyframes cookie-modal-in {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  right: 16px; top: 16px;
  font-size: 1.5rem;
  border: none;
  background: none;
  color: var(--primary);
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.18s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--gray-light);
}
.cookie-modal h2 {
  font-size: 1.22rem; margin-bottom: 13px; letter-spacing: 0; color: var(--primary);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 26px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  font-size: 1em;
  padding: 8px 2px;
}
.cookie-category label {
  font-size: 1em;
  color: var(--text-main);
  font-weight: 500;
}
.cookie-category input[type="checkbox"]:disabled + label {
  color: #aaa;
  opacity: .8;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--primary);
  width: 18px; height: 18px;
}

.cookie-modal__actions {
  display: flex; gap: 14px;
}

@media (max-width: 600px) {
  .cookie-banner { max-width: 96%; padding: 12px 4px 10px 4px; font-size: 0.97rem; }
  .cookie-modal { max-width: 98vw; padding: 17px 4px 9px 10px; }
}

/* Cookie modal backdrop animation for appearance/disappearance can be handled by adding/removing classes in JS. */

/* ================================================== */
/* EXTRA: ANIMATIONS, HOVER STATES, MISC              */
/* ================================================== */
.button, .button.primary, .main-nav a, .teaser, .feature-item, .testimonial-card, .footer-nav a, .mobile-nav a {
  transition: background 0.15s, color 0.13s, box-shadow 0.16s, transform 0.17s;
}
.button:focus-visible, .main-nav a:focus-visible, .mobile-nav a:focus-visible, .footer-nav a:focus-visible, .teaser:focus-visible, .feature-item:focus-visible, .testimonial-card:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* Micro-interaction: Simple scale-up on hover for main content cards */
.card:hover, .teaser:hover, .feature-item:hover {
  transform: scale(1.022);
}

/* Remove webkit autofill yellow bg */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
textarea:-webkit-autofill, 
textarea:-webkit-autofill:hover, 
textarea:-webkit-autofill:focus, 
select:-webkit-autofill, 
select:-webkit-autofill:hover, 
select:-webkit-autofill:focus {
  transition: background-color 9999s ease-in-out 0s;
  background: none !important;
}

/* Scrollbars according Scandinavian minimal look */
::-webkit-scrollbar {
  width: 9px; background: #ececec;
}
::-webkit-scrollbar-thumb {
  background: #dde2de; border-radius: 7px;
}

/* ================================================== */
/* END OF STYLE.CSS                                   */
/* ================================================== */
