/* ========================
  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;
  vertical-align: baseline;
  background: transparent;
  font-size: 100%;
  font-family: inherit;
  box-sizing: border-box;
}

body {
  line-height: 1.5;
  background: #F6F8FC;
  color: #223046;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}

*, *:before, *:after {
  box-sizing: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

a {
  color: #22406C;
  text-decoration: none;
  transition: color 0.2s;
}

a:focus, a:hover {
  color: #268C48;
  outline: none;
}

hr {
  border: none;
  border-top: 1px solid #e0e6ee;
  margin: 32px 0;
}

/* ============================
  TYPOGRAPHY
============================= */
h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.7rem;
  font-weight: 700;
  color: #22406C;
  margin-bottom: 20px;
  line-height: 1.2;
}
h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #22406C;
  margin-bottom: 18px;
  line-height: 1.25;
}
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #223046;
  margin-bottom: 10px;
  line-height: 1.3;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 6px;
  color: #22406C;
}
p, li, .text-section {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #223046;
}
p {
  margin-bottom: 16px;
}
strong {
  color: #223046;
  font-weight: 700;
}

.category {
  background: #E9E9F6;
  color: #22406C;
  font-size: 0.93rem;
  font-family: 'Montserrat', Arial, sans-serif;
  display: inline-block;
  border-radius: 6px;
  padding: 3px 12px;
  margin-top: 12px;
  font-weight: 600;
}

em {
  color: #22406C;
  font-style: italic;
}

/* ===============================
  LAYOUT CONTAINERS
================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

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

.text-section {
  flex: 1 1 0;
  background: none;
  border-radius: 12px;
  padding: 0;
}

/* ================================
  SPACING PATTERNS (MANDATORY)
================================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 6px rgba(72,96,136,.07);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 16px;
  background: #f6f8fc;
  box-shadow: 0 2px 12px rgba(63, 89, 120, 0.09);
  padding: 24px;
  flex: 1 1 320px;
  min-width: 280px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 8px 36px rgba(44,60,96,0.17);
}

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

@media (max-width: 768px) {
  .text-image-section,
  .content-grid,
  .card-container,
  .content-wrapper {
    flex-direction: column;
    gap: 20px;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 12px;
  background: #F6F8FC;
  box-shadow: 0 1px 8px rgba(45,74,118,0.07);
  margin-bottom: 20px;
  flex: 1 1 310px;
  min-width: 260px;
  max-width: 550px;
}
.testimonial-meta {
  font-size: 0.98rem;
  color: #22406C;
  font-weight: 600;
  margin-left: auto;
}

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

.section, .card, .testimonial-card, .feature-item {
  margin-bottom: 20px;
}

/* ================
   BUTTONS & CTAs
================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  background: #22406C;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px 32px;
  box-shadow: 0 1px 10px rgba(45,64,108,0.10);
  cursor: pointer;
  transition: background 0.16s, box-shadow 0.18s, transform 0.14s;
  text-align: center;
  text-decoration: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: #268C48;
  color: #fff;
  box-shadow: 0 6px 24px rgba(54,139,72,0.19);
  transform: translateY(-2px) scale(1.03);
  outline: none;
}

button {
  font-family: inherit;
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.13s, color 0.13s;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  background: #E9E9F6;
  color: #22406C;
  border-radius: 8px;
  padding: 9px 22px;
  margin: 0 8px 0 0;
  transition: background 0.13s, color 0.13s;
  border: 1px solid #E0E6EE;
  text-decoration: none;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #fff;
  border-color: #268C48;
  color: #268C48;
}

/* =========================
      HEADER & NAVIGATION
========================== */
header {
  background: #fff;
  border-bottom: 1px solid #e0e6ee;
  padding: 0;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  min-height: 67px;
  gap: 22px;
  padding-top: 12px;
  padding-bottom: 12px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #22406C;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
header nav a:hover, header nav a:focus {
  background: #E9E9F6;
  color: #268C48;
}

header img {
  height: 40px;
  min-width: 110px;
}

header .btn-primary {
  margin-left: 18px;
}

/* ==============
   MOBILE MENU
================*/
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #22406C;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  margin-left: 18px;
  cursor: pointer;
  z-index: 110;
  transition: background 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #268C48;
  color: #fff;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100svh;
  width: 100vw;
  z-index: 1000;
  background: rgba(34, 64, 108, 0.98);
  transform: translateX(100vw);
  transition: transform 0.37s cubic-bezier(.27,1.13,.6,.97);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 24px 24px 0 auto;
  background: #fff;
  color: #22406C;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.17s, color 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #268C48;
  color: #fff;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding: 26px 28px 32px 36px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  font-size: 1.22rem;
  font-weight: 600;
  padding: 11px 14px;
  border-radius: 8px;
  transition: background 0.14s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #3BAE60;
  color: #fff;
}

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

@media (max-width: 1024px) {
  header nav, header .btn-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-flex !important;
  }
}

