/* ------------------------
   CSS RESET & BASE STYLES
---------------------------*/
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  margin: 0;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #233048;
  background: #F7F7F7;
  line-height: 1.7;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #17477C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #FFB900;
  text-decoration: underline;
}
ul, ol {
  margin: 0 0 1.5em 1.5em;
  padding: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #17477C;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.3rem; margin-bottom: 10px; }
h4 { font-size: 1.1rem; }
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 32px 0 rgba(23,71,124,0.08);
}
main > section.section, main > section {
  margin-bottom: 60px;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 768px) {
  .content-wrapper {
    gap: 32px;
  }
}

/*-----------------------------
  HEADER & NAVIGATION STYLES
-----------------------------*/
header {
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(23,71,124,0.03);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 10px 16px;
}
header a img {
  height: 44px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #FFB900;
  font-weight: 600;
  padding: 8px 0;
  transition: color 0.18s;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #FFB900;
  border-bottom: 2px solid #FFB900;
}
.main-nav .btn-primary {
  margin-left: 18px;
}
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #17477C;
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 5px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  transition: background 0.15s;
  margin-left: 12px;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #14335c;
}
@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(17,28,48,0.96);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  box-shadow: 8px 0 32px 0 rgba(23,71,124,0.10);
  padding: 40px 0 0 0;
  will-change: transform;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  margin: 0 16px 12px 16px;
  cursor: pointer;
  align-self: flex-end;
  transition: color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #FFB900;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
  margin-left: 30px;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid #244a72;
  text-shadow: 0 1px 4px rgba(17,28,48,0.08);
  transition: color 0.21s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #FFB900;
}
@media (min-width: 1024px) {
  .mobile-menu {
    display: none!important;
  }
  .main-nav {
    display: flex!important;
  }
}
@media (max-width: 1023px) {
  .main-nav {
    display: none;
  }
}

/*------------------------------
      BUTTONS & CTAS
------------------------------*/
.btn-primary, .btn-secondary {
  display: inline-block;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  padding: 13px 36px;
  font-size: 1.1rem;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 12px 0 rgba(23,71,124,0.11);
  margin-top: 8px;
  transition: background 0.16s, color 0.18s, box-shadow 0.18s;
  text-decoration: none;
}
.btn-primary {
  background: #17477C;
  color: #fff;
  letter-spacing: 0.04em;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #14335c;
  color: #fff;
  box-shadow: 0 6px 24px 0 rgba(23,71,124,0.18);
}
.btn-secondary {
  background: #FFB900;
  color: #233048;
  letter-spacing: 0.03em;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: #cc9500;
  color: #fff;
}

