/* ---------------- BASIC 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,
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;
}

html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.6;
  background: #FFF;
  color: #1A2833;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  position: relative;
}
img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
a {
  color: #05386B;
  text-decoration: none;
  transition: color 0.25s;
}
a:hover, a:focus {
  color: #379683;
  outline: none;
}

/* ------------ BRAND/VARIABLES ------------ */
:root {
  --color-primary: #05386B;
  --color-secondary: #5CDB95;
  --color-accent: #EDF5E1;
  --color-bg: #FFF;
  --color-text: #1A2833;
  --color-card-bg: #FDF8F3;
  --color-btn-primary: #5CDB95;
  --color-btn-primary-hover: #379683;
  --color-btn-secondary: #EDF5E1;
  --color-btn-secondary-hover: #8EE4AF;
  --shadow-main: 0 2px 12px 0 rgba(92, 219, 149, 0.10); /* soft, warm */
  --shadow-card: 0 2px 18px 0 rgba(5, 56, 107, 0.09);
  --border-radius: 18px;
}

h1, h2, h3, h4, h5, h6 {
  color: #05386B;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  margin-bottom: 18px;
  line-height: 1.1;
  font-weight: 700;
}
h1 {
  font-size: 2.4rem;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 600;
}
p, ul, ol {
  font-size: 1rem;
  color: #333;
  margin-bottom: 18px;
}
ul, ol {
  padding-left: 28px;
  margin-bottom: 20px;
}
ul li, ol li {
  margin-bottom: 10px;
}
strong {
  color: #05386B;
}

/* ----------- CONTAINER & LAYOUT ----------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-main);
}

@media (max-width: 900px) {
  .section {
    padding: 28px 10px;
  }
}

/* ------------- HEADER STYLES -------------- */
header {
  width: 100%;
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 18px 0 rgba(5,56,107,0.04);
  position: relative;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}
header img {
  max-height: 48px;
  border-radius: 0px;
  margin-right: 16px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
header nav a {
  color: #fff;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 4px;
  border-radius: 8px;
  transition: background 0.22s;
}
header nav a:hover, header nav a.active {
  background: var(--color-secondary);
  color: var(--color-primary);
}
/* primary header button */
header .button.primary {
  margin-left: 32px;
}

@media (max-width: 900px) {
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 8px 4px 8px 4px;
  }
}
@media (max-width: 768px) {
  header nav, header .button.primary {
    display: none;
  }
  header .container {
    padding-right: 32px;
  }
}

/* --------------- HERO SECTION ------------- */
.hero {
  background: linear-gradient(120deg, #EDF5E1 15%, #FFF 100%);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-main);
  margin: 26px 0 40px 0;
  min-height: 240px;
  display: flex;
  align-items: center;
}
.hero .container {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 660px;
}
.hero h1 {
  font-size: 2.6rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.hero p {
  font-size: 1.22rem;
  color: #2F4F4F;
}
@media (max-width: 768px) {
  .hero .container {
    flex-direction: column;
    padding: 18px 6px;
  }

  .hero .content-wrapper {
    max-width: 100%;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
}

/* ------------- FEATURES/CARDS FLEXBOX GRIDS ------------ */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin: 24px 0;
}
.features-grid > div {
  background: #FFF;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 28px 22px 22px 22px;
  flex: 1 1 280px;
  min-width: 240px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.22s, transform 0.22s;
}
.features-grid > div:hover {
  box-shadow: 0 6px 26px 0 rgba(5,56,107,0.14);
  transform: translateY(-3px) scale(1.025);
}

.features-grid h3 {
  margin-bottom: 4px;
}
.features-grid img {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: #EDF5E1;
  padding: 7px;
  box-shadow: 0 1px 5px rgba(92,219,149,0.09);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FFF;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(5,56,107,0.16);
  transform: translateY(-5px) scale(1.021);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px 22px;
}

.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;
}
.text-image-section .text {
  flex: 2 1 260px;
}
.text-image-section .image {
  flex: 1 1 180px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-accent);
  border-radius: var(--border-radius);
  box-shadow: 0 1px 8px 0 rgba(5,56,107,0.06);
  margin-bottom: 20px;
  color: #16304D;
  font-size: 1.1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  min-width: 0;
  max-width: 700px;
}
.testimonial-card p {
  color: #16304D;
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 0px;
}
.testimonial-card strong {
  color: var(--color-primary);
}
.testimonial-card span {
  font-size: 0.97rem;
  color: #257676;
  font-style: normal;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 13px 0;
}

