/* ==== CSS RESET & BASE ==== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: #0C3A5C;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  border: 0;
  display: inline-block;
}
a {
  color: #0C3A5C;
  text-decoration: none;
  transition: color .18s;
}
a:hover, a:focus {
  color: #53ADC8;
}
ul, ol {
  margin: 0 0 16px 0;
  padding-left: 24px;
}
ul {
  list-style: disc outside;
}
li {
  margin-bottom: 8px;
}
button {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border: none;
  background: none;
  outline: none;
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .18s;
}
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid #C8DAEA;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 16px;
  background: #FFF;
  color: #0C3A5C;
  width: 100%;
  resize: vertical;
  transition: border .18s;
}
input:focus, textarea:focus {
  border: 1.5px solid #53ADC8;
  outline: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  margin-bottom: 16px;
  margin-top: 0;
  color: #0C3A5C;
  line-height: 1.18;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.75rem;
}
h3 {
  font-size: 1.25rem;
}
.section h2 {
  margin-bottom: 32px;
}

small {
  font-size: 0.92rem;
  color: #4B6888;
}
strong {
  font-weight: 600;
  color: #0C3A5C;
}

/* ==== SPACING & CONTAINERS ==== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 900px) {
  .content-wrapper {
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
  }
}

.text-section {
  flex: 1 1 0;
  min-width: 220px;
  margin-bottom: 12px;
}
/* Prevent overflow on long paragraphs */
.text-section p {
  margin-bottom: 14px;
}


/* === HEADER & NAVIGATION === */
header {
  background: #fff;
  border-bottom: 1.5px solid #E5F3FD;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 98;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 16px;
}
header img {
  height: 44px;
  width: auto;
  display: block;
}
/* Desktop Main Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.main-nav a {
  padding: 7px 12px;
  border-radius: 5px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #0C3A5C;
  transition: background .13s, color .13s;
  position: relative;
}
.main-nav a.button {
  margin-left: 8px;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #53ADC8;
  background: #E5F3FD;
}
/* Hide burger by default */
.mobile-menu-toggle {
  display: none;
}

/* === MOBILE NAVIGATION === */
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #53ADC8;
    color: #fff;
    font-size: 2rem;
    border: none;
    border-radius: 8px;
    width: 42px;
    height: 42px;
    box-shadow: 0 2px 6px rgba(83,173,200,0.08);
    transition: background .2s;
    z-index: 110;
  }
  .mobile-menu-toggle:hover,
  .mobile-menu-toggle:focus {
    background: #0C3A5C;
    color: #fff;
  }
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  transform: translateX(-100%);
  transition: transform .33s cubic-bezier(.77,0,.175,1);
  box-shadow: 0 0 0 rgba(0,0,0,0);
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 0 0 26px 2px rgba(12,58,92,0.06);
}
.mobile-menu-close {
  align-self: flex-end;
  background: #53ADC8;
  color: #fff;
  font-size: 2.1rem;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  margin: 12px 16px 16px 0;
  box-shadow: 0 2px 10px rgba(83,173,200,0.09);
  transition: background .15s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #0C3A5C;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  padding: 0 0 0 28px;
}
.mobile-nav a {
  padding: 18px 0;
  font-size: 1.19rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #0C3A5C;
  border-bottom: 1px solid #E5F3FD;
  width: 100%;
}
.mobile-nav a.button {
  margin-top: 20px;
  width: 85vw;
  border-radius: 8px;
  background: #53ADC8;
  color: #fff;
  text-align: center;
  display: inline-block;
  font-weight: 600;
  letter-spacing: .01em;
}
.mobile-nav a.active, .mobile-nav a:hover, .mobile-nav a:focus {
  color: #53ADC8;
  background: #E5F3FD;
}

