/* ---- CSS RESET & NORMALIZE for clean base ---- */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FAFAF7;
  color: #1E3557;
  font-family: 'Roboto', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  font-size: 16px;
}
img { 
  max-width: 100%; 
  height: auto;
  display: block;
}
input, select, textarea, button {
  font-family: inherit;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

/* Font faces (Google Fonts fallback) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&family=Roboto:wght@400;500;700&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #1E3557;
}
h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 24px; }
h2 { font-size: 2rem; line-height: 1.3; margin-bottom: 20px; }
h3 { font-size: 1.25rem; line-height: 1.3; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1rem; line-height: 1.3; }
p, ul, ol { font-family: 'Roboto', Arial, sans-serif; font-size: 1rem; line-height: 1.7; margin-bottom: 16px; }
ul, ol { padding-left: 24px; }

/* Global containers and content alignment */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFF;
  border-radius: 18px;
  box-shadow: 0 1px 6px rgba(30,53,87,0.04);
  transition: box-shadow 0.16s;
}

/* HERO SECTION */
.hero {
  margin-bottom: 60px;
  padding: 60px 0 48px 0;
  background: #FFFFFF;
  border-radius: 0 0 36px 36px;
  box-shadow: 0 10px 32px rgba(30,53,87,0.07);
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 800px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 2.25rem;
}
.hero p {
  color: #425772;
  font-size: 1.1rem;
  margin-bottom: 24px;
}

/* Main NAVIGATION */
header {
  background: #FFFFFF;
  box-shadow: 0 2px 12px rgba(30,53,87,0.06);
  position: sticky;
  top: 0; left:0; right:0;
  z-index: 100;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: flex-start;
  padding: 10px 20px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.main-nav img {
  height: 42px;
  width: auto;
  margin-right: 28px;
}
.main-nav a {
  padding: 6px 12px;
  font-size: 1rem;
  font-weight: 500;
  color: #1E3557;
  border-radius: 7px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:not(.btn-primary):hover,
.main-nav a:not(.btn-primary):focus {
  background: #F5A62318;
  color: #F5A623;
}
.main-nav .btn-primary {
  margin-left: auto;
}

/* Primary Button and Action Links */
.btn-primary,
a.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: #1E3557;
  color: #FFF;
  border: none;
  border-radius: 7px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(30,53,87,0.04);
  transition: background 0.2s, box-shadow 0.18s, color .2s;
  text-align: center;
}
.btn-primary:hover, .btn-primary:focus, a.btn-primary:hover, a.btn-primary:focus {
  background: #F5A623;
  color: #1E3557;
  box-shadow: 0 4px 16px rgba(245,166,35,0.22);
  outline: none;
}

/* Responsive NAVIGATION */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #1E3557;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  position: absolute;
  right: 22px;
  top: 16px;
  z-index: 201;
  transition: background 0.12s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #e0e6ee;
}
/* Mobile nav overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #FFFFFF;
  z-index: 300;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.92,.05,.35,1);
  display: flex;
  flex-direction: column;
  padding: 0;
  width: 100vw;
  box-shadow: 0 6px 24px rgba(30,53,87,0.11);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0%);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #1E3557;
  align-self: flex-end;
  margin: 22px 20px 12px 0;
  cursor: pointer;
  transition: color 0.14s;
  padding: 2px 10px;
  border-radius: 4px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #F5A623;
  background: #e0e6ee;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 32px 0 40px;
}
.mobile-nav a {
  font-size: 1.19rem;
  line-height: 1.7;
  color: #1E3557;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 8px 0;
  font-weight: 500;
  border-radius: 6px;
  width: 100%;
  transition: color 0.16s, background 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F5A62318;
  color: #F5A623;
}

/* Optionally highlight the call-to-action link */
.mobile-nav a.btn-primary {
  color: #FFF;
  font-weight: 700;
  background: #1E3557;
  border-radius: 8px;
  margin-top: 10px;
  margin-bottom: 6px;
}
.mobile-nav a.btn-primary:hover, .mobile-nav a.btn-primary:focus {
  background: #F5A623;
  color: #1E3557;
}

