/* ===== 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;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #F5F7FA;
  color: #1A2536;
  min-height: 100vh;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}
:focus {
  outline: 2px solid #1DC367;
  outline-offset: 2px;
}

/* ===== BRAND COLORS AS CSS VARIABLES ===== */
:root {
  --primary: #16456B;
  --primary-dark: #102C49;
  --secondary: #F5F7FA;
  --secondary-dark: #E3E8EF;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --accent: #1DC367;
  --accent2: #179F52;
  --danger: #FC4242;
  --neon: #05E8FA;
  --neon-bg: #1e2535;
  --shadow-dark: 0 6px 32px 0 rgba(22, 69, 107, 0.13);
  --shadow-card: 0 2px 16px rgba(22, 69, 107, 0.12);
  --text-dark: #1A2536;
  --text-light: #fff;
}

/* ====== CONTAINER & STRUCTURE ====== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
}

/* ====== HEADER & NAVIGATION ====== */
header {
  background: var(--primary);
  color: var(--text-light);
  width: 100%;
  position: relative;
  box-shadow: 0 2px 14px rgba(22,69,107,0.08);
  z-index: 40;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 24px;
}
header a img {
  width: 154px;
  height: auto;
}
header nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: var(--text-light);
  padding: 8px 16px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
header nav a:not(.cta-btn):hover,
header nav a:not(.cta-btn):focus {
  background: rgba(29,195,103,0.14);
  color: var(--accent);
}
.cta-btn {
  background: var(--accent);
  color: var(--text-light) !important;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 16px;
  border: none;
  padding: 9px 26px;
  border-radius: 32px;
  box-shadow: 0 2px 18px rgba(29,195,103,0.15);
  margin-left: 10px;
  position: relative;
  transition: background 0.22s, box-shadow 0.25s, color 0.2s;
  outline: none;
}
.cta-btn:after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--neon);
  border-radius: 34px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.cta-btn:hover,
.cta-btn:focus {
  background: var(--accent2);
  color: #fff;
  box-shadow: 0 4px 32px 0 var(--accent2), 0 0 8px 2px var(--neon);
}
.cta-btn:hover:after,
.cta-btn:focus:after {
  opacity: 1;
}

.mobile-menu-toggle {
  background: rgba(29,195,103,0.09);
  color: var(--accent);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
  z-index: 100;
  border: 2px solid var(--accent);
  transition: background .17s, color .22s, border .18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--accent);
  color: #fff;
  border-color: var(--neon);
}

/* MOBILE MENU STYLES */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, var(--primary-dark) 75%, var(--accent) 100%);
  color: var(--text-light);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transition: transform 0.38s cubic-bezier(.77,.28,.38,.93);
  padding: 28px 24px 24px 24px;
  box-shadow: 8px 0 32px 0 rgba(22,69,107,0.21);
  min-width: 60vw;
}
.mobile-menu.active {
  transform: translateX(0%);
}
.mobile-menu-close {
  align-self: flex-end;
  color: var(--accent);
  background: transparent;
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 24px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.17s, border 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--accent);
  color: #fff;
  border-color: var(--neon);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin-top: 8px;
}
.mobile-nav a {
  color: #fff;
  font-size: 20px;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 12px 6px;
  margin: 0;
  border-radius: 6px;
  transition: background .18s, color .16s;
  letter-spacing: 0.01em;
  min-width: 120px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(29,195,103,0.19);
  color: var(--accent);
}