@media (min-width: 901px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ===== BUTTONS ===== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border-radius: 7px;
  padding: 12px 28px;
  border: none;
  cursor: pointer;
  opacity: 1;
  text-align: center;
  text-decoration: none;
  font-size: 1.065rem;
  letter-spacing: .01em;
  transition: background .15s, color .13s, box-shadow .18s;
  box-shadow: 0 2px 8px rgba(83,173,200,0.05);
  margin-bottom: 12px;
}
.button.primary {
  background: #0C3A5C;
  color: #fff;
  border: 2px solid #0C3A5C;
}
.button.primary:hover, .button.primary:focus {
  background: #53ADC8;
  color: #fff;
  border-color: #53ADC8;
  box-shadow: 0 4px 18px rgba(12,58,92,0.08);
}
.button.secondary {
  background: #53ADC8;
  color: #fff;
  border: 2px solid #53ADC8;
}
.button.secondary:hover, .button.secondary:focus {
  background: #0C3A5C;
  color: #fff;
  border-color: #0C3A5C;
  box-shadow: 0 3px 12px rgba(83,173,200,0.09);
}
.button.tertiary {
  background: #E5F3FD;
  color: #0C3A5C;
  border: 2px solid #E5F3FD;
}
.button.tertiary:hover, .button.tertiary:focus {
  background: #53ADC8;
  color: #fff;
  border-color: #53ADC8;
}


/* ========== HERO SECTIONS ========== */
.hero,
.confirmation {
  background: #E5F3FD;
  border-radius: 20px;
  box-shadow: 0 4px 40px rgba(83,173,200,0.09);
  margin-top: 0;
}
.hero .container, .confirmation .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  min-height: 280px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.hero h1, .confirmation h1 {
  font-size: 2.3rem;
  color: #0C3A5C;
  font-weight: 700;
  margin-bottom: 22px;
  margin-top: 0;
}
.hero p, .confirmation p {
  font-size: 1.18rem;
  color: #163D57;
  margin-bottom: 18px;
}


/* ========== FLEXBOX LAYOUTS ========== */
.features .content-wrapper,
.services .content-wrapper,
.blog-list .content-wrapper,
.testimonials .content-wrapper,
.cta .content-wrapper,
.legal .content-wrapper,
.contact .content-wrapper,
.about .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  margin-top: 26px;
}
@media (max-width: 768px) {
  .features .content-wrapper,
  .services .content-wrapper,
  .blog-list .content-wrapper,
  .testimonials .content-wrapper,
  .cta .content-wrapper,
  .legal .content-wrapper,
  .contact .content-wrapper,
  .about .content-wrapper {
    flex-direction: column;
    gap: 18px;
  }
}

/* ===== CARD LAYOUTS ===== */
.service-card,
.blog-post-preview {
  background: #fff;
  border: 1.5px solid #E5F3FD;
  border-radius: 11px;
  box-shadow: 0 2px 10px rgba(12,58,92,0.05), 0 2px 24px rgba(83,173,200,0.03);
  padding: 28px 22px 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 230px;
  flex: 1 1 280px;
  margin-bottom: 20px;
  gap: 10px;
  transition: box-shadow .19s;
}
.service-card {
  max-width: 330px;
}
.service-card:hover, .blog-post-preview:hover {
  box-shadow: 0 6px 32px rgba(12,58,92,0.13);
}
.service-card h3, .blog-post-preview h3 {
  color: #0C3A5C;
  font-size: 1.22rem;
}
.service-card span {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #53ADC8;
  margin: 8px 0 0 0;
  font-weight: 600;
}
.blog-post-preview p {
  font-size: 1.06rem;
  color: #21456D;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 14px rgba(12,58,92,0.06);
  margin-bottom: 20px;
  position: relative;
}


/* ========== TESTIMONIALS ========== */
.testimonials .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border: 1.5px solid #E5F3FD;
  border-radius: 13px;
  box-shadow: 0 4px 14px rgba(12,58,92,0.09);
  padding: 28px 22px;
  min-width: 250px;
  max-width: 370px;
  margin-bottom: 20px;
  gap: 20px;
  color: #0C3A5C;
  position: relative;
  font-size: 1.05rem;
  transition: box-shadow .2s;
}
.testimonial-card blockquote {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  color: #0C3A5C;
  font-size: 1.08rem;
  margin: 0 0 14px 0;
  line-height: 1.55;
  quotes: "\201C" "\201D";
  position: relative;
}
.testimonial-card blockquote:before {
  content: open-quote;
  color: #53ADC8;
  font-size: 2rem;
  line-height: 0;
  padding-right: 2px;
  vertical-align: -20%;
}
.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.98rem;
  color: #21456D;
}
.testimonial-meta span:first-child {
  color: #53ADC8;
  font-size: 1.05rem;
  letter-spacing: 0.15em;
}


