/* =========================================================
   Lucent Events - Professional Corporate CSS
   Color palette: blue/gray, with #22577A primary, #F9C846, #FFFFFF, grays
   Fonts: Montserrat (display), Roboto (body)
   All layouts: FLEXBOX ONLY (NO GRID/COLUMNS)
   ========================================================= */

/* RESET & NORMALIZE */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background-color: #F8F9FB;
  color: #22313A;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #22577A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #163c53;
  text-decoration: underline;
}
ul, ol {
  margin-left: 1.25em;
  margin-bottom: 1.5em;
}
li {
  margin-bottom: 8px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #19324d;
  line-height: 1.15;
  margin-bottom: 0.6em;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1.2em; }
strong, b {
  font-weight: 700;
  color: #22577A;
}

/* =========================
   LAYOUT CONTAINERS & FLEX 
   ========================= */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(34, 87, 122, 0.03);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(34, 87, 122, 0.05);
  padding: 28px 22px;
  margin-bottom: 20px;
  flex: 1 1 280px;
  min-width: 240px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 6px 22px rgba(34, 87, 122, 0.11);
}
.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: 16px;
  padding: 20px;
  margin-bottom: 20px;
  background: #F4F7FB;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(34, 87, 122, 0.07);
  border-left: 5px solid #22577A;
  color: #19324d;
  transition: background 0.18s, box-shadow 0.18s;
}
.testimonial-card:hover {
  background: #eaf1f7;
  box-shadow: 0 2px 18px rgba(34, 87, 122, 0.10);
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}
.star-rating {
  font-size: 1.2rem;
  color: #F9C846;
  letter-spacing: 3px;
  margin-bottom: 4px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* =========================
   NAVIGATION
   ========================= */
header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(34, 87, 122, 0.04);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 18px;
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #22577A;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  padding: 6px 0;
  transition: color 0.18s;
}
.main-nav a::after {
  content: '';
  display: block;
  width: 0%;
  height: 2px;
  background: #F9C846;
  transition: width 0.21s;
  position: absolute;
  bottom: -3px;
  left: 0;
}
.main-nav a:hover, .main-nav a:focus {
  color: #F9C846;
}
.main-nav a:hover::after, .main-nav a:focus::after {
  width: 100%;
}

.cta-btn {
  background: #22577A;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: 24px;
  padding: 8px 32px;
  margin-left: 24px;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(34, 87, 122, 0.04);
  border: none;
  cursor: pointer;
  outline: none;
  transition: background 0.17s, color 0.17s, box-shadow 0.18s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #163c53;
  color: #F9C846;
  box-shadow: 0 6px 18px rgba(34,87,122,0.11);
}
.button, button, .btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 22px;
  padding: 8px 28px;
  background: #22577A;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.17s, color 0.17s;
}
.button:hover, button:hover, .btn:hover,
.button:focus, button:focus, .btn:focus {
  background: #163c53;
  color: #F9C846;
}

/* =========================
   MOBILE BURGER MENU
   ========================= */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #22577A;
  cursor: pointer;
  margin-left: 18px;
  z-index: 1101;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 340px;
  max-width: 95vw;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 16px rgba(34,87,122,0.10);
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(.53,.18,.41,1.09);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  padding: 34px 20px 18px 28px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #22577A;
  font-size: 2.1rem;
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: 18px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 10px;
}
.mobile-nav a {
  color: #19324d;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  padding: 12px 8px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F4F7FB;
  color: #22577A;
}

