/* --- CSS RESET / NORMALIZE --- */
html {
  box-sizing: border-box;
  font-size: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #F5F6FA;
  color: #103754;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  margin-left: 1.7em;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 8px;
}
a {
  color: #103754;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #55A3B8;
  text-decoration: underline;
}

/* ----------- BASE CONTAINER & UTILS ----------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(16,55,84,0.05);
}

/* Feature cards grid */
.features-grid, .card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature, .card {
  background: #F5F6FA;
  border-radius: 12px;
  padding: 24px 20px;
  flex: 1 1 240px;
  min-width: 220px;
  margin-bottom: 20px;
  transition: box-shadow 0.25s, transform 0.25s;
  box-shadow: 0 2px 8px rgba(16,55,84, 0.07);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature:hover, .card:hover {
  box-shadow: 0 8px 30px rgba(16,55,84,0.12);
  transform: translateY(-4px) scale(1.016);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ------------ TYPOGRAPHY ------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #103754;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 22px;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.2rem;
}
p, li {
  font-size: 1rem;
  color: #234361;
}
strong {
  color: #103754;
}
blockquote {
  font-style: italic;
  color: #103754;
  border-left: 4px solid #55A3B8;
  padding-left: 14px;
  margin: 0 0 10px 0;
  background: transparent;
}

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

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* -------- BUTTONS -------- */
.btn-primary {
  display: inline-block;
  background: #103754;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 13px 32px;
  border-radius: 24px;
  border: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.13s;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(16,55,84,0.08);
  margin-top: 10px;
  letter-spacing: 0.02em;
}
.btn-primary:hover, .btn-primary:focus {
  background: #55A3B8;
  color: #103754;
  box-shadow: 0 4px 20px rgba(85,163,184,0.16);
  transform: translateY(-2px) scale(1.03);
}

.btn-secondary {
  display: inline-block;
  background: #fff;
  color: #103754;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 28px;
  border: 2px solid #103754;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  margin-top: 10px;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #F5F6FA;
  color: #55A3B8;
  border-color: #55A3B8;
}

/* ----------- NAVIGATION ----------- */
header {
  background: #fff;
  box-shadow: 0 4px 16px rgba(16,55,84,0.06);
  position: sticky;
  top: 0;
  z-index: 80;
  width: 100%;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 20px;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.main-nav img {
  height: 42px;
  width: auto;
  margin-right: 18px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #103754;
  font-weight: 500;
  padding: 9px 0;
  border-radius: 4px;
  transition: background 0.16s, color 0.16s;
}
.main-nav a.btn-primary {
  margin-left: 16px;
  padding: 10px 24px;
  border-radius: 20px;
  color: white;
}
.main-nav a:not(.btn-primary):hover, .main-nav a:not(.btn-primary):focus {
  background: #F5F6FA;
  color: #55A3B8;
}

/* Hide mobile nav on desktop */
.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  display: none;
}

/* ----------- HERO SECTION ----------- */
.hero {
  background: #F5F6FA;
  margin-bottom: 60px;
  padding: 60px 0 45px 0;
  text-align: left;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start; 
  gap: 0;
}
.hero h1 {
  font-size: 2.7rem;
  margin-bottom: 20px;
  color: #103754;
}
.hero p {
  font-size: 1.21rem;
  color: #234361;
  margin-bottom: 26px;
}
.hero .btn-primary {
  margin-bottom: 10px;
  margin-top: 0px;
}

/* ----------- CTA BANNER ----------- */
.cta-banner {
  background: #55A3B8;
  color: #fff;
  border-radius: 18px;
  padding: 40px 0;
  box-shadow: 0 8px 32px rgba(16,55,84,0.05);
  margin-bottom: 60px;
}
.cta-banner .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-banner h2 {
  color: #fff;
  margin-bottom: 20px;
}
.cta-banner p, .cta-banner .text-section strong {
  color: #fff;
}
.cta-banner .btn-primary {
  background: #fff;
  color: #103754;
  border: none;
  box-shadow: 0 2px 8px rgba(255,255,255,0.11);
  margin-bottom: 10px;
}
.cta-banner .btn-primary:hover, .cta-banner .btn-primary:focus {
  background: #F5F6FA;
  color: #55A3B8;
}

/* ----------- TESTIMONIALS ----------- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(16,55,84,0.08);
  margin-bottom: 20px;
  position: relative;
}
.testimonial-card blockquote {
  color: #103754;
  background: transparent;
  font-size: 1.12rem;
  border-left: 4px solid #55A3B8;
  margin-bottom: 7px;
  padding-left: 13px;
}
.testimonial-card p {
  color: #234361;
  margin-left: 8px;
  font-style: italic;
}

/* ----------- FOOTER ----------- */
footer {
  background: #fff;
  border-top: 1px solid #E5EAF0;
  padding: 32px 20px 22px 20px;
  margin-top: 42px;
  font-size: 0.97rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #103754;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #55A3B8;
  text-decoration: underline;
}
footer p {
  color: #9BA6B2;
  margin-top: 8px;
  letter-spacing: 0.01em;
}

/* ----------- CONTENT FLEXBOX UTILITY LAYOUTS ----------- */
.card-container, .features-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.content-grid {
  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;
}
/* Spacing patterns from requirements */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.testimonial-card {
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
}

/* ----------- MOBILE FIRST RESPONSIVENESS ----------- */
@media (max-width: 1024px) {
  .main-nav {
    gap: 14px;
    padding: 16px 10px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 95vw;
  }
  .features-grid, .card-container, .content-grid {
    gap: 14px;
  }
  .footer-nav {
    gap: 12px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 14px;
    z-index: 105;
    background: none;
    border: none;
    font-size: 2rem;
    color: #103754;
    cursor: pointer;
    padding: 3px 12px;
    border-radius: 7px;
    transition: background 0.16s;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: #F5F6FA;
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    z-index: 2000;
    background: #fff;
    transform: translateX(100vw);
    transition: transform 0.33s cubic-bezier(.85,.1,.12,.98);
    box-shadow: -8px 0 24px rgba(16,55,84,0.09);
    overflow-y: auto;
  }
  .mobile-menu.open {
    transform: translateX(0);
  }
  .mobile-menu-close {
    background: none;
    border: none;
    font-size: 2.2rem;
    color: #103754;
    align-self: flex-end;
    margin: 18px 22px 0 0;
    cursor: pointer;
    border-radius: 9px;
    padding: 2px 16px;
    transition: background 0.16s;
  }
  .mobile-menu-close:hover, .mobile-menu-close:focus {
    background: #F5F6FA;
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin: 32px 30px;
  }
  .mobile-nav a {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-size: 1.1rem;
    color: #103754;
    font-weight: 500;
    padding: 13px 0;
    border-radius: 6px;
    width: 100%;
    display: block;
    margin-bottom: 2px;
    transition: background 0.17s, color 0.16s;
  }
  .mobile-nav a:hover, .mobile-nav a:focus {
    background: #F5F6FA;
    color: #55A3B8;
  }
  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .hero {
    padding-top: 36px;
    padding-bottom: 20px;
    text-align: left;
  }
  .cta-banner {
    padding: 26px 0;
    text-align: left;
  }
  .features-grid, .card-container, .content-grid, .testimonial-list {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .content-wrapper {
    gap: 22px;
  }
  .section {
    padding: 25px 8px;
    margin-bottom: 36px;
  }
  .testimonial-card {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.18rem; }
  .btn-primary, .btn-secondary { padding: 10px 18px; font-size: 0.98rem; }
  .section { padding: 18px 3px; }
}

/* --------- COOKIE CONSENT BANNER & MODAL --------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4000;
  background: #103754;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px 18px 26px;
  box-shadow: 0 -2px 18px rgba(16,55,84,.13);
  font-size: 1rem;
  border-radius: 18px 18px 0 0;
  transition: transform 0.28s cubic-bezier(0.6,0.12,0.16,1), opacity 0.19s;
}
.cookie-banner.hide {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner__text {
  flex: 1 1 auto;
  padding-right: 10px;
  font-size: 0.99rem;
}
.cookie-banner__actions {
  display: flex;
  gap: 12px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  padding: 10px 20px;
  border-radius: 18px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s, color 0.16s, box-shadow 0.14s;
  outline: none;
}
.cookie-banner .btn-accept {
  background: #55A3B8;
  color: #fff;
  box-shadow: 0 1px 7px rgba(85,163,184,0.09);
}
.cookie-banner .btn-accept:hover, .cookie-banner .btn-accept:focus {
  background: #fff;
  color: #103754;
}
.cookie-banner .btn-reject {
  background: #fff;
  color: #234361;
  border: 2px solid #E5EAF0;
}
.cookie-banner .btn-reject:hover, .cookie-banner .btn-reject:focus {
  background: #F5F6FA;
  color: #103754;
}
.cookie-banner .btn-settings {
  background: transparent;
  color: #fff;
  border: 2px solid #55A3B8;
}
.cookie-banner .btn-settings:hover, .cookie-banner .btn-settings:focus {
  background: #55A3B8;
  color: #fff;
}

/* Cookie modal overlay */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 5000;
  background: rgba(16,55,84,0.19);
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.show {
  display: flex;
  animation: fadeInOverlay 0.3s;
}
@keyframes fadeInOverlay { from { opacity: 0; } to { opacity: 1; } }

.cookie-modal {
  background: #fff;
  color: #103754;
  border-radius: 18px;
  max-width: 410px;
  width: 96vw;
  padding: 36px 26px 26px 26px;
  box-shadow: 0 8px 50px 0 rgba(16,55,84,0.19);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: scaleinModal 0.33s cubic-bezier(0.6,0,0.21,1.05);
}
@keyframes scaleinModal { from { transform: scale(0.93); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.cookie-modal h2 {
  margin-bottom: 8px;
  font-size: 1.32rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}
.cookie-category label {
  font-size: 1rem;
  color: #234361;
}
.cookie-toggle {
  appearance: none;
  width: 36px;
  height: 22px;
  border-radius: 14px;
  background: #E5EAF0;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.16s;
}
.cookie-toggle:checked {
  background: #55A3B8;
}
.cookie-toggle:before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.17s;
}
.cookie-toggle:checked:before {
  left: 16px;
}
.cookie-modal .btn-primary {
  margin-top: 10px;
  align-self: flex-end;
}
.cookie-modal .btn-cancel {
  background: none;
  color: #103754;
  border: none;
  font-size: 0.98rem;
  margin-top: 10px;
  margin-right: 14px;
  cursor: pointer;
  text-decoration: underline;
}
.cookie-modal .btn-cancel:hover, .cookie-modal .btn-cancel:focus {
  color: #55A3B8;
}
@media (max-width: 480px) {
  .cookie-modal {
    max-width: 99vw;
    padding: 22px 10px 14px 10px;
  }
}

/* --------- MICRO-INTERACTIONS & TRANSITIONS --------- */
.btn-primary, .btn-secondary, .cookie-banner button {
  transition: background 0.18s, color 0.17s, box-shadow 0.15s, transform 0.19s;
}
.feature, .card, .testimonial-card {
  transition: box-shadow 0.22s, transform 0.20s;
}

/* -------- SELECTION & SCROLLBAR -------- */
::-moz-selection { background: #55A3B8; color: #fff; }
::selection { background: #55A3B8; color: #fff; }
::-webkit-scrollbar {
  width: 8px;
  background: #F5F6FA;
}
::-webkit-scrollbar-thumb {
  background: #E5EAF0;
  border-radius: 5px;
}

/* --- NATIVE FOCUS OUTLINE FOR ACCESSIBILITY --- */
a:focus, button:focus, input:focus, .btn-primary:focus, .btn-secondary:focus {
  outline: 2px dashed #55A3B8;
  outline-offset: 4px;
}

/* --- END CSS --- */