/* ========== CTA (CALL TO ACTION) ========== */
.cta {
  background: #E5F3FD;
  border-radius: 13px;
  box-shadow: 0 4px 35px rgba(12,58,92,0.07);
}
.cta .content-wrapper {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.cta h2 {
  margin-top: 0;
}


/* ========== FEATURES LISTS ========== */
.features .content-wrapper ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.features .content-wrapper li {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(83,173,200,0.04);
  padding: 12px 18px;
  font-size: 1.055rem;
  color: #0C3A5C;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}
.features .content-wrapper img {
  width: 30px;
  height: 30px;
  display: inline-block;
}

/* ========== BLOG ========== */
.blog-post-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 8px;
}
.categories-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.categories-filter span {
  font-size: 1rem;
  color: #21456D;
}
.categories-filter a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 0.97rem;
  color: #0C3A5C;
  background: #E5F3FD;
  border-radius: 7px;
  padding: 6px 17px;
  margin-right: 0;
  transition: background .13s, color .13s;
}
.categories-filter a.active, .categories-filter a:hover, .categories-filter a:focus {
  background: #53ADC8;
  color: #fff;
}


/* ========== LEGAL/TEXT BLOCKS ========== */
.legal .content-wrapper {
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.legal h1 {
  margin-bottom: 20px;
}
.legal h2 {
  font-size: 1.19rem;
  margin: 18px 0 12px 0;
}
.legal ul, .legal ol {
  margin-bottom: 20px;
  padding-left: 28px;
}

/* ========== CONTACT PAGE ========== */
.contact .content-wrapper {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
}
.contact .text-section {
  min-width: 220px;
  margin-bottom: 24px;
}
.contact a {
  color: #53ADC8;
}
.contact a:hover, .contact a:focus {
  text-decoration: underline;
}

/* ========== FOOTER ========== */
footer {
  background: #0C3A5C;
  color: #fff;
  font-size: 1rem;
  padding-top: 40px;
  padding-bottom: 40px;
  margin-top: 30px;
  border-top: 1.5px solid #E5F3FD;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav, .legal-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a, .legal-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 0;
  margin: 0;
  opacity: 0.86;
  transition: color .14s;
}
.footer-nav a:hover, .legal-nav a:hover {
  color: #53ADC8;
  opacity: 1;
}
.footer-contact {
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #fff;
}
.footer-contact img {
  height: 18px;
  width: 18px;
  margin-right: 6px;
  vertical-align: middle;
}
.footer-contact a {
  color: #53ADC8;
}
.footer-contact a:hover {
  text-decoration: underline;
}
.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}
.footer-social a {
  display: inline-flex;
}
.footer-social img {
  width: 26px;
  height: 26px;
  filter: grayscale(40%) brightness(1.32);
  transition: filter .18s;
  opacity: 0.82;
}
.footer-social a:hover img {
  filter: grayscale(0%) brightness(1.06);
  opacity: 1;
}
.brand-tagline {
  margin-top: 24px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  opacity: 0.74;
  color: #E5F3FD;
}

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 26px;
    align-items: flex-start;
    text-align: left;
  }
  .footer-social {
    margin-bottom: 0;
  }
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: #fff;
  color: #0C3A5C;
  box-shadow: 0 -4px 36px rgba(83,173,200,0.13);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  justify-content: center;
  z-index: 299;
  padding: 22px 16px;
  font-size: 1.09rem;
  transition: transform .28s cubic-bezier(.77,0,.175,1);
  border-radius: 18px 18px 0 0;
}
.cookie-consent-banner.hidden {
  transform: translateY(120%);
  pointer-events: none;
}
.cookie-consent-banner .consent-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-left: 18px;
}
.cookie-consent-banner .button {
  min-width: 90px;
  font-size: 1rem;
  border-radius: 6px;
  box-shadow: none;
  padding: 8px 21px;
  margin: 0 2px;
}
.cookie-consent-banner .button.accept {
  background: #0C3A5C;
  color: #fff;
  border: 1.5px solid #0C3A5C;
}
.cookie-consent-banner .button.accept:hover {
  background: #53ADC8;
  border-color: #53ADC8;
  color: #fff;
}
.cookie-consent-banner .button.reject {
  background: #fff;
  color: #53ADC8;
  border: 1.5px solid #53ADC8;
}
.cookie-consent-banner .button.reject:hover {
  background: #53ADC8;
  color: #fff;
}
.cookie-consent-banner .button.settings {
  background: #E5F3FD;
  color: #0C3A5C;
  border: 1.5px solid #E5F3FD;
}
.cookie-consent-banner .button.settings:hover {
  background: #53ADC8;
  color: #fff;
  border-color: #53ADC8;
}
@media (max-width: 700px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 24px 8px 22px 8px;
    font-size: 1rem;
  }
  .cookie-consent-banner .consent-actions {
    margin-left: 0;
    flex-wrap: wrap;
  }
}