/* Hide main-nav and show burger icon on mobile */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none;
  }
}

/* --- Section & Flexbox Spacing Patterns --- */
.features, .festival-cards, .collection-cards, .award-cards, .review-items, .news-articles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.text-section, .text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.section, .hero, .legal {
  margin-bottom: 60px !important;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #FFF;
  border-radius: 12px;
  position: relative;
  padding: 28px 22px;
  box-shadow: 0 1px 8px rgba(30,53,87,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 24px rgba(245,166,35,0.08), 0 1px 10px rgba(30,53,87,0.08);
  transform: translateY(-3px) scale(1.018);
}
.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 28px;
  background: #F5F7FA;
  border-radius: 14px;
  margin-bottom: 24px;
  box-shadow: 0 1px 4px rgba(30,53,87,0.04);
  color: #1E3557;
  font-size: 1.09rem;
  font-family: 'Roboto', Arial, sans-serif;
  transition: box-shadow 0.18s;
}
.testimonial-card blockquote {
  flex: 1;
  margin: 0;
  font-style: italic;
  color: #263954;
  quotes: "\201E" "\201C";
  font-size: 1.15rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.testimonial-card p {
  color: #4e5c74;
  margin-left: auto;
  font-size: 0.96rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* --- Lists & Pagination --- */
.pagination {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #1E3557;
}
.pagination a {
  padding: 8px 13px;
  border-radius: 6px;
  background: #F5F7FA;
  color: #1E3557;
  font-weight: 500;
  transition: background 0.15s, color 0.14s;
}
.pagination a:hover, .pagination a:focus {
  background: #F5A623;
  color: #1E3557;
}

/* --- Utility: Card look for articles & divs --- */
.news-articles > article, .collection-cards > div, .festival-cards > div, .award-cards > div, .review-items > div {
  background: #FFF;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(30,53,87,0.04);
  padding: 28px 24px;
  flex: 1 1 320px;
  min-width: 260px;
  max-width: 390px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.17s, transform 0.16s;
}
.news-articles > article:hover, .collection-cards > div:hover, .festival-cards > div:hover, .award-cards > div:hover, .review-items > div:hover {
  box-shadow: 0 8px 24px rgba(245,166,35,0.11), 0 1px 12px rgba(30,53,87,0.11);
  transform: translateY(-2px) scale(1.007);
}
.news-articles > article > a, .collection-cards > div > a, .festival-cards > div > a, .award-cards > div > a, .review-items > div > a {
  color: #F5A623;
  font-weight: 600;
  border-radius: 6px;
  padding: 6px 10px;
  transition: background 0.13s, color 0.13s;
  font-family: 'Montserrat', Arial, sans-serif;
  align-self: flex-start;
  margin-top: 8px;
}
.news-articles > article > a:hover, .collection-cards > div > a:hover, .festival-cards > div > a:hover, .award-cards > div > a:hover, .review-items > div > a:hover {
  background: #1E3557;
  color: #FFFFFF;
}

/* --- Filter and select controls --- */
select {
  min-width: 120px;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #d5dbe3;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  background: #FAFAF7;
  margin-left: 10px;
  transition: border-color 0.15s;
}
select:focus {
  outline: none;
  border-color: #F5A623;
}

label {
  margin-right: 6px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: #1E3557;
}

/* -- Features/Value Icons -- */
.features ul, .values ul, .text-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
}
.features ul li, .values ul li, .text-section ul li {
  display: flex;
  align-items: center;
  gap: 16px;
  background: transparent;
  color: #1E3557;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 500;
}
.features ul li img, .values ul li img, .text-section ul li img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  margin-right: 8px;
}

