/* ==== 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, main, 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;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.6;
  min-height: 100vh;
  background: #F6F8FA;
  color: #273746;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: #316097;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus,
a:hover {
  color: #FFC857;
  outline: none;
}
ul, ol {
  margin-left: 1.4em;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
strong {
  font-weight: 600;
}

/* ==== BRAND COLORS ==== */
:root {
  --primary: #316097; /* strong blue for corporate/palette */
  --primary-dark: #1c334c;
  --secondary: #FFC857; /* brand secondary */
  --accent: #E1E7E7;
  --gray-bg: #F6F8FA;
  --card-bg: #fff;
  --border: #E1E7E7;
  --text: #273746;
  --muted: #7d8591;
  --cta: #316097;
  --cta-hover: #224366;
  --shadow: 0 2px 12px rgba(49, 96, 151, 0.05), 0 1.5px 5px rgba(44,50,68,0.03);
}

/* ==== TYPOGRAPHY ==== */
h1, .h1 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
h2, .h2 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 18px;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  color: var(--primary-dark);
}
.subheadline {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 20px;
}
p {
  margin-bottom: 16px;
}
blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--primary-dark);
  border-left: 4px solid var(--secondary);
  padding-left: 16px;
  margin: 16px 0 20px 0;
}

/* ==== LAYOUT CONTAINERS ==== */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  width: 100%;
  padding: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

/* ==== HEADER & NAVIGATION ==== */
header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(49, 96, 151, 0.05);
  position: relative;
  z-index: 10;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
header img {
  height: 42px;
  width: auto;
}
nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
header nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary-dark);
  padding: 6px 10px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover, header nav a.active {
  background: var(--accent);
  color: var(--primary);
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  margin-left: 16px;
  padding: 7px 14px;
  border-radius: 4px;
  transition: background .18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--accent);
}

/* ==== MOBILE MENU OVERLAY ==== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(49, 96, 151, 0.98);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transform: translateX(-100vw);
  transition: transform 0.4s cubic-bezier(0.77,0.2,0.05,1.0);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  right: 18px;
  top: 18px;
  font-size: 2rem;
  background: none;
  border: none;
  color: #fff;
  z-index: 1;
  cursor: pointer;
  transition: color .18s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  margin-top: 80px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: .5px;
  padding: 10px 24px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: var(--secondary);
  color: var(--primary-dark);
}

/* ==== HERO & CTA BUTTONS ==== */
.cta {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: var(--cta);
  color: #fff;
  font-size: 1.1rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  margin-top: 18px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(49, 96, 151, 0.11);
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  text-decoration: none;
}
.cta.primary {
  background: var(--cta);
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--cta-hover);
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 8px 24px rgba(49, 96, 151, 0.15);
}

/* Typography MODIFIERS */
.newsletter-signup-info {
  padding: 16px 22px;
  background: var(--accent);
  border-radius: 6px;
  color: var(--primary-dark);
  margin-top: 20px;
  box-shadow: var(--shadow);
}

/* ==== FLEXBOX CARDS AND CONTENT ==== */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.features-grid > div {
  flex: 1 1 240px;
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 215px;
  max-width: 350px;
  border: 1px solid var(--accent);
  transition: box-shadow 0.18s;
}
.features-grid > div:hover {
  box-shadow: 0 8px 22px rgba(49, 96, 151, 0.13);
}
.features-grid img {
  margin-bottom: 6px;
  height: 38px;
  width: 38px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 240px;
  transition: box-shadow 0.18s;
  border: 1px solid var(--border);
}
.card:hover {
  box-shadow: 0 8px 18px rgba(49, 96, 151, 0.15);
}

.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;
}

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

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 26px;
  border-radius: 10px;
  margin-bottom: 20px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(49, 96, 151, 0.08);
  border: 1px solid var(--accent);
  color: var(--text);
  font-size: 1.05rem;
  max-width: 540px;
}
.testimonial-card strong {
  display: block;
  font-size: 1.08rem;
  color: var(--primary-dark);
  font-weight: 600;
}
.testimonial-card span {
  color: var(--secondary);
  font-size: 1.2rem;
  font-weight: 700;
}