/*------------------------------
     HERO & SECTION SPECIFIC
------------------------------*/
.hero {
  background: linear-gradient(95deg,#F7F7F7 70%,#E5EFFA 100%);
  box-shadow: none;
  padding-top: 48px;
  padding-bottom: 48px;
  margin-bottom: 0;
}
.hero .container {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
}
.hero h1 {
  margin-bottom: 18px;
  font-size: 2.3rem;
  color: #17477C;
}
.hero h2 {
  font-size: 1.35rem;
  font-weight: 400;
  color: #233048;
  margin-bottom: 24px;
}

/*------------------------------
   FEATURE SECTIONS & CARDS
------------------------------*/
.features, .features-pillars {
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(23,71,124,0.05);
}
.features h2, .features-pillars h2 {
  text-align: center;
  margin-bottom: 30px;
}
.feature-grid, .service-list, .testimonial-grid, .blog-post-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
@media (max-width: 768px) {
  .feature-grid, .service-list, .testimonial-grid, .blog-post-grid {
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
  }
}
.feature {
  background: #F7F7F7;
  border-radius: 10px;
  padding: 32px 20px;
  box-shadow: 0 2px 12px 0 rgba(23,71,124,0.06);
  flex: 1 1 230px;
  min-width: 220px;
  max-width: 350px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.15s;
}
.feature img {
  height: 48px;
  margin-bottom: 12px;
}
.feature:hover {
  box-shadow: 0 8px 32px 0 rgba(23,71,124,0.17);
  transform: translateY(-4px) scale(1.02);
}

.feature-bullets, .feature-list, .feature-shortlist {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 32px 0 0 0;
}
.feature-bullets li, .feature-list li, .feature-shortlist li {
  display: flex;
  align-items: center;
  background: #F7F7F7;
  border-radius: 7px;
  padding: 14px 20px;
  gap: 14px;
  font-size: 1.05rem;
  box-shadow: 0 1px 4px 0 rgba(23,71,124,0.04);
}
.feature-bullets img, .feature-list img {
  width: 32px; height: 32px;
}

/*------------------------------
             CARDS
------------------------------*/
.blog-card, .service-card, .testimonial-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(23,71,124,0.09);
  padding: 24px 20px 20px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  min-width: 260px;
  transition: box-shadow 0.17s, transform 0.13s;
}
.blog-card:hover,
.blog-card:focus, .service-card:hover, .testimonial-card:hover {
  box-shadow: 0 8px 32px 0 rgba(23,71,124,0.12);
  transform: translateY(-2px) scale(1.01);
}
.blog-card h2 {
  font-size: 1.20rem;
  margin-bottom: 12px;
  color: #17477C;
}
.blog-card a {
  color: #17477C;
  text-decoration: underline;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.13s;
}
.blog-card a:hover,
.blog-card a:focus {
  color: #FFB900;
}
.service-card h2 {
  font-size: 1.18rem;
  color: #17477C;
  margin-bottom: 10px;
}
.service-card ul {
  list-style: disc inside;
}

/*------------------------------
         TESTIMONIALS
------------------------------*/
.testimonial-card {
  background: #f7f7f7;
  border-radius: 12px;
  color: #233048;
  box-shadow: 0 2px 12px 0 rgba(23,71,124,0.07);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  min-width: 280px;
  padding: 24px 20px 18px 26px;
}
.testimonial-card p {
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.testimonial-card span {
  font-size: 1rem;
  color: #17477C;
  font-weight: 700;
  margin-top: 10px;
}
.testimonial-slider, .testimonial-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: stretch;
  margin-bottom: 8px;
}
@media (max-width: 820px) {
  .testimonial-slider, .testimonial-grid {
    flex-direction: column;
    gap: 24px;
  }
}
.video-quotes blockquote,
.evidence-quotes blockquote {
  background: #FFF;
  color: #17477C;
  font-style: italic;
  border-left: 6px solid #17477C;
  margin: 32px 0 0 0;
  padding: 20px 24px;
  border-radius: 7px;
  box-shadow: 0 1.5px 10px 0 rgba(23,71,124,0.07);
  font-size: 1.05rem;
}
.video-quotes blockquote span,
.evidence-quotes blockquote span {
  display: block;
  margin-top: 14px;
  font-style: normal;
  color: #233048;
  font-weight: 600;
}

/*------------------------------
         CTA SECTIONS
------------------------------*/
.cta {
  background: linear-gradient(105deg, #17477C 80%, #FFB900 100%);
  color: #fff;
  text-align: center;
  box-shadow: 0 6px 32px 0 rgba(23,71,124,0.09);
}
.cta .content-wrapper {
  align-items: center;
  text-align: center;
}
.cta h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 16px;
}
.cta p {
  color: #eef0f2;
  font-size: 1.12rem;
  margin-bottom: 20px;
}
.cta .btn-primary {
  box-shadow: 0 4px 24px 0 rgba(255,185,0,0.15);
  background: #FFB900;
  color: #233048;
}
.cta .btn-primary:hover,
.cta .btn-primary:focus {
  background: #fff;
  color: #17477C;
}