/* --- CTA Banners --- */
.cta-community, .cta-newsletter, .cta-discover, .cta-festival, .cta-award, .cta-reviews, .cta-contact, .cta-about {
  background: #F5A6230f;
  border-radius: 18px;
  margin-bottom: 60px;
  padding: 36px 20px;
  box-shadow: 0 2px 14px rgba(245,166,35,0.06);
  text-align: center;
}
.cta-community h2, .cta-newsletter h2, .cta-discover h2, .cta-festival h2, .cta-award h2, .cta-reviews h2, .cta-contact h2, .cta-about h2 {
  margin-bottom: 16px;
  color: #1E3557;
}
.cta-community a.btn-primary, .cta-newsletter a.btn-primary, .cta-discover a.btn-primary, .cta-festival a.btn-primary, .cta-award a.btn-primary, .cta-reviews a.btn-primary, .cta-contact a.btn-primary, .cta-about a.btn-primary {
  margin-top: 20px;
  min-width: 220px;
}

/* --- Legal Section Formatting --- */
.legal h1, .legal h2 {
  margin-bottom: 14px;
}
.legal .text-section ul {
  margin-bottom: 18px;
}
.legal .text-section ul li {
  margin-bottom: 9px;
}

/* --- About / Contact --- */
.about .text-section, .contact .text-section {
  margin-bottom: 24px;
  gap: 18px;
}
.about ul, .contact ul {
  padding-left: 0;
  list-style: none;
  gap: 10px;
}
.about ul li, .contact ul li {
  display: flex;
  align-items: center;
  font-size: 1.06rem;
  color: #1E3557;
  gap: 12px;
}
.about ul li img, .contact ul li img {
  width: 24px;
  height: 24px;
  margin-right: 5px;
}

/* --- THANK YOU --- */
.thank-you {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thank-you .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 20px;
}

/* --- Footer --- */
footer {
  background: #f4f6fa;
  padding: 44px 0 12px 0;
  border-radius: 36px 36px 0 0;
  margin-top: 48px;
  box-shadow: 0 -2px 20px rgba(30,53,87,0.07);
}
footer .container {
  max-width: 1120px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding: 0;
}
footer img {
  height: 40px;
  margin-bottom: 20px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
footer nav a {
  color: #1E3557;
  font-size: 0.98rem;
  font-family: 'Montserrat', Arial, sans-serif;
  opacity: 0.96;
  padding: 3px 0;
  border-radius: 6px;
  transition: color 0.18s, background 0.16s;
}
footer nav a:hover, footer nav a:focus {
  color: #F5A623;
  background: #e0e6ee;
}
footer div > p, footer div > p a {
  color: #425772;
  font-size: 0.95rem;
}
footer div > p img {
  width: 18px;
  margin-right: 6px;
  vertical-align: middle;
}

/* --- Cookie Consent Banner & Modal --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #FFF;
  color: #1E3557;
  box-shadow: 0 -4px 20px rgba(30,53,87,0.09);
  padding: 20px 14px;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: center;
  z-index: 3000;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  border-radius: 18px 18px 0 0;
  animation: slideUpBtm 0.6s cubic-bezier(.22,1,.36,1);
}
@keyframes slideUpBtm {
  0% { transform: translateY(100%); }
  100% { transform: translateY(0%); }
}
.cookie-banner .cookie-btn {
  margin: 0 6px;
  padding: 9px 18px;
  border: none;
  border-radius: 7px;
  background: #1E3557;
  color: #FFF;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.cookie-banner .cookie-btn:last-child {
  background: #F5A623;
  color: #1E3557;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #F5A623;
  color: #1E3557;
}
.cookie-banner .cookie-btn.settings {
  background: #e0e6ee;
  color: #1E3557;
}
.cookie-banner .cookie-btn.settings:hover {
  background: #F5A6230c;
}

/* Cookie preference modal */
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(30,53,87,0.22);
  z-index: 4000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #FFF;
  color: #1E3557;
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 370px;
  box-shadow: 0 8px 36px rgba(30,53,87,0.18);
  font-family: 'Roboto', Arial, sans-serif;
  animation: fadeInScale .5s;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@keyframes fadeInScale {
  0% { opacity: 0; transform: scale(.93); }
  100% { opacity: 1; transform: scale(1); }
}
.cookie-modal h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.35rem;
  margin-bottom: 6px;
}
.cookie-modal p {
  font-size: 1rem;
  margin-bottom: 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0;
  padding: 9px 0;
}
.cookie-category label {
  font-weight: 500;
}
.cookie-toggle {
  width: 46px;
  height: 24px;
  border-radius: 12px;
  background: #e0e6ee;
  position: relative;
  cursor: pointer;
  transition: background 0.15s;
  display: inline-block;
  vertical-align: middle;
}
.cookie-toggle input {
  display: none;
}
.cookie-toggle span {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: #FFF;
  border-radius: 50%;
  box-shadow: 0 1px 5px rgba(30,53,87,0.07);
  transition: left 0.19s, background 0.13s;
}
.cookie-toggle input:checked + span {
  left: 25px;
  background: #F5A623;
}
.cookie-modal .cookie-btns {
  display: flex;
  gap: 11px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  padding: 9px 18px;
  border: none;
  border-radius: 7px;
  background: #1E3557;
  color: #FFF;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: background .16s, color .14s;
}
.cookie-modal .cookie-btn:last-child {
  background: #F5A623;
  color: #1E3557;
}
.cookie-modal .cookie-btn:focus {
  outline: 2px solid #F5A623;
}

