/* ===================
   RESET & BASE STYLES
   =================== */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #F3F4F7;
  color: #174A67;
  min-height: 100vh;
  line-height: 1.6;
  font-size: 1rem;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  margin: 0 0 1em 1.4em;
}
li {
  margin-bottom: 0.7em;
}
a {
  color: #174A67;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(0.45,0,0.55,1);
}
a:hover, a:focus {
  color: #49B17C;
  outline: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  color: #174A67;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.container {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 28px rgba(23,74,103,0.07), 0 1.5px 2.5px rgba(73,177,124,0.04);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
section {
  margin-bottom: 60px;
  padding: 0;
  width: 100%;
}
strong, b {
  font-weight: 700;
}
main {
  min-height: 60vh;
  margin-top: 90px;
}

/* ======
   HEADER
   ====== */
header {
  width: 100%;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0 0 0 0;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 99;
  height: 70px;
  box-shadow: 0 2.5px 12px rgba(23,74,103,0.06);
}
.logo {
  height: 70px;
  display: flex;
  align-items: center;
  margin-left: 20px;
  margin-right: 30px;
}
.logo img {
  height: 40px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 22px;
  flex: 1;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: #174A67;
  font-weight: 600;
  padding: 8px 4px;
  border-radius: 7px;
  transition: background 0.16s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #49B17C;
  color: #fff;
}
.cta-button {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #174A67;
  color: #fff;
  border: none;
  padding: 13px 34px;
  margin-left: 22px;
  border-radius: 16px 0 16px 0;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(23,74,103,0.08);
  letter-spacing: 0.03em;
  transition: background 0.16s, color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  outline: none;
  position: relative;
  z-index: 2;
}
.cta-button:hover, .cta-button:focus {
  background: #49B17C;
  color: #fff;
  box-shadow: 0 5px 20px rgba(73,177,124,0.15);
}

/* Hide mobile toggle and menu in desktop */
.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  display: none;
}

/* =====
   HERO
   ===== */
.hero-section {
  background: #174A67;
  color: #fff;
  border-radius: 0 0 40px 40px;
  min-height: 340px;
  position: relative;
  margin-bottom: 60px;
  box-shadow: 0 2px 14px rgba(23,74,103,0.11);
}
.hero-section .container {
  padding-top: 44px;
  padding-bottom: 44px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: wrap;
}
.hero-section .content-wrapper {
  background: transparent;
  box-shadow: none;
  color: #fff;
  padding: 0;
  margin-bottom: 0;
  max-width: 720px;
  flex: 1;
}
.hero-section h1, .hero-section h2, .hero-section p {
  color: #fff !important;
}
.hero-section .cta-button {
  background: #49B17C;
  color: #fff;
  margin-top: 24px;
}
.hero-section .cta-button:hover {
  background: #fff;
  color: #174A67;
  box-shadow: 0 5px 20px rgba(73,177,124,.13);
}

/* ===================
   FLEXBOX CONTAINERS
   =================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  flex: 1 1 220px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(23,74,103,0.10);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  min-width: 240px;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 20px 0 20px 0;
  box-shadow: 0 2.5px 12px rgba(23,74,103,0.08);
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card p {
  font-size: 1.12rem;
  color: #174A67;
  margin-bottom: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  flex: 1;
}
.testimonial-meta {
  font-size: 0.95rem;
  color: #49B17C;
  text-align: right;
  min-width: 115px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.testimonial-card:hover {
  box-shadow: 0 8px 26px rgba(73,177,124,0.18);
  transform: translateY(-3px) scale(1.012);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 14px;
  padding: 24px 18px;
  box-shadow: 0 2px 10px rgba(23,74,103,0.07);
}

/* Card List Ul Overrides */
ul {
  list-style: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
}
ul > li {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #F3F4F7;
}
ul > li:last-child {
  margin-bottom: 0;
  border-bottom: none;
}
ul > li img {
  width: 38px;
  height: 38px;
  margin-right: 0;
  margin-top: 2px;
}


/* =============
   FOOTER STYLES
   ============= */
footer {
  background: #174A67;
  color: #fff;
  padding: 48px 0 32px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -2px 18px rgba(23,74,103,0.07);
}
.footer-logo img {
  width: 54px;
  height: auto;
  margin-bottom: 8px;
}
.footer-nav {
  display: flex;
  gap: 22px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.01em;
  font-weight: 500;
  border-radius: 6px;
  padding: 6px 5px;
  transition: background 0.16s, color 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #49B17C;
  background: #fff;
}
.footer-contact p {
  color: #fff;
  font-size: 1rem;
  text-align: center;
}


/* ================
   BUTTONS & STATES
   ================ */
button, .cta-button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: background 0.14s, color 0.2s, box-shadow 0.13s;
}
button:focus-visible {
  outline: 2px solid #49B17C;
  outline-offset: 2px;
}