/*-------------------------------
     ABOUT & UTILITY SECTIONS
-------------------------------*/
.about-preview, .about-method, .about {
  background: #fff;
  box-shadow: 0 1.5px 10px 0 rgba(23,71,124,0.06);
}
.about-preview .btn-secondary,
.about .btn-secondary {
  margin-top: 14px;
}
.utility .container {
  text-align: center;
  padding-top: 36px;
}
.utility h1 {
  color: #17477C;
  margin-bottom: 18px;
}

/*-----------------------------
      CONTACT & MAP
-----------------------------*/
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.contact-details img {
  height: 20px;
  width: 20px;
  margin-right: 10px;
  vertical-align: middle;
}
.map, .office-hours {
  margin-top: 24px;
  padding: 18px 10px;
  background: #F7F7F7;
  border-radius: 8px;
  box-shadow: 0 1px 4px 0 rgba(23,71,124,0.05);
}
@media (min-width: 900px) {
  .contact .content-wrapper {
    flex-direction: row;
    justify-content: space-between;
    gap: 30px;
  }
  .contact-details, .map, .office-hours {
    flex: 1 1 33%;
  }
}

/*----------------------------
 LEGAL, FOOTER, & UTILITY
----------------------------*/
.legal .content-wrapper {
  gap: 24px;
  font-size: 1rem;
}
.featured-article {
  background: #F7F7F7;
  padding: 18px 18px;
  border-radius: 7px;
  margin-top: 30px;
  font-size: 1.09rem;
  box-shadow: 0 1px 6px 0 rgba(23,71,124,0.03);
}
.category-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.category-tags span {
  background: #17477C;
  color: #fff;
  border-radius: 5px;
  font-size: 0.98rem;
  padding: 5px 14px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.fast-response-info {
  color: #17477C;
  font-weight: 600;
  margin-top: 14px;
  font-size: 1.06rem;
  text-align: left;
}

/*---------------------------
      FOOTER SECTION
---------------------------*/
footer {
  background: #17477C;
  color: #fff;
  padding: 40px 0 0 0;
}
footer a {
  color: #dbeafd;
  transition: color 0.17s, text-decoration 0.17s;
  text-decoration: none;
}
footer a:hover,
footer a:focus {
  color: #FFB900!important;
  text-decoration: underline;
}
.footer-menus {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 28px;
  border-bottom: 1.5px solid #263f60;
  padding-bottom: 28px;
  justify-content: space-between;
}
.footer-nav,
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-nav {
  min-width: 120px;
}
.footer-legal {
  min-width: 180px;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0 10px 0;
}
.footer-contact .contact-detail {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: #dbeafd;
  margin-right: 18px;
  gap: 8px;
}
.footer-contact img {
  height: 20px;
  width: 20px;
}
.footer-social {
  display: flex;
  gap: 18px;
  margin: 18px 0 10px;
}
.footer-social a img {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1) opacity(0.85);
  transition: filter 0.18s;
}
.footer-social a:hover img {
  filter: brightness(1) invert(0.7) sepia(1) saturate(4) hue-rotate(15deg);
}
.footer-copy {
  text-align: center;
  padding: 14px 0 18px 0;
  color: #b8d0ee;
  font-size: 0.95rem;
}
@media (max-width: 850px) {
  .footer-menus {
    flex-direction: column;
    gap: 14px;
  }
  .footer-contact {
    flex-direction: column;
    gap: 9px;
  }
  .footer-social {
    justify-content: flex-start;
  }
}

