/* ---------------- 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%;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #162034;
  color: #F6F1E7;
}
ol, ul {
  list-style: none;
}
a {
  background: transparent;
  color: #B7D6E8;
  text-decoration: none;
  transition: color 0.22s;
}
a:hover, a:focus {
  color: #F6F1E7;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

/* ------------------ BASE TYPOGRAPHY ------------------ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 400;
  letter-spacing: 0.04em;
  background: linear-gradient(120deg, #223359 70%, #162034 100%);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #B7D6E8;
  font-weight: 700;
  line-height: 1.18;
  text-shadow: 0 2px 14px rgba(54,157,255,0.16);
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 18px;
  font-weight: 600;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 14px;
}
p, li {
  font-size: 1.125rem;
  color: #F6F1E7;
}
b, strong {
  font-weight: 600;
}

/* Typography transitions */
section h2, .content-wrapper h2, .content-wrapper h3 {
  transition: color 0.25s;
  position: relative;
}
section h2::after {
  content: '';
  display: block;
  width: 52px;
  height: 3px;
  margin-top: 12px;
  background: linear-gradient(90deg, #B7D6E8 0%, #2CD9FE 100%);
  border-radius: 2px;
}

/* ------------------ CONTAINER & SECTION ------------------ */
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 22px;
  background: rgba(34,51,89,0.90);
  box-shadow: 0 4px 32px 0 rgba(68,204,255,0.07);
}
.content-wrapper {
  margin-bottom: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 12px;
}

.text-section ul, .text-section ol {
  margin-left: 20px;
  margin-bottom: 0;
}
.text-section li {
  margin-left: 0;
  margin-bottom: 10px;
  font-size: 1rem;
  color: #B7D6E8;
}

/* ------------------ FLEX LAYOUTS ------------------ */
.card-container, .service-grid, .product-carousel, .card-grid, .content-grid, .blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: #233461;
  color: #F6F1E7;
  border-radius: 18px;
  box-shadow: 0 4px 22px 0 rgba(34,211,238,0.16);
  padding: 30px 24px;
  margin-bottom: 20px;
  position: relative;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-carousel {
  gap: 24px;
  flex-wrap: wrap;
}
.product-short {
  background: #223359;
  border-radius: 15px;
  box-shadow: 0 2px 10px 0 rgba(68,204,255,0.11);
  padding: 24px 18px;
  flex: 1 1 280px;
  min-width: 240px;
  margin-bottom: 20px;
  transition: box-shadow 0.25s;
  border: 1.5px solid #2CD9FE;
}
.product-short:hover {
  box-shadow: 0 4px 30px 0 rgba(22,200,220,0.37);
  border-color: #00fbae;
}

.service-grid {
  gap: 24px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
}
.service {
  background: #19294c;
  border-radius: 17px;
  box-shadow: 0 2px 16px 0 rgba(79,255,255,0.09);
  padding: 24px 20px;
  flex: 1 1 260px;
  min-width: 220px;
  margin-bottom: 20px;
  border: 1.5px solid #52f6ff;
  transition: border-color 0.22s, box-shadow 0.22s;
}
.service:hover {
  border-color: #2CD9FE;
  box-shadow: 0 8px 32px 0 rgba(80,250,237,0.23);
}

.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;
}

/* Card Container Example Fixes */
.card-grid, .card-container {
  margin-bottom: 36px;
}

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

.testimonial-card {
  background: #F6F1E7;
  color: #223359;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 22px;
  min-width: 220px;
  box-shadow: 0 2px 10px 0 rgba(68,204,255,0.13);
  font-size: 1.15rem;
  transition: box-shadow 0.22s, transform 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 50px 0 rgba(28,223,255,0.14);
  transform: translateY(-4px) scale(1.02);
}
.testimonial-card span {
  font-size: 0.98rem;
  font-style: italic;
  color: #223359;
  font-weight: 600;
  margin-left: 16px;
}

/* ------------------ HEADER & NAVIGATION ------------------ */
header {
  width: 100%;
  background: #19294c;
  box-shadow: 0 2px 32px 0 rgba(44,217,254,0.14);
  position: relative;
  z-index: 110;
}
.logo img {
  height: 43px;
  width: auto;
  filter: brightness(2);
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  color: #B7D6E8;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 7px;
  transition: background 0.18s, color 0.16s, box-shadow 0.14s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #00fbae;
  color: #19294c;
}
.main-nav .btn-primary {
  background: linear-gradient(90deg, #2CD9FE 60%, #B7D6E8 100%);
  color: #223359 !important;
  border-radius: 11px;
  box-shadow: 0 2px 15px 0 rgba(30,200,255,0.14);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 8px 22px;
  margin-left: 10px;
  transition: background 0.24s, box-shadow 0.18s, color 0.15s;
  border: 1.5px solid #B7D6E8;
}
.main-nav .btn-primary:hover, .main-nav .btn-primary:focus {
  background: #00fbae;
  color: #101e3a !important;
  box-shadow: 0 4px 30px 0 rgba(0,251,174,0.29);
  border-color: #2CD9FE;
}

.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: #B7D6E8;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 999;
  margin-left: 16px;
  transition: color 0.16s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  color: #00fbae;
}