/* ===========================
   HERO / BANNER / CTA
============================= */
.hero, .cta-banner, .thank-you {
  background: linear-gradient(90deg, #E9E9F6 65%, #f6f8fc 100%);
  border-radius: 18px;
  padding: 40px 0 50px 0;
  box-shadow: 0 2px 10px rgba(90,122,166,.07);
  margin-bottom: 44px;
  position: relative;
}
.hero h1, .cta-banner h2, .thank-you h1 {
  font-size: 2.3rem;
  color: #22406C;
  font-weight: 700;
}
.hero p, .cta-banner p, .thank-you p {
  font-size: 1.1rem;
  color: #223046;
  margin-bottom: 24px;
}
.hero .btn-primary, .cta-banner .btn-primary {
  margin-top: 8px;
}

/* ==========================
   FEATURES LISTS
=========================== */
.features {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 12px rgba(78,100,142,.08);
  padding: 40px 0px 40px 0px;
  margin-bottom: 44px;
}
.features h2 {
  margin-bottom: 22px;
}
.features ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  row-gap: 24px;
}
.features li {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.04rem;
  color: #223046;
  padding: 16px 20px;
  background: #F6F8FC;
  border-radius: 10px;
  min-width: 240px;
  box-shadow: 0 1px 4px rgba(34,64,108,0.06);
  flex: 1 1 310px;
}
.features li img {
  width: 28px;
  height: 28px;
  min-width: 28px;
}

@media (max-width: 900px) {
  .features ul,
  .services ul {
    flex-direction: column;
    gap: 18px;
  }
}

/* ==================
    SERVICES
=================== */
.services ul li {
  background: #F6F8FC;
  border-radius: 12px;
  margin-bottom: 20px;
  padding: 22px 28px 18px 24px;
  position: relative;
  box-shadow: 0 1px 5px rgba(34, 64, 108, 0.07);
  font-size: 1.08rem;
}
.service-price {
  display: inline-block;
  color: #22406C;
  background: #E9E9F6;
  font-weight: bold;
  border-radius: 6px;
  padding: 3px 13px;
  font-size: 0.98rem;
  margin-top: 10px;
  margin-left: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.services ul li strong {
  font-size: 1.12rem;
  font-family: 'Montserrat', Arial, sans-serif;
}

@media (max-width: 600px) {
  .hero, .cta-banner, .features, .services, .thank-you, .section {
    padding: 28px 3vw !important;
  }
  .services ul li {
    padding: 16px 8px 14px 10px;
  }
}

/* ================
   TESTIMONIALS
================= */
.testimonials {
  background: #fff;
  border-radius: 18px;
  padding: 40px 0 40px 0;
  box-shadow: 0 2px 12px rgba(34,64,108,.07);
  margin-bottom: 44px;
}
.testimonials h2 {
  margin-bottom: 18px;
}
.testimonials .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  background: #F6F8FC;
  color: #223046;
  box-shadow: 0 2px 8px rgba(34,64,108,0.09);
  border-left: 4px solid #22406C;
  font-size: 1.02rem;
  max-width: 390px;
  min-width: 260px;
  flex: 1 1 310px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.testimonial-card p {
  color: #223046;
  margin-bottom: 6px;
}

/* ========================
 BLOG/CASE STUDY/FAQ CARDS
========================= */
.blog-list .content-wrapper, .case-studies .content-wrapper, .faq .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.blog-list .text-section, .case-studies .text-section, .faq .text-section {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(34,64,108,.06);
  padding: 20px 18px;
  margin-bottom: 20px;
  min-width: 270px;
  flex: 1 1 320px;
  transition: box-shadow 0.22s;
}
.blog-list .text-section:hover, .case-studies .text-section:hover, .faq .text-section:hover {
  box-shadow: 0 8px 36px rgba(34,64,108,.10);
}

.faq .text-section h3 {
  color: #22406C;
}

.legal .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.legal .text-section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 5px rgba(34,64,108,0.04);
  padding: 30px;
  font-size: 1.04rem;
}
.legal .text-section h2 {
  font-size: 1.14rem;
  margin-top: 18px;
  margin-bottom: 7px;
}

@media (max-width: 750px) {
  .blog-list .content-wrapper,
  .case-studies .content-wrapper,
  .faq .content-wrapper {
    flex-direction: column;
    gap: 18px;
  }
}

/* =========================
        CONTACT
=========================== */
.contact .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.contact .text-section {
  background: #F6F8FC;
  border-radius: 13px;
  box-shadow: 0 1px 4px rgba(34,64,108,0.09);
  padding: 26px 20px;
  flex: 1 1 340px;
  min-width: 260px;
  font-size: 1.01rem;
}

/* ====================
     FOOTER STYLES
======================= */
footer {
  width: 100%;
  background: #22406C;
  color: #fff;
  border-top: 1px solid #e0e6ee;
  margin-top: 70px;
  padding: 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  padding: 38px 15px 32px 15px;
}
footer nav {
  display: flex;
  gap: 20px;
}
footer nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.14s, color 0.17s;
}
footer nav a:hover, footer nav a:focus {
  background: #3BAE60;
  color: #fff;
}
.footer-bottom {
  color: #E9E9F6;
  font-size: 0.96rem;
  margin-top: 13px;
  text-align: center;
}

