/* === CSS Reset & Normalize (scandinavian_clean base) === */
*, *::before, *::after {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #F9F8F4;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: #264653;
  background: #F9F8F4;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #264653;
  margin-top: 0;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.125rem;
  margin-bottom: 10px;
}
p {
  margin-top: 0;
  margin-bottom: 16px;
}
a {
  color: #264653;
  text-decoration: none;
  transition: color 0.2s;
}
a.link {
  color: #E76F51;
  font-weight: 500;
}
a.link:hover, a.link:focus {
  text-decoration: underline;
  color: #D25C3D;
}
ul, ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
ul.values-list {
  list-style: disc;
  color: #264653;
}
blockquote {
  margin: 0 0 16px 0;
  padding-left: 18px;
  border-left: 4px solid #E76F51;
  color: #264653;
  font-style: italic;
  background: none;
}
strong {
  font-weight: 700;
}

/* === Container & Section Layouts === */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* === Header & Navigation === */
header {
  background: #ffffff;
  box-shadow: 0 1px 8px rgba(38, 70, 83, 0.06);
  position: relative;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
header img {
  height: 48px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #264653;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 8px 2px;
  transition: color 0.2s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: #E76F51;
}

/* Hamburger menu button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #264653;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #ECE9E2;
}

/* Mobile Menu Styles */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(249,248,244,0.98);
  transition: transform 0.40s cubic-bezier(0.3,0.8,0.3,1), opacity 0.25s;
  z-index: 1100;
  transform: translateX(100vw);
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  border: none;
  background: none;
  font-size: 2rem;
  color: #264653;
  position: absolute;
  top: 24px;
  right: 28px;
  cursor: pointer;
  z-index: 2;
  padding: 8px;
  margin: 0;
  border-radius: 6px;
  transition: background 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #E2DED1;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 88px;
  width: 100%;
  align-items: flex-start;
  padding-left: 40px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #264653;
  padding: 8px 0;
  width: 100%;
  transition: color 0.2s, background 0.2s;
  border-radius: 4px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #E76F51;
  background: #ECE9E2;
}

@media (max-width: 1020px) {
  .container {
    max-width: 98vw;
    padding-left: 14px;
    padding-right: 14px;
  }
}
@media (max-width: 900px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .main-nav {
    gap: 15px;
  }
}
@media (max-width: 840px) {
  header .container {
    flex-direction: row;
    gap: 12px;
  }
  .main-nav {
    gap: 10px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* === Hero Section + CTA Large (common) === */
.hero, .cta-large, .cta-section, .thank-you {
  background: #F9F8F4;
  padding: 66px 0 66px 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}
.hero .content-wrapper, .cta-large .content-wrapper, .thank-you .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.hero h1, .thank-you h1 {
  font-size: 2.5rem;
  font-weight: 700;
}
.hero p, .cta-large p {
  max-width: 530px;
  margin-bottom: 32px;
}
@media (max-width: 600px) {
  .hero,
  .cta-large, .cta-section, .thank-you {
    padding: 40px 0;
    min-height: 180px;
  }
  .hero h1, .thank-you h1 {
    font-size: 1.55rem;
  }
}

/* === Features Grid & Item Styles === */
.features {
  background: #FFF;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(38,70,83,0.05);
  margin-bottom: 60px;
  padding: 40px 15px;
}
.features .content-wrapper > h2 {
  text-align: center;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-top: 32px;
  margin-bottom: 0;
}
.feature-grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F9F8F4;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(38,70,83,0.04);
  padding: 24px 22px;
  min-width: 220px;
  max-width: 300px;
  flex: 1 1 220px;
  margin-bottom: 0;
  transition: box-shadow 0.18s;
  border: 1px solid #ecebe5;
}
.feature-grid > div:hover {
  box-shadow: 0 4px 20px rgba(38,70,83,0.10);
  border-color: #E76F51;
}
.feature-grid img {
  width: 44px;
  height: 44px;
  margin-bottom: 2px;
}
.feature-grid h3 {
  margin: 0 0 6px 0;
  font-size: 1.1rem;
  color: #264653;
  letter-spacing: 0.01em;
}
.feature-grid p {
  color: #5E6B74;
  font-size: 0.96rem;
  margin: 0;
}
@media (max-width: 800px) {
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div {
    max-width: 100%;
    min-width: 0;
  }
}

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

/* === Highlighted Recipes & Recipe Grids === */
.recipe-teasers, .recipe-grid, .blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
  margin-bottom: 28px;
  justify-content: flex-start;
}
.recipe-card, .recipe-preview-card, .post-preview-card {
  background: #FFF;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(38,70,83,0.06);
  border: 1px solid #ecebe5;
  padding: 24px 22px 18px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  min-width: 225px;
  flex: 1 1 225px;
  transition: box-shadow 0.18s, border-color 0.2s;
}
.recipe-card:hover,.recipe-preview-card:hover,.post-preview-card:hover {
  box-shadow: 0 8px 28px rgba(38,70,83,0.15);
  border-color: #E76F51;
}
.recipe-card h3, .recipe-preview-card h3, .post-preview-card h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  margin-top: 0;
  margin-bottom: 10px;
}
.recipe-card p, .recipe-preview-card p, .post-preview-card p {
  font-size: 1rem;
  color: #5E6B74;
  margin-bottom: 10px;
}
@media (max-width: 730px) {
  .recipe-teasers, .recipe-grid, .blog-grid {
    flex-direction: column;
    gap: 16px;
  }
  .recipe-card, .recipe-preview-card, .post-preview-card {
    min-width: 0;
  }
}