/* ------------------ MOBILE MENU + NAV ------------------ */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(22,32,52,0.97);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 22px 22px 22px;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.7,0.2,0.25,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.2rem;
  align-self: flex-end;
  color: #2CD9FE;
  background: none;
  border: none;
  margin-bottom: 15px;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #00fbae;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', sans-serif;
  color: #B7D6E8;
  font-size: 1.3rem;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid #29406c;
  border-radius: 0;
  transition: color 0.16s, background 0.14s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #00fbae;
  background: none;
}

/* ------------------ HERO + SPECIAL SECTIONS ------------------ */
.hero {
  background: linear-gradient(120deg, #223359 60%, #2CD9FE 100%);
  padding: 70px 0 42px 0;
  border-radius: 0 0 38px 38px;
  margin-bottom: 55px;
  box-shadow: 0 6px 40px 0 rgba(44,217,254,0.09);
}
.hero h1 {
  color: #F6F1E7;
  text-shadow: 0 8px 14px rgba(68,204,255,0.17);
}
.hero p {
  color: #B7D6E8;
  font-size: 1.25rem;
  margin-bottom: 20px;
}
.hero .btn-primary {
  margin-top: 12px;
}

/* ------------------ BUTTONS ------------------ */
.btn-primary, .btn-secondary {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  border: none;
  cursor: pointer;
  padding: 12px 28px;
  font-size: 1.08rem;
  border-radius: 10px;
  box-shadow: 0 2px 14px 0 rgba(52,223,255,0.17);
  transition: background 0.23s, color 0.15s, box-shadow 0.18s, border 0.18s;
  margin-top: 14px;
}
.btn-primary {
  background: linear-gradient(100deg, #2CD9FE 60%, #B7D6E8 100%);
  color: #233461;
  border: 1.5px solid #2CD9FE;
  text-shadow: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: #00fbae;
  box-shadow: 0 6px 24px 0 rgba(0,251,174,0.17);
  color: #101e3a;
}
.btn-secondary {
  background: #222d40;
  color: #B7D6E8;
  border: 1.5px solid #B7D6E8;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #2CD9FE;
  color: #223359;
  border-color: #2CD9FE;
}

/* ------------------ LISTS & LINKS ------------------ */
ul {
  padding-left: 18px;
  margin-bottom: 0;
  list-style: disc outside;
}
ol {
  padding-left: 20px;
  list-style: decimal inside;
}
li {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #B7D6E8;
}

/* Features with icons */
ul li img {
  width: 26px;
  height: 26px;
  margin-right: 12px;
  vertical-align: middle;
  filter: drop-shadow(0 2px 9px #2CD9FE80);
}

/* Table lookalikes */
.product-table, .service-table {
  margin: 0 0 24px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-table ul, .service-table ul {
  padding-left: 10px;
}

/* Blog articles */
.blog-list {
  display: flex;
  flex-direction: row;
  gap: 36px;
  margin-bottom: 18px;
}
.blog-list .text-section {
  padding: 0;
}
.blog-list ul {
  margin-bottom: 0;
}

/* ------------------ FOOTER ------------------ */
footer {
  background: #19294c;
  color: #B7D6E8;
  padding: 36px 0 16px 0;
  margin-top: 2em;
  border-radius: 34px 34px 0 0;
  box-shadow: 0 -2px 34px 0 rgba(44,217,254,0.06);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #B7D6E8;
  font-size: 1rem;
  padding: 6px 14px;
  border-radius: 6px;
  transition: background 0.14s, color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #B7D6E8;
  color: #223359;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: center;
}
.footer-brand img {
  width: 34px;
  height: 34px;
}
.footer-brand span {
  color: #B7D6E8;
  font-size: 1rem;
}

/* ------------------ COOKIE CONSENT BANNER ------------------ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #19294c;
  color: #B7D6E8;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 32px;
  z-index: 4000;
  box-shadow: 0 -2px 24px 0 rgba(44,217,254,0.09);
  animation: cookie-slidein 0.5s cubic-bezier(0.7,0.4,0.35,1);
}
@keyframes cookie-slidein {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-banner-text {
  flex: 1 1 auto;
  font-size: 1.02rem;
  color: #B7D6E8;
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
.cookie-banner .cookie-btn {
  font-family: 'Montserrat', sans-serif;
  border-radius: 8px;
  border: 1.5px solid #2CD9FE;
  background: #2CD9FE;
  color: #223359;
  padding: 10px 19px;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  box-shadow: 0 2px 8px rgba(44,217,254,0.12);
  transition: background 0.16s, color 0.17s;
}
.cookie-banner .cookie-btn.settings {
  background: #223359;
  color: #B7D6E8;
  border: 1.5px solid #B7D6E8;
}
.cookie-banner .cookie-btn.settings:hover, .cookie-banner .cookie-btn.settings:focus {
  background: #2CD9FE;
  color: #223359;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #00fbae;
  color: #19294c;
}

/* Cookie modal */
#cookie-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  background: #223359;
  color: #B7D6E8;
  box-shadow: 0 6px 30px 0 rgba(30,200,255,0.14);
  border-radius: 20px;
  padding: 36px 24px 24px 24px;
  min-width: 315px;
  max-width: 94vw;
  z-index: 4100;
  transform: translate(-50%, -50%) scale(1.04);
  display: none;
  animation: cookie-modal-fade 0.36s ease;
}
#cookie-modal.open {
  display: block;
}
@keyframes cookie-modal-fade {
  from { opacity: 0; transform: translate(-50%,-55%) scale(0.96); }
  to   { opacity: 1; transform: translate(-50%,-50%) scale(1.04); }
}
#cookie-modal h3 {
  color: #2CD9FE;
  font-size: 1.22rem;
  margin-bottom: 12px;
}
#cookie-modal label {
  color: #B7D6E8;
  font-size: 1rem;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
}
#cookie-modal .cookie-category {
  margin-bottom: 12px;
}
#cookie-modal .modal-btns {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}
#cookie-modal .close {
  position: absolute;
  top: 18px;
  right: 17px;
  font-size: 1.7rem;
  color: #2CD9FE;
  cursor: pointer;
}
#cookie-modal .close:hover, #cookie-modal .close:focus {
  color: #00fbae;
}

