/* RESET & BASE ------------------------------------------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #F6F6F6;
  color: #05386B;
  line-height: 1.6;
  min-height: 100vh;
}
img, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  margin: 0 0 1.5em 1.5em;
  padding-left: 1em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -1px;
  color: #05386B;
  margin-bottom: 16px;
  line-height: 1.17;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.4rem;
}
h4 {
  font-size: 1.1rem;
}
p {
  margin-bottom: 1.2em;
  font-size: 1.05rem;
}
a {
  color: #35A7FF;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.7,.3,.4,1);
  font-weight: 600;
}
a:hover, a:focus {
  color: #05386B;
  text-decoration: underline;
}
strong, b {
  font-weight: 800;
}

/* BRAND COLORS --------------------------------------------------------- */
:root {
  --primary: #05386B;
  --secondary: #35A7FF;
  --accent: #F6F6F6;
  --dark: #1B2430;
  --gray: #d0dae8;
  --lightest: #fff;
  --error: #B83A4B;
  --success: #37C870;
}

/* LAYOUT --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 16px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: 16px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px 0 rgba(53,167,255,0.08), 0 1.5px 6px -1.5px rgba(5,56,107,0.12);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 240px;
  flex: 1 1 260px;
}
.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;
  padding: 24px 28px;
  margin-bottom: 24px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 18px 0 rgba(53,167,255,0.11), 0 2px 5px -1px rgba(5,56,107,0.06);
  color: #1B2430;
  min-width: 250px;
  border-left: 6px solid var(--secondary);
  transition: box-shadow 0.2s cubic-bezier(.5,.3,.4,1);
}
.testimonial-card:hover {
  box-shadow: 0 8px 28px 0 rgba(53,167,255,0.14), 0 3.5px 12px -1.5px rgba(5,56,107,0.13);
  border-left-color: var(--primary);
}
.star-rating {
  font-size: 1.1rem;
  color: var(--secondary);
  font-weight: bold;
  letter-spacing: 1.5px;
  margin-top: 4px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* NAVBAR --------------------------------------------------------------- */
header {
  background: var(--lightest);
  box-shadow: 0 2px 12px -2px rgba(5,56,107,0.11);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  flex-wrap: wrap;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.07rem;
  color: var(--primary);
  padding: 7px 13px;
  border-radius: 8px;
  transition: background 0.18s cubic-bezier(.33,.66,.66,1), color 0.15s;
  position: relative;
}
.main-nav a.cta-btn {
  background: var(--secondary);
  color: #fff;
  padding: 9px 24px;
  border-radius: 22px;
  font-size: 1.07rem;
  box-shadow: 0 2px 10px 0 rgba(53,167,255,0.13);
  margin-left: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.main-nav a.cta-btn:hover,
.main-nav a.cta-btn:focus {
  background: var(--primary);
  color: #fff;
  outline: none;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--secondary);
  color: #fff;
  outline: none;
}
.mobile-menu-toggle {
  display: none;
}

/* MOBILE NAV MENU ------------------------------------------------------ */
.mobile-menu-toggle {
  background: var(--secondary);
  color: #fff;
  border: none;
  outline: none;
  font-size: 2rem;
  border-radius: 12px;
  width: 48px;
  height: 48px;
  position: absolute;
  right: 20px;
  top: 18px;
  z-index: 1002;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.13s;
}
.mobile-menu-toggle:active {
  background: var(--primary);
}
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5,56,107,0.98);
  z-index: 2002;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.85,.02,.37,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 40px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 22px;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 2200;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 40px;
  width: 100%;
  align-items: flex-start;
  padding-left: 38px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 6px;
  padding: 10px 0 10px 6px;
  border-radius: 9px;
  width: 90%;
  transition: background 0.17s, color 0.11s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
