/* 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;
}
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  height: 100%;
}
body {
  min-height: 100vh;
  background: linear-gradient(135deg, #164166 0%, #8AC926 100%);
  background-repeat: no-repeat;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #222;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}

/* TYPOGRAPHY SCALE */
h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: #164166;
  margin-bottom: 24px;
}
h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: #164166;
  margin-bottom: 20px;
}
h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #184F7A;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  color: #184F7A;
}
p, ul, ol {
  margin-bottom: 16px;
}
strong {
  color: #164166;
}

/* LINKS & BUTTONS */
a {
  color: #164166;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #8AC926;
}
.cta {
  display: inline-block;
  background: linear-gradient(95deg, #8AC926 0%, #164166 100%);
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 32px;
  padding: 14px 34px;
  margin-top: 8px;
  box-shadow: 0 4px 16px 0 rgba(22,65,102,.14);
  cursor: pointer;
  transition: background .3s, transform .2s, box-shadow .2s;
}
.cta:hover, .cta:focus {
  background: linear-gradient(80deg, #164166 0%, #8AC926 100%);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 32px rgba(22,65,102,0.13);
  color: #fff;
}
button, .btn {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 24px;
  padding: 10px 28px;
  border: none;
  background-color: #8AC926;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
button:hover, .btn:hover, .btn:focus {
  background-color: #164166;
  color: #8AC926;
  transform: translateY(-1px) scale(1.02);
}

/* HEADER & NAV */
header {
  width: 100%;
  background: #FAFAFA;
  box-shadow: 0 2px 10px rgba(22,65,102,0.04);
  z-index: 20;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
header nav > a > img {
  height: 48px;
  margin-right: 16px;
}
header nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
}
header nav ul li {
  margin: 0;
}
header nav ul li a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #164166;
  padding: 8px 0;
  transition: color .2s, border-bottom .2s;
  border-bottom: 2px solid transparent;
}
header nav ul li a.active, header nav ul li a:hover, header nav ul li a:focus {
  color: #8AC926;
  border-bottom: 2px solid #8AC926;
}
header nav .cta {
  margin-left: 32px;
  padding: 8px 24px;
  font-size: 1rem;
  font-weight: 600;
}

/* Mobile Menu Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #164166;
  cursor: pointer;
  padding: 8px 12px;
  z-index: 103;
  transition: color .2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #8AC926;
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 0;
  height: 100vh;
  background: linear-gradient(120deg, #164166 85%, #8AC926 100%);
  box-shadow: -8px 0 28px rgba(22,65,102,.10);
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 2000;
  transition: width 0.32s cubic-bezier(.85,0,.15,1);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-menu.open {
  width: 88vw;
  min-width: 260px;
  max-width: 360px;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #8AC926;
  font-size: 2rem;
  cursor: pointer;
  padding: 18px 18px 0 0;
  transition: color .2s;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
  margin-left: 28px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  color: #fff;
  font-weight: 500;
  padding: 10px 0;
  transition: color .18s, background .18s;
  border-radius: 8px;
  min-width: 200px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #8AC926;
  background: rgba(138,201,38,0.05);
}

@media (max-width: 1024px) {
  header nav ul {
    gap: 16px;
  }
  header nav .cta {
    margin-left: 16px;
  }
}
@media (max-width: 900px) {
  header nav {
    padding: 12px 10px;
  }
}
@media (max-width: 850px) {
  header nav ul, header nav .cta {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* MAIN LAYOUT & CONTAINERS */
main {
  padding-top: 38px;
  min-height: 65vh;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 0 22px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: rgba(250,250,250,0.96);
  border-radius: 24px;
  box-shadow: 0 6px 28px 0 rgba(22,65,102,.065);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* FLEXBOX UTILITY LAYOUTS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FAFAFA;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(22,65,102,0.07);
  margin-bottom: 20px;
  position: relative;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  min-width: 250px;
  flex: 1 1 0px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.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: center;
  gap: 20px;
  padding: 20px;
  background: #FAFAFA;
  border-radius: 18px;
  box-shadow: 0 6px 30px rgba(22,65,102,0.10);
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 380px;
  flex: 1 1 260px;
}
.testimonial-card blockquote {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.12rem;
  font-style: italic;
  color: #1E3251;
  margin-bottom: 4px;
  quotes: "\201C" "\201D";
}
.testimonial-card p strong {
  color: #8AC926;
  font-size: 1rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-item img {
  width: 40px;
  height: 40px;
}

/* LIST STYLES FOR FEATURES SECTION */
section ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
section ul li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #F1F5F6;
  border-radius: 14px;
  padding: 15px 22px;
  font-size: 1.02rem;
  min-width: 220px;
  color: #184F7A;
  margin-bottom: 12px;
  box-shadow: 0 3px 10px rgba(22,65,102,0.04);
}
section ul li img {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

/* TABLE STYLES */
table {
  width: 100%;
  border-collapse: collapse;
  background: #FAFAFA;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
}
thead {
  background: #164166;
  color: #fff;
}
th, td {
  padding: 16px 10px;
  text-align: left;
}
th {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
}
tbody tr:not(:last-child) {
  border-bottom: 1px solid #E8EDF1;
}
tr:nth-child(even) {
  background: #F7FAFB;
}
tr:hover {
  background: #EAFDDD;
  transition: background .2s;
}

/* FOOTER */
footer {
  background: #FAFAFA;
  padding: 38px 0 20px 0;
  border-top: 1.5px solid #E5E5E5;
  box-shadow: 0 -2px 16px rgba(22,65,102,0.06);
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
}
footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
}
footer nav ul li a {
  color: #184F7A;
  font-size: 1rem;
  text-decoration: underline dotted;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  padding: 4px 0;
}
footer nav ul li a:hover, footer nav ul li a:focus {
  color: #8AC926;
  text-decoration: underline solid;
}
footer div {
  text-align: center;
}
footer p {
  color: #6D7C8C;
  font-size: 0.97rem;
  margin-bottom: 8px;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 18px;
  z-index: 3000;
  background: #F7FAFB;
  color: #1E3251;
  border-radius: 18px;
  box-shadow: 0 6px 22px rgba(22,65,102,0.09);
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px 24px 18px 24px;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 630px;
  margin: auto;
  font-size: 1rem;
  animation: bannerin .38s cubic-bezier(.81,0,.23,1);
}
@keyframes bannerin {
  from { opacity:0; transform:translateY(50px); }
  to   { opacity:1; transform:translateY(0);   }
}
.cookie-banner p {
  margin-bottom: 0;
  flex: 1 1 240px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 8px 18px;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  background: #8AC926;
  color: #fff;
  transition: background .2s, color .2s, transform .2s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #164166;
  color: #8AC926;
}
.cookie-btn.settings {
  background: #ffffff;
  color: #164166;
  border: 2px solid #8AC926;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #F1F5F6;
  color: #8AC926;
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 4000;
  inset: 0;
  background: rgba(34,59,62,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in .22s cubic-bezier(.71,0,.29,1);
}
.cookie-modal {
  background: #FAFAFA;
  border-radius: 20px;
  box-shadow: 0 8px 44px rgba(22,65,102,0.16);
  padding: 38px 30px 32px 30px;
  min-width: 320px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: modalin .26s cubic-bezier(.85,0,.27,1);
}
@keyframes modalin {
  from { transform: scale(.95); opacity:0; }
  to { transform: scale(1); opacity:1; }
}
.cookie-modal h3 {
  margin-bottom: 8px;
}
.modal-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #8AC926;
  font-size: 2rem;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 1;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-category label {
  font-size: 1rem;
  color: #164166;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
}
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #E1EAF5;
  border-radius: 26px;
  transition: background .2s;
}
.cookie-switch input:checked + .cookie-slider {
  background: #8AC926;
}
.cookie-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 5px;
  bottom: 4px;
  background: #fff;
  transition: .2s;
  border-radius: 50%;
  box-shadow: 0 1px 5px rgba(22,65,102,0.13);
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(18px);
}

/* ANIMATIONS FOR MENU, COOKIES */
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
/* SPACING PATTERNS ENFORCED */
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; }

