/* ==== CSS RESET & BASE TYPOGRAPHY ==== */
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, menu, ol, ul, li,
fieldset, form, label, legend,
caption, table, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
main, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #F1F5F8;
  color: #243A5A;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #13A380;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #163565;
  outline: none;
}

/* ==== BRAND TYPOGRAPHY ==== */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #163565;
}
h1 {
  font-size: 2.3rem;
  line-height: 1.13;
  font-weight: 700;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 14px;
}
h4, h5 {
  font-weight: 500;
}
p, ul, ol {
  margin-bottom: 16px;
}
ul, ol {
  padding-left: 20px;
}
strong {
  color: #163565;
}

/* ==== CONTAINERS & SECTIONS ==== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(22, 53, 101, 0.06);
  transition: box-shadow 0.2s;
}
.section:last-child {
  margin-bottom: 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}
.text-section {
  margin-bottom: 20px;
  padding: 20px 0;
  border-radius: 14px;
  background: #F1F5F8;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}

/* ==== FLEX LAYOUTS ==== */
.features-grid, .card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 20px;
}
.card-container {
  gap: 24px;
}
.content-grid {
  gap: 20px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(44, 76, 124, 0.08);
  padding: 28px 24px;
  flex: 1 0 260px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 6px 18px rgba(22,53,101,0.14);
  transform: translateY(-2px) scale(1.015);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 0;
}
@media (max-width: 980px) {
  .features-grid,
  .card-container,
  .content-grid {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}
@media (max-width: 768px) {
  .features-grid,
  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 20px;
  }
}

/* ==== HEADER & NAVIGATION ==== */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(22,53,101,0.06);
  position: sticky;
  top: 0;
  z-index: 30;
  margin-bottom: 12px;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #163565;
  padding: 7px 0 7px 0;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #F1F5F8;
  color: #13A380;
}
.cta-button {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background: #13A380;
  padding: 11px 28px;
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(44, 76, 124, 0.09);
  margin-left: 10px;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
  border: none;
  cursor: pointer;
  outline: none;
}
.cta-button:hover,
.cta-button:focus {
  background: #163565;
  color: #fff;
  box-shadow: 0 4px 16px rgba(19,163,128,0.14);
  transform: translateY(-1px) scale(1.045);
}
header .mobile-menu-toggle {
  display: none;
}

/* === MOBILE NAVIGATION === */
@media (max-width: 991px) {
  .main-nav {
    display: none;
  }
  .cta-button {
    display: none;
  }
  header .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: #13A380;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 6px 18px;
    cursor: pointer;
    box-shadow: 0 2px 9px rgba(20, 96, 64, 0.13);
    transition: background 0.18s;
    z-index: 60;
  }
  header .mobile-menu-toggle:active {
    background: #163565;
  }
}
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(22,53,101,0.94);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.32,0.72,0.32,1.2);
  display: flex;
  flex-direction: column;
  z-index: 1100;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 22px 0 0;
  font-size: 2.1rem;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  padding: 5px 14px;
  transition: background 0.18s;
  overflow: visible !important;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #13A380;
}
.mobile-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 26px;
  margin-top: 40px;
}
.mobile-nav a {
  font-size: 1.3rem;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 14px;
  background: none;
  transition: background 0.17s, color 0.17s;
  width: 100%;
  text-align: center;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #13A380;
  color: #fff;
}
@media (min-width: 992px) {
  .mobile-menu {
    display: none;
  }
}

/* ==== HERO, CARDS, FEATURES ==== */
.features-grid > div {
  flex: 1 1 260px;
  min-width: 240px;
  background: #fff;
  border-radius: 18px;
  padding: 24px 22px;
  box-shadow: 0 2px 10px rgba(19,163,128,0.04);
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.2s;
}
.features-grid > div:hover {
  box-shadow: 0 4px 18px rgba(22,53,101,0.11);
  transform: translateY(-3px) scale(1.015);
}
.features-grid img {
  width: 34px;
  height: 34px;
  margin-bottom: 6px;
}

