/* ===========================
   CSS RESET & BASE
=========================== */
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, 
main, 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 {
  background: #F5F6F7;
  color: #213447;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main {
  width: 100%;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
h1, h2, h3, h4, h5, h6 {
  color: #213447;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -.5px;
}
h1 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.125rem;
  margin-bottom: 10px;
}
ul, ol {
  margin: 0 0 18px 25px;
  padding-left: 0;
}
ul li, ol li {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.6;
}
p {
  margin-bottom: 16px;
  font-size: 1rem;
}
a {
  color: #213447;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #8EC440;
  text-decoration: underline;
}
strong, b {
  font-weight: 700;
}
small { font-size: 0.94em; }

/* ========== BRAND COLORS ========== */
:root {
  --color-primary: #213447;
  --color-secondary: #8EC440;
  --color-accent: #F5F6F7;
  --color-body-bg: #F5F6F7;
  --color-card-bg: #fff;
  --color-muted: #758295;
  --color-divider: #E2E7EA;
  --color-danger: #D9534F;
  --color-shadow: rgba(33,52,71,0.09);
}

/* ===========================
   CONTAINER & UTILS
=========================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.section:last-child {
  margin-bottom: 0;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card-bg);
  border-radius: 16px;
  box-shadow: 0 2px 12px var(--color-shadow);
  padding: 28px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.24s;
}
.card:hover {
  box-shadow: 0 4px 24px var(--color-shadow), 0 2px 8px rgba(33,52,71,0.03);
}
.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;
  background: #fff;
  color: #213447;
  border-radius: 14px;
  box-shadow: 0 2px 8px var(--color-shadow);
  padding: 20px 28px;
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 410px;
  flex: 1 1 260px;
  font-size: 1rem;
  transition: box-shadow 0.2s;
}
.testimonial-card p {
  font-size: 1.07rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: #213447;
  font-style: italic;
  margin-bottom: 8px;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: #758295;
}
.testimonial-card:hover {
  box-shadow: 0 4px 16px var(--color-shadow);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--color-shadow);
  padding: 16px 18px;
  margin-bottom: 20px;
}

/* ===========================
   HEADER & NAVIGATION
=========================== */
header {
  background: #fff;
  border-bottom: 1px solid var(--color-divider);
  padding: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 0;
}
.logo {
  display: flex;
  align-items: center;
  height: 60px;
  padding: 8px 8px 8px 0;
}
.logo img { height: 44px; width: auto; display: block; }

.main-menu {
  display: flex;
  flex: 1 1 auto;
  gap: 22px;
  align-items: center;
}
.main-menu a {
  color: #213447;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0px;
  padding: 6px 2px;
  position: relative;
  transition: color 0.20s;
}
.main-menu a:hover, .main-menu a:focus {
  color: #8EC440;
}
.main-menu a.active {
  color: #8EC440;
}

.cta.primary {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #8EC440;
  color: #fff;
  border-radius: 32px;
  padding: 12px 28px;
  font-size: 1.05rem;
  font-weight: 700;
  transition: background 0.18s, box-shadow 0.2s, color 0.2s;
  border: none;
  box-shadow: 0 2px 8px var(--color-shadow);
  text-align: center;
  cursor: pointer;
}
.cta.primary:hover, .cta.primary:focus {
  background: #689E24;
  box-shadow: 0 4px 14px var(--color-shadow);
  color: #fff;
  text-decoration: none;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: #213447;
  padding: 12px;
  margin-left: 18px;
  cursor: pointer;
  z-index: 1020;
  border-radius: 10px;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #8EC440;
  background: #EAF9D3;
}