/* UTILITIES */
.rounded {
  border-radius: 14px;
}
.shadow {
  box-shadow: 0 4px 20px 0 rgba(22,65,102,.07);
}
.bg-light {
  background: #FAFAFA;
}
.bg-gradient {
  background: linear-gradient(135deg,#164166,#8AC926 100%);
  color: #fff;
}
.text-center { text-align: center; }
.gap-20 { gap: 20px; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .container { max-width: 98vw; }
  section { padding: 32px 10px; }
}

@media (max-width: 850px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .container { padding: 0 10px; }
  section { padding: 30px 4px; }
}
@media (max-width: 768px) {
  .content-wrapper, .content-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .testimonial-card {
    max-width: 98vw;
    min-width: 210px;
    font-size: 1rem;
  }
  section ul {
    gap: 10px;
  }
  section ul li {
    min-width: 90px;
    font-size: .98rem;
    padding: 10px 10px;
  }
  table th, table td {
    padding: 10px 3px;
    font-size: .97rem;
  }
  .cookie-banner {
    gap: 18px;
    padding: 12px 10px 12px 12px;
    font-size: .97rem;
  }
}
@media (max-width: 490px) {
  .cookie-banner {
    left: 2px; right: 2px;
    max-width: 99vw;
    padding: 8px 4px 8px 6px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* PRINT DEFAULTS */
@media print {
  body, header, main, footer {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
  }
  header, footer, .cookie-banner, .mobile-menu {
    display: none !important;
  }
}
