/* ---- CSS Reset & Normalize ---- */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #204563;
  background-color: #FFFFFF;
  min-height: 100vh;
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: #204563;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #56A17A;
  outline: none;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
  line-height: 1.5;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
button {
  cursor: pointer;
}

/* ---- Typography ---- */
h1,h2,h3,h4,h5,h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #204563;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 { font-size: 2.25rem; margin-bottom: 24px; }
h2 { font-size: 1.5rem;  margin-bottom: 20px; }
h3 { font-size: 1.125rem; margin-bottom: 12px; font-weight: 600; }
h4 { font-size: 1rem;    margin-bottom: 8px; }

p {
  margin-bottom: 16px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #204563;
}
strong {
  font-weight: 700;
}
em {
  font-style: italic;
  color: #56A17A;
}

/* ---- Container & Wrappers ---- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ========== FLEXBOX LAYOUTS ========== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(32,69,99,0.05);
  padding: 32px 24px;
  transition: box-shadow 0.2s, transform 0.12s;
  position: relative;
  min-width: 260px;
  flex: 1 1 260px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 24px 0 rgba(32, 69, 99, 0.10);
  transform: translateY(-2px) scale(1.01);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #F7F7F7;
  border-radius: 10px;
  box-shadow: 0 2px 8px 0 rgba(32,69,99,0.04);
  max-width: 600px;
  transition: box-shadow 0.2s;
  color: #204563;
}
.testimonial-card strong {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #204563;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: #F7F7F7;
  border-radius: 10px;
  box-shadow: 0 1px 6px 0 rgba(32,69,99,0.06);
  padding: 24px 16px;
  min-width: 220px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

/* ---- Header & Navigation ---- */
header {
  background: #fff;
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 12px 0 rgba(32,69,99,0.03);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
}
.main-nav > a {
  padding: 7px 12px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
  position: relative;
}
.main-nav > a.btn-primary {
  background: #204563;
  color: #fff;
  font-weight: 600;
  margin-left: 10px;
  box-shadow: 0 2px 8px 0 rgba(32,69,99,0.10);
  transition: background 0.22s, box-shadow 0.18s, color 0.18s;
}
.main-nav > a.btn-primary:hover, 
.main-nav > a.btn-primary:focus {
  background: #56A17A;
  color: #fff;
  box-shadow: 0 4px 16px 0 rgba(32,69,99,0.11);
}
.main-nav > a:hover, .main-nav > a:focus {
  background: #F7F7F7;
  color: #56A17A;
}
.main-nav img {
  height: 36px;
  margin-right: 16px;
  vertical-align: middle;
  display: inline-block;
}

/* Hamburger Menu */
.mobile-menu-toggle {
  display: none;
  background: #204563;
  color: #fff;
  border-radius: 8px;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 16px;
  top: 15px;
  z-index: 201;
  border: none;
  transition: background 0.15s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #56A17A;
  color: #fff;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(240,247,243,0.97);
  box-shadow: 0 8px 32px 0 rgba(32,69,99,0.18);
  z-index: 2002;
  display: flex;
  flex-direction: column;
  transform: translateX(-100vw);
  transition: transform 0.33s cubic-bezier(.63,.12,.17,1.35);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 20px 20px 8px 0;
  background: #204563;
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2003;
  transition: background 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #56A17A;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 50px 0 0 32px;
}
.mobile-nav a {
  color: #204563;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  background: none;
  border-radius: 6px;
  padding: 10px;
  transition: background 0.18s, color 0.18s;
  min-width: 180px;
  display: block;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #E5F4FA;
  color: #56A17A;
}
.mobile-nav a:last-child {
  font-weight: 700;
  background: #56A17A;
  color: #fff;
  margin-top: 10px;
  padding-left: 22px;
}
.mobile-nav a:last-child:hover {
  background: #204563;
  color: #fff;
}

/* ---- Buttons ---- */
.btn-primary, a.btn-primary {
  background: #204563;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 8px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.22s, color 0.15s, transform 0.11s;
  border: none;
  display: inline-block;
  box-shadow: 0 2px 8px 0 rgba(32,69,99,0.10);
  letter-spacing: 0.01em;
  margin-top: 6px;
}
.btn-primary:hover, .btn-primary:focus, a.btn-primary:hover, a.btn-primary:focus {
  background: #56A17A;
  color: #fff;
  box-shadow: 0 4px 22px 0 rgba(32,69,99,0.14);
  transform: translateY(-1px);
}
.btn-secondary, a.btn-secondary {
  background: #F7F7F7;
  color: #204563;
  border-radius: 8px;
  padding: 14px 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: 1.5px solid #56A17A;
  transition: background 0.17s, color 0.15s;
  box-shadow: none;
  margin-top: 6px;
}
.btn-secondary:hover, .btn-secondary:focus, a.btn-secondary:hover, a.btn-secondary:focus {
  background: #56A17A;
  color: #fff;
  border-color: #204563;
}