/* ==== TESTIMONIAL CARDS ==== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding: 20px 26px;
  background: #F9FAFC;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(22,53,101,0.09);
  color: #163565;
  font-size: 1.08rem;
  /* Ensures readable dark text on light bg */
}
.testimonial-card p {
  color: #243A5A;
  font-style: italic;
}
.testimonial-card strong {
  color: #13A380;
  font-size: 1rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .features-grid > div {
    min-width: 180px;
    padding: 18px 12px;
  }
  .testimonial-card {
    padding: 16px 8px;
  }
}

@media (max-width: 660px) {
  .testimonial-card {
    padding: 13px 2px;
    font-size: 1rem;
  }
}

/* ==== FOOTER ==== */
footer {
  background: #163565;
  color: #fff;
  padding: 38px 0 20px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 26px 0 0;
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  opacity: 0.90;
  padding: 3px 0;
  border-radius: 8px;
  transition: background 0.16s, color 0.16s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #13A380;
  background: rgba(255,255,255,0.09);
}
.footer-contact {
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.92rem;
}
.footer-contact img {
  vertical-align: middle;
  width: 20px;
  height: 20px;
  margin-right: 7px;
}
@media (max-width: 950px) {
  footer .container {
    gap: 24px;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-contact {
    font-size: 1rem;
  }
}
@media (max-width: 600px) {
  footer {
    padding: 30px 0 10px 0;
  }
  .footer-contact {
    font-size: 0.96rem;
  }
}

/* ==== COOKIE BANNER ==== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1300;
  background: #fff7f2;
  color: #163565;
  padding: 26px 14px 18px 14px;
  box-shadow: 0 -4px 32px rgba(22,53,101,0.12);
  border-top: 2px solid #13A380;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 18px;
}
.cookie-banner.hidden {
  display: none;
}
.cookie-banner p {
  flex: 1 1 220px;
  margin-right: 20px;
  color: #163565;
  font-size: 1rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 15px;
}
.cookie-btn {
  padding: 9px 23px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 18px;
  border: none;
  cursor: pointer;
  margin-right: 0;
  margin-bottom: 0;
  transition: background 0.17s, color 0.17s, box-shadow 0.2s;
}
.cookie-btn.accept {
  background: #13A380;
  color: #fff;
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: #163565;
}
.cookie-btn.reject {
  background: #F1F5F8;
  color: #163565;
  border: 1px solid #13A380;
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: #ffe3d9;
  color: #163565;
}
.cookie-btn.settings {
  background: #fff;
  color: #13A380;
  border: 1.5px solid #13A380;
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: #F1F5F8;
  color: #163565;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    gap: 8px;
    padding: 18px 5px;
    font-size: 0.99rem;
  }
  .cookie-banner p {
    margin-right: 0;
  }
}

/* ==== COOKIE MODAL ==== */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 2000;
  background: rgba(22,53,101,0.64);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.29s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal .cookie-modal-content {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(22,53,101,0.23);
  padding: 38px 28px 22px 28px;
  max-width: 400px;
  width: 92vw;
  color: #163565;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  animation: cookie-modal-slide-in 0.6s cubic-bezier(.32,1.24,.45,1);
}
@keyframes cookie-modal-slide-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.cookie-modal .close-modal {
  position: absolute;
  right: 22px;
  top: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #13A380;
  cursor: pointer;
  padding: 4px 9px;
  border-radius: 8px;
  transition: background 0.15s;
}
.cookie-modal .close-modal:hover {
  background: #F1F5F8;
}
.cookie-category {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-category label {
  font-weight: 500;
  font-size: 1rem;
  color: #163565;
}
.cookie-toggle {
  width: 43px;
  height: 24px;
  appearance: none;
  background: #F1F5F8;
  border-radius: 24px;
  position: relative;
  outline: none;
  transition: background 0.18s;
  cursor: pointer;
  border: 1px solid #13A380;
}
.cookie-toggle:checked {
  background: #13A380;
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 4px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,.07);
  transition: transform 0.22s cubic-bezier(.42,1.12,.56,1), background 0.2s;
}
.cookie-toggle:checked:before {
  transform: translateX(18px);
  background: #fefefe;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
}

@media (max-width: 520px) {
  .cookie-modal .cookie-modal-content {
    padding: 20px 7px 18px 7px;
    font-size: 0.96rem;
  }
}

/* ==== FORM ELEMENTS & BUTTONS ==== */
button, input[type=button], input[type=submit], input[type=reset] {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  outline: none;
  border: none;
  background: #13A380;
  color: #fff;
  border-radius: 18px;
  padding: 10px 24px;
  cursor: pointer;
  transition: background 0.17s, box-shadow 0.18s, transform 0.12s;
  box-shadow: 0 2px 8px rgba(22,53,101,0.07);
}
button:hover, button:focus,
input[type=button]:hover,
input[type=submit]:hover,
input[type=reset]:hover {
  background: #163565;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 13px rgba(19,163,128,0.13);
}

input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  border-radius: 10px;
  border: 1.5px solid #13A380;
  padding: 9px 12px;
  font-size: 1rem;
  background: #fff;
  color: #163565;
  margin-bottom: 18px;
  transition: border 0.15s, box-shadow 0.16s;
}
input:focus, textarea:focus, select:focus {
  border-color: #163565;
  box-shadow: 0 2px 11px rgba(22,53,101,0.10);
}