.recipe-card, .course-card {
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 28px 24px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.recipe-card:hover, .course-card:hover {
  box-shadow: 0 8px 22px rgba(49, 96, 151, 0.13);
}
.pagination {
  display: flex;
  gap: 14px;
  margin: 18px 0;
  align-items: center;
}
.pagination span {
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 6px;
}
.pagination a {
  color: var(--primary);
  padding: 5px 11px;
  border-radius: 6px;
  transition: background 0.12s, color 0.12s;
  font-weight: 500;
}
.pagination a:hover {
  background: var(--primary);
  color: #fff;
}

.text-section {
  margin-bottom: 24px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.search-bar input[type='text'] {
  font-size: 1.05rem;
  padding: 8px 14px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #fff;
}
.search-bar input[type='text']:focus {
  border-color: var(--primary);
  box-shadow: 0 1px 5px rgba(49, 96, 151, 0.08);
}

/* ==== FOOTER ==== */
footer {
  background: #fff;
  border-top: 1px solid var(--accent);
  padding: 36px 0 18px;
  color: var(--muted);
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  box-shadow: 0 -2px 8px rgba(49, 96, 151, 0.04);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
footer img {
  height: 34px;
  margin-bottom: 10px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
footer nav a {
  color: var(--primary);
  font-size: 0.95rem;
  padding: 0 4px;
  transition: color .14s;
}
footer nav a:focus, footer nav a:hover {
  color: var(--secondary);
}
footer address {
  font-style: normal;
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 10px;
  line-height: 1.55;
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  color: var(--primary-dark);
  border-top: 2.5px solid var(--accent);
  box-shadow: 0 -4px 30px rgba(49, 96, 151, 0.12);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 22px 16px;
  gap: 20px;
  font-size: 1rem;
  opacity: 1;
  transition: opacity 0.4s, transform 0.42s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(32px);
}
.cookie-banner__text {
  flex: 1 1 auto;
  margin-right: 18px;
}
.cookie-banner__actions {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 20px;
  border: none;
  border-radius: 6px;
  margin: 0;
  cursor: pointer;
  background: var(--accent);
  color: var(--primary-dark);
  box-shadow: 0 0.5px 3px rgba(49, 96, 151, 0.07);
  transition: background 0.18s, color 0.18s;
}
.cookie-btn.accept {
  background: var(--cta);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--cta-hover);
}
.cookie-btn.settings {
  background: var(--accent);
  color: var(--primary-dark);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #e8eaea;
}
.cookie-btn.reject {
  background: #fff;
  color: var(--primary-dark);
  border: 1.5px solid var(--accent);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--accent);
}

/* ==== COOKIE SETTINGS MODAL ==== */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(49, 96, 151, 0.22);
  z-index: 20002;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.32s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 32px rgba(49, 96, 151, 0.13);
  padding: 38px 24px 28px 24px;
  max-width: 410px;
  width: 93vw;
  color: var(--primary-dark);
  font-size: 1.05rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 250px;
  animation: cookieModalAnim .45s cubic-bezier(0.77,0.2,0.05,1.0);
}
@keyframes cookieModalAnim {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 13px;
}
.cookie-switch-label {
  font-size: 1.02rem;
  font-weight: 500;
}
.cookie-switch {
  width: 40px;
  height: 22px;
  display: inline-block;
  position: relative;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: var(--accent);
  border-radius: 50px;
  transition: background .21s;
}
.cookie-switch input:checked + .cookie-slider {
  background: var(--primary);
}
.cookie-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  transition: .21s;
  border-radius: 50%;
  box-shadow: 0 0.5px 2px rgba(49,96,151,.11);
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(17px);
}
.cookie-modal__buttons {
  display: flex;
  gap: 13px;
  margin-top: 10px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
  padding: 3px 10px;
  border-radius: 5px;
  transition: background 0.15s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--accent);
}

/* ==== RESPONSIVE FLEX ADJUSTMENTS ==== */
@media (max-width: 1050px) {
  .features-grid > div {
    min-width: 190px;
    max-width: 100%;
    flex-basis: 47%;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 96vw;
  }
  .features-grid {
    gap: 16px;
  }
  .card-container { gap: 16px; }
  .content-grid { gap: 13px; }
}
@media (max-width: 768px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
    max-width: 100vw;
  }
  header .container {
    padding-left: 8px;
    padding-right: 8px;
    gap: 0;
  }
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.4rem; }
  .section {
    padding: 20px 8px;
    margin-bottom: 38px;
  }
  .features-grid {
    flex-direction: column;
    gap: 14px;
  }
  .features-grid > div {
    min-width: 0;
    width: 100%;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .card {
    min-width: 0;
    width: 100%;
  }
  .testimonial-card {
    max-width: 100%;
    padding: 16px 9px;
  }
  .pagination {
    gap: 6px;
  }
  .search-bar,
  footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    font-size: 0.96rem;
  }
}
@media (max-width: 520px) {
  .cookie-modal {
    padding: 22px 6vw 18px 6vw;
    font-size: .96rem;
  }
  .cta {
    padding: 10px 10vw;
    font-size: 1rem;
  }
  .features-grid > div, .card, .testimonial-card {
    padding-left: 6vw;
    padding-right: 6vw;
  }
  header img {
    height: 34px;
  }
}

/* ==== ACCESSIBILITY FOCUS ==== */
:focus-visible {
  outline: 2.5px solid var(--secondary);
  outline-offset: 2px;
}
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* ==== MICRO-INTERACTIONS ==== */
.card, .testimonial-card, .features-grid > div, .course-card, .recipe-card {
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover, .testimonial-card:hover, .features-grid > div:hover, .course-card:hover, .recipe-card:hover {
  box-shadow: 0 10px 32px rgba(49, 96, 151, 0.17);
  transform: translateY(-1px) scale(1.012);
}

/* ==== UTILITIES ==== */
.muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-24 { margin-top:24px; }
.mb-24 { margin-bottom:24px; }

/* END OF STYLE SHEET */