@media (max-width: 1024px) {
  .nav-wrapper {
    max-width: 100%;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 20px;
  }
  .cta-btn {
    margin-left: 8px;
    padding: 8px 16px;
  }
}
@media (max-width: 800px) {
  .main-nav {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* =========================
   HEROES & FEATURES
   ========================= */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 14px;
  justify-content: flex-start;
}
.feature-grid > div {
  flex: 1 1 220px;
  background: #F4F7FB;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(34,87,122,0.07);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  transition: box-shadow 0.18s;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 26px rgba(34,87,122,0.13);
}
.feature-grid img {
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
}

/* =========================
   TEAM / LIST SECTIONS
   ========================= */
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 16px;
  margin-bottom: 24px;
}
.team-list > div {
  background: #F4F7FB;
  border-radius: 12px;
  box-shadow: 0 2px 7px rgba(34,87,122,0.07);
  flex: 1 1 215px;
  min-width: 200px;
  padding: 18px 14px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-info {
  padding: 22px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-info img {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: middle;
}

/* =========================
   FOOTER
   ========================= */
footer {
  background: #22313A;
  color: #fff;
  padding: 0 0 0 0;
  font-size: 0.95rem;
}
.footer-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer-wrapper a {
  color: #F9C846;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.15s;
}
.footer-wrapper a:hover, .footer-wrapper a:focus {
  color: #ffe799;
}
.footer-nav {
  display: flex;
  gap: 18px;
  margin-bottom: 8px;
}
.footer-nav a {
  color: #A6BBCF;
  font-size: 1rem;
}
footer p {
  color: #b7c6d8;
}

/* =========================
   COOKIE CONSENT BANNER & MODAL
   ========================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  z-index: 2000;
  display: flex;
  justify-content: center;
  animation: cookieSlideIn 0.7s;
}
@keyframes cookieSlideIn {
  from { transform: translateY(120%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner-inner {
  background: #fff;
  color: #22313A;
  box-shadow: 0 -4px 22px rgba(34,87,122,0.10);
  border-radius: 18px 18px 0 0;
  padding: 26px 22px 18px 22px;
  margin: 0 0 0 0;
  min-width: 0; /* prevent overflow */
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.cookie-banner h4 {
  font-size: 1.08rem;
  margin-bottom: 0.5em;
}
.cookie-banner-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.cookie-accept.btn, .cookie-reject.btn {
  background: #22577A;
  color: #fff;
  border-radius: 20px;
  padding: 7px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.19s;
}
.cookie-accept.btn:hover,
.cookie-accept.btn:focus {
  background: #163c53;
}
.cookie-reject.btn {
  background: #F4F7FB;
  color: #22577A;
  border: 1.5px solid #22577A;
}
.cookie-reject.btn:hover,
.cookie-reject.btn:focus {
  background: #eaf1f7;
  color: #163c53;
}
.cookie-settings.btn {
  background: #F9C846;
  color: #22577A;
  border-radius: 20px;
  padding: 7px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  margin-left: 0;
  cursor: pointer;
  transition: background 0.19s;
}
.cookie-settings.btn:hover,
.cookie-settings.btn:focus {
  background: #ffd43d;
}

/* Cookie modal overlay */
.cookie-modal-overlay {
  background: rgba(26,38,54, 0.54);
  position: fixed;
  inset: 0;
  z-index: 2050;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.27s;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  max-width: 440px;
  width: 92vw;
  padding: 34px 28px 26px 28px;
  box-shadow: 0 4px 42px rgba(34,87,122,0.13);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal h3 {
  font-size: 1.25rem;
}
.cookie-modal .category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.cookie-modal label {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #22313A;
}
/* Toggle switches */
.cookie-toggle {
  width: 36px;
  height: 21px;
  position: relative;
  display: inline-block;
}
.cookie-toggle input[type=checkbox] {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  background-color: #e0e6ed;
  border-radius: 20px;
  top: 0; left: 0; right: 0; bottom: 0;
  transition: .23s;
}
.cookie-slider:before {
  position: absolute;
  content: "";
  height: 15px;
  width: 15px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(34,87,122,0.10);
  transition: .27s;
}
.cookie-toggle input:checked + .cookie-slider {
  background-color: #22577A;
}
.cookie-toggle input:checked + .cookie-slider:before {
  transform: translateX(15px);
  background: #F9C846;
}

.cookie-modal .modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 8px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 15px;
  background: none;
  border: none;
  color: #999;
  font-size: 1.4rem;
  cursor: pointer;
  transition: color 0.15s;
}
.cookie-modal-close:hover {
  color: #22577A;
}

/* =========================
   FORMS (Contact, Inputs)
   ========================= */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border: 1.5px solid #A6BBCF;
  border-radius: 7px;
  padding: 9px 12px;
  width: 100%;
  background: #F7F9FB;
  color: #22313A;
  margin-bottom: 16px;
  transition: border-color 0.17s;
}
input:focus, textarea:focus, select:focus {
  border-color: #22577A;
  outline: none;
}

/* =========================
   MISC UTILITY CLASSES
   ========================= */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  .container {
    padding: 0 7px;
  }
  .section {
    padding: 23px 8px;
    margin-bottom: 32px;
  }
  .card, .feature-grid > div, .team-list > div {
    min-width: 95vw;
    padding: 16px 10px;
  }
  .card-container,.feature-grid, .team-list {
    gap: 14px;
  }
  .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-slider {
    flex-direction: column;
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .footer-wrapper {
    align-items: flex-start;
    gap: 13px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 4px;
  }
}

@media (max-width: 540px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.14rem; }
  .section {
    margin-bottom: 18px;
    padding: 13px 3.5vw;
  }
  .cookie-banner-inner {
    padding: 17px 6vw 12px 6vw;
    max-width: 99vw;
  }
  .cookie-modal {
    padding: 22px 5vw 18px 5vw;
    max-width: 100vw;
  }
}

/* ============
   PRINT STYLES (minimal)
   ============ */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  .container {
    box-shadow: none !important;
    border: none !important;
    padding: 0;
  }
}

/* =========================
   SCROLLBAR (subtle custom)
   ========================= */
::-webkit-scrollbar {
  width: 8px;
  background: #e9f0f6;
}
::-webkit-scrollbar-thumb {
  background: #b5ccdf;
  border-radius: 6px;
}

/* =========================
   TRANSITIONS & ANIMATIONS
   ========================= */
a, .cta-btn, button, .btn, .card, .main-nav a, .feature-grid > div, .testimonial-card {
  transition: all 0.17s cubic-bezier(.44,.07,.34,1.03);
}

/* ================
   FOCUS STATES
   ================ */
a:focus, button:focus, input:focus, .cta-btn:focus, .btn:focus {
  outline: 2px solid #F9C846 !important;
  outline-offset: 2px;
}

/* ================
   Z-INDEX MANUAL STACKING
   ================ */
header { z-index: 1000; }
.mobile-menu { z-index: 1100; }
.cookie-banner { z-index: 2000; }
.cookie-modal-overlay { z-index: 2050; }

/* =======
   OVERRIDES & SAFETY
   ======= */
/* All content spacing */
section, .section, .card, .feature-item, .testimonial-card, .card-container > *, .feature-grid > *, .team-list > * {
  margin-bottom: 20px;
}
.card:last-child, .feature-grid > div:last-child, .team-list > div:last-child, section:last-child, .section:last-child {
  margin-bottom: 0;
}

/* Ensure no elements overlap */
.card, .testimonial-card, .feature-grid > div, .team-list > div {
  min-width: 0;
}

/* Hide elements visually but keep for a11y */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(1px,1px,1px,1px) !important;
  border: 0 !important;
}
