/* =======================
   RESET & BASE STYLES
   ======================= */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #fff;
  color: #1d2733;
  min-height: 100vh;
  line-height: 1.6;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #125D8C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F7AC1B;
}
ul, ol {
  padding-left: 1.4em;
  margin-bottom: 1.2em;
}
li {
  margin-bottom: 0.6em;
}
hr {
  border: none;
  height: 1px;
  background: #D0E9EA;
  margin: 32px 0;
}

/* ===========
   COLORS
   =========== */
:root {
  --primary: #125D8C;
  --secondary: #D0E9EA;
  --accent: #F7AC1B;
  --gray: #F7F8FA;
  --dark: #1d2733;
  --white: #fff;
  --shadow1: 0 2px 14px 0 rgba(18,93,140,0.07);
  --shadow2: 0 1.5px 9px 0 rgba(18,93,140,0.09);
  --borderRadius: 14px;
}

/* =============
   TYPOGRAPHY
   ============= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;600&display=swap');

h1, h2, h3, .button-primary {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  letter-spacing: -0.01em;
  font-weight: 900;
}
h1 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--primary);
  line-height: 1.1;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary);
  line-height: 1.15;
}
h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--dark);
  letter-spacing: 0.02em;
}
p {
  font-size: 1rem;
  margin-bottom: 18px;
  color: var(--dark);
  line-height: 1.7;
}
.button-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border-radius: 40px 8px 40px 8px;
  padding: 12px 36px 12px 28px;
  transition: background 0.2s, box-shadow 0.22s, transform 0.15s;
  cursor: pointer;
  box-shadow: var(--shadow2);
  margin-top: 8px;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
  position: relative;
}
.button-primary:after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
  border: solid #F7AC1B;
  border-width: 0 4px 4px 0;
  display: inline-block;
  padding: 4px;
  transition: border-color 0.2s;
}
.button-primary:hover,
.button-primary:focus {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 4px 24px 0 rgba(18,93,140,0.14);
  transform: translateY(-2px) scale(1.03);
}
.button-primary:hover:after,
.button-primary:focus:after {
  border-color: var(--primary);
}
.button-secondary {
  display: inline-block;
  background: var(--secondary);
  color: var(--primary);
  font-family: inherit;
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 8px;
  padding: 10px 28px;
  margin-top: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.2s;
}
.button-secondary:hover,
.button-secondary:focus {
  background: var(--accent);
  color: var(--primary);
  box-shadow: var(--shadow2);
}

/* ===============
   GEOMETRIC STRUCTURE, GRID, CONTAINER
   =============== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  margin-bottom: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--gray);
  border-radius: var(--borderRadius);
  box-shadow: var(--shadow1);
}
@media (max-width: 600px) {
  .section {
    margin-bottom: 32px;
    padding: 28px 6px;
  }
}

/* --- Feature Grid (index) --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.feature-grid > div {
  background: #fff;
  border-radius: var(--borderRadius);
  box-shadow: var(--shadow1);
  padding: 28px 22px 22px 22px;
  flex: 1 1 208px;
  min-width: 210px;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  border-left: 7px solid var(--primary);
  transition: box-shadow 0.18s, transform 0.15s;
}
.feature-grid > div:hover {
  box-shadow: 0 4px 18px 0 rgba(18,93,140,0.12);
  transform: translateY(-4px) scale(1.028) skew(-2deg);
}
.feature-grid img {
  width: 38px;
  height: 38px;
}
.feature-grid h3 {
  color: var(--primary);
  margin-bottom: 0;
  font-size: 1.14rem;
}
.feature-grid p {
  margin-bottom: 0;
  font-size: 0.99rem;
}

/* ===============
   FLEXBOX LAYOUTS & CONTENT CONTAINERS
   =============== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  box-shadow: var(--shadow1);
  border-radius: var(--borderRadius);
  margin-bottom: 20px;
  padding: 24px;
  position: relative;
  min-width: 274px;
  flex: 1 1 320px;
  transition: box-shadow 0.18s, transform 0.15s;
}
.card:hover {
  box-shadow: 0 6px 36px 0 rgba(18,93,140,0.10);
  transform: scale(1.035) rotate(-1.5deg);
}
.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 {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: calc(var(--borderRadius) - 6px);
  box-shadow: var(--shadow1);
  padding: 24px 18px;
  margin-bottom: 20px;
}

/* ===============
   HEADER, NAVIGATION, LOGO
   =============== */