/* Responsive adjust for footer nav */
@media (max-width: 650px) {
  footer nav {
    flex-direction: column;
    align-items: center;
    gap: 7px;
  }
  footer .container {
    padding: 24px 4vw 22px 4vw;
  }
}

/* ==========================
    COOKIE CONSENT BANNER
=========================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  width: 100vw;
  background: #22406C;
  color: #fff;
  font-family: 'Open Sans', Arial, sans-serif;
  box-shadow: 0 -4px 16px rgba(34,64,108,0.08);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  animation: cookie-slide-up 0.6s cubic-bezier(.22,1.2,.49,.92);
}

@keyframes cookie-slide-up {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-banner p {
  color: #fff;
  margin-bottom: 4px;
  font-size: 1.03rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 7px;
}

.cookie-btn {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 22px;
  border: none;
  cursor: pointer;
  background: #E9E9F6;
  color: #22406C;
  margin: 0;
  transition: background 0.13s, color 0.14s;
}
.cookie-btn.accept {
  background: #268C48;
  color: #fff;
  font-weight: 700;
}
.cookie-btn.reject {
  background: #fff;
  color: #22406C;
  border: 1px solid #E9E9F6;
}
.cookie-btn.settings {
  background: #F6F8FC;
  color: #22406C;
  border: 1px solid #E0E6EE;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #22406C;
  color: #fff;
}

@media (max-width:600px) {
  .cookie-banner {
    padding: 14px 6vw;
    font-size: 0.97rem;
  }
  .cookie-banner .cookie-actions {
    gap: 12px;
    flex-direction: column;
    align-items: stretch;
  }
}

/* ===========================
  COOKIE MODAL (PREFERENCES)
=========================== */
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  z-index: 10000;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(34,64,108,0.12);
  min-width: 340px;
  width: 94vw;
  max-width: 410px;
  padding: 35px 30px 26px 30px;
  transform: translate(-50%, -50%) scale(0.98);
  animation: cookie-modal-in 0.25s cubic-bezier(.22,1.2,.49,.92);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
@keyframes cookie-modal-in {
  from { opacity: 0; transform: translate(-50%,-50%) scale(0.75); }
  to   { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
.cookie-modal h2 {
  font-size: 1.29rem;
  color: #22406C;
  margin-bottom: 14px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  margin-bottom: 13px;
  gap: 13px;
}
.cookie-modal .cookie-switch {
  margin-left: auto;
}
.cookie-switch input[type="checkbox"] {
  display: none;
}
.cookie-switch span {
  display: inline-block;
  width: 44px;
  height: 22px;
  background: #E9E9F6;
  border-radius: 12px;
  position: relative;
  transition: background 0.16s;
  cursor: pointer;
}
.cookie-switch input[type="checkbox"]:checked + span {
  background: #268C48;
}
.cookie-switch span:before {
  content: "";
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.15s;
}
.cookie-switch input[type="checkbox"]:checked + span:before {
  left: 25px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 24px;
}
.cookie-modal .cookie-description {
  font-size: 0.97rem;
  color: #223046;
  margin-left: 2px;
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  top: 14px; right: 18px;
  background: none;
  color: #22406C;
  font-size: 1.12rem;
  border: none;
}

@media (max-width: 500px) {
  .cookie-modal {
    max-width: 97vw;
    min-width: unset;
    padding: 22px 7vw 18px 7vw;
  }
}

/* ================
 ANIMATIONS
================= */
.card, .testimonial-card, .features li, .blog-list .text-section, .case-studies .text-section {
  transition: box-shadow 0.21s, transform 0.19s;
}
.card:hover, .testimonial-card:hover, .features li:hover, .blog-list .text-section:hover, .case-studies .text-section:hover {
  box-shadow: 0 8px 36px rgba(34,64,108,0.13);
  transform: translateY(-2px) scale(1.03);
}

/* ================================
  UTILITY CLASSES & OVERRIDES
================================== */
.mt-0 {margin-top: 0!important;}
.mb-0 {margin-bottom: 0!important;}
.text-center {text-align:center!important;}
.text-left {text-align:left!important;}
.text-right {text-align:right!important;}

@media (max-width: 630px) {
  h1 {font-size: 2.1rem;}
  h2 {font-size: 1.4rem;}
  h3 {font-size: 1.13rem;}
  .footer-bottom {font-size: 0.91rem;}
}

/* ===============
  OVERRIDE EDGE CASES
================== */
@media (max-width:520px) {
  .section, .features, .cta-banner, .testimonials, .services, .thank-you, .case-studies, .contact {
    padding: 17px 2vw !important;
  }
}

/* Hide scrollbars in mobile menu */
.mobile-menu {
  scrollbar-width: none;
}
.mobile-menu::-webkit-scrollbar {
  display: none;
}

/* Fix z-index stacking for navigation, cookie & modal */
header {z-index: 100;}
.mobile-menu {z-index: 1000;}
.cookie-banner {z-index: 9999;}
.cookie-modal {z-index: 10000;}

/* END OF CSS */
