/* --- 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 {
  font-size: 16px;
  scroll-behavior: smooth;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F8FAFC;
  color: #222F3E;
  min-height: 100vh;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
a {
  color: #1E3A62;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #D9B42C;
}
img {
  max-width: 100%;
  display: block;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}
hr {
  border: none;
  border-bottom: 1px solid #E2E8F0;
  margin: 32px 0;
}

/* --- TYPOGRAPHY / BRAND FONTS --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #1E3A62;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; line-height: 1.12; margin-bottom: 20px; }
h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 18px; }
h3 { font-size: 1.5rem; line-height: 1.25; margin-bottom: 12px; }
h4 { font-size: 1.25rem; line-height: 1.3; margin-bottom: 8px; }
h5 { font-size: 1.125rem; line-height: 1.3; margin-bottom: 6px; }
h6 { font-size: 1rem; margin-bottom: 5px; }
p, ul li, ol li {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1.125rem;
  color: #25314C;
  margin-bottom: 14px;
}
strong, b { font-weight: 700; color: #1E3A62; }
em, i { font-style: italic; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.18rem; }
}

/* ---- GENERAL LAYOUT CONTAINERS ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFF;
  border-radius: 12px;
  box-shadow: 0 4px 22px 0 rgba(30,58,98,0.04);
}

@media (max-width: 768px) {
  .section {
    padding: 24px 5px;
    margin-bottom: 32px;
  }
}

/* --- FLEXBOX PATTERNS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #F6F8FB;
  border-radius: 10px;
  box-shadow: 0 2px 8px 0 rgba(30,58,98,0.07);
  padding: 24px;
  flex: 1 1 310px;
  min-width: 310px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.card:hover {
  box-shadow: 0 4px 18px 0 rgba(30,58,98,0.13);
  transform: translateY(-2px);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #F8FCFF;
  border: 1px solid #DBE3F0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px 0 rgba(30,58,98,0.06);
  max-width: 340px;
  flex: 1 1 280px;
  transition: box-shadow 0.18s;
}
.testimonial-card p {
  color: #24344C;
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.testimonial-card span {
  font-size: 1rem;
  color: #1E3A62;
  font-weight: 600;
}
.testimonial-card:hover {
  box-shadow: 0 4px 18px 0 rgba(30,58,98,0.12);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F6F8FB;
  border-radius: 10px;
  box-shadow: 0 1px 8px 0 rgba(30,58,98,0.08);
  padding: 28px 24px;
  min-width: 220px;
  flex: 1 1 230px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, background 0.22s;
}
.feature-item:hover {
  background: #EAF0FB;
  box-shadow: 0 3px 13px 0 rgba(30,58,98,0.13);
}

@media (max-width: 900px) {
  .feature-item, .testimonial-card, .card {
    min-width: 90%;
    flex: 1 1 90%;
  }
}
@media (max-width:768px) {
  .content-grid, .card-container, .feature-grid, .event-cards, .event-teasers, .testimonials {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column !important;
    gap: 16px;
  }
}

/* --- HERO SECTION & MAIN BUTTONS --- */
.hero {
  background: linear-gradient(97deg, #F6F7FC 0%, #EAF0FB 100%);
  padding: 54px 0 40px 0;
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 760px;
  margin: 0 auto;
  gap: 20px;
}
.hero h1 {
  color: #1E3A62;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
}
.hero p {
  color: #33425B;
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.cta-button,
button.cta-button {
  background: #1E3A62;
  color: #FFF;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 6px;
  padding: 13px 38px;
  margin-top: 8px;
  cursor: pointer;
  box-shadow: 0 2px 10px 0 rgba(30,58,98,0.08);
  transition: background 0.2s, transform 0.15s, color 0.2s;
  display: inline-block;
}
.cta-button:hover,
button.cta-button:hover,
.cta-button:focus,
button.cta-button:focus {
  background: #D9B42C;
  color: #1E3A62;
  transform: translateY(-2px) scale(1.04);
}

section {
  margin-bottom: 60px;
  padding: 40px 0;
}
@media (max-width: 768px) {
  section {
    margin-bottom: 32px;
    padding: 22px 0;
  }
}

/* --- EVENT/FEATURE CARDS & TEASERS --- */
.feature-grid, .event-teasers, .event-cards, .editors-picks, .testimonials, .review-summaries, .short-interviews {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.event-card, .exhibition-card, .profile-bio {
  background: #FFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 22px 25px;
  margin-bottom: 20px;
  box-shadow: 0 1px 6px 0 rgba(30,58,98,0.07);
  flex: 1 1 260px;
  min-width: 220px;
  transition: box-shadow 0.16s, border 0.23s;
}
.event-card h3, .exhibition-card h3 {
  font-size: 1.22rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.event-card:hover, .exhibition-card:hover, .profile-bio:hover {
  border: 1.5px solid #1E3A62;
  box-shadow: 0 4px 15px 0 rgba(30,58,98,0.08);
}

/* --- NEWSLETTER STYLES --- */
.newsletter {
  background: #F6F8FB;
  border: 1.5px solid #1E3A62;
  border-radius: 12px;
  box-shadow: 0 1px 9px 0 rgba(30,58,98,0.07);
  padding: 38px 28px;
  text-align: center;
  align-items: center;
  gap: 18px;
}
.newsletter ul {
  margin-bottom: 18px;
  margin-top: 12px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.newsletter li::before {
  content: '– ';
  color: #1E3A62;
  margin-right: 2px;
  font-weight: 600;
}
@media (max-width: 600px) {
  .newsletter {
    padding: 18px 4px;
  }
}

/* --- FILTER OPTIONS --- */
.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}
.filter-options span {
  background: #EAF0FB;
  color: #1E3A62;
  border-radius: 6px;
  font-size: 1.08rem;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
}

/* --- GUIDE, HIGHLIGHTS & TEAM BIOS --- */
.museum-list ul, .monthly-highlights ul, .editors-picks ul, .featured-exhibitions ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.featured-exhibitions {
  margin-top: 18px;
}
.profile-bio p {
  font-size: 1rem;
  color: #33425B;
}

/* --- FOOTER --- */
footer {
  background: #1E3A62;
  color: #FFF;
  padding: 42px 0 18px 0;
  box-shadow: 0 -2px 14px 0 rgba(30,58,98,0.12);
}
.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.footer-menu a {
  color: #FFF;
  font-weight: 500;
  opacity: 0.95;
  transition: color 0.17s, opacity 0.2s;
  font-size: 1rem;
}
.footer-menu a:hover {
  color: #D9B42C;
  opacity: 1;
}
.contact-info {
  color: #F5EEDC;
  font-size: 0.97rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-info img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 7px;
}
.social-links {
  display: flex;
  gap: 20px;
  align-items: center;
}
.social-links a img {
  display: block;
  width: 28px;
  height: 28px;
  filter: grayscale(70%);
  transition: filter 0.2s, transform 0.2s;
}
.social-links a:hover img {
  filter: grayscale(0%) brightness(1.13);
  transform: scale(1.13);
}
@media (max-width: 950px) {
  .footer {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
    padding-left: 8px;
  }
}

/* --- HEADER & NAVIGATION --- */
header {
  background: #FFF;
  box-shadow: 0 2px 8px 0 rgba(30,58,98,0.06);
  position: sticky;
  top: 0;
  z-index: 90;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 20px;
}
.main-nav {
  display: flex;
  gap: 30px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  align-items: center;
}
.main-nav a {
  font-size: 1.08rem;
  color: #1E3A62;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.97;
  position: relative;
  padding: 4px 0;
  transition: color 0.18s, opacity 0.25s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #D9B42C;
  opacity: 1;
}
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2.1rem;
  color: #1E3A62;
  cursor: pointer;
  padding: 4px 12px;
  z-index: 120;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus {
  color: #D9B42C;
}

@media (max-width: 1000px) {
  .main-nav {
    gap: 13px;
  }
}
@media (max-width: 850px) {
  .main-nav {
    gap: 8px;
    font-size: 0.93rem;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .container {
    gap: 8px;
  }
}

/* --- MOBILE NAVIGATION (BURGER MENU & OVERLAY) --- */
.mobile-menu {
  display: none; /* becomes flex when open via JS */
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  z-index: 1500;
  background: rgba(30,58,98,0.97);
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  overflow-x: hidden;
  transition: transform 0.33s cubic-bezier(.4,1.2,.55,1);
  transform: translateX(-100vw);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  animation: slideInMenu 0.38s cubic-bezier(.44,1.3,.53,1);
}
@keyframes slideInMenu {
  0% { transform: translateX(-100vw); }
  100% { transform: translateX(0); }
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: #FFF;
  font-size: 2.3rem;
  align-self: flex-end;
  margin: 22px 30px 10px 0;
  cursor: pointer;
  z-index: 1510;
  transition: color 0.2s, background 0.2s;
  padding: 6px 18px;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #D9B42C;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 23px;
  padding: 15px 38px 9px 32px;
  width: 100%;
}
.mobile-nav a {
  color: #FFF;
  font-size: 1.22rem;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.01em;
  font-weight: 600;
  padding: 8px 0px;
  transition: color 0.18s;
  border-radius: 6px;
  display: inline-block;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: #D9B42C;
  background: rgba(217,180,44,0.08);
}

@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
    visibility: hidden;
  }
}

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 2300;
  background: #25314C;
  color: #FFF;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  box-shadow: 0 -3px 16px 0 rgba(30,58,98,0.16);
  padding: 18px 11vw 18px 11vw;
  font-size: 1rem;
  animation: cookieBannerAppear 0.67s cubic-bezier(.43,1.2,.52,1);
}
@keyframes cookieBannerAppear {
  0% { transform: translateY(100vh); opacity: 0.4; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: #FFF8EC;
  margin-bottom: 0;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1.08rem;
}
.cookie-banner .cookie-btn {
  margin-right: 8px;
}
.cookie-btn {
  background: #FFF8EC;
  color: #1E3A62;
  border: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  padding: 9px 28px;
  cursor: pointer;
  box-shadow: 0 2px 6px 0 rgba(30,58,98,0.07);
  margin-right: 8px;
  transition: background 0.2s, color 0.2s, box-shadow 0.19s;
  outline: none;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #D9B42C;
  color: #1E3A62;
  box-shadow: 0 4px 11px 0 rgba(30,58,98,0.13);
}
.cookie-btn.settings {
  background: #1E3A62;
  color: #FFF8EC;
  border: 1.5px solid #FFF8EC;
}
.cookie-btn.settings:hover {
  background: #25314C;
  color: #D9B42C;
  border-color: #D9B42C;
}

@media (max-width: 900px) {
  .cookie-banner {
    flex-direction: column;
    gap: 14px;
    padding: 16px 3vw 16px 3vw;
    font-size: 0.99rem;
  }
}

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 2400;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30,58,98,0.40);
  justify-content: center;
  align-items: center;
  transition: background 0.17s;
}
.cookie-modal.open {
  display: flex;
  animation: fadeInModal 0.42s cubic-bezier(.43,1.2,.52,1);
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal-content {
  background: #FFF;
  min-width: 320px;
  max-width: 95vw;
  width: 420px;
  border-radius: 12px;
  box-shadow: 0 2px 28px 0 rgba(30,58,98,0.17);
  padding: 32px 28px 24px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: dropInModal 0.33s cubic-bezier(.44,1.2,.41,1);
}
@keyframes dropInModal {
  0% { transform: translateY(70px) scale(0.98); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-content h2 {
  font-size: 1.3rem;
  color: #1E3A62;
  margin-bottom: 11px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #E2E8F0;
  font-size: 1.08rem;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-category .toggle-switch {
  background: #EAF0FB;
  border-radius: 99px;
  min-width: 50px;
  min-height: 26px;
  position: relative;
  box-shadow: 0 1px 3px 0 rgba(30,58,98,0.11);
}
.toggle-switch input {
  opacity: 0;
  position: absolute;
  left: 0; top: 0; width: 100%; height: 100%;
  cursor: pointer;
}
.toggle-slider {
  position: absolute;
  top: 3px; left: 4px;
  width: 22px; height: 20px;
  background: #1E3A62;
  border-radius: 99px;
  transition: left 0.23s, background 0.22s;
}
.toggle-switch input:checked + .toggle-slider {
  left: 23px;
  background: #D9B42C;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 15px;
  background: transparent;
  border: none;
  color: #1E3A62;
  font-size: 1.62rem;
  cursor: pointer;
  transition: color 0.2s;
}
.cookie-modal-close:focus, .cookie-modal-close:hover {
  color: #D9B42C;
}
@media (max-width: 600px) {
  .cookie-modal-content {
    padding: 19px 4vw 15px 4vw;
    min-width: 90vw;
  }
}

/* --- MISC COMMON / STRUCTURE --- */
.text-section, .address-block, .phone-email, .business-hours, .practical-info, .holiday-tips, .seasonal-highlights, .stats {
  background: #F6F8FB;
  border-radius: 8px;
  padding: 18px 16px;
  margin-bottom: 22px;
  box-shadow: 0 1px 7px 0 rgba(30,58,98,0.04);
}
.stats ul {
  display: flex;
  flex-direction: row;
  gap: 20px;
}
.stats li {
  font-size: 1.12rem;
  color: #1E3A62;
  background: #EAF0FB;
  border-radius: 5px;
  padding: 8px 16px;
  margin-bottom: 0;
}
@media (max-width: 700px) {
  .stats ul {
    flex-direction: column;
    gap: 8px;
  }
}

ul li, ol li {
  margin-bottom: 7px;
  font-size: 1.07rem;
}
ul li:last-child, ol li:last-child { margin-bottom: 0; }

/* --- ADDRESS/CONTACT BLOCKS --- */
.contact-details, .address-block, .phone-email, .business-hours {
  margin-bottom: 15px;
}
.contact-details p, .address-block p, .phone-email p, .business-hours p {
  display: flex;
  align-items: center;
  gap: 5px;
}
.contact-details img {
  width: 17px;
  height: 17px;
}

/* --- FORM & INPUT (pre-styling, not specifically used) --- */
input, textarea, select {
  border: 1px solid #A8B5C8;
  border-radius: 6px;
  padding: 9px 10px;
  margin-bottom: 12px;
  font-size: 1rem;
  transition: border-color 0.17s;
}
input:focus, textarea:focus, select:focus {
  border-color: #1E3A62;
}

/* --- UTILITY CLASSES --- */
.d-none { display: none !important; }
.d-flex { display: flex !important; }
.gap-20 { gap: 20px !important; }
.align-center { align-items: center !important; }
.align-start { align-items: flex-start !important; }
.flex-column { flex-direction: column !important; }

/* --- HIGH CONTRAST & ACCESSIBILITY IMPROVEMENTS --- */
@media (prefers-contrast: more) {
  body, .section, .card, .feature-item, .event-card {
    background: #FFF !important;
    color: #191F2B !important;
  }
  .testimonial-card {
    background: #FFFFFF !important;
    color: #1E3A62;
  }
}

/* --- MICRO-INTERACTIONS & ANIMATIONS --- */
.card, .event-card, .feature-item, .testimonial-card, .cta-button {
  will-change: transform, box-shadow;
  transition: box-shadow 0.18s, background 0.23s, transform 0.17s;
}
.cta-button:active {
  transform: scale(0.97);
}

/* --- ERROR & SUCCESS MESSAGES (if needed) --- */
.alert-success {
  background: #E7F6E7;
  color: #0D492D;
  border: 1px solid #77C37B;
  border-radius: 7px;
  padding: 10px 18px;
  margin-bottom: 17px;
  font-size: 1.07rem;
  text-align: center;
}
.alert-error {
  background: #FFFFED;
  color: #D6332D;
  border: 1px solid #EDA35E;
  border-radius: 7px;
  padding: 10px 18px;
  margin-bottom: 17px;
  font-size: 1.07rem;
  text-align: center;
}

/* --- PRINT SUPPORT --- */
@media print {
  header, nav, .mobile-menu, .footer, .cookie-banner, .cookie-modal { display: none !important; }
  section, main, .container { box-shadow: none !important; background: #FFF !important; }
  body { background: #FFF !important; color: #111 !important; }
}