header {
  background: #fff;
  box-shadow: 0px 1.5px 6px 0 rgba(18,93,140,0.04);
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 68px;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 7px 16px;
  gap: 0;
}
header img {
  max-height: 46px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  padding: 8px 17px;
  border-radius: 14px 3px 14px 3px;
  font-weight: 700;
  transition: background 0.19s, color 0.18s;
}
.main-nav a:not(.button-primary):hover,
.main-nav a:not(.button-primary):focus {
  background: var(--secondary);
  color: var(--accent);
}
.main-nav .button-primary {
  margin-left: 7px;
  background: var(--accent);
  color: var(--primary);
  font-weight: 900;
  font-size: 1rem;
  padding: 10px 24px 10px 20px;
  border-radius: 22px 8px 22px 8px;
}
.main-nav .button-primary:hover,
.main-nav .button-primary:focus {
  background: var(--primary);
  color: #fff;
}
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  font-size: 2.1rem;
  border: none;
  border-radius: 8px;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin-left: 16px;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s;
  z-index: 201;
  box-shadow: 0 2px 10px #D0E9EA55;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--accent);
  color: var(--primary);
}

@media (max-width: 1020px) {
  .main-nav {
    gap: 16px;
  }
}
@media (max-width: 850px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* ===============
   MOBILE MENU
   =============== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 100vw;
  background: var(--primary);
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(.77,0,.18,1);
  z-index: 299;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 32px;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 0 8px 40px 0 rgba(18,93,140,0.22);
}
.mobile-menu-close {
  background: var(--accent);
  color: var(--primary);
  border: none;
  font-size: 2.3rem;
  border-radius: 9px;
  width: 44px;
  height: 44px;
  margin-left: 18px;
  margin-bottom: 20px;
  align-items: center;
  display: flex;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  z-index: 401;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--white);
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  align-items: flex-start;
  margin-top: 14px;
  padding-left: 22px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  background: transparent;
  padding: 9px 18px 9px 0;
  border-radius: 10px;
  transition: background 0.16s, color 0.18s;
  min-width: 190px;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--accent);
  background: rgba(255,255,255,0.08);
}
.mobile-nav a.button-primary, .mobile-nav a.button-secondary {
  background: var(--accent);
  color: var(--primary);
  margin-right: 18px;
  margin-top: 12px;
  border-radius: 18px 8px 18px 8px;
}
.mobile-nav a.button-primary:hover, .mobile-nav a.button-secondary:hover {
  background: #fff;
  color: var(--primary);
}
@media (min-width: 851px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ===============
  HERO SECTION
   =============== */
.hero {
  background: linear-gradient(140deg, var(--secondary) 36%, var(--gray) 100%);
  border-radius: 0 0 36px 36px;
  margin-bottom: 60px;
  padding: 28px 0 54px 0;
  box-shadow: var(--shadow1);
}
.hero .container {
  flex-direction: column;
  align-items: center;
}
.hero .content-wrapper {
  max-width: 600px;
  align-items: flex-start;
  text-align: left;
  margin: 0 auto;
  gap: 0;
}
.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 16px;
  color: var(--primary);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.07;
}
.hero p {
  font-size: 1.13rem;
  margin-bottom: 24px;
  color: #314360;
}
@media (max-width: 900px) {
  .hero .content-wrapper {
    padding: 0 8px;
  }
  .hero h1 {
    font-size: 2.09rem;
  }
}
@media (max-width: 540px) {
  .hero {
    padding: 20px 0 26px 0;
    margin-bottom: 38px;
  }
  .hero h1 {
    font-size: 1.38rem;
  }
}