/* Checkbox toggles for cookies */
.cookie-toggle {
  -webkit-appearance: none;
  appearance: none;
  width: 36px;
  height: 20px;
  border-radius: 12px;
  background: #B7D6E8;
  transition: background 0.21s;
  position: relative;
  outline: none;
  margin-right: 8px;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: #2CD9FE;
}
.cookie-toggle:before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #233461;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.2s, background 0.19s;
}
.cookie-toggle:checked:before {
  left: 18px;
  background: #00fbae;
}

/* ------------------ RESPONSIVE DESIGN ------------------ */
@media (max-width: 1024px) {
  .container {
    max-width: 95vw;
    padding: 0 8px;
  }
  .main-nav {
    gap: 12px;
  }
  .footer-nav {
    gap: 18px;
  }
  .section {
    padding: 33px 10px;
  }
}
@media (max-width: 900px) {
  .service, .product-short, .testimonial-card, .card {
    flex: 1 1 100%;
    min-width: 94vw;
    max-width: 100%;
  }
  .service-grid, .product-carousel, .card-container, .card-grid, .blog-list {
    gap: 16px;
  }
}
@media (max-width: 850px) {
  header .container {
    flex-wrap: wrap;
    padding-bottom: 12px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  h1 {
    font-size: 1.7rem;
  }
  h2 {
    font-size: 1.22rem;
  }
  .content-wrapper {
    padding: 0;
    gap: 14px;
  }
  .section {
    margin-bottom: 38px;
    padding: 18px 7px;
  }
  .service-grid, .product-carousel, .card-container, .card-grid, .blog-list {
    flex-direction: column;
    gap: 10px;
  }
  .testimonial-card, .service, .product-short, .card {
    min-width: 0;
    padding: 18px 11px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 9px;
  }
  .hero {
    padding: 36px 0 24px 0;
    border-radius: 0 0 22px 22px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 14px 9px;
    font-size: 0.98rem;
  }
  .cookie-banner-buttons {
    width: 100%;
    gap: 10px;
    justify-content: stretch;
  }
  #cookie-modal {
    padding: 18px 5vw 18px 5vw;
    min-width: 0;
  }
}

/* Ensure no overlapping, proper z-indices, accessible focus states */
:focus {
  outline: 2px solid #2CD9FE;
  outline-offset: 2px;
}
a:focus, button:focus, .btn-primary:focus, .btn-secondary:focus {
  box-shadow: 0 2px 16px 0 #2CD9FE;
}

/* ------------------ MICRO-INTERACTIONS ------------------ */
.btn-primary, .btn-secondary, .service, .product-short, .testimonial-card, .card {
  transition: box-shadow 0.22s, border 0.17s, background 0.17s, color 0.15s, transform 0.18s;
}

.btn-primary:active, .btn-secondary:active {
  transform: scale(0.96);
}
.card:active, .service:active, .product-short:active, .testimonial-card:active {
  transform: scale(0.99);
}

/* Custom selection */
::selection {
  background: #00fbae;
  color: #223359;
}

/* -------------- Z-index and stacking context -------------- */
header, footer { z-index: 10; position: relative; }
.mobile-menu { z-index: 3000; }
#cookie-modal { z-index: 4100; }
.cookie-banner { z-index: 4000; }

/* -------------- Accessibility: high contrast -------------- */
.testimonial-card {
  background: #F6F1E7;
  color: #223359!important;
}
.testimonial-card p {
  color: #223359 !important;
}
.testimonial-card span {
  color: #151d26!important;
}

/* ----------- Utility: hide visually but keep accessible ----------- */
.visually-hidden { position: absolute!important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