/* === About/Preview, Team Section, Legal-Text, Values List === */
.about-preview, .about, .team, .legal-text {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(38,70,83,0.03);
  margin-bottom: 48px;
  padding: 32px 20px;
}
.values-list {
  margin: 18px 0 0 0;
  padding-left: 18px;
}
.team ul, .about ul {
  padding-left: 25px;
  margin-bottom: 14px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

/* === Contact and Map Section === */
.contact .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.contact-details, .contact-info {
  background: #F9F8F4;
  border-radius: 8px;
  padding: 22px 16px;
  min-width: 240px;
  flex: 1 1 240px;
  box-shadow: 0 1px 4px rgba(38,70,83,0.04);
  margin-bottom: 20px;
}
.contact-details h2, .contact-info h2, .contact-details h3 {
  margin-top: 0;
  margin-bottom: 8px;
}
.google-map-embed {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F9F8F4;
  min-height: 180px;
  border-radius: 8px;
  color: #5E6B74;
  font-size: 1rem;
  border: 1px solid #ecebe5;
  margin-bottom: 8px;
}
@media (max-width: 830px) {
  .contact .content-wrapper {
    flex-direction: column;
    gap: 20px;
  }
}

/* === Blog Section, Search-Bar, Filters, Pagination === */
.search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin: 18px 0 18px 0;
}
.search-bar input {
  flex: 1 1 180px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #bfc7c6;
  padding: 11px 16px;
  background: #F9F8F4;
  color: #264653;
  outline: none;
  transition: border-color 0.16s;
}
.search-bar input:focus {
  border-color: #E76F51;
}
.filter-buttons, .category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.pagination {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
  margin: 32px 0 0 0;
}
.pagination span {
  font-weight: bold;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* === Testimonial Cards === */
.testimonials .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 18px rgba(38,70,83,0.10);
  border: 1px solid #ecebe5;
  max-width: 520px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  color: #264653;
}
.testimonial-card blockquote {
  color: #264653;
  font-size: 1.08rem;
  margin-bottom: 0;
  border-left: 4px solid #E76F51;
  padding-left: 14px;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: #5E6B74;
  align-self: flex-end;
  letter-spacing: 0.01em;
}

