/* CSS Reset & Normalize */
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F5F5F5;
  color: #1A232E;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  border-style: none;
  max-width: 100%;
  display: block;
}
a {
  background-color: transparent;
  color: #2B4865;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #7FB77E;
  text-decoration: underline;
}
ul, ol {
  list-style: inside disc;
  margin-left: 16px;
}
strong {
  font-weight: 700;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.5px;
  color: #2B4865;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 24px;
}
h3 {
  font-size: 1.3rem;
  font-weight: 600;
}
.subheadline {
  color: #486786;
  font-size: 1.125rem;
  margin-bottom: 24px;
}
p, li {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}
@media (max-width: 600px) {
  h1 {
    font-size: 1.7rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  .subheadline {
    font-size: 1rem;
  }
}

/* Container Styles */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
  margin: 0 auto 20px auto;
}

/* Header Styles */
header {
  background: linear-gradient(90deg, #2B4865 0%, #7FB77E 100%);
  color: #fff;
  padding: 0;
  box-shadow: 0 3px 12px rgba(43, 72, 101, 0.07);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  min-height: 72px;
}
.logo img {
  height: 40px;
  margin: 16px 0;
  transition: transform 0.25s;
}
.logo:hover img {
  transform: scale(1.05) rotate(-2deg);
}
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
nav.main-nav a {
  color: #fff;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  position: relative;
  transition: color 0.2s;
  padding: 8px 0;
}
nav.main-nav a.btn-primary {
  color: #2B4865;
  background: #fff;
  border-radius: 24px;
  font-weight: 800;
  padding: 8px 22px;
  margin-left: 14px;
  box-shadow: 0 2px 8px 0 rgba(43,72,101,0.09);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
nav.main-nav a.btn-primary:hover,
nav.main-nav a.btn-primary:focus {
  background: #7FB77E;
  color: #fff;
  box-shadow: 0 4px 18px 0 rgba(43,72,101,0.14);
}
nav.main-nav a::after {
  content: '';
  display: block;
  width: 0%;
  height: 2px;
  background: #7FB77E;
  transition: width 0.2s;
}
nav.main-nav a:hover::after, nav.main-nav a:focus::after {
  width: 100%;
}

/* Hide nav on mobile by default */
nav.main-nav {
  flex-wrap: wrap;
}
@media (max-width: 960px) {
  nav.main-nav {
    display: none;
  }
}

/* Hamburger button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  padding: 8px 16px;
  margin-left: 12px;
  border-radius: 5px;
  transition: background 0.2s;
  z-index: 1202;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: rgba(127,183,126,0.12);
}
@media (max-width: 960px) {
  .mobile-menu-toggle {
    display: block;
  }
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #2B4865;
  color: #fff;
  z-index: 1201;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.7,.41,.45,1.03);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0.97;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 28px 26px 0 0;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #7FB77E;
  cursor: pointer;
  border-radius: 4px;
  padding: 6px 18px;
  transition: background 0.2s;
  z-index: 1220;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(127,183,126,0.13);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 48px 0 0 32px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 10px 0;
  transition: color 0.18s, background 0.15s;
  border-radius: 8px;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: #2B4865;
  background: #fff;
}
@media (max-width: 360px) {
  .mobile-nav {
    margin-left: 12px;
  }
}

/* Main Sections */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 1px 16px 0 rgba(43,72,101,0.04);
  transition: box-shadow 0.2s;
}
section:hover {
  box-shadow: 0 3px 32px 0 rgba(43,72,101,0.06);
}
@media (max-width: 600px) {
  section {
    padding: 28px 6px;
    margin-bottom: 32px;
    border-radius: 18px;
  }
}

/* Feature/Card Grid (Always Flexbox) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.feature-grid > div {
  flex: 1 1 210px;
  max-width: 320px;
  background: #F5F5F5;
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(43,72,101,0.06);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 20px 16px 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, background 0.25s;
  gap: 15px;
  min-width: 210px;
}
.feature-grid > div img {
  height: 42px;
  margin-bottom: 8px;
}
.feature-grid > div:hover {
  background: #e3eee3;
  box-shadow: 0 6px 24px 0 rgba(43,72,101,0.15);
}
@media (max-width: 980px) {
  .feature-grid {
    gap: 20px;
  }
  .feature-grid > div {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 150px;
  }
}
@media (max-width: 600px) {
  .feature-grid {
    flex-direction: column;
    gap: 16px;
    margin-top: 12px;
  }
  .feature-grid > div {
    max-width: 100%;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 1px 7px 0 rgba(43,72,101,0.06);
    padding: 18px 12px 10px 12px;
  }
}

/* Card Container (Flex) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 8px 0 rgba(43,72,101,0.08);
  padding: 24px 18px;
  min-width: 220px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 6px 28px rgba(43,72,101,0.13);
}
@media (max-width: 700px) {
  .card-container {
    gap: 15px;
  }
  .card {
    min-width: 120px;
    padding: 16px 8px;
    border-radius: 8px;
  }
}

/* Visual CTA Button */
.btn-primary {
  display: inline-block;
  background: linear-gradient(90deg, #2B4865 0%, #7FB77E 100%);
  color: #fff;
  padding: 10px 30px;
  border-radius: 48px;
  font-size: 1.15rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 12px;
  margin-bottom: 8px;
  box-shadow: 0 1px 12px rgba(43,72,101,0.12);
  border: none;
  outline: none;
  transition: background 0.25s, box-shadow 0.18s, color 0.18s, transform 0.09s;
  cursor: pointer;
}
.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(90deg, #7FB77E 0%, #2B4865 100%);
  color: #2B4865;
  box-shadow: 0 2px 24px rgba(127,183,126,0.12);
  transform: translateY(-2px) scale(1.02);
}

/* Content Grids (Flexbox enforced) */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}
@media (max-width: 850px) {
  .content-grid {
    flex-direction: column;
    gap: 15px;
  }
}

/* Text-Image Section */
.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: 20px;
  }
}

