/* --------------------------- 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;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F8F8F6;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #204875;
  min-height: 100vh;
  overflow-x: hidden;
}
ul, ol {
  list-style: none;
}
a {
  background: transparent;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
img {
  border: 0;
  max-width: 100%;
  height: auto;
  display: block;
}
button {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  text-align: left;
  padding: 12px 10px;
}

/* --------------------------- BRAND FONTS & COLORS --------------------------- */
:root {
  --primary: #204875;
  --secondary: #6DBB5B;
  --accent: #F8F8F6;
  --brand-gradient: linear-gradient(90deg, #6DBB5B 0%, #204875 100%);
  --black: #162334;
  --gray-light: #E5ECEE;
  --gray-med: #B7C5D2;
  --white: #fff;
  --shadow-1: 0 6px 32px 0 rgba(32, 72, 117, 0.08);
  --shadow-btn: 0 1.5px 6px 0 rgba(32, 72, 117, 0.13);
  --radius-card: 18px;
  --radius-btn: 28px;
  --radius-section: 36px;
}
@import url('https://fonts.googleapis.com/css?family=Montserrat:700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500&display=swap');

h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--primary);
  font-weight: 700;
}
h1 { font-size: 2.2rem; line-height: 1.13; margin-bottom: 18px; }
h2 { font-size: 1.7rem; line-height: 1.18; margin-bottom: 14px; }
h3 { font-size: 1.25rem; line-height: 1.22; margin-bottom: 10px; }
h4 { font-size: 1.08rem; margin-bottom: 8px; }
p, ul, ol, li, td, th {
  font-size: 1rem;
  color: var(--primary);
}
strong { font-weight: 700; }
.subheadline {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 18px;
}

/* Typography scale (14, 16, 18, 24, 32, 48px) */
.text-lg { font-size: 1.25rem; }
.text-xl { font-size: 1.7rem; }
.text-xxl { font-size: 2rem; }

/* ------------------------- BASE LAYOUT ------------------------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

/* Main sections styling and required spacing */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius-section);
  background: var(--accent);
  box-shadow: var(--shadow-1);
  transition: background 0.3s;
}
section:nth-of-type(odd) {
  background: linear-gradient(100deg, #F8F8F6 90%, #E5ECEE 100%);
}
section:nth-of-type(even) {
  background: linear-gradient(90deg, #eafdf4 0%, #F8F8F6 90%);
}

/* Card and list containers per required alignment */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-1);
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 42px 0 rgba(32,72,117,0.15);
  transform: translateY(-2px) scale(1.02);
}

.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;
}

.section ul, .section ol, .benefit-list, .feature-grid, .service-list, .blog-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 0 2px 0;
}

.benefit-list li, .feature-grid li, .service-list li, .blog-preview-grid li {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-1);
  padding: 22px 18px;
  flex: 1 1 260px;
  min-width: 200px;
  transition: box-shadow 0.2s;
  margin-bottom: 20px;
}

.benefit-list li img,
.feature-grid li img {
  width: 42px; height: 42px; margin-bottom: 10px;
}

.benefit-list li:hover, .feature-grid li:hover, .service-list li:hover, .blog-preview-grid li:hover {
  box-shadow: 0 12px 36px 0 rgba(109,187,91, 0.14);
}

.service-list li .service-price {
  margin-top: 8px;
  font-weight: 500;
  color: var(--secondary);
}

.topic-tag {
  background: var(--secondary);
  color: var(--white);
  border-radius: 14px;
  padding: 4px 14px;
  font-weight: 500;
  font-size: 0.96rem;
  display: inline-block;
  margin-top: 10px;
}

.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.faq-item {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-1);
  flex: 1 1 300px;
  padding: 22px 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
}
.faq-item:hover {
  box-shadow: 0 8px 32px 0 rgba(32, 72, 117, 0.12);
}

.success-story {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-1);
  padding: 22px 20px 12px 26px;
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: var(--primary);
}
.success-story blockquote {
  margin-bottom: 10px;
  font-style: italic;
  color: var(--primary);
}
.success-story span {
  color: #3a3a3a;
  font-size: .95em;
}