/* ===========================
   MOBILE NAVIGATION OVERLAY
=========================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: rgba(33,52,71,0.93);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.51,.09,.65,.98);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 38px;
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}
.mobile-menu-close {
  color: #fff;
  background: none;
  border: none;
  font-size: 2rem;
  position: absolute;
  right: 24px;
  top: 18px;
  z-index: 2100;
  cursor: pointer;
  padding: 6px 14px 6px 10px;
  border-radius: 6px;
  transition: background 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #213447;
  outline: 2px solid #8EC440;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
  width: 100%;
  align-items: flex-start;
  padding-left: 38px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 12px 0;
  border-radius: 6px;
  text-align: left;
  min-width: 180px;
  transition: background .18s, color .18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #8EC440;
  color: #213447;
  text-decoration: none;
}

/* ==========================
   HERO SECTION
========================== */
.hero {
  background: linear-gradient(120deg, #F5F6F7 70%, #EAF9D3 100%);
  border-bottom: 1px solid #E2E7EA;
  min-height: 260px;
  display: flex;
  align-items: center;
}
.hero .container { justify-content: center; }
.hero .content-wrapper {
  align-items: flex-start;
  gap: 12px;
}
.hero h1 {
  font-size: 2.3rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 12px;
  color: #213447;
}
.hero .subheadline {
  font-size: 1.23rem;
  color: #758295;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 18px;
}

/* ===========================
   FEATURES, CARDS, ABOUT, SERVICES
=========================== */
.features .content-wrapper,
.about .content-wrapper,
.services .content-wrapper,
.contact .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.features ul,
.about ul,
.services ul,
.contact ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.features ul li,
.about ul li,
.services ul li,
.contact ul li {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 1.5px 6px var(--color-shadow);
  font-size: 1rem;
  color: #213447;
}
.features ul li img,
.about ul li img,
.contact ul li img {
  width: 30px; height: 30px;
  border-radius: 6px;
  background: #EAF9D3;
  padding: 4px;
  object-fit: contain;
}
.services ul li strong {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #8EC440;
  font-weight: 600;
}

/* ===========================
   CTA & BUTTON
=========================== */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px var(--color-shadow);
  padding: 32px 24px;
  gap: 22px;
  margin-bottom: 60px;
}
.cta ul {
  list-style: none;
  gap: 8px;
  margin: 10px 0 0 0;
  padding: 0 0 13px 0;
}
.cta ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 7px;
}
.cta ul li:before {
  content: '';
  position: absolute;
  left: 2px; top: 8px;
  width: 9px; height: 9px;
  background: #8EC440;
  border-radius: 50%;
}

/* ===========================
   TABLES
=========================== */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin-bottom: 16px;
  font-size: 1rem;
  border-radius: 10px;
  box-shadow: 0 1.5px 6px var(--color-shadow);
  overflow: hidden;
}
thead {
  background: #EAF9D3;
  color: #213447;
}
th, td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid #E2E7EA;
}
th {
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
}
tr:last-child td {
  border-bottom: none;
}