/*--------------------------------
   COOKIE CONSENT BANNER
----------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #233048;
  color: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 14px;
  box-shadow: 0 -2px 14px 0 rgba(23,71,124,0.13);
  gap: 16px;
  font-size: 1.06rem;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.42s cubic-bezier(.62,0,.18,1), opacity 0.22s;
}
.cookie-banner.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
}
.cookie-banner button {
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 11px 24px;
  border-radius: 5px;
  background: #FFB900;
  color: #233048;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0;
  transition: background 0.15s, color 0.13s;
}
.cookie-banner .cookie-action-accept {
  background: #FFB900;
  color: #233048;
}
.cookie-banner .cookie-action-accept:hover,
.cookie-banner .cookie-action-accept:focus {
  background: #17477C;
  color: #fff;
}
.cookie-banner .cookie-action-reject {
  background: #fff;
  color: #17477C;
}
.cookie-banner .cookie-action-reject:hover,
.cookie-banner .cookie-action-reject:focus {
  background: #233048;
  color: #FFB900;
}
.cookie-banner .cookie-action-settings {
  background: none;
  color: #FFB900;
  border: 2px solid #FFB900;
  padding: 10px 22px;
}
.cookie-banner .cookie-action-settings:hover,
.cookie-banner .cookie-action-settings:focus {
  background: #FFB900;
  color: #233048;
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(17,28,48,0.83);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 12px;
  max-width: 380px;
  padding: 30px 28px 24px 28px;
  box-shadow: 0 6px 32px 0 rgba(23,71,124,0.14);
  color: #233048;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal-content h3 {
  margin-top: 0;
  color: #17477C;
  font-size: 1.18rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #F7F7F7;
  border-radius: 7px;
  padding: 12px 10px 12px 18px;
  font-size: 1.03rem;
}
.cookie-toggle {
  width: 46px;
  height: 24px;
  position: relative;
  display: inline-block;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #bcceea;
  border-radius: 16px;
  transition: background 0.18s;
}
.cookie-toggle input:checked + .cookie-slider {
  background: #17477C;
}
.cookie-slider:before {
  content: '';
  position: absolute;
  left: 4px; top: 4px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.19s;
}
.cookie-toggle input:checked + .cookie-slider:before {
  transform: translateX(22px);
}
/* Modal buttons */
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 10px 22px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  background: #FFB900;
  color: #233048;
  transition: background 0.14s, color 0.13s;
}
.cookie-modal button:hover,
.cookie-modal button:focus {
  background: #17477C;
  color: #fff;
}
.cookie-modal .modal-close {
  background: #F7F7F7;
  color: #233048;
  font-weight: 600;
  border: 2px solid #dbeafd;
}
.cookie-modal .modal-close:hover,
.cookie-modal .modal-close:focus {
  background: #FFB900;
  color: #233048;
}

/*-----------------------------
 FLEXBOX UTILITY CLASSES
-----------------------------*/
.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;
  background: #f7f7f7;
  color: #233048;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

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

/*-----------------------------
   RESPONSIVE - MOBILE FIRST
-----------------------------*/
@media (max-width: 768px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.18rem; }
  h3 { font-size: 1.05rem; }
  .section,
  section {
    padding: 26px 8px;
    margin-bottom: 34px;
  }
  .container {
    padding: 0 8px;
  }
  .content-grid,
  .card-container,
  .testimonial-slider,
  .testimonial-grid,
  .feature-grid,
  .service-list,
  .blog-post-grid,
  .footer-menus,
  .footer-contact {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .footer-contact {
    flex-direction: column;
    gap: 7px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
}

/*---------------------------
   MICRO-INTERACTIONS
----------------------------*/
.btn-primary,
.btn-secondary,
.blog-card, .feature,
.service-card,
.testimonial-card {
  transition: box-shadow 0.18s, transform 0.14s, background 0.13s, color 0.13s;
}

a:focus, button:focus, .btn-primary:focus, .btn-secondary:focus {
  outline: 2px solid #FFB900;
  outline-offset: 2px;
}

/*-----------------------------
 Z-INDEX MANAGEMENT
-----------------------------*/
header { z-index: 50; }
.mobile-menu { z-index: 1000; }
.cookie-banner { z-index: 9999; }
.cookie-modal { z-index: 10001; }

/*-----------------------------
 ACCESSIBILITY IMPROVEMENTS
-----------------------------*/
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

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