/* Hide nav on mobile, show burger */
@media (max-width: 990px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 991px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* HERO & CTA ----------------------------------------------------------- */
.cta-btn, .mobile-menu a.cta-btn {
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 28px;
  padding: 13px 34px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 1.13rem;
  letter-spacing: 0.9px;
  box-shadow: 0 2px 16px 0 rgba(53,167,255,0.14);
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.18s, box-shadow 0.17s, color 0.14s;
  outline: none;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 24px 0 rgba(53,167,255,0.19);
  text-decoration: none;
}

/* FEATURES & CARDS ----------------------------------------------------- */
.content-wrapper ul,
.text-section ul,
.content-wrapper ol,
.text-section ol {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.content-wrapper ul li,
.text-section ul li {
  background: #fff;
  border-radius: 12px;
  padding: 24px 18px;
  box-shadow: 0 2px 12px 0 rgba(53,167,255,0.05);
  font-size: 1.08rem;
  flex: 1 1 240px;
  min-width: 220px;
  color: #1B2430;
  list-style: none;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: box-shadow 0.21s cubic-bezier(.45,.01,.4,1);
}
.content-wrapper ul li:hover,
.text-section ul li:hover {
  box-shadow: 0 8px 30px -2px rgba(53,167,255,0.14);
}
.content-wrapper ul li img {
  height: 48px;
  width: 48px;
  margin-bottom: 7px;
}

/* PRICING TABLE -------------------------------------------------------- */
.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  margin: 20px 0 32px 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px 0 rgba(53,167,255,0.09);
  font-size: 1.08rem;
}
.pricing-table th, .pricing-table td {
  padding: 18px 14px;
  text-align: center;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  border-bottom: 1.5px solid var(--gray);
}
.pricing-table th {
  background: var(--primary);
  color: #fff;
  font-size: 1.13rem;
  letter-spacing: 0.5px;
  font-weight: 900;
}
.pricing-table td:first-child {
  font-weight: 800;
  color: var(--primary);
}
.pricing-table tr:last-child td {
  border-bottom: none;
}

/* FOOTER --------------------------------------------------------------- */
footer {
  background: var(--primary);
  color: #fff;
  padding: 0;
  font-size: 1rem;
  margin-top: 48px;
}
footer .container {
  padding: 0 20px;
}
footer .content-wrapper {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  padding: 34px 0 18px 0;
  border-bottom: 1.5px solid rgba(255,255,255,0.14);
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
footer nav a {
  color: #fff;
  opacity: 0.92;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
footer nav a:hover {
  opacity: 1;
  text-decoration: underline;
}
footer .contact-short {
  font-size: 0.98rem;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #d0dae8;
}
footer .contact-short img {
  vertical-align: middle;
  width: 20px;
  height: 20px;
  margin-right: 6px;
}
footer img[alt*='Lucid Flare'] {
  height: 52px;
  margin-bottom: 4px;
}

/* MAP SECTION (Contact) ------------------------------------------------ */
.map-embed {
  max-width: 540px;
  margin: 12px 0 0 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px 0 rgba(53,167,255,0.13);
  background: #fff;
}
.map-embed img {
  display: block;
  width: 100%;
  border-radius: 14px;
}

/* TYPOGRAPHY SCALE ----------------------------------------------------- */
@media (max-width: 500px) {
  h1 {
    font-size: 1.6rem;
    margin-bottom: 14px;
  }
  h2 {
    font-size: 1.28rem;
    margin-bottom: 12px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.32rem;
  }
  .section {
    margin-bottom: 36px;
    padding: 20px 6px;
  }
  .footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
  }
}

/* RESPONSIVE LAYOUT PATTERNS ------------------------------------------- */
@media (max-width: 900px) {
  .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .footer .content-wrapper {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .content-wrapper, .text-section, .container {
    padding-left: 2px;
    padding-right: 2px;
  }
  .card-container, .content-grid, .section {
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

/* TABLETS & SMALL SCREENS ---------------------------------------------- */
@media (max-width: 550px) {
  .card {
    padding: 16px 9px;
  }
  .pricing-table th, .pricing-table td {
    padding: 7px 6px;
    font-size: 0.89rem;
  }
  .cta-btn {
    padding: 10px 16px;
    font-size: 1rem;
  }
}

/* ACCESSIBILITY HIGHLIGHTS --------------------------------------------- */
a:focus-visible, .cta-btn:focus-visible, .mobile-menu-close:focus-visible {
  outline: 2.5px solid var(--secondary);
  outline-offset: 2px;
}

/* OL (Numbered steps) styling for How It Works ------------------------- */
ol {
  counter-reset: steps;
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.2em;
}
ol li {
  counter-increment: steps;
  background: #fff;
  border-radius: 10px;
  padding: 18px 13px 18px 40px;
  box-shadow: 0 2px 12px 0 rgba(53,167,255,0.04);
  font-size: 1.11rem;
  margin-bottom: 16px !important;
  position: relative;
}
ol li:before {
  content: counter(steps) ".";
  position: absolute;
  left: 13px;
  top: 18px;
  font-size: 1.1em;
  font-weight: 900;
  color: var(--secondary);
}

/* INFOGRAPHIC DECOR ---------------------------------------------------- */
.infographic img {
  width: 120px;
  margin: 12px auto 0 auto;
  display: block;
}

/* MICRO-INTERACTIONS --------------------------------------------------- */
button, .cta-btn, .mobile-menu-toggle, .mobile-menu-close {
  transition: all 0.18s cubic-bezier(.7,.4,.27,1.1);
}
main a, main button {
  transition: box-shadow 0.13s, color 0.15s, background 0.19s;
}
section img, .card img, .feature-item img {
  transition: transform 0.19s cubic-bezier(.91,.22,.18,1.2);
}
section img:hover, .card img:hover, .feature-item img:hover {
  transform: scale(1.08) rotate(-4deg);
}

/* COOKIE CONSENT BANNER & PREFERENCES ---------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  color: #05386B;
  box-shadow: 0 -3px 24px -2px rgba(53,167,255,0.18);
  padding: 20px 24px;
  z-index: 2999;
  font-size: 1rem;
  gap: 20px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  animation: cookieBannerAppear 0.4s ease;
}
@keyframes cookieBannerAppear {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  flex: 1;
  margin-right: 12px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-banner button {
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 9px 17px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  font-size: 1.01rem;
  cursor: pointer;
  transition: background 0.19s, color 0.11s;
}
.cookie-banner .cookie-settings-btn {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--secondary);
  margin-left: 2px;
}
.cookie-banner .cookie-settings-btn:hover, .cookie-banner .cookie-settings-btn:focus {
  background: var(--secondary);
  color: #fff;
}
.cookie-banner .cookie-reject {
  background: var(--error);
  color: #fff;
}
.cookie-banner .cookie-reject:hover, .cookie-banner .cookie-reject:focus {
  background: #7d1620;
  color: #fff;
}
.cookie-banner .cookie-accept:hover, .cookie-banner .cookie-accept:focus {
  background: var(--primary);
}

.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  background: #fff;
  box-shadow: 0 10px 60px 0 rgba(53,167,255,0.17);
  padding: 38px 28px 32px 28px;
  border-radius: 16px;
  z-index: 3001;
  min-width: 320px;
  max-width: 96vw;
  animation: cookieModalAppear 0.35s cubic-bezier(.46,.14,.31,1.23);
}
@keyframes cookieModalAppear {
  from { transform: translate(-50%,-25%); opacity: 0; }
  to { transform: translate(-50%,-50%); opacity: 1; }
}
.cookie-modal h3 {
  color: var(--primary);
  font-size: 1.28rem;
  margin-bottom: 10px;
  font-weight: 900;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 10px 0 18px 0;
}
.cookie-modal .category {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1.05rem;
}
.cookie-modal .category input[type="checkbox"] {
  width: 23px;
  height: 23px;
  accent-color: var(--secondary);
}
.cookie-modal .category label {
  font-weight: 700;
}
.cookie-modal .category.essential label {
  color: #aaa;
  font-style: italic;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.55rem;
  color: var(--primary);
  cursor: pointer;
}
.cookie-modal .modal-close:focus {
  outline: 2.5px solid var(--secondary);
}

/* MODALS OVERLAY ------------------------------------------------------- */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(5,56,107,0.22);
  z-index: 3000;
  animation: cookieModalOverlayAppear 0.25s;
}
@keyframes cookieModalOverlayAppear {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* UTILITY CLASSES ------------------------------------------------------ */
.text-center {text-align: center;}
.mt-0 {margin-top: 0 !important;}
.mb-0 {margin-bottom: 0 !important;}
.mb-24 {margin-bottom: 24px;}
.mb-36 {margin-bottom: 36px;}
.text-secondary {color: var(--secondary);}
.text-primary {color: var(--primary);}
.bg-accent {background: var(--accent);}
.bg-primary {background: var(--primary); color: #fff;}

/* GEOMETRIC DECORATIVE SHAPES ------------------------------------------ */
.section::after {
  content: '';
  display: block;
  width: 60px;
  height: 6px;
  border-radius: 3px;
  background: var(--secondary);
  margin: 32px auto 0 auto;
  opacity: 0.1;
}

/* OVERRIDES FOR PAGES WITHOUT CARDS/LISTS ------------------------------ */
.content-wrapper > ul:empty,
.text-section > ul:empty {
  display: none;
}

/* MISCELLANEOUS -------------------------------------------------------- */
::-webkit-scrollbar {
  width: 10px;
  background: #f1f4f5;
}
::-webkit-scrollbar-thumb {
  background: var(--gray);
  border-radius: 12px;
}

/* ENSURE CARD & SECTION SPACING & NO OVERLAP --------------------------- */
.card, .testimonial-card, .content-wrapper ul li, .text-section ul li {
  margin-right: 0;
  margin-bottom: 20px;
}
.section:not(:last-child) {
  margin-bottom: 60px;
}

/* IMPORT FONTS (REQUIRE PLACING IN HTML <head> FOR REAL CASE) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,800;0,900;1,900&family=Roboto:wght@400;700&display=swap');