/* --- Accessibility/Focus Outline --- */
a:focus, button:focus, select:focus {
  outline: 2px solid #F5A623 !important;
  outline-offset: 1px;
}

/* --- Mobile Responsive Styles --- */
@media (max-width: 900px) {
  html { font-size: 15px; }
  .container { padding-left: 14px; padding-right: 14px; }
  .content-wrapper, .features, .festival-cards, .collection-cards, .award-cards, .review-items, .news-articles {
    gap: 16px;
  }
  .main-nav img, footer img {
    height: 36px;
  }
}
@media (max-width: 768px) {
  html { font-size: 14px; }
  .hero { padding: 38px 0 32px 0; border-radius: 0 0 24px 24px; }
  .content-wrapper, .features, .festival-cards, .collection-cards, .award-cards, .review-items, .news-articles {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .text-section, .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 12px;
    font-size: 1rem;
  }
  .cta-community, .cta-newsletter, .cta-discover, .cta-festival, .cta-award, .cta-reviews, .cta-contact, .cta-about {
    text-align: left;
    padding: 26px 12px;
  }
  footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}
@media (max-width: 512px) {
  .container { padding-left: 6px; padding-right: 6px; }
  .hero { padding: 22px 0 10px 0; border-radius: 0; }
  .main-nav img, footer img { height: 28px; }
  .btn-primary, a.btn-primary, .cookie-modal .cookie-btn, .cookie-banner .cookie-btn {
    padding: 10px 14px;
    font-size: 0.97rem;
  }
  .news-articles > article, .collection-cards > div, .festival-cards > div, .award-cards > div, .review-items > div {
    padding: 14px 7px;
    min-width: 0;
    max-width: 100%;
  }
  footer { padding: 28px 0 7px 0; border-radius: 22px 22px 0 0; }
}
/* --- Subtle hover animations for cards and sections --- */
.section:hover, .hero:hover {
  box-shadow: 0 8px 36px rgba(245,166,35,0.06), 0 1px 12px rgba(30,53,87,0.06);
}

/* -- Extra: Hide unwanted scrollbars for overlays on mobile -- */
.mobile-menu, .cookie-modal-overlay {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}
.mobile-menu::-webkit-scrollbar, .cookie-modal-overlay::-webkit-scrollbar {
  display: none;
}

/* -- Prevent element overlapping (force min spacing between cards) -- */
.news-articles > article:not(:last-child), .collection-cards > div:not(:last-child), .festival-cards > div:not(:last-child), .award-cards > div:not(:last-child), .review-items > div:not(:last-child) {
  margin-bottom: 20px;
}