/* Testimonial Card */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 24px 0 rgba(43,72,101,0.09);
  margin-bottom: 20px;
  transition: box-shadow 0.2s, background 0.22s;
  max-width: 800px;
}
.testimonial-card .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.testimonial-card p {
  color: #222c38;
  font-style: italic;
}
.testimonial-card strong {
  color: #1A232E;
  font-weight: 700;
  margin-top: 4px;
}
.star-rating {
  color: #7FB77E;
  font-size: 1.2em;
  letter-spacing: 1.5px;
}
.testimonial-card:hover {
  background: #e7f5ec;
  box-shadow: 0 6px 22px rgba(43,72,101,0.12);
}

/* Feature Item: Flex column */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* General Text Section */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

/* Footer Styles */
footer {
  background: linear-gradient(90deg, #2B4865 0%, #7FB77E 100%);
  color: #fff;
  padding: 32px 0 12px 0;
  border-top-left-radius: 34px;
  border-top-right-radius: 34px;
  box-shadow: 0 -2px 24px rgba(43,72,101,0.04);
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 35px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.footer-nav a {
  color: #fff;
  opacity: 0.93;
  transition: opacity 0.17s, text-decoration 0.14s;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
}
.footer-nav a:hover, .footer-nav a:focus {
  opacity: 1;
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 1rem;
  color: #fff;
  opacity: 0.92;
}
.footer-contact img {
  height: 18px;
  margin-right: 6px;
  vertical-align: middle;
  display: inline-block;
}
footer p {
  margin-bottom: 5px;
  color: inherit;
}
@media (max-width: 700px) {
  footer .container {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  footer {
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    padding: 18px 0 8px 0;
  }
}

/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100%;
  background: #2B4865;
  color: #fff;
  font-family: 'Roboto', Arial, sans-serif;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 -4px 20px rgba(43,72,101,0.13);
  z-index: 1800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 18px 30px;
  gap: 32px;
  opacity: 0.97;
  animation: cookieSlideIn 0.85s cubic-bezier(.63,.03,.64,.98);
}
@media (max-width: 600px) {
  .cookie-consent-banner {
    flex-direction: column;
    gap: 16px;
    padding: 18px 10px 24px 12px;
    font-size: 0.98rem;
    text-align: left;
  }
}
@keyframes cookieSlideIn {
  from { transform: translateY(110%); opacity: 0.3; }
  to { transform: translateY(0); opacity: 0.97; }
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  gap: 16px;
}
.cookie-actions button {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 36px;
  padding: 7px 22px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.19s, color 0.19s, box-shadow 0.13s;
  margin-right: 4px;
}
.cookie-actions .accept {
  background: #7FB77E;
  color: #2B4865;
  box-shadow: 0 1px 7px rgba(127,183,126,0.09);
}
.cookie-actions .reject {
  background: #486786;
  color: #fff;
  box-shadow: 0 1px 7px rgba(43, 72, 101, 0.08);
}
.cookie-actions .settings {
  background: #fff;
  color: #2B4865;
  border: 1px solid #7FB77E;
}
.cookie-actions .accept:hover, .cookie-actions .accept:focus {
  background: #2B4865;
  color: #fff;
}
.cookie-actions .reject:hover, .cookie-actions .reject:focus {
  background: #e25f50;
  color: #fff;
}
.cookie-actions .settings:hover, .cookie-actions .settings:focus {
  background: #e3eee3;
  color: #2B4865;
}

/* Cookie Modal Popup */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(43, 72, 101, 0.47);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInBg 0.35s;
}
@keyframes fadeInBg {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  color: #222c38;
  border-radius: 20px;
  padding: 36px 24px 24px 30px;
  box-shadow: 0 1px 32px 0 rgba(43,72,101,0.11);
  width: 95vw;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: modalPop 0.44s cubic-bezier(.54,-0.03,.44,1.01);
}
@keyframes modalPop {
  0% {transform: scale(.85) translateY(52px); opacity: 0.45;}
  100% {transform: scale(1) translateY(0); opacity: 1;}
}
.cookie-modal-content h2 {
  color: #2B4865;
  font-size: 1.22rem;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0;
  font-size: 1rem;
}
.cookie-category .toggle {
  appearance: none;
  width: 40px;
  height: 22px;
  background: #ddd;
  border-radius: 17px;
  position: relative;
  outline: none;
  transition: background 0.22s;
  cursor: pointer;
}
.cookie-category .toggle:checked {
  background: #7FB77E;
}
.cookie-category .toggle:before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.22s;
}
.cookie-category .toggle:checked:before {
  left: 20px;
}
.cookie-modal-content .modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.cookie-modal-content button {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 36px;
  padding: 6px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  background: #2B4865;
  color: #fff;
  transition: background 0.18s, color 0.17s;
}
.cookie-modal-content button.cancel {
  background: #e3eee3;
  color: #2B4865;
  border: 1px solid #7FB77E;
}
.cookie-modal-content button.cancel:hover, .cookie-modal-content button.cancel:focus {
  background: #fff;
}
.cookie-modal-content button.save {
  background: #7FB77E;
  color: #2B4865;
}
.cookie-modal-content button.save:hover, .cookie-modal-content button.save:focus {
  background: #2B4865;
  color: #fff;
}