/* ==== COOKIE MODAL ==== */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(12,58,92,0.13);
  z-index: 410;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity .22s;
}
.cookie-modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  color: #0C3A5C;
  border-radius: 14px;
  box-shadow: 0 16px 44px rgba(12,58,92,0.13);
  padding: 34px 28px 26px 28px;
  min-width: 320px;
  max-width: 98vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 25px;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.29rem;
  margin-bottom: 18px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
  margin-bottom: 10px;
  justify-content: space-between;
}
.cookie-category label {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  color: #0C3A5C;
}
.cookie-toggle {
  width: 44px;
  height: 24px;
  background: #E5F3FD;
  border-radius: 12px;
  position: relative;
  transition: background .18s;
  display: inline-block;
  cursor: pointer;
}
.cookie-toggle input {
  display: none;
}
.cookie-toggle span {
  display: block;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 1px; left: 1px;
  box-shadow: 0 1px 3px rgba(12,58,92,.07);
  transition: left .2s, background .15s;
}
.cookie-toggle input:checked + span {
  left: 21px;
  background: #53ADC8;
}
.cookie-toggle input:disabled + span {
  background: #bcd5e5;
  cursor: not-allowed;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  justify-content: flex-end;
}
.cookie-modal .button {
  font-size: 1rem;
  padding: 8px 18px;
  min-width: 90px;
}
.cookie-modal .modal-close {
  position: absolute;
  right: 14px;
  top: 12px;
  font-size: 1.5rem;
  background: #E5F3FD;
  color: #53ADC8;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  border: none;
  transition: background .13s;
}
.cookie-modal .modal-close:hover,
.cookie-modal .modal-close:focus {
  background: #53ADC8;
  color: #fff;
}
@media (max-width: 470px) {
  .cookie-modal {
    padding: 18px 8px;
    min-width: 0;
  }
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1020px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 800px) {
  section, .hero, .cta, .confirmation {
    padding: 32px 6px;
  }
  .service-card, .blog-post-preview, .testimonial-card {
    padding: 18px 10px 15px 10px;
  }
}
@media (max-width: 680px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.19rem; }
  .service-card, .testimonial-card, .blog-post-preview { min-width: 180px; }
}
@media (max-width: 480px) {
  .brand-tagline { font-size: 1rem; }
}

/* === UTILITY CLASSES FOR FLEXBOX MANDATES === */
.content-grid {
  display: flex !important;
  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;
    gap: 20px;
  }
}

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

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* === ABLE TO ANIMATE SLIDE-IN/OUT ELEMENTS === */
.slide-in {
  animation: slideInRight .27s cubic-bezier(.77,0,.175,1) forwards;
}
.slide-out {
  animation: slideOutLeft .24s cubic-bezier(.77,0,.175,1) forwards;
}
@keyframes slideInRight {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(0); }
}
@keyframes slideOutLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ===== ACCESSIBILITY ===== */
:focus {
  outline: 2px solid #53ADC8;
  outline-offset: 2px;
}
::selection {
  background: #53ADC8;
  color: #fff;
}

/* ===== MISC, FIXES AND HELPER CLASSES ===== */
[hidden] { display: none !important; }

/* Add breathing room between sections */
section + section {
  margin-top: 0;
}

/* Avoid any content overlapping */
* {
  z-index: auto;
}

/* End of CSS */
