/* ----------- 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 {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  background: #191F24;
  color: #F3F3EE;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}
img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}
a {
  color: #D99141;
  text-decoration: none;
}
a:hover, a:focus {
  color: #fff;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
}
button, input, textarea, select {
  font: inherit;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}
input, textarea {
  background: #232931;
  border-radius: 8px;
  border: 1px solid #424B55;
  padding: 8px 12px;
  color: #F3F3EE;
}


/* ----------- BRAND FONTS ----------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;700&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  line-height: 1.15;
  text-rendering: optimizeLegibility;
}
h1 {
  font-size: 2.5rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

p, li, ul, ol, strong {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #F3F3EE;
}
strong {
  font-weight: 700;
}

/* ----------- LAYOUT CONTAINER ----------- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ----------- SECTION SPACING ----------- */
section {
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}


/* ----------- FLEX UTILITIES ----------- */
.card-container, .feature-grid, .content-grid, .features, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  width: 100%;
}
.card-content, .feature-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
  background: #F3F3EE;
  color: #21344D;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(33,52,77,0.09);
  position: relative;
  border-left: 6px solid #D99141;
  transition: box-shadow 0.2s, border 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 28px rgba(33,52,77,0.20);
  border-left: 6px solid #21344D;
  background: #fff;
}
/* Card Layout */
.card {
  margin-bottom: 20px;
  position: relative;
  background: #232931;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(33,52,77,0.10);
  padding: 24px;
  min-width: 270px;
  color: #F3F3EE;
  border: 1px solid #313946;
  transition: box-shadow 0.2s, border 0.2s;
}
.card:hover {
  box-shadow: 0 8px 36px rgba(217,145,65,0.17);
  border: 1.5px solid #D99141;
}

.card-container {
  gap: 24px;
}
.content-grid {
  gap: 20px;
  justify-content: space-between;
}
.feature-item {
  align-items: flex-start;
  gap: 15px;
}

/* CRITICAL: Prevent content overlap and maintain minimum vertical spacing */
.card-container > *,
.content-grid > *,
.feature-grid > *,
.card-grid > *,
.text-image-section > * {
  margin-bottom: 0;
}

/* CRITICAL: Ensure all content cards and sections have minimum vertical margin */
section, .section {
  margin-bottom: 60px;
}
.card, .testimonial-card, .card-container > *, .content-grid > *, .feature-grid > *, .card-grid > * {
  margin-bottom: 20px;
}


/* ----------- HEADER & NAVIGATION ----------- */
header {
  width: 100%;
  background: #1B232C;
  box-shadow: 0 2px 8px rgba(25,31,36,0.07);
  position: sticky;
  top: 0;
  z-index: 20;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 16px;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  color: #F3F3EE;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.17s, color 0.17s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: #232931;
  color: #D99141;
}
.main-nav .nav-cta {
  background: #D99141;
  color: #232931;
  border-radius: 6px;
  font-weight: 900;
  font-size: 1rem;
  padding: 9px 22px;
  margin-left: 8px;
  letter-spacing: 1.2px;
  transition: background 0.19s, color 0.19s, box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(217,145,65,0.13);
  border: 2px solid transparent;
}
.main-nav .nav-cta:hover, .main-nav .nav-cta:focus {
  background: #21344D;
  color: #D99141;
  border: 2px solid #D99141;
}

.mobile-menu-toggle {
  display: none;
  background: #232931;
  color: #D99141;
  border-radius: 50%;
  border: 2px solid #D99141;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: box-shadow 0.16s, background 0.17s;
  z-index: 30;
}
.mobile-menu-toggle:hover {
  background: #D99141;
  color: #21344D;
  box-shadow: 0 2px 14px rgba(217,145,65,0.13);
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #191F24;
  z-index: 35;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.7,.24,.3,1);
  box-shadow: -4px 0 28px rgba(33,52,77,0.42);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 28px 0 0 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #232931;
  color: #D99141;
  border-radius: 50%;
  border: 2px solid #D99141;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 32px;
  margin-top: 10px;
  margin-bottom: 30px;
  transition: background 0.17s, color 0.17s, box-shadow 0.17s;
}
.mobile-menu-close:hover {
  background: #D99141;
  color: #232931;
  box-shadow: 0 2px 12px rgba(217,145,65,0.11);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
  padding-right: 38px;
  gap: 18px;
}
.mobile-nav a {
  color: #F3F3EE;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  background: none;
  margin-bottom: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #313946;
  width: 100%;
  text-align: right;
  transition: color 0.18s, background 0.18s;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  color: #D99141;
  background: none;
}