/* === Cards Shared === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #FFF;
  border-radius: 12px;
  box-shadow: 0 2px 9px rgba(38,70,83,0.06);
  border: 1px solid #ecebe5;
  padding: 26px 20px;
}

/* === Footer === */
footer {
  background: #f4f3ef;
  font-size: 0.95rem;
  color: #264653;
  border-top: 1px solid #ecebe5;
  padding: 26px 0 12px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.footer-menu a {
  color: #264653;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 6px 2px;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: #E76F51;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 220px;
  font-size: 0.98rem;
  padding-top: 4px;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  margin-right: 7px;
  vertical-align: middle;
}
.footer-social {
  display: flex;
  gap: 18px;
  align-items: center;
  padding-top: 6px;
}
.footer-social a img {
  width: 26px;
  height: 26px;
  filter: grayscale(40%);
  opacity: 0.85;
  transition: filter 0.15s, opacity 0.15s;
}
.footer-social a:hover img,
.footer-social a:focus img {
  filter: none;
  opacity: 1;
}
@media (max-width: 800px) {
  footer .container {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .footer-menu, .footer-social, .footer-contact {
    margin-bottom: 12px;
  }
}

/* === Buttons (Primary, Secondary, Others) === */
.btn,
button.btn,
input[type="submit"].btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 11px 32px;
  background: #264653;
  color: #fff;
  border: none;
  border-radius: 7px;
  box-shadow: 0px 1px 6px rgba(38,70,83,0.10);
  cursor: pointer;
  margin-right: 8px;
  margin-bottom: 4px;
  outline: none;
  transition: background 0.20s, color 0.16s, box-shadow 0.15s;
  display: inline-block;
  letter-spacing: 0.01em;
}
.btn.primary {
  background: #E76F51;
  color: #FFF;
}
.btn.secondary {
  background: #FFF;
  color: #E76F51;
  border: 1.5px solid #E76F51;
}
.btn.link {
  background: transparent;
  color: #264653;
  border: none;
  padding: 0;
  text-decoration: underline;
  font-weight: 500;
  box-shadow: none;
  letter-spacing: 0.01em;
}
.btn:hover, .btn:focus {
  background: #f3e5e1;
  color: #264653;
  box-shadow: 0 4px 17px rgba(231, 111, 81, 0.23);
}
.btn.primary:hover, .btn.primary:focus {
  background: #CF5E43;
  color: #fff;
}
.btn.secondary:hover, .btn.secondary:focus {
  background: #E76F51;
  color: #fff;
  border-color: #E76F51;
}
.btn.link:hover, .btn.link:focus {
  color: #E76F51;
  background: transparent;
  text-decoration: underline;
}
button:disabled, .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* === Utility Flex Containers === */
.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;
}
@media (max-width: 768px) {
  .content-grid, .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/* === Cookie Consent Banner & Modal === */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: #FFF;
  border-top: 2px solid #E76F51;
  padding: 24px 18px;
  box-shadow: 0 -3px 20px rgba(38,70,83,0.11);
  z-index: 1300;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: fadeInCookie 0.7s cubic-bezier(0.6,0.33,0.22,1);
}
@keyframes fadeInCookie {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: none; }
}
.cookie-banner p {
  color: #264653;
  font-size: 1.01rem;
  margin: 0 0 7px 0;
  text-align: center;
  max-width: 520px;
}
.cookie-banner .cookie-btn-row {
  display: flex;
  gap: 16px;
  margin-top: 2px;
  flex-wrap: wrap;
}
.cookie-banner .btn.cookie-settings {
  background: #FFF6F0;
  color: #E76F51;
  border: 1.2px solid #E76F51;
  padding: 10px 24px;
}
.cookie-banner .btn.cookie-settings:hover,
.cookie-banner .btn.cookie-settings:focus {
  background: #E76F51;
  color: #fff;
}

/* Cookie modal overlay */
.cookie-modal {
  position: fixed;
  top: 0; left: 0;
  z-index: 1400;
  width: 100vw;
  height: 100vh;
  background: rgba(38,70,83,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.24s;
}
.cookie-modal.hidden {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #FFF;
  border-radius: 15px;
  max-width: 410px;
  width: 96vw;
  box-shadow: 0 8px 32px rgba(38,70,83,0.13);
  padding: 40px 26px 30px 26px;
  color: #264653;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  animation: fadeInCookieModal 0.45s cubic-bezier(0.6,0.33,0.22,1);
  position: relative;
}
@keyframes fadeInCookieModal {
  from { opacity: 0; transform: translateY(80px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.cookie-modal-content h3 {
  margin-top: 0;
  font-size: 1.2rem;
}
.cookie-modal-content .cookie-cat {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}
.cookie-modal-content .cookie-toggle {
  width: 42px;
  height: 24px;
  background: #E2DED1;
  border-radius: 13px;
  position: relative;
  transition: background 0.17s;
  cursor: pointer;
}
.cookie-modal-content .cookie-toggle.enabled {
  background: #E76F51;
}
.cookie-modal-content .cookie-toggle-switch {
  position: absolute;
  top: 2.5px;
  left: 3px;
  width: 19px;
  height: 19px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(38,70,83,0.14);
  transition: left 0.18s;
}
.cookie-modal-content .cookie-toggle.enabled .cookie-toggle-switch {
  left: 20px;
}
.cookie-modal-content .close-cookie-modal {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.8rem;
  color: #264653;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 6px;
  padding: 4px 5px;
}
.cookie-modal-content .close-cookie-modal:hover,
.cookie-modal-content .close-cookie-modal:focus {
  background: #ecebe5;
}
.cookie-modal-content .btn-row {
  display: flex;
  gap: 15px;
  margin-top: 14px;
}

/* === Typography Responsive === */
@media (max-width: 600px) {
  body { font-size: 15px; }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.09rem; }
}

/* === Accessibility & Selection === */
::selection {
  background: #E76F51;
  color: #fff;
}

/* === Misc & Utility === */
.hide {
  display: none !important;
}

/* === Spacing Fixes (Critical) === */
.section, .features, .about, .about-preview, .cta-large, .cta-section, .team, .legal-text, .highlight-recipes, .recipe-listing, .blog-listing, .contact, .map, .thank-you, .testimonials {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .recipe-teasers, .recipe-grid, .blog-grid {
  gap: 24px;
  margin-bottom: 0;
}
.card, .recipe-card, .recipe-preview-card, .post-preview-card {
  margin-bottom: 20px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* === End of style.css === */