/* ====== HERO & MAIN SECTIONS ====== */
.hero {
  background: linear-gradient(120deg, #142A49 65%, var(--neon-bg) 100%);
  color: #fff;
  min-height: 310px;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  padding: 36px 0 46px 0;
  box-shadow: var(--shadow-dark);
  position: relative;
  overflow: hidden;
}
.hero .container {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 600px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.012em;
  color: var(--neon);
  text-shadow: 0 0 10px var(--accent2), 0 2px 20px #05e8fa77;
  margin-bottom: 8px;
}
.hero p {
  color: #defaff;
  font-size: 1.10rem;
  letter-spacing: 0.01em;
}

/* ====== GENERIC SECTIONS & SPACING ====== */
section {
  background: transparent;
  margin-bottom: 60px;
  padding: 40px 20px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 18px;
}
.features-grid > div {
  background: var(--secondary);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  flex: 1 1 210px;
  min-width: 215px;
  max-width: 285px;
  padding: 30px 20px 22px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  position: relative;
  transition: box-shadow 0.25s, transform 0.12s;
}
.features-grid > div:hover {
  box-shadow: 0 4px 32px 0 var(--accent);
  transform: translateY(-6px) scale(1.027);
  border-color: var(--accent);
}
.features-grid img {
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 10px #05E8FA88);
}
.features-grid h3 {
  font-family: var(--font-display);
  font-size: 1.13rem;
  font-weight: 700;
  color: #05E8FA;
}
.features-grid p {
  font-size: 1rem;
  color: #fff;
}

ol, ul {
  padding-left: 24px;
  margin-top: 8px;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 1rem;
}
ol li, ul li {
  margin-bottom: 12px;
  line-height: 1.7;
}

/* ====== TESTIMONIALS ====== */
.testimonials-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 24px rgba(16,44,73,0.09);
  min-width: 240px;
  max-width: 350px;
  flex: 1 1 250px;
  margin-bottom: 20px;
  position: relative;
  border-left: 4px solid var(--accent);
}
.testimonial-card p {
  color: #25394C;
  font-size: 1.05rem;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
}
.testimonial-card span {
  color: var(--primary);
  font-size: 0.97rem;
  font-family: var(--font-display);
  font-weight: 700;
  display: block;
  margin-top: 4px;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(90deg, var(--primary) 55%, #05E8FA 110%);
  color: #fff;
  border-radius: 20px;
  margin-bottom: 0;
  margin-top: 48px;
  box-shadow: 0 2px 32px 0 #05e8fa33, 0 0 16px 2px var(--neon-bg);
  border: 2.5px solid var(--accent2);
}
.cta-section .content-wrapper {
  align-items: center;
  gap: 16px;
  padding-bottom: 0;
}
.cta-section h2 {
  color: var(--neon);
  font-family: var(--font-display);
  letter-spacing: 0.003em;
  font-size: 2rem;
  text-shadow: 0 0 10px var(--accent2), 0 2px 32px #05e8fa5d;
  text-align: center;
}
.cta-section p {
  font-size: 1.12rem;
  text-align: center;
  color: #defffa;
  letter-spacing: 0.01em;
}
.cta-section .cta-btn {
  margin-top: 10px;
  font-size: 1.15rem;
}

/* ===== FOOTER ===== */
footer {
  background: var(--primary-dark);
  color: #e0fcff;
  font-size: 0.99rem;
  margin-top: 68px;
  padding-top: 34px;
  padding-bottom: 32px;
  box-shadow: 0 -2px 12px rgba(16,44,73,0.05);
}
footer .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 18px;
}
footer nav a {
  color: #e0fcff;
  font-family: var(--font-display);
  padding: 5px 8px;
  border-radius: 5px;
  transition: background 0.18s, color 0.16s;
  font-size: 0.99rem;
}
footer nav a:hover, footer nav a:focus {
  background: rgba(29,195,103,0.17);
  color: var(--accent);
}
footer img {
  width: 45px;
  height: 45px;
}
footer p {
  color: #A3E4D7;
  margin-top: 16px;
  font-size: 0.93rem;
}

/* ===== TITLES / TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: #05E8FA;
  margin-bottom: 12px;
  font-weight: 800;
}
h1 { font-size: 2rem; letter-spacing:-0.01em; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.13rem; }

p, li, ul, ol {
  font-family: var(--font-body);
  color: #F5F7FA;
  font-size: 1rem;
  margin-bottom: 0;
}
strong {
  font-weight: bold;
  color: #fff;
}

em {
  color: var(--accent2);
}

/* ===== CARDS, SECTIONS, FEATURES PATTERNS ===== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 14px;
  padding: 26px 22px;
  box-shadow: var(--shadow-card);
  position: relative;
  display: flex;
  flex-direction: column;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===== FORM ELEMENTS, TABLES ===== */
input, textarea, select {
  background: #f7fafd;
  border: 2px solid #cedcf3;
  border-radius: 7px;
  font-size: 1rem;
  padding: 11px 15px;
  font-family: var(--font-body);
  margin-bottom: 16px;
  transition: border .18s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  outline: none;
}

/* ===== BUTTONS ===== */
button, .btn {
  background: var(--accent);
  color: #fff;
  border-radius: 32px;
  padding: 10px 30px;
  border: none;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 20px rgba(29,195,103,0.13);
  cursor: pointer;
  transition: background .2s, box-shadow .22s, color 0.19s;
  margin-top: 10px;
  min-width: 110px;
}
button:hover, .btn:hover, button:focus, .btn:focus {
  background: var(--accent2);
  color: #fff;
  box-shadow: 0 6px 24px 0 var(--accent2), 0 0 12px 2px var(--neon);
}

/* ===== BLOG / FEATURED POST ===== */
.featured-post-section {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 18px #16456b13;
  padding: 24px 18px;
  margin-top: 20px;
  margin-bottom: 20px;
  border-left: 4px solid var(--accent2);
}