/* ----------- HERO & CTA BANNER ----------- */
.cta-banner {
  width: 100%;
  padding: 36px 16px;
  background: #232931;
  border-radius: 18px;
  box-shadow: 0 2px 20px rgba(33,52,77,0.09);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 40px 0 0 0;
}
.cta-banner h2 {
  color: #D99141;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 0;
}


/* ----------- BUTTONS ----------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: none;
  padding: 14px 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 1.09rem;
  letter-spacing: 1.3px;
  cursor: pointer;
  background: #21344D;
  color: #F3F3EE;
  box-shadow: 0 2px 8px rgba(33,52,77,0.11);
  transition: background 0.18s, box-shadow 0.18s, color 0.18s, border 0.18s;
  margin-top: 18px;
  z-index: 1;
  border: 2px solid transparent;
}
.button.primary {
  background: #D99141;
  color: #232931;
  font-weight: 900;
}
.button.primary:hover, .button.primary:focus {
  background: #21344D;
  color: #D99141;
  border: 2px solid #D99141;
}
.button.secondary {
  background: #21344D;
  color: #D99141;
  border: 2px solid #D99141;
}
.button.secondary:hover, .button.secondary:focus {
  background: #D99141;
  color: #232931;
  border: 2px solid #D99141;
}
.button:active {
  transform: scale(0.97);
}


/* ----------- CARDS & FEATURES ----------- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
}
.feature-grid > div {
  flex: 1 1 210px;
  min-width: 210px;
  background: #232931;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(33,52,77,0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px 18px;
  border: 1px solid #313946;
  transition: box-shadow 0.18s, border 0.18s;
}
.feature-grid > div:hover {
  border: 1.5px solid #D99141;
  box-shadow: 0 6px 20px rgba(217,145,65,0.13);
}
.feature-grid img {
  width: 36px;
  filter: grayscale(0.4) brightness(0.82);
}


/* ----------- LISTS/TABS/FILTERS ----------- */
.category-tabs, .quick-filters, .popular-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 16px 0 6px 0;
}
.category-tabs span, .quick-filters span, .popular-tags span {
  background: #232931;
  color: #D99141;
  border-radius: 7px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1em;
  padding: 8px 18px;
  border: 2px solid #313946;
  transition: color 0.15s, background 0.16s, border 0.16s;
  cursor: pointer;
}
.category-tabs span:hover, .quick-filters span:hover, .popular-tags span:hover {
  background: #D99141;
  color: #21344D;
  border: 2px solid #D99141;
}

ul.course-list, ul.latest-articles, ul.featured-recipes, ul.workshop-list, ul.help-topics {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 30px 0 6px 0;
}
ul.course-list li, ul.latest-articles li, ul.featured-recipes li, ul.workshop-list li, ul.help-topics li {
  background: #232931;
  color: #F3F3EE;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(33,52,77,0.09);
  padding: 20px 16px 16px 20px;
  border-left: 5px solid #D99141;
  margin-bottom: 0;
}