/* Helper Utilities */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-12 { margin-top: 12px !important; }
.mb-12 { margin-bottom: 12px !important; }
.text-center { text-align: center !important; }

/* Responsive Mobile Stacks */
@media (max-width: 767px) {
  .container {
    padding: 0 6px;
  }
  .footer-nav {
    gap: 15px;
    font-size: 0.98rem;
  }
  .footer-contact {
    gap: 4px;
    font-size: 0.95rem;
  }
}

/* Accessibility & Outline */
a:focus, button:focus, .btn-primary:focus, .cookie-actions button:focus, .cookie-modal-content button:focus {
  outline: 2px solid #7FB77E;
  outline-offset: 2px;
}

/* Hide Mobile Menu overlay by default (JS class 'active' shows it) */
.mobile-menu {
  visibility: hidden;
  pointer-events: none;
}
.mobile-menu.active {
  visibility: visible;
  pointer-events: auto;
}

/* Animate hamburger icon (optional for advanced) */

/* Miscellaneous spacing for sections */
section ul {
  margin-bottom: 12px;
  margin-top: 2px;
}
section li {
  margin-bottom: 6px;
}

/* Card-Metadata classes for future expansion */
.card-metadata {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.93rem;
  opacity: 0.7;
  margin-top: 10px;
}

/* Disable text selection on interactive elements */
.btn-primary, .cookie-actions button, .mobile-menu-toggle, .mobile-menu-close {
  user-select: none;
}

/* Prevent overlapping by enforcing min/gap spacing */
section:not(:last-child), .card:not(:last-child), .testimonial-card:not(:last-child) {
  margin-bottom: 20px;
}

/* Hide scrollbars on mobile-menu for a clean look */
.mobile-menu::-webkit-scrollbar {
  display: none;
}
.mobile-menu {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* COLOR ACCESSIBILITY - testimonials */
.testimonial-card, .testimonial-card p, .testimonial-card strong {
  color: #222c38 !important;
}

/* SEARCH for patterns and layout using ONLY FLEXBOX */