/* ===================
   MOBILE NAV BURGER
   =================== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  right: 18px;
  top: 18px;
  width: 44px;
  height: 44px;
  font-size: 2.1rem;
  background: #174A67;
  color: #fff;
  border-radius: 13px 0 13px 0;
  z-index: 201;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 3px 18px rgba(23,74,103,0.13);
  transition: background 0.14s, color 0.19s, box-shadow 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #49B17C;
  color: #fff;
  box-shadow: 0 3px 28px rgba(73,177,124,0.23);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #174A67;
  z-index: 300;
  overflow-y: auto;
  padding: 0 28px 28px 28px;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.29s cubic-bezier(0.6,0.1,0.15,1);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  font-size: 2rem;
  padding: 8px 8px 8px 0;
  align-self: flex-end;
  cursor: pointer;
  margin-top: 24px;
  margin-bottom: 14px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 18px 6px 8px 4px;
  border-radius: 12px 0 12px 0;
  background: transparent;
  transition: background 0.16s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #49B17C;
  color: #fff;
}

@media (max-width: 1024px) {
  .container {
    max-width: 93vw;
  }
  header {
    padding-right: 8px;
  }
  .logo {
    margin-left: 10px;
    margin-right: 12px;
  }
}

@media (max-width: 900px) {
  .main-nav {
    gap: 12px;
  }
}

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

@media (max-width: 600px) {
  .content-wrapper {
    margin-bottom: 38px;
    padding: 28px 8px;
    min-width: unset;
    border-radius: 13px;
  }
  .hero-section {
    min-height: 200px;
    border-radius: 0 0 22px 22px;
  }
  .hero-section .container {
    padding-top: 21px;
    padding-bottom: 24px;
  }
  .hero-section h1 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.3rem;
    margin-bottom: 8px;
  }
  h3 {
    font-size: 1.04rem;
  }
  .testimonial-card {
    flex-direction: column;
    text-align: left;
    padding: 13px;
    gap: 13px;
    min-width: unset;
    border-radius: 13px 0 13px 0;
  }
  .card {
    min-width: 0;
    padding: 16px 8px;
    border-radius: 13px;
  }
  .feature-item {
    padding: 15px 7px;
    border-radius: 9px;
  }
}

/* =========================
   FLEX RESPONSIVE CONTAINERS
   ========================= */
@media (max-width: 900px) {
  .content-grid,
  .card-container,
  .text-image-section {
    flex-direction: column;
    gap: 18px !important;
  }
}
@media (max-width: 600px) {
  .content-grid,
  .card-container,
  .text-image-section {
    flex-direction: column;
    gap: 12px !important;
  }
}

/* ===== BLOG CATEGORIES ===== */
.category-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #174A67;
}
.category-filters span {
  padding: 3px 12px;
  background: #49B17C;
  color: #fff;
  border-radius: 8px 0 8px 0;
  display: inline-block;
  font-weight: 500;
  font-size: 0.98rem;
  margin-right: 4px;
}

/* ===============
   UTILITY CLASSES
   =============== */
.bg-accent {
  background: #F3F4F7 !important;
}
.bg-primary {
  background: #174A67 !important;
  color: #fff;
}
.bg-secondary {
  background: #49B17C !important;
  color: #fff;
}
.text-accent {
  color: #49B17C;
}
.text-primary {
  color: #174A67;
}
.text-secondary {
  color: #49B17C;
}
.rounded {
  border-radius: 16px;
}
.shadow {
  box-shadow: 0 2px 10px rgba(23,74,103,0.09);
}

/* =================
  COOKIE CONSENT BAR
  ================= */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background: #fff;
  color: #174A67;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  z-index: 2500;
  box-shadow: 0 -8px 24px rgba(23,74,103,0.14);
  padding: 26px 14px 19px 14px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  transition: transform 0.27s;
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 5px;
}
.cookie-btn {
  background: #174A67;
  color: #fff;
  border-radius: 10px 0 10px 0;
  padding: 9px 22px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  margin-right: 0;
  margin-bottom: 0;
  transition: background 0.13s, color 0.14s, box-shadow 0.16s;
  box-shadow: 0 2px 9px rgba(23,74,103,0.08);
}
.cookie-btn.reject {
  background: #F3F4F7;
  color: #174A67;
  border: 1.2px solid #174A67;
}
.cookie-btn.settings {
  background: #49B17C;
  color: #fff;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #49B17C;
  color: #fff;
  box-shadow: 0 3px 11px rgba(73,177,124,0.13);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #fff;
  color: #174A67;
  border: 1.2px solid #49B17C;
}