/* ---- Section & White Space ---- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

ol li {
  margin-bottom: 10px;
}
details {
  margin-bottom: 14px;
  background: #F7F7F7;
  border-radius: 8px;
  padding: 14px 18px;
  cursor: pointer;
  transition: box-shadow 0.18s;
}
details[open] {
  box-shadow: 0 2px 12px 0 rgba(32,69,99,0.09);
}
summary {
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #204563;
  cursor: pointer;
  margin-bottom: 6px;
  outline: none;
}

/* ---- Footer ---- */
footer {
  background: #F7F7F7;
  padding: 40px 0 0 0;
  color: #204563;
}
footer .container {
  padding-bottom: 30px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 0;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
footer nav a {
  font-size: 1rem;
}
footer img {
  display: block;
  margin-bottom: 16px;
  height: 38px;
}
footer p {
  color: #204563;
  margin-bottom: 10px;
  font-size: 0.97rem;
}
footer div > div img {
  height: 28px;
  margin-right: 8px;
  display: inline-block;
  vertical-align: middle;
}

/* ---- Cookie Consent Banner ---- */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #F7F7F7;
  border-top: 1.5px solid #E5F4FA;
  box-shadow: 0 -6px 24px 0 rgba(32,69,99,0.04);
  z-index: 2200;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 28px;
  gap: 30px;
  font-size: 1rem;
  color: #204563;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.36s cubic-bezier(.65,.2,.09,1.06), opacity 0.22s;
}
.cookie-consent-banner.hide {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner-content {
  flex: 1 1 380px;
  padding-right: 12px;
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 6px;
}
.cookie-consent-banner .btn-consent-primary {
  background: #56A17A;
  color: #fff;
  border-radius: 7px;
  padding: 11px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.16s, color 0.13s;
}
.cookie-consent-banner .btn-consent-primary:hover,
.cookie-consent-banner .btn-consent-primary:focus {
  background: #204563;
  color: #fff;
}
.cookie-consent-banner .btn-consent-secondary {
  background: #F7F7F7;
  border: 1.5px solid #204563;
  color: #204563;
  border-radius: 7px;
  padding: 11px 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.17s, color 0.13s, border 0.13s;
}
.cookie-consent-banner .btn-consent-secondary:hover, 
.cookie-consent-banner .btn-consent-secondary:focus {
  background: #204563;
  color: #fff;
  border-color: #56A17A;
}
.cookie-consent-banner .btn-cookie-settings {
  background: #fff;
  border: 1.5px solid #56A17A;
  color: #56A17A;
  border-radius: 6px;
  padding: 11px 16px;
  transition: background 0.17s, color 0.13s;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
}
.cookie-consent-banner .btn-cookie-settings:hover, .cookie-consent-banner .btn-cookie-settings:focus {
  background: #56A17A;
  color: #fff;
  border-color: #204563;
}
/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32,69,99,0.12);
  z-index: 3200;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s;
}
.cookie-modal.open {
  pointer-events: all;
  opacity: 1;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 60px 0 rgba(32,69,99,0.12);
  padding: 32px 38px 28px 38px;
  min-width: 370px;
  max-width: 94vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #204563;
  position: relative;
}
.cookie-modal-content h2 {
  font-size: 1.38rem;
  margin-bottom: 15px;
}
.cookie-modal-content ul {
  list-style: none;
  padding-left: 0;
  margin: 12px 0 18px 0;
}
.cookie-modal-content li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  font-size: 1rem;
}
.cookie-category-toggle {
  width: 40px;
  height: 20px;
  background: #E5F4FA;
  border-radius: 12px;
  position: relative;
  display: inline-block;
}
.cookie-category-toggle input {
  display: none;
}
.cookie-category-toggle .slider {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  background: #56A17A;
  border-radius: 50%;
  transition: left 0.19s, background 0.16s;
}
.cookie-category-toggle input:checked + .slider {
  left: 22px;
  background: #204563;
}
.essential-label {
  color: #999;
  font-size: 0.93em;
  margin-left: 6px;
  font-style: italic;
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: #204563;
  color: #fff;
  font-size: 1.5rem;
  border-radius: 6px;
  width: 38px;
  height: 38px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  z-index: 1;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #56A17A;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 12px;
}

/* ---- Utility classes ---- */
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

/* ---- Subtle Animations ---- */
a, button, .btn-primary, .btn-secondary,
.mobile-menu-toggle, .mobile-menu-close {
  transition: color 0.15s, background 0.18s, box-shadow 0.17s, border-color 0.15s, transform 0.13s;
}
section, .feature-grid > div, .testimonial-card, .card {
  transition: box-shadow 0.23s, background 0.19s, transform 0.17s;
}

/* ---- Responsive Styles ---- */
@media (max-width: 1080px) {
  .container {
    max-width: 940px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 20px;
  }
  .feature-grid {
    gap: 14px;
  }
  .footer .content-wrapper {
    gap: 24px;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .container { max-width: 98vw; padding: 0 8px; }
  .content-wrapper { gap: 16px; }
  section, .section {
    margin-bottom: 40px;
    padding: 30px 6px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    max-width: 96vw;
    padding: 16px;
    margin-bottom: 14px;
  }
  .footer .content-wrapper, footer .content-wrapper {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 7px;
  }
  .cookie-banner-content {
    padding-right: 0;
  }
  .cookie-modal-content {
    min-width: 90vw;
    padding: 18px 7px 18px 14px;
    font-size: 0.97rem;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
@media (max-width: 480px) {
  html { font-size: 14px; }
  section { padding: 17px 2px; }
  h1 { font-size: 1.32rem; }
  h2 { font-size: 1.11rem; }
  .btn-primary, .btn-secondary {
    font-size: 0.96rem;
    padding: 12px 8vw;
    min-width: 80vw;
  }
  .testimonial-card {
    padding: 10px;
    border-radius: 8px;
  }
  .card {
    padding: 14px 7px;
    border-radius: 8px;
  }
}

/* ---- Accessibility Focus States ---- */
a:focus, button:focus {
  outline: 2px solid #204563;
  outline-offset: 2px;
}

/* ---- Hide scrollbar for mobile menu ---- */
.mobile-menu {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---- For print ---- */
@media print {
  header, footer, .mobile-menu, .cookie-consent-banner {
    display: none !important;
  }
  body { background: #fff; color: #204563; }
  section, .section { box-shadow: none; }
}
