/* ===================== CSS RESET & NORMALIZE ===================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  min-height: 100vh;
  background: #10172a;
  color: #f8fafc;
  font-family: 'Lato', Arial, sans-serif;
  line-height: 1.7;
  letter-spacing: 0.01em;
  background-color: #10172a;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #85c7f2;
  text-decoration: none;
  transition: color 0.22s;
}
a:focus {
  outline: 2px solid #F9E79F;
  outline-offset: 2px;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}
ul, ol {
  list-style: none;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  padding: 12px 16px;
  border-bottom: 1px solid #27408B;
  text-align: left;
  font-weight: 400;
  font-size: 1rem;
}
th {
  background: #19254d;
  font-weight: 600;
}

/* ===================== COLOR VARIABLES (No custom props) ===================== */
/*
primary:   #27408B
dark-bg:   #10172a
secondary: #B1D0E0
accent:    #F9E79F
ui-neon-blue: #2486f9
neon-pink: #f720a2
default text: #f8fafc
testimonial text: #19254d
light card bg: #f8fafc
*/

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #F9E79F;
  line-height: 1.13;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}
h1 {
  font-size: 2.5rem; /* 40px */
  color: #fff;
}
h2 {
  font-size: 2rem; /* 32px */
}
h3 {
  font-size: 1.5rem; /* 24px */
}
h4, h5, h6 {
  font-size: 1.125rem;
}
p, ul, ol, li, address {
  font-size: 1rem;
  color: #e4eaf1;
}
.text-section p {
  color: #B1D0E0;
}

/* Typography Scale for media queries */
@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.18rem; }
}