/* ===============
  TESTIMONIALS
   =============== */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: #fff;
  color: #222F3A;
  min-width: 274px;
  max-width: 385px;
  padding: 20px 28px 22px 28px;
  margin-bottom: 20px;
  border-radius: 36px 12px 36px 12px;
  box-shadow: var(--shadow1);
  border-left: 6px solid var(--accent);
  transition: box-shadow 0.18s, transform 0.17s;
  font-size: 1.09rem;
}
.testimonial-card:hover {
  box-shadow: 0 5px 18px 0 rgba(247,172,27,0.10);
  transform: scale(1.021) skew(-0.5deg);
}
.testimonial-card p {
  margin-bottom: 0;
  color: #1D2733;
  font-size: 1.09rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
.testimonial-card span {
  font-size: 0.94rem;
  font-style: italic;
  margin-top: 2px;
  color: var(--primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  align-self: flex-end;
}

/* ===============
   TEXT SECTIONS
   =============== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 8px;
  margin-bottom: 10px;
}
.text-section ul, .text-section ol {
  margin-bottom: 9px;
  margin-top: 3px;
  padding-left: 1.5em;
}
.text-section li {
  font-size: 1rem;
  margin-bottom: 0.5em;
  color: #2e455a;
}
.text-section li img {
  vertical-align: middle;
  margin-right: 7px;
  width: 22px;
  height: 22px;
}
.text-section a {
  font-weight: 600;
  color: var(--primary);
  border-bottom: 2.5px solid var(--secondary);
  transition: color 0.16s, border-color 0.15s;
}
.text-section a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ===============
   FOOTER
   =============== */
footer {
  background: linear-gradient(112deg, var(--gray) 60%, var(--secondary) 100%);
  color: var(--dark);
  padding: 32px 0 20px 0;
  border-radius: 42px 42px 0 0;
  box-shadow: 0 -2px 16px 0 rgba(18,93,140,0.05);
  margin-top: 52px;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-bottom: 10px;
}
.footer-nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.01rem;
  font-weight: 600;
  border-radius: 11px;
  padding: 7px 11px;
  transition: background 0.14s, color 0.13s;
}
.footer-nav a:hover {
  background: var(--accent);
  color: var(--primary);
}
footer img {
  max-height: 44px;
  margin-bottom: 5px;
}
.small-contact-info {
  font-size: 0.98rem;
  color: #415163;
  text-align: center;
  margin-bottom: 4px;
}
.social-icons {
  display: flex;
  gap: 14px;
  margin-top: 2px;
  justify-content: center;
}
.social-icons img {
  width: 32px;
  height: 32px;
  opacity: 0.74;
  cursor: pointer;
  transition: opacity 0.15s, filter 0.15s;
  filter: grayscale(60%);
}
.social-icons img:hover {
  opacity: 1;
  filter: grayscale(0);
}

/* ===============
   COOKIE BANNER
   =============== */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(100%);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 -2px 32px rgba(18,93,140,0.13);
  border-radius: 20px 20px 0 0;
  padding: 22px 40px;
  z-index: 9000;
  min-width: 320px;
  max-width: 660px;
  width: 88vw;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(.78,0,.27,1), opacity 0.28s;
}
.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: all;
}
.cookie-banner-text {
  font-size: 1rem;
  color: var(--primary);
  margin-right: 18px;
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 13px;
}
.cookie-banner .button-primary {
  padding: 8px 24px 8px 19px;
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
}
.cookie-banner .button-primary:hover {
  background: var(--accent);
  color: var(--primary);
}
.cookie-banner .button-secondary {
  background: var(--secondary);
  color: var(--primary);
  border-radius: 6px;
  border: 2px solid var(--primary);
  padding: 8px 19px;
  font-size: 1rem;
  font-weight: 700;
}
.cookie-banner .button-secondary:hover {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 14px 18px 14px;
    width: 99vw;
    min-width: unset;
    max-width: 99vw;
    left: 0;
    transform: none;
  }
  .cookie-banner.visible {
    left: 0;
    transform: none;
    border-radius: 11px 11px 0 0;
    opacity: 1;
    pointer-events: all;
    width: 99vw;
  }
  .cookie-banner-buttons {
    margin-top: 12px;
  }
}