/* ----------- MODALS, OVERLAYS, BANNERS ----------- */
/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 500px;
  background: #232931;
  color: #F3F3EE;
  border-top: 4px solid #D99141;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -6px 24px rgba(33,52,77,0.13);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 28px 18px 28px;
  gap: 20px;
  animation: slideUp 0.8s cubic-bezier(.77,0,.18,1.09);
}
@keyframes slideUp {
  0% { transform: translateX(-50%) translateY(80px); opacity: 0; }
  100% { transform: translateX(-50%) translateY(0); opacity: 1; }
}
.cookie-banner-buttons {
  display: flex;
  gap: 16px;
}
.cookie-banner .button {
  margin-top: 0;
  font-size: 0.98rem;
  padding: 10px 20px;
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%) scale(0.97);
  background: #232931;
  color: #F3F3EE;
  border-radius: 14px;
  box-shadow: 0 8px 52px rgba(33,52,77,0.29);
  z-index: 110;
  min-width: 350px;
  max-width: 90vw;
  max-height: 90vh;
  padding: 34px 30px 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s, transform 0.22s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal h2 {
  color: #D99141;
  margin-bottom: 14px;
  font-size: 1.4rem;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 13px;
}
.cookie-modal .toggle-switch {
  width: 48px;
  height: 24px;
  background: #313946;
  border-radius: 12px;
  position: relative;
  transition: background 0.18s;
}
.cookie-modal .toggle-switch input[type=checkbox] {
  appearance: none;
  width: 100%;
  height: 100%;
  margin: 0; padding: 0;
  outline: none; 
  background: none;
  border: none;
  cursor: pointer;
}
.cookie-modal .toggle-switch .switch-ball {
  position: absolute;
  left: 3px; top: 3px;
  width: 18px; height: 18px;
  background: #D99141;
  border-radius: 50%;
  transition: left 0.19s, background 0.19s;
}
.cookie-modal .toggle-switch input[type=checkbox]:checked + .switch-ball {
  left: 27px;
  background: #53c653;
}
.cookie-modal .essential {
  color: #aaa;
  font-size: 0.97rem;
  margin-left: 6px;
}
.cookie-modal .button {
  font-size: 1rem;
  margin-top: 13px;
  margin-bottom: 0;
  padding: 10px 22px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 16px;
  background: #232931;
  color: #D99141;
  border-radius: 50%;
  border: 2px solid #D99141;
  font-size: 1.3rem;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.17s, color 0.17s, box-shadow 0.17s;
}
.cookie-modal .cookie-modal-close:hover {
  background: #D99141;
  color: #232931;
}

/* Overlay for modals */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(25,31,36,0.58);
  z-index: 109;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.19s;
}
.overlay.active {
  opacity: 1;
  pointer-events: auto;
}


/* ----------- FOOTER ----------- */
footer {
  width: 100%;
  background: #232931;
  border-top: 4px solid #D99141;
  color: #F3F3EE;
  margin-top: 54px;
}
footer .container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 42px 18px 25px 18px;
  gap: 32px;
}
.footer-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
}
.footer-navigation a {
  color: #F3F3EE;
  padding: 6px 14px;
  border-radius: 6px;
  transition: background 0.14s, color 0.14s;
}
.footer-navigation a:hover, .footer-navigation a:focus {
  background: #313946;
  color: #D99141;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #F3F3EE;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
}
.footer-contact img[alt="Crisp Journeys"] {
  max-width: 40px;
  margin-bottom: 10px;
}
.footer-contact p img {
  margin-right: 7px;
  filter: grayscale(1) brightness(1.5);
  vertical-align: middle;
  width: 16px;
}


/* ----------- MISCELLANEOUS ----------- */
hr {
  border: 0;
  border-top: 2px solid #313946;
  margin: 30px 0;
}