/* ===================== GLOBAL LAYOUT ===================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0;
}
.text-section {
  max-width: 640px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #19254d;
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(36,134,249,0.10);
  transition: box-shadow 0.3s, transform 0.24s;
}
.card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 32px 0 rgba(36,134,249,0.13), 0 0 0 2px #2486f9;
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 16px rgba(39,64,139,0.13);
  color: #19254d;
  border: 2px solid #B1D0E0;
  transition: box-shadow 0.25s;
}
.testimonial-card p, .testimonial-card strong {
  color: #19254d;
}
.testimonial-card:hover {
  box-shadow: 0 4px 28px 0 rgba(247,32,162,0.11), 0 0 0 2px #2486f9;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

ul li, ol li {
  margin-bottom: 18px;
  line-height: 1.7;
  padding-left: 0;
  text-indent: -0.1em;
}

.details, summary {
  font-size: 1rem;
}
details[open] > summary {
  color: #F9E79F;
  font-weight: 600;
}


/* ===================== HEADER & NAVIGATION ===================== */
header {
  background: #19254d;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0 18px 0;
  position: sticky;
  top: 0;
  z-index: 120;
  box-shadow: 0 2px 18px rgba(36,134,249,0.08), 0 1px 0 #27408B;
}
header > a img {
  height: 48px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #B1D0E0;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color 0.22s, background 0.20s;
}
nav a:hover,
nav a:focus {
  background: #2486f9;
  color: #fff;
}
.cta.primary {
  background: linear-gradient(90deg, #27408B 60%, #2486f9 90%);
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 32px;
  border-radius: 32px;
  margin-left: 16px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 10px 0 rgba(39,64,139,0.09);
  border: none;
  cursor: pointer;
  transition: background 0.20s, box-shadow 0.22s, transform 0.14s;
  border-bottom: 3px solid #F9E79F;
  text-shadow: 0 1px 9px #27408B33;
}
.cta.primary:hover,
.cta.primary:focus {
  background: linear-gradient(90deg, #2486f9 60%, #f720a2 100%);
  box-shadow: 0 6px 32px 0 #2486f955, 0 0 10px #f720a2cc inset;
  border-bottom: 3px solid #b1d0e0;
  color: #fff;
  outline: none;
  transform: translateY(-2px) scale(1.03);
}
.cta {
  background: #F9E79F;
  color: #27408B;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  letter-spacing: 0.05em;
  font-weight: 700;
  padding: 10px 28px;
  border-radius: 32px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.19s, color 0.19s, box-shadow 0.21s;
  margin-top: 10px;
}
.cta:hover,
.cta:focus {
  background: #27408B;
  color: #fff;
  box-shadow: 0 0 0 2px #F9E79F, 0 3px 20px 0 #2486f933;
}

@media (max-width: 992px) {
  nav {
    gap: 10px;
  }
  .cta.primary {
    padding: 10px 10px;
    margin-left: 0;
  }
  header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 0 8px 0;
  }
}

/* Hide nav for mobile */
@media (max-width: 768px) {
  header nav, .cta.primary {
    display: none !important;
  }
  header {
    flex-direction: row;
    padding: 12px 0 12px 0;
  }
}

/* ===================== HERO SECTION ===================== */
.hero-section {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(90deg, #10172a 50%, #19254d 100%);
  position: relative;
  padding: 80px 0 40px 0;
  margin-bottom: 60px;
}
.hero-section h1 {
  color: #fff;
  font-size: 2.75rem;
  margin-bottom: 20px;
  text-shadow: 0 8px 32px #2486f9cc;
  background: linear-gradient(92deg,#2486f9, #f720a2 75%, #F9E79F 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-section p {
  color: #B1D0E0;
  font-size: 1.18rem;
  margin-bottom: 25px;
  max-width: 500px;
  text-shadow: 0 2px 16px #10172a60;
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 280px;
    padding: 48px 0 28px 0;
    margin-bottom: 36px;
  }
  .hero-section h1 {
    font-size: 2rem;
  }
}

/* ===================== FLEX LAYOUT utility classes (MANDATORY) ===================== */
/* Already defined above per requirements */

/* ===================== HOME PAGE FEATURES (ICON LIST) ===================== */
section ul li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 1.07rem;
  color: #e4eaf1;
}
section ul li img {
  height: 36px;
  margin-top: 2px;
}
section ul li strong {
  color: #F9E79F;
}
section ul {
  padding-left: 0;
  margin-left: 0;
  margin-bottom: 0;
}

/* ===================== GENERAL LISTS ===================== */
ul, ol {
  margin-bottom: 26px;
  padding-left: 0;
}

/* ===================== TABLES ===================== */
table {
  margin: 18px 0;
  background: #19254d;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 24px 0 #19254d19;
}

th { color: #F9E79F; }
td { color: #fff; }

tr:nth-child(odd) td {
  background: #222f51;
}
tr:nth-child(even) td {
  background: #19254d;
}

/* ===================== DETAILS & SUMMARY ===================== */
details {
  background: #222f51;
  border-radius: 10px;
  padding: 12px 20px;
  margin-bottom: 16px;
  transition: box-shadow 0.2s;
  box-shadow: 0 2px 8px #2486f910;
  cursor: pointer;
}
summary {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #F9E79F;
  padding: 4px 0;
  margin-bottom: 6px;
  cursor: pointer;
}
details[open] {
  box-shadow: 0 4px 16px #2486f930;
  border: 1.5px solid #2486f9;
}

/* ===================== FOOTER ===================== */
footer {
  background: #10172a;
  padding: 40px 0 20px 0;
  margin-top: 60px;
  border-top: 3px solid #2486f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
footer > a img {
  height: 38px;
  margin-bottom: 6px;
  filter: drop-shadow(0 4px 6px #2486f933);
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 8px;
}
footer nav a {
  font-size: 0.93rem;
  color: #B1D0E0;
  letter-spacing: 0.01em;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s, background 0.16s;
}
footer nav a:hover,
footer nav a:focus {
  color: #fff;
  background: #2486f9;
}
footer address {
  font-size: 0.93rem;
  color: #B1D0E0;
  display: flex;
  align-items: center;
  gap: 14px;
}
footer address a {
  color: #2486f9;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
footer small {
  color: #7a8fa8;
  font-size: 0.87rem;
  letter-spacing: 0.01em;
  margin-top: 6px;
}

/* ===================== RESPONSIVE LAYOUT ===================== */
@media (max-width: 1024px) {
  .container { max-width: 97vw; }
}
@media (max-width: 900px) {
  .container { padding-left: 5px; padding-right: 5px; }
  .content-wrapper { gap: 16px; }
}
@media (max-width: 768px) {
  main, .container { padding-left: 0; padding-right: 0; }
  .section { padding: 24px 5px; margin-bottom: 36px; }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
    gap: 8px;
  }
}
@media (max-width: 540px) {
  .container { padding: 0 2px; }
  .footer { padding: 20px 0; }
}

/* ===================== MOBILE NAVIGATION (BURGER MENU) ===================== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 18px;
  z-index: 255;
  background: #2486f9;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  box-shadow: 0 1px 10px #10172a24, 0 0 0 2px #19254d;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, box-shadow 0.16s, transform 0.12s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #f720a2;
  color: #fff;
  box-shadow: 0 0 16px #f720a233, 0 0 0 3px #2486f9;
}
@media (max-width: 768px) {
  .mobile-menu-toggle { display: flex; }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 250;
  background: linear-gradient(120deg, #19254d 85%, #2486f9 110%);
  transform: translateX(-100vw);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(.89,.01,.58,1), opacity 0.25s;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 32px 12px 0;
  background: #f720a2;
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  border: none;
  font-size: 2rem;
  box-shadow: 0 2px 16px #2486f933;
  cursor: pointer;
  transition: background 0.2s, transform 0.14s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: #2486f9;
  color: #fff;
  transform: scale(1.06);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 36px 22px;
  align-items: stretch;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.23rem;
  color: #fff;
  background: #2486f9;
  border-radius: 14px;
  padding: 16px 16px;
  margin-bottom: 4px;
  box-shadow: 0 2px 14px 0 #f720a222;
  letter-spacing: 0.03em;
  font-weight: 700;
  transition: background 0.18s, color 0.18s, box-shadow 0.16s, transform 0.11s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: #f720a2;
  color: #fff;
  box-shadow: 0 0 0 3px #F9E79F, 0 4px 20px #2486f911;
  outline: none;
  transform: translateX(4px) scale(1.03);
}
@media (min-width: 769px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* ===================== COOKIE CONSENT BANNER ===================== */
.cookie-banner {
  position: fixed;
  z-index: 1200;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  color: #27408B;
  box-shadow: 0 -4px 40px #2486f922;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 22px 30px;
  gap: 22px;
  font-size: 1rem;
  border-top: 3px solid #2486f9;
  animation: cookieSlideIn 0.8s cubic-bezier(.54,.09,.5,1) 0s 1;
  transition: opacity 0.24s, bottom 0.22s;
}
@keyframes cookieSlideIn {
  from { transform: translateY(120%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-banner button {
  background: #2486f9;
  color: #fff;
  border: none;
  padding: 9px 22px;
  border-radius: 30px;
  font-weight: bold;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.98rem;
  cursor: pointer;
  margin-right: 2px;
  box-shadow: 0 2px 8px #2486f920;
  transition: background 0.19s, color 0.15s, box-shadow 0.11s, transform 0.10s;
}
.cookie-banner .accept-all {
  background: #27408B;
}
.cookie-banner .accept-all:hover,
.cookie-banner .accept-all:focus {
  background: #f720a2;
  box-shadow: 0 2px 12px #2486f933, 0 0 0 2px #F9E79F;
}
.cookie-banner .reject-all {
  background: #B1D0E0;
  color: #27408B;
}
.cookie-banner .reject-all:hover,
.cookie-banner .reject-all:focus {
  background: #27408B;
  color: #fff;
}
.cookie-banner .cookie-settings {
  background: #F9E79F;
  color: #27408B;
}
.cookie-banner .cookie-settings:hover,
.cookie-banner .cookie-settings:focus {
  color: #fff;
  background: #f720a2;
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 18px 12px;
    gap: 12px;
    font-size: 14px;
  }
  .cookie-banner .cookie-actions {
    flex-direction: column;
    gap: 10px;
  }
}

/* =========== COOKIE CONSENT MODAL ============ */
.cookie-modal-overlay {
  position: fixed;
  z-index: 1400;
  top:0;left:0;right:0;bottom:0;
  background: rgba(24, 28, 47, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.21s;
  animation: fadeModalIn 0.33s cubic-bezier(.45,.15,.3,.95);
}
@keyframes fadeModalIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #f8fafc;
  color: #27408B;
  border-radius: 18px;
  box-shadow: 0 0 30px #2486f940;
  padding: 30px 34px;
  max-width: 420px;
  width: 96vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  font-size: 1.01rem;
}
.cookie-modal h3 {
  color: #2486f9;
  font-size: 1.18rem;
  margin-bottom: 8px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #e4eaf1;
  border-radius: 11px;
  margin-bottom: 12px;
  padding: 10px 16px;
}
.cookie-category label {
  font-weight: 600;
}
.cookie-toggle {
  width: 46px; height: 26px;
  border-radius: 20px;
  background: #B1D0E0;
  position: relative;
  cursor: pointer;
  transition: background 0.18s;
  margin-left: 10px;
  margin-right: 0;
}
.cookie-toggle[disabled] {
  opacity: 0.7;
  pointer-events: none;
}
.cookie-toggle input[type="checkbox"] {
  display: none;
}
.cookie-toggle .toggle-inner {
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  background: #27408B;
  border-radius: 50%;
  transition: left 0.18s, background 0.18s;
}
.cookie-toggle input[type="checkbox"]:checked + .toggle-inner {
  left: 23px;
  background: #f720a2;
}
.cookie-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.cookie-modal-footer button {
  padding: 8px 18px;
}
.cookie-modal-close {
  position: absolute;
  top: 10px; right: 10px;
  background: transparent;
  color: #f720a2;
  border: none;
  font-size: 1.35rem;
  cursor: pointer;
  transition: color 0.16s;
}
.cookie-modal-close:focus,
.cookie-modal-close:hover {
  color: #2486f9;
}
@media (max-width: 540px) {
  .cookie-modal {
    padding: 16px 6px;
  }
}


/* ===================== ANIMATIONS, MICROINTERACTIONS ===================== */
.cta.primary, .cta, .cookie-banner button, .mobile-nav a, .mobile-menu-close, .mobile-menu-toggle {
  transition: background 0.18s, color 0.16s, box-shadow 0.17s, transform 0.13s;
}
.card, .testimonial-card {
  transition: box-shadow 0.21s, transform 0.16s;
}
details {
  transition: box-shadow 0.18s;
}
.mobile-menu, .cookie-banner {
  transition: opacity 0.24s, transform 0.28s;
}

/* ===================== MISC ===================== */
::-webkit-scrollbar {
  width: 10px;
  background: #19254d;
}
::-webkit-scrollbar-thumb {
  background: #2486f9;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #f720a2;
}

/* Selection color */
::selection {
  background: #F9E79F;
  color: #27408B;
}

/* ===================== SPECIAL CLASSES FOR SPACING & FLEXBOX (MANDATORY) ===================== */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Prevent overlapping and enforce gaps using margin/gap */
.card, .testimonial-card, .feature-item, .section {
  margin-bottom: 20px;
}

/* ENFORCE FLEX DIRECTION COLUMN ON MOBILE */
@media (max-width: 768px) {
  .content-grid, .card-container, .feature-item, .section, .text-image-section {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 18px !important;
  }
}

/* MANDATORY: No grid, no absolute positioning for content elements */

/********************** END OF STYLE.CSS **********************/