/* ===== TABLE ===== */
table {
  width: 100%;
  background: #fff;
  border-collapse: collapse;
  box-shadow: 0 2px 16px #16456b13;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}
th, td {
  padding: 13px 14px;
  text-align: left;
}
th {
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
}
td {
  background: #f6fbfc;
  color: #1A2536;
  font-size: 1rem;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: var(--neon-bg);
  color: #fff;
  box-shadow: 0 -4px 32px 2px rgba(3,212,255,0.14);
  padding: 22px 8vw 16px 5vw;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-top: 3px solid var(--accent2);
  animation: cookie-slide-in 0.8s cubic-bezier(.6,.51,.33,1.01);
}
@keyframes cookie-slide-in {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner-text {
  color: #fff;
  font-size: 1.04rem;
  font-family: var(--font-body);
  flex: 1 1 auto;
}
.cookie-btn-group {
  display: flex;
  gap: 10px;
}
.cookie-banner button,
.cookie-banner .btn {
  margin: 0 2px;
  font-size: .98rem;
  padding: 9px 22px;
  background: var(--accent2);
  color: #fff;
  border-radius: 8px;
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  transition: background 0.17s, color 0.17s, box-shadow .25s;
  box-shadow: 0 2px 10px #1dc36717;
}
.cookie-banner .btn-reject {
  background: var(--danger);
}
.cookie-banner .btn-settings {
  background: var(--primary-dark);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 8px #05e8fa55;
}
.cookie-banner .btn-reject:hover, .cookie-banner .btn-reject:focus {
  background: #AF2222;
}
.cookie-banner .btn-settings:hover,.cookie-banner .btn-settings:focus {
  background: #1E2535;
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(13,21,31,0.84);
  z-index: 10001;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: modalfadein 0.33s;
}
@keyframes modalfadein {
  0% { opacity: 0; } 100% { opacity: 1; }
}
.cookie-modal-content {
  background: #142A49;
  color: #fff;
  border-radius: 17px;
  box-shadow: 0 8px 60px #2ae4dc24;
  padding: 34px 24px;
  width: 95vw;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  position: relative;
}
.cookie-modal-content h2 {
  color: var(--neon); font-size: 1.40rem;
}
.cookie-modal-content label {
  font-size: 1.08rem;
  margin-bottom: 8px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-toggle {
  appearance: none;
  width: 38px; height: 20px;
  background: #3bbff0;
  border-radius: 20px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background .19s;
}
.cookie-toggle:checked {
  background: var(--accent);
}
.cookie-toggle:after {
  content: '';
  position: absolute;
  top: 2.5px; left: 3px;
  width: 15px; height: 15px;
  background: #fff;
  border-radius: 50%;
  transition: transform .18s;
  box-shadow: 0 1px 3px #0002;
}
.cookie-toggle:checked:after {
  transform: translateX(18px);
}
.cookie-modal-content .btn-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  width: 100%;
  justify-content: flex-end;
}
.cookie-modal-content .close-modal {
  position: absolute;
  top: 10px; right: 12px;
  background: transparent;
  border: none;
  font-size: 1.23rem;
  color: var(--accent);
  padding: 4px 8px;
  border-radius: 6px;
  transition: background .13s;
}
.cookie-modal-content .close-modal:hover,.cookie-modal-content .close-modal:focus {
  background: #163359;
}


/* ===== ANIMATIONS & MICRO-INTERACTIONS ===== */
a, button, .card, .cta-btn, .testimonial-card, .features-grid > div {
  transition: box-shadow 0.18s, transform 0.14s, background 0.15s, color 0.16s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px 0 var(--accent2), 0 0 12px 2px var(--neon);
  transform: translateY(-5px) scale(1.035);
}

input:focus {
  box-shadow: 0 0 0 2px var(--accent2);
}

/* ===== RESPONSIVE MEDIA QUERIES ===== */
@media (max-width: 1100px) {
  .container { padding: 0 18px; }
}
@media (max-width: 900px) {
  .features-grid { justify-content: center; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  header .container, footer .container {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .hero .container {
    flex-direction: column;
    gap: 0;
  }
  section {
    padding: 28px 8px;
  }
  .features-grid, .testimonials-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card, .features-grid > div {
    min-width: 0;
    max-width: none;
    width: 100%;
  }
  .cta-section {
    border-radius: 10px;
    padding: 6px 3px;
  }
  .mobile-menu {
    min-width: 100vw;
    padding: 22px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    padding: 22px 18px 14px 18px;
    font-size: 0.99rem;
  }
}
@media (max-width: 550px) {
  html { font-size: 14px; }
  .hero {
    min-height: 210px;
    padding: 18px 0 28px 0;
    border-radius: 0 0 16px 16px;
  }
  .cta-section {
    margin-top: 24px;
    margin-bottom: 0;
    padding: 0;
  }
  .cookie-modal-content {
    padding: 23px 7px;
    max-width: 98vw;
  }
}

/* ===== CLASSES FROM HTML (FOR SAFETY) ===== */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body {
  background: #101C2B;
  color: #E0FCFF;
}
section,
.card,
.testimonial-card,
.featured-post-section {
  background: #182E42;
  color: #f8fdff;
}
.features-grid>div {
  background: #192843;
  color: #fff;
}
.cookie-banner {
  background: #131D2B;
  color: #fff;
}
.cookie-modal-content {
  background: #1A2639;
  color: #fff;
}

/* ===== ACCESSIBILITY: Improved CONTRAST for reviews/testimonials ===== */
.testimonial-card, .testimonial-card p, .testimonial-card span {
  background: #fff;
  color: #1A2536;
}

/* ===== FONT IMPORTS (fallback for browsers that support @import) ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Open+Sans:wght@400;600;700&display=swap');