.recipe-of-the-month {
  background: #1B232C;
  color: #D99141;
  border-left: 8px solid #21344D;
  border-radius: 10px;
  padding: 18px 18px 15px 30px;
  margin-top: 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.14rem;
}
.calendar-overview {
  background: #1B232C;
  color: #fff;
  border-radius: 10px;
  padding: 15px 20px;
  margin-top: 24px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.faq-preview {
  margin-top: 18px;
  background: #232931;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 1px 8px rgba(33,52,77,0.06);
}
.faq-preview ul {
  margin-top: 7px;
  gap: 10px;
}
.faq-preview li strong {
  color: #D99141;
  font-weight: 900;
}

.contact-details p {
  margin-bottom: 10px;
  font-size: 1.07rem;
  line-height: 1.6;
}


/* ----------- RESPONSIVE DESIGN (Mobile First) ----------- */
@media (max-width: 1024px) {
  .container {
    max-width: 96vw;
    padding: 0 12px;
  }
  .footer-contact {
    min-width: 210px;
  }
}
@media (max-width: 900px) {
  .feature-grid {
    flex-wrap: wrap;
    gap: 16px;
  }
  .feature-grid > div {
    min-width: 170px;
    flex: 1 1 150px;
  }
}
@media (max-width: 800px) {
  .footer-navigation {
    flex-direction: column;
    gap: 12px;
  }
  .footer-contact {
    min-width: 100px;
  }
}
@media (max-width: 640px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.16rem; }
  .cta-banner h2 { font-size: 1.25rem; }
  .container { padding: 0 4vw; }
  .cta-banner {
    padding: 23px 8px;
    border-radius: 10px;
  }
  footer .container {
    flex-direction: column;
    gap: 22px;
    padding: 22px 8px 12px 8px;
    align-items: flex-start;
  }
  .footer-navigation {
    font-size: 0.98rem;
    gap: 6px;
  }
  .testimonial-card {
    font-size: 0.95rem;
    padding: 13px;
    border-left-width: 3px;
    border-radius: 7px;
  }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    gap: 9px;
    align-items: center;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .footer-contact {
    font-size: 0.98rem;
  }
  .feature-grid, .card-container, .content-grid, .card-grid {
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .faq-preview, .faq-preview ul { gap: 7px; }
  .cta-banner {
    gap: 11px;
  }
  .cookie-banner {
    max-width: 96vw;
    padding: 16px 12px 14px 12px;
    border-radius: 7px 7px 0 0;
  }
  .cookie-modal {
    min-width: 240px;
    padding: 15px 13px 12px 13px;
    font-size: 0.95rem;
  }
}

/* Hide cookie modal by default */
.cookie-modal, .overlay { display: none; }
.cookie-modal.active, .overlay.active { display: block; }

/* ----------- MICRO-INTERACTIONS ----------- */
.button, .main-nav .nav-cta, .mobile-menu-toggle, .mobile-menu-close, .cookie-modal-close,
.category-tabs span, .quick-filters span, .popular-tags span {
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, border 0.18s, transform 0.1s;
}
.button:active, .mobile-menu-toggle:active, .mobile-menu-close:active, .cookie-modal-close:active {
  transform: scale(0.96);
}
.card, .feature-grid > div, .testimonial-card {
  transition: box-shadow 0.19s, border 0.19s, background 0.18s;
}

/* ----------- INDUSTRIAL MODERN ACCENTS ----------- */
.card, .testimonial-card, .feature-grid > div, .footer-contact, .faq-preview, .calendar-overview, .recipe-of-the-month, .cta-banner, .cookie-banner, .cookie-modal {
  /* Subtle, sharp modern look */
  border-radius: 10px;
  border-bottom: 1.5px solid #DEDEDA;
  box-shadow: 0 2px 18px rgba(52,57,64,0.09), 0 1px 2px rgba(33,52,77,0.07);
}

.category-tabs span, .quick-filters span, .popular-tags span {
  text-transform: uppercase;
  font-weight: 900;
  font-size: 0.98rem;
  letter-spacing: 0.05em;
  border: 2px solid #232931;
}


/* ----------- METALLIC, URBAN FEEL ----------- */
.card, .feature-grid > div, .cta-banner {
  background: linear-gradient(114deg, #1A1D22 90%, #232931 100%);
  border-top: 2.4px solid #313946;
  border-right: 2.4px solid #232931;
  border-left: 2.4px solid #232931;
  border-bottom: 1.5px solid #D99141;
}
.testimonial-card {
  background: #F3F3EE;
  color: #21344D;
  border-left: 6px solid #D99141 !important;
  box-shadow: 0 6px 30px rgba(33,52,77,0.16);
}


/* ----------- ACCESSIBILITY ----------- */
.testimonial-card, .testimonial-card p, .testimonial-card strong {
  color: #21344D !important;
}
.testimonial-card strong {
  color: #D99141 !important;
}
.cookie-banner, .cookie-modal {
  color: #F3F3EE;
}

/* Hide mobile menu overlay by default */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  pointer-events: auto;
  opacity: 1;
}

/* Hide scroll for open mobile menu/modal */
body.mobile-menu-open, body.cookie-modal-open {
  overflow: hidden;
}

/* ------- PRINT --------- */
@media print { body { background: #fff; color: #111; } }