/* ===============
COOKIE MODAL
 =============== */
.cookie-modal {
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(29,39,51,0.75);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.cookie-modal.visible {
  display: flex;
  pointer-events: all;
  animation: fade-in-modal 0.26s;
}
@keyframes fade-in-modal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  color: var(--primary);
  border-radius: 16px;
  max-width: 410px;
  min-width: 280px;
  padding: 32px 30px 24px 30px;
  box-shadow: 0 4px 36px rgba(18,93,140,0.15);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: scale-in-modal 0.22s;
  position: relative;
}
@keyframes scale-in-modal {
  from { transform: scale(0.96); opacity: 0.7; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal-content h2 {
  color: var(--primary);
  font-size: 1.32rem;
  margin-bottom: 14px;
}
.cookie-modal-content .modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 6px;
  width: 38px; height: 38px;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.16s, color 0.15s;
}
.cookie-modal-content .modal-close:hover {
  background: var(--primary);
  color: #fff;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.cookie-category label {
  font-size: 1.03rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.cookie-toggle {
  width: 44px;
  height: 22px;
  position: relative;
  display: inline-block;
}
.cookie-toggle input[type="checkbox"] {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: var(--secondary);
  border-radius: 12px;
  transition: background 0.15s;
}
.cookie-toggle input:checked + .cookie-slider {
  background: var(--primary);
}
.cookie-slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.19s;
  box-shadow: 0 1.5px 5px 0 rgba(18,93,140,0.10);
}
.cookie-toggle input:checked + .cookie-slider:before {
  transform: translateX(22px);
}
.cookie-category .locked {
  color: #A4BCCF;
  font-size: 0.92rem;
  margin-left: 6px;
}
.cookie-modal-footer {
  margin-top: 18px;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 11px;
  width: 100%;
}
.cookie-modal .button-primary, .cookie-modal .button-secondary {
  padding: 7px 20px;
  font-size: 1rem;
}
@media (max-width: 540px) {
  .cookie-modal-content {
    min-width: 93vw;
    max-width: 97vw;
    padding: 20px 10px 18px 10px;
  }
}

/* ===============
   MEDIA QUERIES & RESPONSIVE
   =============== */
@media (max-width: 1100px) {
  .feature-grid {
    justify-content: center;
    gap: 16px;
  }
  .content-grid {
    gap: 12px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 96vw;
    padding: 0 5vw;
  }
  footer .container {
    max-width: 99vw;
    padding: 0 3vw;
  }
}
@media (max-width: 600px) {
  .feature-grid {
    flex-direction: column;
    gap: 17px;
  }
  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 12px;
  }
  .testimonial-slider {
    flex-direction: column;
    gap: 14px;
  }
}
@media (max-width: 480px) {
  .container, footer .container {
    padding: 0 2vw;
  }
  .hero .content-wrapper {
    padding: 0 2px;
  }
}

/* ===============
   ANIMATIONS & MICRO-INTERACTIONS
   =============== */
.button-primary,
.button-secondary {
  transition: background 0.18s, color 0.18s, box-shadow 0.15s, transform 0.13s;
}
.card, .feature-grid > div, .testimonial-card {
  transition: box-shadow 0.16s, transform 0.13s;
}
footer nav a,
.main-nav a {
  transition: background 0.15s, color 0.13s;
}

/* =======================
  ADDITIONAL UI & ACCESSIBILITY
   ======================= */
.button-primary:focus, .button-secondary:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus, .footer-nav a:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.button-primary::-moz-focus-inner, .button-secondary::-moz-focus-inner {
  border: 0;
}

/* High-contrast for testimonial text on light backgrounds */
.testimonial-card, .testimonial-card p, .testimonial-card span {
  color: #1D2733;
}

/* ===============
   UTILITY CLASSES & FIXES
   =============== */
.hide-on-mobile {
  display: inline-block;
}
@media (max-width: 768px) {
  .hide-on-mobile {
    display: none !important;
  }
}
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
 .mb-20 { margin-bottom: 20px !important; }

/* =======================
   END OF STYLE.CSS
   ======================= */