::-webkit-input-placeholder { color: #8ea2ba; }
::-moz-placeholder { color: #8ea2ba; }
:-ms-input-placeholder { color: #8ea2ba; }
::placeholder { color: #8ea2ba; }

/* ==== MISCELLANEOUS ==== */
hr {
  border: none;
  border-top: 1.5px solid #F1F5F8;
  margin: 22px 0;
}

/* Card, wrapper, and section spacing enforcement */
.card, .features-grid > div, .testimonial-card, .content-wrapper {
  margin-bottom: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .features-grid, .content-grid {
  gap: 24px;
}

/* Utility classes */
.rounded {
  border-radius: 18px;
}
.shadow {
  box-shadow: 0 2px 10px rgba(19,163,128,0.07);
}

/* ==== FONTS (WEB FONT IMPORTS) ==== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,500,600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

/* ==== SCROLLBAR STYLING (Friendly) ==== */
::-webkit-scrollbar { width: 9px; background: #F1F5F8; }
::-webkit-scrollbar-thumb { background: #dfdfdf; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #13A380; }

/* ==== RESPONSIVE: ADJUST TYPOGRAPHY AND LAYOUTS ==== */
@media (max-width: 980px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.32rem; }
  .container {
    padding: 0 8px;
  }
  .features-grid > div { min-width: 160px; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.22rem; }
  h2 { font-size: 1rem; }
  .section { padding: 22px 6px; }
  .features-grid,
  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 15px;
  }
  .card {
    padding: 16px 10px;
    border-radius: 12px;
  }
}

/* ==== ANIMATIONS ==== */
.cta-button, .cookie-btn, button {
  transition: background 0.22s, color 0.22s, box-shadow 0.22s, transform 0.19s;
}
.features-grid > div, .card, .testimonial-card {
  transition: box-shadow 0.2s, transform 0.2s;
}
.features-grid > div:hover,
.card:hover,
.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(22,53,101,0.17);
  transform: translateY(-2px) scale(1.02);
}

/* ==== Z-INDEX ENFORCEMENT ==== */
header { z-index: 50; }
.mobile-menu { z-index: 1200; }
.cookie-banner { z-index: 1300; }
.cookie-modal { z-index: 2000; }

/* ==== OVERRIDE LISTS IN TESTIMONIAL AND FOOTER SECTIONS ==== */
footer ul, .testimonial-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ==== ENFORCE MINIMUM SPACING GLOBALLY ==== */
section, .section, .content-wrapper, .features-grid > div, .card, .testimonial-card {
  margin-bottom: 24px;
}

/* ==== PREVENT ABSOLUTE FOR MAIN CONTENT CARDS ==== */
.card, .testimonial-card, .features-grid > div {
  position: relative;
}
/* Only allow absolute for icons/decor */

/* ==== END OF CSS ==== */
