/* ================== CSS RESET & BASE ================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #131a2c;
  color: #F9F9FB;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: linear-gradient(135deg, #223874 0%, #131a2c 100%);
  position: relative;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #8CC63F;
  margin-bottom: 16px;
  line-height: 1.15;
  letter-spacing: .01em;
}
h1 {
  font-size: 2.5rem;
  color: #F9F9FB;
  text-shadow: 0 2px 10px rgba(140,198,63,.15);
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.3rem;
}
h4 {
  font-size: 1.1rem;
}
p, li, ul {
  font-size: 1rem;
  margin-bottom: 12px;
}
strong {
  color: #8CC63F;
  font-weight: bold;
}
a {
  text-decoration: none;
  color: #8CC63F;
  transition: color 0.18s;
}
a:hover {
  color: #b4ff69;
}
ul {
  padding-left: 22px;
  margin-bottom: 18px;
}

::-webkit-scrollbar {
  width: 8px;
  background: #1a2750;
}
::-webkit-scrollbar-thumb {
  background: #222C54;
  border-radius: 4px;
}

input, button, textarea, select {
  font: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

/* ================== CONTAINER & LAYOUT ================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.text-section {
  margin-top: 12px;
}

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

.features-grid, .card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin: 24px 0 0 0;
}
.card-container {
  gap: 24px;
}
.card {
  background: rgba(34,56,116,0.82);
  border-radius: 18px;
  box-shadow: 0 4px 32px 0 rgba(37,255,133,0.09);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 18px;
  transition: box-shadow 0.2s, border 0.2s, transform 0.22s;
  border: 2px solid #212d51;
  min-width: 260px;
  max-width: 360px;
  flex: 1 1 260px;
}
.card:hover, .feature-item:hover {
  box-shadow: 0 0 12px #8CC63F, 0 4px 40px 0 rgba(34,56,116,0.29);
  border-color: #8CC63F;
  transform: translateY(-4px) scale(1.025);
}

.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #f9f9fb;
  color: #223874;
  border-radius: 14px;
  box-shadow: 0 2px 20px 0 rgba(34,56,116,0.11);
  margin-bottom: 20px;
  min-width: 200px;
  max-width: 500px;
  position: relative;
}
.testimonial-card p {
  color: #223874;
  font-size: 1.09rem;
  font-style: italic;
  font-weight: 400;
  margin-bottom: 0px;
}
.testimonial-name {
  font-size: 1rem;
  color: #223874;
  font-weight: 600;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.feature-item {
  background: rgba(34,56,116,0.92);
  border: 2px solid #293e72;
  border-radius: 15px;
  box-shadow: 0 2px 22px 0 rgba(140,198,63,0.07);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 28px 20px;
  min-width: 220px;
  max-width: 330px;
  transition: border-color 0.18s, box-shadow 0.22s, transform 0.18s;
  margin-bottom: 20px;
}
.feature-item img {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 2px 6px #8CC63F44);
}

.certifications {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 12px;
}
.certifications img {
  width: 36px;
  margin-right: 6px;
}

.service-pricing {
  font-size: 1.22rem;
  color: #8CC63F;
  font-weight: 700;
  margin: 18px 0 8px 0;
}

.faq strong {
  color: #223874;
  font-weight: 700;
  background: #8CC63F22;
  border-radius: 7px;
  padding: 2px 8px;
  display: inline-block;
  margin-bottom: 2px;
}
.faq p {
  margin-bottom: 8px;
  color: #f5f5ff;
  font-weight: 400;
}

/* ================== BUTTONS & CTA ================== */
.cta-primary {
  display: inline-block;
  background: linear-gradient(90deg, #8CC63F 40%, #63ffec 100%);
  color: #223874;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.11rem;
  font-weight: bold;
  letter-spacing: .02em;
  border-radius: 22px;
  padding: 13px 38px;
  border: none;
  margin-top: 10px;
  box-shadow: 0 2px 14px 0 #62e78344;
  cursor: pointer;
  position: relative;
  transition: background 0.19s, color 0.18s, transform 0.18s, box-shadow 0.19s;
  text-shadow: none;
}
.cta-primary:hover, .category-filters button:hover, .newsletter-signup a:hover {
  background: #223874;
  color: #8CC63F;
  box-shadow: 0 2px 22px 0 #8CC63F66;
  transform: scale(1.04) translateY(-2px);
}
.category-filters button {
  background: #223874;
  color: #8CC63F;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  border-radius: 16px;
  padding: 7px 20px;
  font-size: 1rem;
  margin-right: 8px;
  margin-top: 4px;
  border: 1.5px solid #8CC63F;
  cursor: pointer;
  transition: background 0.16s, color 0.14s, transform 0.13s, box-shadow 0.19s;
}
.category-filters button:focus {
  outline: 2px dashed #8CC63F;
}

.newsletter-signup {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 0;
  align-items: flex-start;
}

/* ================== HEADER & NAVIGATION ================== */
.main-header {
  background: rgba(19,26,44,0.98);
  border-bottom: 2.5px solid #223874;
  z-index: 15;
  position: relative;
}
.main-header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  position: relative;
}
.main-header img {
  height: 42px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.main-nav a {
  color: #F9F9FB;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.16s;
  border-radius: 12px;
  padding: 6px 12px;
  position: relative;
}
.main-nav a.cta-primary {
  background: linear-gradient(90deg, #8CC63F 0%, #63ffec 100%);
  color: #223874 !important;
  box-shadow: 0 2px 12px #99ffbb26;
  font-weight: bold;
  padding: 10px 22px;
  border-radius: 18px;
}
.main-nav a.cta-primary:hover {
  background: #223874;
  color: #8CC63F !important;
  border: 1.5px solid #8CC63F;
}
.main-nav a:hover {
  color: #8CC63F;
  background: #282d54cc;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  color: #8CC63F;
  font-size: 2rem;
  padding: 4px 16px;
  border-radius: 10px;
  cursor: pointer;
  z-index: 31;
  margin-left: 18px;
  border: 2px solid transparent;
  transition: background 0.16s, border 0.17s;
}
.mobile-menu-toggle:focus {
  border: 2px solid #8CC63F;
}

.mobile-menu {
  position: fixed;
  overflow-y: auto;
  top: 0;
  right: 0;
  width: 100vw;
  max-width: 440px;
  height: 100vh;
  background: linear-gradient(135deg, #223874 50%, #131a2c 100%);
  box-shadow: -5px 0 32px 0 rgba(0,0,0,0.23);
  z-index: 40;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.62,.05,.74,.99);
  display: flex;
  flex-direction: column;
  padding: 36px 24px 32px 24px;
  gap: 18px;
}
.mobile-menu.active {
  transform: translateX(0);
  box-shadow: -8px 0 70px #8CC63F55, -5px 0 32px 0 rgba(0,0,0,0.23);
}
.mobile-menu-close {
  background: none;
  color: #8CC63F;
  font-size: 2.5rem;
  line-height: 1;
  padding: 8px 14px;
  border-radius: 12px;
  align-self: flex-end;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.13s, border 0.16s;
}
.mobile-menu-close:focus {
  border: 2px solid #8CC63F;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  margin-top: 20px;
}
.mobile-nav a {
  font-size: 1.15rem;
  color: #F9F9FB;
  background: none;
  padding: 10px 4px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  border-radius: 13px;
  width: 100%;
  display: block;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover {
  background: #8CC63F33;
  color: #8CC63F;
}

.main-header .mobile-menu {
  display: flex;
}

@media (max-width: 1020px) {
  .main-header .container {
    flex-direction: row;
    align-items: center;
  }
  .main-nav {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .main-header .container {
    padding: 0 10px;
  }
}
@media (max-width: 860px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ================== MAIN & SECTIONS ================== */
main {
  flex: 1 0 auto;
  width: 100vw;
  min-height: 60vh;
  padding: 0;
  background: none;
}
section {
  width: 100%;
  margin-bottom: 60px;
  padding: 40px 20px 0px 20px;
  display: flex;
}
section:last-child {
  margin-bottom: 0;
}

@media (max-width: 992px) {
  section {
    padding: 28px 7vw 0px 7vw;
  }
}
@media (max-width: 600px) {
  section {
    padding: 20px 3vw 0px 3vw;
    margin-bottom: 38px;
  }
}

/* ================== BLOG, LISTS, FILTERS ================== */
.blog-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 18px 0 12px 0;
}
.blog-list li {
  background: #1b2542;
  border-radius: 13px;
  padding: 14px 15px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background 0.19s, box-shadow 0.22s;
  box-shadow: 0 2px 8px 0 #8CC63F10;
}
.blog-list li:hover {
  background: #223874bb;
  box-shadow: 0 2px 18px #8CC63F22;
}
.blog-list a {
  font-size: 1.04rem;
  color: #F9F9FB;
}
.category {
  background: #8CC63F18;
  color: #8CC63F;
  border-radius: 8px;
  font-size: 0.95rem;
  padding: 2px 9px;
}

.category-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.recommended-articles {
  margin-top: 10px;
  font-size: 0.97rem;
  color: #F9F9FB;
}

/* ================== CONTACT INFO ================== */
.contact-info {
  background: #242e53;
  color: #F9F9FB;
  border-radius: 13px;
  padding: 18px 18px;
  box-shadow: 0 2px 18px rgba(140,198,63,0.05);
  font-size: 1.04rem;
  margin: 10px 0 16px 0;
}
.contact-info a {
  color: #8CC63F;
}

/* ================== FOOTER ================== */
footer {
  background: #192241;
  color: #F9F9FB;
  border-top: 2.5px solid #223874;
  padding: 0;
}
footer section {
  padding: 30px 20px 0px 20px;
  margin-bottom: 0;
  background: none;
}
.footer-brand img {
  height: 36px;
  margin-top: 4px;
  margin-bottom: 8px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 19px;
  margin-bottom: 12px;
}
.footer-menu a {
  color: #8CC63F;
  font-size: 1rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  transition: color 0.16s;
  border-radius: 8px;
  padding: 3px 10px;
}
.footer-menu a:hover {
  color: #F9F9FB;
  background: #223874;
}
.footer-legal {
  font-size: 0.98rem;
  color: #f9f9fbbb;
  margin-bottom: 6px;
}
.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  align-items: center;
}
.footer-social a img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #1d2a58;
  padding: 4px;
  transition: box-shadow 0.17s, background 0.13s;
  box-shadow: 0 1px 9px #8CC63F22;
}
.footer-social a:hover img {
  background: #8CC63F44;
  box-shadow: 0 1px 14px #8CC63F44;
}

/* ================== COOKIE BANNER ================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  width: 100%;
  background: #232c56;
  color: #F9F9FB;
  padding: 17px 26px 17px 26px;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 34px 0 #8CC63F33;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  opacity: 1;
  animation: cookieBannerAppear 0.44s cubic-bezier(.62,.05,.74,.99);
}
@keyframes cookieBannerAppear {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin-bottom: 0;
  font-size: 1rem;
  font-weight: 400;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  border-radius: 16px;
  padding: 6px 16px;
  min-width: 120px;
  font-size: 1rem;
  border: 1.5px solid #8CC63F;
  background: transparent;
  color: #8CC63F;
  transition: background 0.16s, color 0.18s;
  cursor: pointer;
}
.cookie-banner button.accept {
  background: #8CC63F;
  color: #223874;
  font-weight: bold;
}
.cookie-banner button.accept:hover {
  background: #223874;
  color: #8CC63F;
}
.cookie-banner button.reject:hover {
  background: #d92828;
  color: #fff;
  border-color: #d92828;
}
.cookie-banner button.settings:hover {
  background: #223874;
  color: #8CC63F;
}

/* =============== COOKIE MODAL =================== */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #223874e6;
  z-index: 101;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: modalAppear .38s cubic-bezier(.62,.05,.74,.99);
}
@keyframes modalAppear {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #f9f9fb;
  color: #223874;
  border-radius: 18px;
  box-shadow: 0 10px 40px 0 #8CC63F55, 0 1.5px 10px #23387022;
  padding: 36px 24px 24px 24px;
  min-width: 320px;
  max-width: 98vw;
  width: 420px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: modalAppear .42s cubic-bezier(.62,.05,.74,.99);
}
.cookie-modal h3 {
  color: #223874;
  margin-bottom: 3px;
}
.cookie-modal .cookie-close {
  position: absolute;
  top: 12px;
  right: 15px;
  background: none;
  border: none;
  color: #8CC63F;
  font-size: 2rem;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
  padding: 2px 10px;
}
.cookie-modal .cookie-close:hover {
  background: #8CC63F11;
}
.cookie-cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 9px;
}
.cookie-cookie-category input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #8CC63F;
}
.cookie-cookie-category label {
  color: #223874;
  font-size: 1rem;
  font-weight: 500;
}
.cookie-category-description {
  font-size: 0.97rem;
  color: #2f446e;
}
.cookie-modal button {
  background: #8CC63F;
  color: #223874;
  border-radius: 14px;
  margin-top: 12px;
  padding: 9px 20px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.cookie-modal button:hover {
  background: #223874;
  color: #8CC63F;
}

/* ================== MISC ================== */
.subheadline {
  font-size: 1.31rem;
  color: #8CC63F;
  font-weight: 500;
  letter-spacing: .012em;
  margin-bottom: 13px;
}
.confirmation-message {
  color: #8CC63F;
  font-size: 1.21rem;
  margin-bottom: 10px;
}
.next-steps {
  font-size: 1rem;
  color: #F9F9FB;
  margin: 11px 0 2px 0;
}

.newsletter-signup p {
  color: #F9F9FB;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 789px) {
  .main-header .container, .container {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 7px;
    padding-right: 7px;
    min-height: unset;
  }
  .main-header img, .footer-brand img {
    margin: 0 0 12px 0;
  }
  section {
    flex-direction: column;
    padding: 14px 1vw 0 1vw;
  }
  .features-grid, .testimonial-slider, .card-container, .content-grid {
    flex-direction: column;
    gap: 24px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .content-wrapper {
    gap: 14px;
  }
}
@media (max-width: 580px) {
  h1 { font-size: 1.48rem; }
  h2 { font-size: 1.18rem; }
  h3 { font-size: 1rem; }
  .feature-item, .testimonial-card, .card {
    padding: 16px 10px;
    min-width: unset;
    max-width: 100%;
  }
  .cookie-modal {
    min-width: unset;
    padding: 18px 7px 18px 7px;
    width: 95vw;
  }
  .cookie-banner {
    padding: 10px 6px 10px 7px;
    font-size: 0.97rem;
  }
}

/* ================== TYPOGRAPHY ================== */
@media (min-width: 992px) {
  h1 { font-size: 2.6rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.4rem; }
  .feature-item, .testimonial-card, .card {
    font-size: 1.05rem;
  }
}

/* ================== ANIMATIONS ================== */
.cta-primary, .category-filters button, .blog-list li, .feature-item, .card, .testimonial-card, .card {
  transition: background 0.18s, box-shadow 0.19s, color 0.15s, transform 0.18s;
}

/* ================== ACCESSIBILITY ================== */
:focus {
  outline-color: #8CC63F !important;
  outline-width: 2.5px;
  outline-style: solid;
  outline-offset: 1px;
}

/* ================== CUSTOM SCROLL (side effect) ================== */
body, .mobile-menu, .cookie-modal-overlay {
  scrollbar-width: thin;
  scrollbar-color: #8CC63F #131a2c;
}

/* ================== HI-DPI & PRINT ADJUSTMENTS ================== */
@media print {
  * {
    background: none !important;
    color: #223874 !important;
  }
}
