/* RESET & BASE TYPOGRAPHY */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: #15304B;
  background: #F4F5F7;
  line-height: 1.6;
  min-height: 100vh;
  letter-spacing: 0;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #15304B;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #74AB90;
  outline-offset: 2px;
}
ul, ol {
  list-style: none;
}
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  line-height: 1.2;
  color: #15304B;
  font-weight: 600;
  margin-bottom: 18px;
}
h1 { font-size: 2.375rem; margin-bottom: 20px; }
h2 { font-size: 1.75rem; margin-bottom: 18px; }
h3 { font-size: 1.1875rem; margin-bottom: 14px; }
p, li, strong, span {
  font-size: 1rem;
}
strong { font-weight: 700; }

/* CONTAINER UTILITY */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

/* HEADER */
header {
  background: #fff;
  box-shadow: 0 1px 8px rgba(21,48,75,0.04);
  padding: 0;
  z-index: 30;
  position: relative;
}
header .container {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
header a img {
  height: 42px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 28px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: #15304B;
  padding: 8px 7px;
  border-radius: 8px;
  font-weight: 500;
  position: relative;
  transition: background 0.1s, color 0.1s;
}
.main-nav a:hover, .main-nav a.active {
  background: #F4F5F7;
  color: #74AB90;
}
.cta-primary {
  background: #74AB90;
  color: #fff;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 36px;
  box-shadow: 0 2px 10px 0 rgba(116,171,144,0.10);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.15s;
  margin-left: 10px;
  white-space: nowrap;
  position: relative;
  display: inline-block;
}
.cta-primary:hover, .cta-primary:focus {
  background: #15304B;
  color: #fff;
  box-shadow: 0 4px 18px 0 rgba(116,171,144,0.13);
}
.cta-secondary {
  background: #fff;
  color: #15304B;
  border: 2px solid #74AB90;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 28px;
  border-radius: 36px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, border 0.2s;
  box-shadow: 0 2px 10px 0 rgba(21,48,75,0.07);
  cursor: pointer;
  margin-top: 18px;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #74AB90;
  color: #fff;
  border-color: #74AB90;
}
button, .cta-primary, .cta-secondary {
  transition: background 0.2s, color 0.2s, border 0.2s, box-shadow 0.15s;
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  background: #F4F5F7;
  color: #15304B;
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  padding: 7px 13px;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #74AB90;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(244,245,247,0.97);
  z-index: 60;
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  transition: transform 0.4s cubic-bezier(0.72,0.07,0.49,0.97), opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu .mobile-menu-close {
  background: none;
  border: none;
  color: #15304B;
  font-size: 2.4rem;
  padding: 20px 24px 10px 0;
  align-self: flex-end;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu .mobile-menu-close:focus {
  outline: 2px solid #74AB90;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 24px;
  gap: 22px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.32rem;
  color: #15304B;
  font-weight: 500;
  padding: 10px 3px;
  border-radius: 8px;
  width: 100%;
  transition: background 0.15s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #74AB90;
  color: #fff;
}

/* --- BANNER & SECTION LAYOUTS (MANDATORY) --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  width: 100%;
  background: none;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  border-radius: 18px;
  box-shadow: 0 2px 15px 0 rgba(21,48,75,0.07);
  background: #fff;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.17s, transform 0.17s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 8px 26px 0 rgba(21,48,75,0.13);
  transform: translateY(-3px);
}
.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;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(21,48,75,0.08);
  margin-bottom: 22px;
  transition: box-shadow 0.15s, background 0.15s;
}
.testimonial-card p {
  color: #15304B;
  font-size: 1.06rem;
  line-height: 1.5;
}
.testimonial-card strong {
  color: #74AB90;
  font-weight: 700;
  margin-left: 12px;
  font-size: 1rem;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  box-shadow: 0 6px 26px 0 rgba(21,48,75,0.14);
  background: #F4F5F7;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.section:not(:last-child) {
  margin-bottom: 60px;
}

/* HERO/BANNERS */
.hero {
  background: #F4F5F7;
  padding: 64px 20px 32px 20px;
  border-radius: 0 0 36px 36px;
  margin-bottom: 38px;
}
.hero h1 {
  font-family: 'Montserrat', sans-serif;
  color: #15304B;
  font-size: 2.375rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.hero p {
  font-size: 1.1rem;
  color: #31546f;
  margin-bottom: 18px;
}

/* FEATURES */
.features {
  display: flex;
  flex-direction: column;
  margin-bottom: 60px;
}
.features .content-wrapper {
  gap: 18px;
}
.features ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 0;
}
.features li {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(21,48,75,0.07);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.05rem;
  padding: 18px 22px;
  margin-bottom: 0;
  min-width: 220px;
  flex: 1 1 220px;
  transition: box-shadow 0.14s;
}
.features li img {
  width: 34px;
  height: 34px;
}
.features li:hover {
  box-shadow: 0 5px 18px 0 rgba(116,171,144,0.13);
}

/* SERVICES */
.services {
  display: flex;
  flex-direction: column;
}
.services .content-wrapper {
  gap: 22px;
}
.services ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.services ul li {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 13px 0 rgba(21,48,75,0.08);
  padding: 24px 22px;
  min-width: 220px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 0;
  transition: box-shadow 0.13s, transform 0.13s;
  border-left: 5px solid #74AB90;
}
.services ul li:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 8px 26px 0 rgba(21,48,75,0.10);
}
.services h3 {
  font-size: 1.20rem;
  font-family: 'Montserrat', sans-serif;
  color: #15304B;
  margin-bottom: 7px;
}
.services p {
  font-size: 1rem;
  color: #2C3F55;
}
.price {
  display: inline-block;
  margin-top: 5px;
  font-family: 'Montserrat', sans-serif;
  background: #F4F5F7;
  color: #74AB90;
  border-radius: 10px;
  font-size: 1rem;
  padding: 2px 13px;
  font-weight: 600;
}

/* TESTIMONIALS */
.testimonials .content-wrapper {
  gap: 18px;
}
.testimonials h2 {
  margin-bottom: 14px;
}

/* CASE STUDIES & BLOG */
.case-studies ul,
.blog ul,
.tips ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.case-studies li, .blog li, .tips li {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 10px 0 rgba(21,48,75,0.07);
  padding: 18px 20px;
  transition: box-shadow 0.13s, background 0.13s;
}
.case-studies li:hover, .blog li:hover, .tips li:hover {
  background: #F4F5F7;
  box-shadow: 0 8px 26px 0 rgba(116,171,144,0.10);
}
.blog p span {
  color: #74AB90;
  margin-right: 7px;
  font-size: 1.01rem;
}

/* CTA (CALL TO ACTION) */
.cta {
  background: #15304B;
  color: #fff;
  border-radius: 20px;
  padding: 36px 20px 40px 20px;
  margin-bottom: 54px;
  text-align: left;
  box-shadow: 0 3px 16px 0 rgba(21,48,75,0.10);
}
.cta h2, .cta p {
  color: #fff;
}
.cta .cta-primary {
  background: #74AB90;
  color: #fff;
  margin-top: 20px;
}
.cta .cta-primary:hover, .cta .cta-primary:focus {
  background: #fff;
  color: #15304B;
}

/* CONTACT DETAILS */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 14px 0 0 0;
}
.contact-details p {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1rem;
}
.contact-details img {
  width: 22px;
  height: 22px;
}

/* CONFIRMATION PAGE */
.confirmation {
  background: #F4F5F7;
  padding: 50px 0;
  border-radius: 16px;
}
/* LEGAL (POLICIES) */
.legal .content-wrapper h1,
.legal .content-wrapper h2 {
  color: #15304B;
}
.legal .content-wrapper {
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 2px 13px 0 rgba(21,48,75,0.07);
  padding: 32px 22px;
  gap: 20px;
  margin-bottom: 36px;
}
.legal ul {
  margin-left: 20px;
  margin-bottom: 20px;
  list-style: disc;
}
.legal ul li {
  font-size: 1rem;
  color: #2C3F55;
  margin-bottom: 12px;
}

/* FOOTER */
footer {
  background: #15304B;
  color: #fff;
  padding: 42px 0 18px 0;
}
footer .container {
  max-width: 1260px;
  padding: 0 20px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-logo img {
  width: 72px;
  height: auto;
}
.footer-contact,
.footer-nav,
.footer-legal,
.footer-social {
  min-width: 160px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-contact h3, .footer-nav h3,
.footer-legal h3, .footer-social h3 {
  font-family: 'Montserrat', sans-serif;
  color: #fff;
  margin-bottom: 7px;
  font-size: 1.07rem;
}
.footer-contact p {
  display: flex;
  align-items: center;
  font-size: 0.98rem;
  gap: 8px;
  color: #F4F5F7;
  opacity: 0.95;
}
.footer-contact img {
  width: 17px;
  height: 17px;
  margin-right: 4px;
}
.footer-nav nav, .footer-legal nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.footer-nav a, .footer-legal a {
  color: #F4F5F7;
  font-size: 0.96rem;
  opacity: 0.92;
  font-family: 'Open Sans', sans-serif;
  transition: color 0.15s, opacity 0.13s;
}
.footer-nav a:hover, .footer-legal a:hover {
  color: #74AB90;
  opacity: 1;
}
.footer-social a {
  display: inline-block;
  margin-right: 7px;
}
.footer-social img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1) grayscale(1);
  transition: filter 0.15s;
}
.footer-social a:hover img {
  filter: brightness(0.8) sepia(1) saturate(10) hue-rotate(90deg);
}

/* GENERAL UTILITIES & FLEXBOX LAYOUTS */
@media (max-width: 1024px) {
  .footer-logo img { width: 60px; }
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  header .container{
    gap: 10px;
  }
  .main-nav { gap: 17px; }
  .footer-logo img { width: 52px; }

  .features ul, .services ul {
    gap: 12px;
  }
  .features li, .services ul li {
    min-width: 180px;
    flex: 1 1 160px;
    padding: 14px 14px;
  }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-toggle {
    display: block;
    z-index: 70;
  }
  header .container {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .hero {
    padding: 36px 8px 18px 8px;
    border-radius: 0 0 26px 26px;
  }
  .features ul, .services ul {
    flex-direction: column;
    gap: 16px;
  }
  .features li, .services ul li {
    min-width: unset;
    width: 100%;
    flex: 1 1 100%;
    padding: 13px 12px;
  }
  .footer-logo img { width: 40px; }
  footer .content-wrapper {
    flex-wrap: wrap;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 13px;
  }
  .section, .cta {
    padding: 23px 8px;
    margin-bottom: 35px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 15px;
  }
}
@media (max-width: 520px) {
  .hero h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }
  h1 { font-size: 1.45rem; }
  .cta { padding: 15px 7px 25px 7px; }
  .footer-logo img { width: 32px; }
  .cta-primary, .cta-secondary {
    font-size: 0.98rem;
    padding: 10px 14px;
  }
}
.text-image-section {
  flex-direction: row;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* MANDATORY GAP FOR ALL SECTIONS */
.section, .hero, .cta, .legal, .contact, .confirmation {
  margin-bottom: 60px;
}
.section:last-child, .cta:last-child, .legal:last-child, .contact:last-child, .confirmation:last-child {
  margin-bottom: 0;
}

/* ANIMATION/TRANSITIONS */
.card, .features li, .services ul li, .testimonial-card {
  transition: box-shadow 0.15s, transform 0.13s, background 0.13s;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 1px solid #E0E3E7;
  box-shadow: 0 -4px 16px rgba(21,48,75,0.07);
  color: #15304B;
  font-size: 1rem;
  box-sizing: border-box;
  z-index: 160;
  padding: 20px 10px 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: fadeInCookie 0.8s;
}
@keyframes fadeInCookie {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 7px;
  justify-content: center;
}
.cookie-banner button {
  border: none;
  outline: none;
  font-family: 'Montserrat', sans-serif;
  border-radius: 24px;
  font-size: 1rem;
  padding: 10px 22px;
  margin: 0 0 0 0;
  cursor: pointer;
  font-weight: 600;
  transition: background .20s, color .18s, box-shadow 0.13s;
}
.cookie-banner .accept {
  background: #74AB90;
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #15304B;
}
.cookie-banner .reject {
  background: #fff;
  color: #15304B;
  border: 2px solid #15304B;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #eee;
  border-color: #74AB90;
  color: #74AB90;
}
.cookie-banner .settings {
  background: #F4F5F7;
  color: #15304B;
  border: 1px solid #E0E3E7;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #74AB90;
  color: #fff;
}

/* COOKIE MODAL OVERLAY */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2000;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(21,48,75,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.21s;
}
.cookie-modal-overlay.open {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal {
  background: #fff;
  padding: 38px 32px 28px 32px;
  border-radius: 20px;
  box-shadow: 0 10px 60px 0 rgba(21,48,75,0.14);
  min-width: 320px;
  max-width: 98vw;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  animation: fadeInCookieModal 0.35s;
}
@keyframes fadeInCookieModal {
  from { opacity: 0; transform: scale(0.93); }
  to { opacity: 1; transform: scale(1); }
}
.cookie-modal h2 {
  color: #15304B;
  margin-bottom: 7px;
}
.cookie-modal .category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.cookie-modal .cookie-switch {
  width: 38px;
  height: 23px;
  background: #E0E3E7;
  border-radius: 16px;
  position: relative;
  margin-left: auto;
}
.cookie-modal .cookie-switch input {
  display: none;
}
.cookie-modal .cookie-switch span {
  display: block;
  width: 16px;
  height: 16px;
  background: #74AB90;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 4px;
  transition: left 0.19s, background 0.12s;
}
.cookie-modal .cookie-switch input:checked+span {
  left: 18px;
  background: #15304B;
}
.cookie-modal .category.essential .cookie-switch span {
  background: #babfc7;
}
.cookie-modal .category.essential .cookie-switch {
  opacity: .7;
}
.cookie-modal .modal-buttons {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  justify-content: flex-end;
}
.cookie-modal button {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 24px;
  padding: 9px 19px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cookie-modal .accept {
  background: #74AB90;
  color: #fff;
}
.cookie-modal .accept:hover { background: #15304B; }
.cookie-modal .close {
  background: #F4F5F7;
  color: #15304B;
}
.cookie-modal .close:hover { background: #74AB90; color: #fff; }

/* FOCUS STYLES FOR ACCESSIBILITY */
*:focus-visible {
  outline: 2px solid #74AB90;
  outline-offset: 2px;
}

/* CUSTOM SCROLLBAR, LIGHT DESIGN */
::-webkit-scrollbar { width: 10px; background: #EEE; }
::-webkit-scrollbar-thumb { background: #D2D5DC; border-radius: 8px; }
* { scrollbar-color: #D2D5DC #EEE; scrollbar-width: thin; }

/* Hide cookie modal when closed */
.cookie-modal-overlay:not(.open), .cookie-banner:not(.active) {
  display: none;
}

/* UTILITY CLASSES */
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }
.gap-4 { gap: 24px; }

/* Hide visually, accessible only for screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