.service-comparison-table {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-1);
  overflow-x: auto;
  font-size: .96rem;
}
.service-comparison-table th {
  background: linear-gradient(90deg, #64a752 0, #204875 100%);
  color: var(--white);
  font-weight: 700;
}
.service-comparison-table td {
  color: var(--primary);
  background: #f1f5ee;
}
.service-comparison-table tbody tr:nth-child(even) td { background: #F8F8F6; }
.service-comparison-table th, .service-comparison-table td {
  border-bottom: 1px solid #e5eaf6;
}
.service-comparison-table tr:last-child td {
  border-bottom: 0;
}

/* ------------------- Testimonial Cards (with correct contrast) ------------------- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--white);
  color: var(--primary);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-1);
  font-size: 1.06rem;
  line-height: 1.6;
  transition: box-shadow 0.18s;
}
.testimonial-card p {
  color: var(--black);
}
.testimonial-card strong {
  color: var(--secondary);
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px 0 rgba(32,72,117,0.18);
}

/* ------------------- NAVBAR & HEADER ------------------- */
header {
  background: var(--brand-gradient);
  padding: 0;
  box-shadow: 0 4px 22px 0 rgba(32,72,117,0.04);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
header nav {
  display: flex;
  gap: 22px;
}
header nav a {
  color: var(--white);
  font-weight: 500;
  font-size: 1.08rem;
  letter-spacing: .02em;
  padding: 8px 0 8px 0;
  position: relative;
  transition: color 0.18s;
}
header nav a:after {
  content: '';
  display: block;
  height: 2.5px;
  border-radius: 2px;
  width: 0;
  background: var(--secondary);
  transition: width 0.22s;
  position: absolute;
  left: 0; bottom: 2px;
}
header nav a:hover, header nav a:focus {
  color: var(--secondary);
}
header nav a:focus:after, header nav a:hover:after {
  width: 100%;
}
header img {
  max-height: 50px;
}

.cta-button {
  background: linear-gradient(90deg, #6DBB5B 0%, #204875 100%);
  color: var(--white);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .03em;
  border-radius: var(--radius-btn);
  padding: 13px 34px;
  box-shadow: var(--shadow-btn);
  border: none;
  cursor: pointer;
  transition: background 0.20s, transform 0.17s, box-shadow 0.19s;
  outline: none;
  margin-left: 16px;
  display: inline-block;
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(90deg, #5da13b 0%, #162334 100%);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 18px 0 rgba(32, 72, 117, 0.19);
}

/* ---------------- Footer -------------------- */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 32px 0 16px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}
footer nav {
  display: flex;
  gap: 24px;
}
footer nav a {
  color: var(--white);
  font-size: 0.98rem;
  transition: color 0.18s;
  opacity: 0.8;
}
footer nav a:hover {
  color: var(--secondary);
  opacity: 1;
}
footer .brand-hint {
  margin-top: 8px;
  font-size: 0.96rem;
  color: #c2e6b6;
  letter-spacing: .02em;
}

/* -------------- MOBILE NAVIGATION -------------- */
.mobile-menu-toggle {
  position: fixed;
  top: 21px; right: 22px;
  z-index: 1101;
  background: var(--secondary);
  color: var(--white);
  border-radius: 50%;
  font-size: 2rem;
  width: 48px; height: 48px;
  box-shadow: 0 2px 8px rgba(32,72,117,0.13);
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: #4ea342;
}

.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(125deg, #62b15d 0%, #204875 100%);
  z-index: 2002;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.34s cubic-bezier(.7,.1,.15,1), opacity 0.19s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 22px 22px 0;
  background: var(--white);
  color: var(--secondary);
  font-size: 2.1rem;
  border-radius: 50%;
  width: 48px; height: 48px;
  box-shadow: 0 1.5px 7px #4ea3421c;
  transition: background 0.19s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--secondary);
  color: var(--white);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  padding: 18px 36px 25px 30px;
}
.mobile-nav a {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid #60b3636b;
  transition: color 0.21s, background 0.13s;
}
.mobile-nav a:active {
  color: var(--secondary);
  background: var(--accent);
  border-radius: 9px;
}

@media (max-width: 1020px) {
  header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  nav {
    gap: 14px !important;
  }
}
@media (max-width: 900px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .cta-button {
    margin-left: 0;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 9px;
  }
  section {
    margin-bottom: 34px;
    padding: 26px 6px 26px 6px;
    border-radius: 14px;
  }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.18rem; }
  h3 { font-size: 1rem; }
  .card, .benefit-list li, .feature-grid li, .service-list li, .blog-preview-grid li, .faq-item {
    min-width: unset;
    padding: 15px 10px;
    font-size: 0.99rem;
  }
  .content-grid, .feature-grid, .benefit-list, .service-list, .blog-preview-grid, .faq-list {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  footer .container {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  .testimonial-card {
    padding: 16px 8px;
  }
  .success-story {
    padding: 15px 10px 12px 15px;
  }
}

/* -------------- Cookie Consent Banner -------------- */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 0 40px #20487525;
  padding: 22px 30px 20px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  z-index: 3500;
  border-radius: 16px 16px 0 0;
  animation: bannerIn 0.6s cubic-bezier(.67,1.58,.49,1) 1;
}
@keyframes bannerIn {
  from { transform: translateY(140%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner .cookie-btn-group {
  display: flex;
  gap: 18px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 11px 30px;
  border-radius: 21px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background .19s, color .13s, box-shadow .13s;
}
.cookie-btn.accept {
  background: linear-gradient(90deg, #6DBB5B 0%, #204875 100%);
  color: var(--white);
  box-shadow: var(--shadow-btn);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: linear-gradient(90deg, #5da13b 0%, #162334 100%);
}
.cookie-btn.reject {
  background: #e0e7ea;
  color: var(--primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #b7c5d2;
  color: #162334;
}
.cookie-btn.settings {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--secondary);
  color: var(--white);
}

/* --------- Cookie Modal --------- */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(32, 72, 117, 0.67);
  backdrop-filter: blur(2px);
  z-index: 4000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .24s;
}
.cookie-modal.open {
  opacity: 1; visibility: visible;
}
.cookie-modal .modal-content {
  background: var(--accent);
  color: var(--primary);
  border-radius: 20px;
  padding: 36px 24px 26px 24px;
  min-width: 320px;
  max-width: 94vw;
  box-shadow: 0 8px 48px rgba(32,72,117,.18);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.cookie-modal h2 {
  margin-bottom: 8px;
  color: var(--primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
}
.cookie-switch {
  width: 32px; height: 20px;
  background: #b7c5d2;
  border-radius: 11px;
  position: relative;
  transition: background 0.18s;
  margin-right: 8px;
}
.cookie-switch input[type="checkbox"] {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-switch-label {
  cursor: pointer;
  display: flex; align-items: center;
  gap: 10px;
}
.cookie-switch-indicator {
  position: absolute;
  left: 3px; top: 3px;
  width: 14px; height: 14px;
  background: var(--white);
  border-radius: 50%;
  transition: left 0.18s, background 0.14s;
}
.cookie-switch input[type="checkbox"]:checked + .cookie-switch-indicator {
  left: 15px;
  background: var(--secondary);
}
.cookie-category[aria-disabled="true"] {
  opacity: .62;
  pointer-events: none;
}
.modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 14px;
}

/* -------------- Microinteractions -------------- */
.card, .testimonial-card, .feature-grid li, .benefit-list li, .service-list li, .blog-preview-grid li, .faq-item, .success-story {
  transition: box-shadow 0.23s, transform 0.19s;
}
.card:hover, .feature-grid li:hover, .benefit-list li:hover, .service-list li:hover, .blog-preview-grid li:hover, .faq-item:hover,
.testimonial-card:hover, .success-story:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 14px 48px 0 rgba(32, 72, 117, 0.09);
}

.cta-button:active, .cookie-btn:active {
  transform: scale(0.97);
}

/* -------------- Miscellaneous -------------- */
.text-section ul {
  list-style: disc;
  margin-left: 22px;
}
.text-section ul li {
  margin-bottom: 8px;
  color: #204875;
  font-size: 1.01rem;
}
.text-section p + ul {
  margin-top: 8px;
}

a:focus-visible, .cta-button:focus-visible, .mobile-menu-close:focus-visible, .cookie-btn:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

/* ------------------ Hide scroll on mobile menu open ------------------ */
body.mobile-menu-open {
  overflow: hidden;
}

/* -------------------------------- Print -------------------------------- */
@media print {
  header, footer, .mobile-menu-toggle, .mobile-menu, .cookie-consent-banner, .cookie-modal {
    display: none !important;
  }
  body {
    background: #fff;
  }
}