/* -------- BUTTONS & INTERACTIONS -------- */
.button, .btn {
  display: inline-block;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  padding: 13px 32px;
  font-size: 1.08rem;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  font-weight: 700;
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 1px 8px 0 rgba(92, 219, 149, 0.10);
  margin-top: 10px;
  margin-bottom: 10px;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s, transform 0.18s;
}
.button.primary {
  background: var(--color-primary);
  color: #FFF;
  box-shadow: 0 2px 12px 0 rgba(5,56,107,0.09);
}
.button.primary:hover, .button.primary:focus {
  background: #256895;
  color: #EDF5E1;
  transform: translateY(-2px) scale(1.02);
}
.button:hover, .button:focus {
  background: var(--color-btn-primary-hover);
  color: #FFF;
  transform: translateY(-2px) scale(1.02);
}
.button:active {
  box-shadow: 0 1px 2px 0 rgba(92,219,149,0.20);
  transform: scale(0.99);
}

/* Links that look like buttons (e.g. footer) */
.footer-contact a, .footer-contact a:visited {
  color: var(--color-primary);
  text-decoration: underline;
}
.footer-contact p{color: #fff;}

/* ---------- LISTS, OL, ETC ----------- */
ol {
  list-style: decimal inside;
}
ul {
  list-style: disc inside;
}

/* ----------- FOOTER ------------ */
footer {
  width: 100%;
  background: var(--color-primary);
  color: #fff;
  margin-top: 70px;
  padding: 36px 0 0 0;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
footer img {
  max-height: 38px;
  margin-bottom: 20px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer nav a {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 2px;
  opacity: 0.93;
  transition: color 0.14s;
}
footer nav a:hover {
  color: var(--color-secondary);
}
.footer-contact {
  font-size: 0.97rem;
  color: #D0E1DF;
  max-width: 270px;
  margin-bottom: 16px;
}
.footer-contact img {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 5px;
  vertical-align: middle;
}
.footer-contact span {
  display: block;
  margin-top: 7px;
  color: #AEE8CC;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    padding: 0 12px;
  }
}

/* ------------ RESPONSIVE DESIGN (MOBILE FIRST) --------- */
@media (max-width: 768px) {
  body, html {
    font-size: 15px;
  }
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.17rem;
  }
  .features-grid {
    flex-direction: column;
    align-items: stretch;
  }
  .card-container, .content-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .section {
    margin-bottom: 38px;
    padding: 20px 4px;
  }
  .footer-contact {
    margin-top: 12px;
  }
}
@media (max-width: 500px) {
  h1 { font-size: 1.17rem; }
  h2 { font-size: 0.99rem; }
}

/* ------------- MOBILE BURGER MENU --------------- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 109;
  border: none;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-size: 2rem;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  box-shadow: 0 2px 10px 0 rgba(92,219,149,0.17);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.2s;
}
.mobile-menu-toggle:active {
  transform: scale(0.96);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: rgba(5,56,107,0.97);
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(102vw);
  transition: transform 0.32s cubic-bezier(.73,.25,.27,.91);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  margin: 18px 18px 0 0;
  background: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.8rem;
  box-shadow: 0 2px 10px 0 rgba(92,219,149,0.17);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.15s;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-top: 56px;
  align-items: flex-start;
  padding-left: 28px;
  gap: 18px;
}
.mobile-nav a {
  background: none;
  color: #fff;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.26rem;
  font-weight: 700;
  margin-bottom: 4px;
  padding: 14px 0;
  border-radius: 12px;
  width: 85vw;
  display: block;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
}

/* ---------- COOKIE CONSENT BANNER ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #FDF8F3;
  box-shadow: 0 -2px 16px 0 rgba(92,219,149,0.08);
  z-index: 1220;
  padding: 28px 16px 24px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transition: transform 0.3s cubic-bezier(.73,.25,.27,.91);
  font-size: 1rem;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}
.cookie-banner.hide {
  transform: translateY(130%);
}
.cookie-banner .banner-text {
  color: #16304D;
  font-family: 'Open Sans', Arial, sans-serif;
  flex: 1 1 350px;
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 13px;
  align-items: center;
}
.cookie-banner .button,
.cookie-banner .btn {
  min-width: 110px;
  padding: 10px 18px;
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 0;
}
.cookie-banner .button.secondary {
  background: #EDF5E1;
  color: var(--color-primary);
  border: 1px solid #8EE4AF;
}
.cookie-banner .button.secondary:hover {
  background: #D8FAD5;
  color: #16304D;
}

@media(max-width: 680px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    font-size: 0.97rem;
    border-top-left-radius: 13px;
    border-top-right-radius: 13px;
    padding: 18px 8px 16px 8px;
  }
  .cookie-banner .cookie-buttons {
    flex-direction: column;
    width: 100%;
    gap: 9px;
    align-items: stretch;
  }
  .cookie-banner .button, .cookie-banner .btn {
    width: 100%;
  }
}

/* -- Cookie settings modal dialog -- */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 1240;
  background: rgba(5, 56, 107, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  opacity: 1;
  transition: opacity 0.33s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal .modal-content {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 44px 0 rgba(5,56,107,0.17);
  padding: 38px 32px 28px 32px;
  min-width: 330px;
  max-width: 96vw;
  color: #05386B;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: modal-bounce-in 0.33s cubic-bezier(.72,.14,.32,1.39);
}
@keyframes modal-bounce-in {
  0% { opacity: 0; transform: scale(0.84) translateY(70px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal h2 {
  color: var(--color-primary);
  margin-bottom: 8px;
  font-size: 1.32rem;
}
.cookie-modal .categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 22px;
}
.cookie-modal .category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  font-size: 1.02rem;
}
.cookie-modal .category input[type="checkbox"] {
  width: 23px; height: 23px;
  accent-color: var(--color-secondary);
  border-radius: 6px;
}
.cookie-modal .category label {
  font-weight: 600;
  color: #05386B;
}
.cookie-modal .category.essential input[type="checkbox"] {
  opacity: 0.52;
  pointer-events: none;
}
.cookie-modal .modal-footer {
  display: flex;
  flex-direction: row;
  gap: 15px;
  align-items: center;
  justify-content: flex-end;
}
.cookie-modal .button.close-modal {
  background: #EDF5E1;
  color: #05386B;
  border: 1px solid #5CDB95;
}
.cookie-modal .button.close-modal:hover {
  background: #8EE4AF;
  color: #05386B;
}

/* --------- UTILITIES: SPACING, ETC ----------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 8px; }
.mb-1 { margin-bottom: 8px; }
.mt-2 { margin-top: 18px; }
.mb-2 { margin-bottom: 18px; }
.p-0 { padding: 0 !important; }
.text-center { text-align: center; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

/* ----------- FORM STYLES ----------- */
input, textarea, select {
  border-radius: 12px;
  border: 1.5px solid #B8E6D9;
  padding: 10px 13px;
  background: #F3FCF6;
  color: #05386B;
  font-size: 1rem;
  margin-bottom: 16px;
  font-family: 'Open Sans', Arial, sans-serif;
  width: 100%;
  transition: border 0.2s;
}
input:focus, textarea:focus, select:focus {
  border-color: #5CDB95;
  outline: none;
  box-shadow: 0 2px 10px 0 rgba(92,219,149,0.10);
}
label {
  font-size: 1rem;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: var(--color-primary);
  margin-bottom: 4px;
  display: inline-block;
}

/* -------- ACCESSIBILITY: FOCUS STATE --------- */
a:focus, button:focus, input:focus, .button:focus {
  outline: 2px solid #5CDB95;
  outline-offset: 2px;
}

/* ------ MICRO-INTERACTIONS & TRANSITIONS ------ */
section, .section, .card, .features-grid > div, .button {
  transition: box-shadow 0.2s, background 0.22s, border-color 0.22s, transform 0.19s, color 0.18s;
}

/* ----- OVERRIDES FOR COOKIE CATEGORY TOGGLES ---- */
.cookie-modal .toggle-switch {
  position: relative;
  width: 46px;
  height: 24px;
  display: inline-block;
}
.cookie-modal .toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal .slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #E0F8EC;
  border-radius: 24px;
  transition: background 0.2s;
}
.cookie-modal .toggle-switch input:checked + .slider {
  background: #5CDB95;
}
.cookie-modal .slider:before {
  position: absolute;
  content: "";
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 5px 0 rgba(5,56,107,0.06);
  transition: transform 0.2s;
}
.cookie-modal .toggle-switch input:checked + .slider:before {
  transform: translateX(22px);
}

/* ------ PRINT --------- */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal, nav, .button, header, footer {
    display: none !important;
  }
}