/* ===========================
   FOOTER
=========================== */
footer {
  background: #fff;
  border-top: 1px solid var(--color-divider);
  padding: 30px 0 0 0;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  align-items: center;
  font-size: 0.98rem;
  color: var(--color-muted);
  font-family: 'Roboto', Arial, sans-serif;
  justify-content: center;
  margin-bottom: 12px;
}
.footer-menu a {
  color: var(--color-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: #8EC440;
}
footer address {
  font-size: 0.95rem;
  color: #758295;
  text-align: center;
  margin-top: 7px;
  font-style: normal;
  line-height: 1.6;
}
footer address a {
  color: #213447;
  text-decoration: underline;
}
footer address a:hover {
  color: #8EC440;
}


/* ===============================
   COOKIE CONSENT BANNER & MODAL
=============================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2500;
  background: #213447;
  color: #fff;
  box-shadow: 0 -4px 24px rgba(33,52,71,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 18px 28px;
  font-size: 1rem;
  gap: 16px;
  transition: transform 0.4s;
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner .cookie-banner__text {
  max-width: 450px;
}
.cookie-banner .cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cookie-banner .cookie-btn {
  padding: 8px 20px;
  background: #8EC440;
  color: #213447;
  border: none;
  border-radius: 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0 8px;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #fff;
  color: #213447;
}
.cookie-banner .cookie-btn.settings {
  background: #fff;
  color: #213447;
  border: 1px solid #8EC440;
}
.cookie-banner .cookie-btn.reject {
  background: #D9534F;
  color: #fff;
  border: none;
}
.cookie-banner .cookie-btn.reject:hover, .cookie-banner .cookie-btn.reject:focus {
  background: #B02B27;
  color: #fff;
}

.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(33,52,71,0.65);
  z-index: 2600;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.22s;
}
@keyframes fadeIn {
  0% { opacity: 0; } 100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #213447;
  border-radius: 16px;
  padding: 34px 28px;
  min-width: 320px;
  max-width: 98vw;
  box-shadow: 0 4px 28px rgba(33,52,71,0.13);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: slideDown 0.31s cubic-bezier(.34,1.56,.64,1);
  position: relative;
}
@keyframes slideDown {
  0% { transform: translateY(-22px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.35rem;
  margin-bottom: 7px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  font-size: 1rem;
  margin-bottom: 10px;
  gap: 12px;
}
.cookie-modal input[type='checkbox'] {
  accent-color: #8EC440;
  width: 20px; height: 20px;
  border-radius: 5px;
}
.cookie-modal .cookie-modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.cookie-modal .cookie-btn {
  padding: 9px 22px;
  border-radius: 22px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin: 0;
}
.cookie-modal .cookie-btn.save {
  background: #8EC440;
  color: #fff;
}
.cookie-modal .cookie-btn.close {
  background: #fff;
  color: #213447;
  border: 1px solid #8EC440;
}
.cookie-modal .cookie-btn.save:hover, .cookie-modal .cookie-btn.save:focus {
  background: #6ca82b;
}
.cookie-modal .cookie-btn.close:hover, .cookie-modal .cookie-btn.close:focus {
  background: #EAF9D3;
}

/* ===========================
   TYPOGRAPHY
=========================== */
@font-face {
  font-family: 'Montserrat';
  src: local('Montserrat'), local('Montserrat-Regular');
  font-style: normal; font-weight: 400;
}
@font-face {
  font-family: 'Roboto';
  src: local('Roboto'), local('Roboto-Regular');
  font-style: normal; font-weight: 400;
}

/* ===========================
   RESPONSIVE DESIGN
=========================== */
@media (max-width: 1200px) {
  .container { max-width: 96vw; }
}
@media (max-width: 991px) {
  .container { max-width: 98vw; }
}
@media (max-width: 850px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.15rem; }
  .card, .testimonial-card, .feature-item { padding: 19px 14px; }
  .cta { padding: 20px 12px; }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    padding: 0 12px;
    min-height: 58px;
  }
  .main-menu {
    display: none !important;
  }
  .cta.primary {
    padding: 10px 20px;
    font-size: 1rem;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .logo img { height: 38px; }
  .section {
    padding: 28px 9px;
    margin-bottom: 37px;
  }
  .content-grid, .card-container, .features ul, .about ul, .services ul, .contact ul {
    flex-direction: column;
    gap: 12px !important;
  }
  .testimonial-card,
  .feature-item,
  .card {
    min-width: unset;
    max-width: unset;
    width: 100%;
    margin-bottom: 16px;
    padding: 14px 10px;
  }
  .footer-menu {
    flex-direction: column;
    gap: 8px;
    align-items: center;
    margin-bottom: 2px;
  }
  .cta { padding: 12px 8px; gap: 12px; }
  .hero h1 { font-size: 1.21rem; }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 15px 8px;
  }
  .cookie-banner .cookie-btn {
    width: 98%;
    padding: 10px 0;
    margin: 0;
  }
  .cookie-banner .cookie-banner__actions { flex-direction: column; align-items: stretch; }
}
@media (max-width: 535px) {
  .container { padding: 0 4px; }
  .logo img { height: 32px; }
  h1, h2, h3 { font-size: 1em !important; }
  .footer-menu { font-size: 0.92rem; }
  .section { margin-bottom: 28px; padding: 17px 2px; }
  .hero { min-height: 130px; }
  .cta { border-radius: 9px; padding: 9px 1px; }
  .testimonial-card, .feature-item, .card { border-radius: 7px; }
}

/* ===========================
   MICRO-INTERACTIONS
=========================== */
button, .cta.primary, .main-menu a, .footer-menu a, .cookie-btn, .mobile-menu-close {
  transition: background 0.18s, color 0.2s, box-shadow 0.18s, border-color 0.16s;
}

/* ===========================
   ACCESSIBILITY FOCUS STYLES
=========================== */
a:focus, button:focus, .cta.primary:focus, .cookie-btn:focus {
  outline: 2px solid #8EC440;
  outline-offset: 2px;
}

/* ===========================
   SPECIAL UTILS
=========================== */
hr, .divider {
  border: none;
  border-top: 1px solid var(--color-divider);
  margin: 22px 0 20px 0;
}

/* Hide scroll on background when modal/menu is open */
body.menu-open, body.cookie-modal-open {
  overflow: hidden;
}

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

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