/* === CSS RESET & FONT IMPORTS === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;800&family=Open+Sans:wght@400;600&display=swap');

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;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #1A3274;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #141C2F;
  color: #E8EAF4;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #4BB174;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #8eedba;
}

/* === LAYOUT CONTAINER === */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.14;
  letter-spacing: 0.5px;
}
h1 {
  font-size: 2.7rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.27rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 10px;
}

p, ul, ol, li, span {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.06rem;
  color: #D0D6F6;
  line-height: 1.7;
  margin-bottom: 8px;
}
strong {
  color: #fff;
}

ul, ol {
  margin-left: 20px;
  margin-bottom: 14px;
  list-style: disc outside;
}
li {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

/* === BUTTONS === */
.cta-btn, button, input[type="submit"] {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  padding: 13px 32px;
  font-weight: bold;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(90deg, #4BB174 0%, #1A3274 100%);
  border-radius: 36px;
  border: none;
  outline: none;
  position: relative;
  box-shadow: 0 1.5px 14px 0 rgba(75,177,116,0.18), 0 1.5px 32px 0 rgba(26,50,116,0.15);
  cursor: pointer;
  margin-top: 8px;
  margin-bottom: 8px;
  transition: background 0.3s, color 0.25s, box-shadow 0.3s;
}
.cta-btn:hover, .cta-btn:focus, button:hover, button:focus, input[type="submit"]:hover {
  background: linear-gradient(90deg, #1A3274 30%, #4BB174 100%);
  color: #E8EAF4;
  box-shadow: 0 2.5px 30px 0 rgba(75,177,116,0.22);
}

/* === HEADER === */
header {
  width: 100%;
  background: #131B2F;
  border-bottom: 2px solid #203569;
  z-index: 10;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 18px 10px 18px;
}
header nav {
  display: flex;
  gap: 22px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #E8EAF4;
  font-weight: 600;
  font-size: 1rem;
  padding: 7px 10px;
  transition: color 0.18s;
  position: relative;
}
header nav a:after {
  content: '';
  display: block;
  height: 2.5px;
  background: #4BB174;
  border-radius: 1.5px;
  width: 0;
  transition: width 0.2s;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
}
header nav a:hover:after, header nav a:focus:after {
  width: 70%;
}
header nav a:hover, header nav a:focus {
  color: #4BB174;
}
header img {
  height: 38px;
  width: auto;
}
header .cta-btn {
  margin-left: 14px;
}

/* === MOBILE MENU === */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 8px 12px;
  transition: color 0.21s;
  z-index: 31;
  cursor: pointer;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #4BB174;
}
@media (max-width: 1024px) {
  header .container {
    gap: 14px;
  }
  header nav {
    gap: 14px;
  }
}
@media (max-width: 900px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #151F33;
  backdrop-filter: blur(3px);
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.71,-0.36,.26,1.32);
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: -3px 0 24px 0 rgba(26,50,116,.19);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.2rem;
  border: none;
  padding: 18px 23px 0 0;
  margin-bottom: 14px;
  cursor: pointer;
  transition: color 0.21s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #4BB174;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 22px 30px;
  gap: 8px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #E8EAF4;
  font-weight: 700;
  font-size: 1.12rem;
  margin: 0 0 8px 0;
  padding: 14px 0;
  width: 100%;
  border-bottom: 1px solid #2a3264;
  transition: background 0.2s, color 0.21s;
  border-radius: 5px;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: #202A4C;
  color: #4BB174;
}

/* === HERO SECTION === */
.hero {
  background: linear-gradient(134deg, #1A3274 65%, #292D64 100%);
  box-shadow: 0 4px 70px 0 rgba(66,155,102,0.12);
  min-height: 295px;
  padding-top: 54px;
  padding-bottom: 48px;
  width: 100%;
  margin-bottom: 60px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  text-align: center;
}
.hero h1 {
  color: #fff;
}
.hero p {
  color: #E8EAF4;
  max-width: 600px;
  margin-bottom: 14px;
}

/* === SECTION: GENERAL SPACING === */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.features, .about, .services, .contact, .cta,
.testimonials, .footer {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
}
@media (max-width: 600px) {
  .section, section,
  .features, .about, .services, .contact, .cta, .testimonials, .footer {
    padding: 26px 0 26px 0;
    margin-bottom: 36px;
  }
}

/* === FLEX CONTAINER PATTERNS === */
.content-wrapper,
.feature-grid,
.card-container,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card-container { gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.content-grid { gap: 20px; justify-content: space-between; }
.text-image-section,
.text-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
@media (max-width: 800px) {
  .content-wrapper, .feature-grid, .card-container, .content-grid, .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .feature-grid>div {
    width: 100%;
  }
}

/* === FEATURES GRID & CARDS === */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 20px;
}
.feature-grid > div {
  background: #1E2450;
  border: 2px solid #202C57;
  border-radius: 17px;
  box-shadow: 0 3px 16px 0 rgba(66,155,102,0.08);
  padding: 30px 26px;
  min-width: 210px;
  flex: 1 1 220px;
  max-width: 260px;
  transition: box-shadow 0.23s, border 0.23s, background 0.23s;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.feature-grid>div:hover, .feature-grid>div:focus-within {
  border: 2px solid #4BB174;
  box-shadow: 0 8px 32px 0 rgba(75,177,116,0.14);
  background: #232E54;
}
.feature-grid img {
  width: 36px;
  height: 36px;
  margin-bottom: 5px;
}
.feature-grid h3 {
  color: #fff;
  font-size: 1.12rem;
  font-weight: 700;
}
.feature-grid p {
  color: #CBE6DD;
  font-size: 1rem;
  margin: 0;
}

/* === TEXT SECTIONS === */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: flex-start;
  font-size: 1.07rem;
  color: #e2e6f6;
  margin-bottom: 7px;
}
.text-section ul {
  margin-bottom: 0;
}
.text-section img {
  vertical-align: middle;
  width: 24px;
  height: 24px;
  margin-right: 9px;
}

/* === CTA SECTION === */
.cta {
  background: linear-gradient(92deg, #292D64 60%, #4BB174 130%);
  border-radius: 25px;
  margin-top: 40px;
  box-shadow: 0 2px 26px 0 rgba(75,177,116,0.16);
}
.cta .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: 30px 10px;
}

/* === TESTIMONIALS === */
.testimonials .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonials h2 {
  margin-bottom: 25px;
}
.testimonials .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  background: #faf6f9;
  color: #212b44;
  border-radius: 24px;
  box-shadow: 0 2px 24px 0 rgba(41,45,100,0.11);
  padding: 22px 28px;
  min-width: 220px;
  max-width: 350px;
  flex: 1 1 290px;
  margin-bottom: 16px;
  transition: box-shadow .2s, border-color .2s;
  border: 1.8px solid #dad9ff;
  z-index: 2;
}
.testimonial-card p {
  color: #222947;
  font-size: 1.09rem;
  margin-bottom: 5px;
}
.testimonial-card span {
  color: #429B66;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.testimonial-card strong {
  color: #18244b;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 4px 44px 0 rgba(41,45,100,.19);
  border-color: #4BB174;
}
@media (max-width: 800px) {
  .testimonials .content-wrapper {
    flex-direction: column;
    gap: 18px;
  }
}

/* === CARDS and GENERAL LISTS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #242E59;
  border-radius: 15px;
  box-shadow: 0 2px 18px 0 rgba(41,45,100,0.09);
  padding: 22px 18px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid #232E54;
  transition: box-shadow 0.24s, border-color 0.22s;
}
.card:hover, .card:focus-within {
  border-color: #4BB174;
  box-shadow: 0 5px 26px 0 rgba(75,177,116,0.14);
}

/* === SECTION LISTS === */
.features ul, .about ul, .services ul, .contact ul {
  list-style: disc outside;
  margin-left: 22px;
  color: #CBE6DD;
}
.features li, .about li, .services li {
  padding-left: 0;
  margin-bottom: 8px;
  font-size: 1.02rem;
  color: #CBE6DD;
}

/* === FOOTER === */
footer {
  width: 100%;
  background: #161C2E;
  border-top: 2px solid #243669;
  padding-top: 30px;
  padding-bottom: 28px;
  position: relative;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer nav a {
  color: #E8EAF4;
  font-size: 1rem;
  transition: color 0.18s;
  margin-bottom: 3px;
  font-family: 'Montserrat', Arial, sans-serif;
}
footer nav a:hover, footer nav a:focus {
  color: #4BB174;
}
footer img {
  height: 36px;
  width: auto;
}
footer .text-section {
  margin-top: 5px;
  color: #CBE6DD;
  font-size: 0.98rem;
}
footer .text-section p {
  margin-bottom: 5px;
}

/* === COOKIE CONSENT BANNER === */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #19294C;
  color: #f4f8ff;
  border-top: 2px solid #4BB174;
  z-index: 90;
  width: 100vw;
  box-shadow: 0 -2px 18px 0 rgba(41,45,100,.09);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 23px 12px 20px 12px;
  gap: 26px;
  font-size: 1rem;
  animation: slideUpBanner 0.9s cubic-bezier(.67,-0.08,.19,1.12);
}
@keyframes slideUpBanner {
  from { transform: translateY(104%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner p {
  color: #fafcff;
  margin: 0;
  margin-right: 12px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
}
.cookie-consent-banner .cookie-btn {
  background: #4BB174;
  color: #fff;
  border: none;
  border-radius: 28px;
  margin-left: 10px;
  padding: 11px 26px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.97rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s, color .16s, box-shadow .19s;
  box-shadow: 0 0.5px 8px 0 rgba(75, 177, 116, .08);
}
.cookie-consent-banner .cookie-btn.settings {
  background: transparent;
  border: 1.3px solid #4BB174;
  color: #4BB174;
  margin-left: 6px;
}
.cookie-consent-banner .cookie-btn:hover {
  background: #121a36;
  color: #4BB174;
}
.cookie-consent-banner .cookie-btn.settings:hover {
  background: #4BB174;
  color: #fff;
}

@media (max-width: 600px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    font-size: 0.98rem;
    padding: 18px 5px 16px 5px;
  }
  .cookie-consent-banner .cookie-btn {
    width: 100%;
    margin-left: 0;
  }
}

/* === COOKIE SETTINGS MODAL === */
.cookie-settings-modal {
  position: fixed;
  z-index: 100;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  backdrop-filter: blur(2px);
  background: rgba(12,21,33,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s;
}
.cookie-settings-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-panel {
  background: #13203f;
  color: #E8EAF4;
  border-radius: 23px;
  min-width: 320px;
  max-width: 98vw;
  box-shadow: 0 12px 90px 0 rgba(66,155,102,0.14);
  padding: 36px 28px 30px 28px;
  animation: popModal .35s cubic-bezier(.44,-0.29,.55,2.03);
  position: relative;
}
@keyframes popModal {
  from { transform: scale(0.82); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.cookie-modal-panel h2 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 20px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #202E54;
  padding: 14px 18px;
  border-radius: 11px;
  margin-bottom: 14px;
  font-size: 1.03rem;
}
.cookie-category .cookie-switch {
  display: flex;
  align-items: center;
  gap: 9px;
}
.cookie-switch input[type=checkbox] {
  accent-color: #4BB174;
  width: 23px;
  height: 23px;
}
.cookie-switch label {
  font-size: 1rem;
  color: #A4EFCF;
  cursor: pointer;
}
.cookie-modal-panel .cookie-btn {
  margin-top: 18px;
  margin-right: 9px;
}
.cookie-modal-panel .modal-btn-row {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 13px;
}
.cookie-modal-close {
  position: absolute;
  right: 18px; top: 16px;
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #4BB174;
}
@media (max-width: 400px) {
  .cookie-modal-panel {
    padding: 22px 7px 22px 7px;
    min-width: 0;
  }
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 600px) {
  h1 {
    font-size: 1.72rem;
  }
  h2 {
    font-size: 1.3rem;
  }
  .feature-grid > div, .testimonial-card, .card {
    padding: 16px 10px;
    font-size: 0.98rem;
  }
  .hero {
    min-height: 150px;
    padding-top: 40px;
    padding-bottom: 33px;
  }
  .cta .content-wrapper {
    padding: 22px 2px;
  }
}

@media (max-width: 872px) {
  .container {
    max-width: 99vw;
    padding: 0 8px;
  }
  .footer .container, footer .container {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

/* === FORM ELEMENTS === */
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  border: 1.5px solid #243669;
  border-radius: 8px;
  padding: 12px 8px;
  font-size: 1rem;
  background: #18244b;
  color: #fff;
  margin-bottom: 14px;
  font-family: 'Open Sans', Arial, sans-serif;
  transition: border .19s, box-shadow .19s;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border: 1.5px solid #4BB174;
  outline: none;
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #AFC7F0;
  font-size: 1rem;
  margin-bottom: 6px;
  display: block;
}

/* === ICON HANLDING === */
.text-section img, .contact img {
  vertical-align: middle;
  width: 24px;
  height: 24px;
  margin-right: 9px;
}

/* === ACCESSIBILITY FOCUS === */
a:focus, button:focus {
  outline: 2px solid #4BB174;
  outline-offset: 2px;
}
input:focus, textarea:focus {
  outline: 2px solid #4BB174;
  outline-offset: 1px;
}

/* === ANIMATIONS === */
.feature-grid > div, .card, .testimonial-card, .cta, .cta-btn {
  transition: box-shadow 0.2s, border 0.2s, transform 0.18s, filter 0.19s;
}
.feature-grid > div:hover, .card:hover, .testimonial-card:hover, .cta-btn:hover {
  transform: translateY(-3px) scale(1.015);
  filter: brightness(1.07);
}

[aria-current="page"] {
  color: #4BB174 !important;
  font-weight: bold;
}

/* === UTILITY CLASSES === */
.mb-0 { margin-bottom: 0 !important; }
.mb-12 { margin-bottom: 12px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mt-12 { margin-top: 12px !important; }

/* === OVERWRITE DEFAULTS FOR SOME PAGES === */
.footer .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}

/* === HIDE SCROLL WHEN MODALS/MOBILE-MENU ACTIVE === */
.body-modal-open {
  overflow: hidden;
}