/* COOKIE SETTINGS MODAL */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  min-width: 340px;
  max-width: 98vw;
  width: 440px;
  background: #fff;
  color: #174A67;
  border-radius: 15px 0 15px 0;
  box-shadow: 0 11px 42px rgba(23,74,103,0.19);
  z-index: 2600;
  padding: 39px 26px 32px 26px;
  transform: translate(-50%, -50%) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.19s cubic-bezier(0.7, 0, 0.15, 1), transform 0.20s cubic-bezier(0.7, 0, 0.15, 1);
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.cookie-modal h3 {
  margin-bottom: 7px;
  font-size: 1.2rem;
  color: #174A67;
}
.cookie-modal .modal-section {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}
.cookie-modal label {
  font-size: 1rem;
}
.cookie-modal .cookie-switch {
  width: 42px;
  height: 22px;
  position: relative;
  display: inline-block;
}
.cookie-switch input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-switch .slider {
  position: absolute;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: #F3F4F7;
  border-radius: 15px;
  transition: background 0.2s;
}
.cookie-switch input:checked + .slider {
  background: #49B17C;
}
.cookie-switch .slider:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(23,74,103,0.12);
  transition: transform 0.23s;
}
.cookie-switch input:checked + .slider:before {
  transform: translateX(18px);
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 10px;
}
.cookie-modal .close-modal-btn {
  position: absolute;
  right: 17px;
  top: 17px;
  background: transparent;
  color: #174A67;
  font-size: 1.4rem;
  cursor: pointer;
  border: none;
  padding: 0 4px;
}

@media (max-width: 600px) {
  .cookie-modal {
    padding: 18px 5vw 24px 5vw;
    min-width: 85vw;
    width: 95vw;
    border-radius: 9px 0 9px 0;
  }
  .cookie-banner {
    font-size: 0.98rem;
    gap: 10px;
    padding: 14px 5px;
  }
}

/* =================
   GEOMETRIC STYLES
   ================= */
body, .container, .content-wrapper, .card, .hero-section, .testimonial-card, .feature-item, .footer-contact, .cookie-banner, .cookie-modal {
  /* geometric touch: slight angled corners for distinct style */
  border-radius: 20px 0 20px 0;
}
@media (max-width: 600px) {
  body, .container, .content-wrapper, .card, .hero-section, .testimonial-card, .feature-item, .footer-contact, .cookie-banner, .cookie-modal {
    border-radius: 12px 0 12px 0;
  }
}

/* Angular headlines */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  text-transform: none;
  letter-spacing: 0.014em;
  font-style: normal;
}
h1, h2 {
  /* structured underline */
  position: relative;
  padding-bottom: 5px;
}
h1:after, h2:after {
  content: '';
  display: block;
  width: 44px;
  height: 4px;
  background: #49B17C;
  border-radius: 10px 0 10px 0;
  margin-top: 9px;
}

.hero-section h1:after,
.hero-section h2:after {
  background: #fff;
  opacity: 0.4;
}

/* Buttons: geometric + structured */
.cta-button, .cookie-btn {
  border-radius: 16px 0 16px 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.card {
  border-radius: 18px 0 18px 0;
  border: 1.5px solid #49B17C;  /* subtle geometric accent */
}
.feature-item {
  border-left: 6px solid #49B17C;
  border-radius: 0 18px 18px 0;
}

/* Icons: geometric background shape */
ul > li img {
  background: #F3F4F7;
  border-radius: 11px 0 11px 0;
  padding: 5px;
  box-shadow: 0 1.5px 7px rgba(23,74,103,0.06);
  align-self: flex-start;
}

/* ===========
   ANIMATIONS
   =========== */
.cta-button,
.cookie-btn {
  transition: background 0.18s, color 0.22s, box-shadow 0.20s, transform 0.16s;
}
.cta-button:active,
.cookie-btn:active {
  transform: scale(0.96);
}
.card,
.testimonial-card,
.feature-item {
  transition: box-shadow 0.22s, transform 0.17s;
}
.card:hover,
.feature-item:hover {
  box-shadow: 0 10px 28px rgba(23,74,103,0.18);
  transform: translateY(-2px) scale(1.012);
}

/* ============
   Z-INDEX SAFE
   ============ */
header { z-index: 100; }
.mobile-menu { z-index: 3000; }
.cookie-banner { z-index: 2500; }
.cookie-modal { z-index: 2600; }

/* ============
   ACCESSIBILITY
   ============ */
:focus-visible {
  outline: 2px solid #49B17C;
  outline-offset: 2px;
}
::-webkit-input-placeholder { color: #A1A9B2; }
::-moz-placeholder { color: #A1A9B2; }
:-ms-input-placeholder { color: #A1A9B2; }
::placeholder { color: #A1A9B2; }

/* =============
   STRUCTURED MARGINS
   ============= */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Prevent overlapping and add breathing room */
.card, .testimonial-card, .feature-item, .content-wrapper {
  margin-bottom: 20px;
}

/* Hide underlines on last child of content wrappers */
.content-wrapper > h2:last-child:after {
  display: none;
}

/* LAST: PRINT SUPPORT (MINIMAL) */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  body { color: #000; background: #fff; }
}
