/* ---------- 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,
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.55;
  color: #1B263B;
  background: #F6F8FA;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
*, *:before, *:after {
  box-sizing: inherit;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
a {
  color: #28537A;
  text-decoration: none;
  transition: color 0.18s ease;
}
a:hover, a:focus {
  color: #90B441;
  text-decoration: underline;
}

/* ---------- BRAND COLORS ---------- */
:root {
  --primary: #28537A;
  --primary-dark: #1B3550;
  --secondary: #EDEAE0;
  --background: #F6F8FA;
  --text: #22314B;
  --head: #162B44;
  --accent: #6A8C2E;
  --accent-light: #90B441;
  --border: #C2CDD7;
  --card-bg: #FFFFFF;
  --shadow: 0 2px 12px rgba(40,83,122,0.08), 0 1.5px 4px 0 rgba(68, 77, 136, 0.04);
  --radius: 12px;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--head);
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.6rem; line-height: 1.18; margin-bottom: 18px; }
h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 16px; }
h3 { font-size: 1.3rem; line-height: 1.28; margin-bottom: 13px; }
h4 { font-size: 1.1rem; margin-bottom: 11px; }
h5, h6 { font-size: 1.05rem; margin-bottom: 8px; }
p, ul, ol, blockquote, label {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 18px;
}
p.hero-subheadline {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 24px;
}
ul, ol {
  margin-left: 28px;
  margin-bottom: 20px;
  list-style-position: outside;
}
ul li, ol li {
  margin-bottom: 9px;
  line-height: 1.6;
}
strong {
  font-weight: 700;
}
blockquote {
  border-left: 4px solid var(--accent);
  background: #F7FCE6;
  color: var(--head);
  font-style: italic;
  font-size: 1.07rem;
  margin: 0 0 10px 0;
  padding: 9px 18px;
}

/* ---------- CONTAINER & LAYOUT ---------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.text-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 38px 26px;
}

/* Feature Grid (flex-only) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
  justify-content: flex-start;
}
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex: 1 1 230px;
  min-width: 220px;
  max-width: 270px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 26px 22px 22px 22px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s cubic-bezier(.45,.03,.52,.96), border-color 0.16s;
}
.feature-card:hover, .feature-card:focus-within {
  box-shadow: 0 4px 20px 0 rgba(40,83,122,0.20);
  border-color: var(--primary);
  z-index: 2;
}
.feature-card img {
  width: 40px; height: 40px;
  margin-bottom: 6px;
  object-fit: contain;
}
.feature-card h3 a {
  color: var(--head);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.feature-card p {
  color: var(--text);
  font-size: 0.98rem;
}

/* ---------- NAVIGATION ---------- */
header {
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(40,83,122,0.10);
  position: relative;
  margin-bottom: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  position: relative;
  z-index: 11;
}
.logo {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 4px 0;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.main-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.14s, color 0.14s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.main-nav .cta-primary {
  background: var(--accent);
  color: #fff;
  padding: 7px 20px;
  border-radius: 6px;
  font-weight: 700;
  margin-left: 12px;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 7px rgba(106, 140, 46, 0.06);
  transition: background 0.16s;
}
.main-nav .cta-primary:hover, .main-nav .cta-primary:focus {
  background: var(--accent-light);
  color: var(--primary);
}
/* Hide hamburger on desktop */
.mobile-menu-toggle {
  display: none;
  background: none;
  color: #fff;
  font-size: 2.2rem;
  border: none;
  margin-left: 16px;
  cursor: pointer;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--accent);
  color: #fff;
  border-radius: 7px;
}

/* ---------- MOBILE NAVIGATION ---------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(37, 54, 87, 0.95);
  z-index: 1500;
  display: flex;
  transition: transform 0.36s cubic-bezier(.69,.02,.58,1) 0s, opacity 0.23s;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 32px;
  background: none;
  color: #fff;
  border: none;
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 1600;
  transition: color 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--accent-light);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 90px 0 0 0;
  align-items: flex-start;
  width: 100vw;
  max-width: 420px;
  padding: 0 30px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.28rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 12px 0;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(255,255,255,0.13);
  transition: color 0.16s, background 0.16s;
  display: block;
  width: 100%;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: #fff;
  border-radius: 5px;
  padding-left: 10px;
}

/* ---------- HERO BUTTON / CALL TO ACTION ---------- */
.cta-button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  padding: 13px 29px;
  margin-top: 7px;
  box-shadow: 0 2px 11px rgba(106, 140, 46, 0.09);
  transition: background 0.16s, transform 0.12s, box-shadow 0.18s;
  cursor: pointer;
  letter-spacing: 0.01em;
}
.cta-button:hover, .cta-button:focus {
  background: var(--accent-light);
  color: var(--primary-dark);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 15px rgba(106,140,46, 0.16);
}

section .cta-button {
  margin-top: 12px;
}

/* ---------- CARDS, TESTIMONIALS, FAQ ---------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 18px 20px 18px;
}

/* .content-grid */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: stretch;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: #f6fbfd;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 22px;
  box-shadow: 0 2px 8px rgba(40,83,122,0.07);
  max-width: 600px;
  color: var(--primary-dark);
}
.testimonial-card blockquote {
  margin-bottom: 7px;
  border-left: 3px solid var(--accent);
  background: transparent;
  padding: 9px 16px 8px 13px;
  color: var(--head);
}
.testimonial-card footer {
  font-size: 0.98rem;
  color: var(--text);
  font-style: normal;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.faq-item {
  background: var(--secondary);
  border-radius: 8px;
  border-left: 6px solid var(--accent);
  padding: 18px 24px 16px 18px;
  box-shadow: 0 1.5px 7px rgba(40,83,122,0.07);
}
.faq-item h3 {
  margin-bottom: 8px;
  font-size: 1.07rem;
  color: var(--primary);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
}

/* Contact/List with Icons */
.text-section ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}
.text-section ul li img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.75;
}

/* ---------- FORMS ---------- */
form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 18px 0 0 0;
}
label {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 4px;
}
form input[type="email"],
form input[type="text"],
form input[type="password"] {
  font-size: 1.05rem;
  padding: 11px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(40,83,122,0.05);
  transition: border-color 0.15s, box-shadow 0.15s;
}
form input:focus {
  border-color: var(--primary);
  box-shadow: 0 2px 9px rgba(40,83,122,0.11);
}
form button[type="submit"] {
  align-self: flex-start;
  margin-top: 7px;
}
form label[for="privacy"] {
  font-size: 0.95rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 7px;
}
form input[type="checkbox"] {
  accent-color: var(--primary);
  margin-right: 6px;
}
form a {
  color: var(--primary);
  text-decoration: underline;
  font-size: 1em;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--primary);
  color: #fff;
  margin-top: 60px;
  padding: 40px 0 20px 0;
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.footer-brand img {
  height: 36px;
  width: auto;
  margin-bottom: 14px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.01rem;
  font-weight: 500;
  opacity: 0.93;
  transition: color 0.14s, opacity 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent-light);
  opacity: 1;
}
.footer-copy {
  margin-top: 14px;
  font-size: 0.97rem;
  opacity: 0.78;
}

/* ---------- COOKIE BANNER ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  background: none;
  z-index: 1700;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.34s cubic-bezier(.59,.09,.65,.98), opacity 0.19s;
  transform: translateY(100%);
}
.cookie-banner.active {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner-inner {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 13px 13px 0 0;
  box-shadow: 0 -4px 18px rgba(40,83,122,0.14), 0 2px 11px #f3f7fa;
  padding: 28px 24px 20px 24px;
  max-width: 460px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-banner-text {
  color: var(--primary-dark);
  font-size: 1rem;
}
.cookie-banner-actions {
  display: flex;
  gap: 18px;
  margin-top: 14px;
  justify-content: flex-end;
}
.cookie-btn, .cookie-btn-settings {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 5px;
  border: none;
  outline: none;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 4px rgba(106,140,46,0.10);
  cursor: pointer;
  margin-left: 0;
  transition: background 0.13s, color 0.13s, box-shadow 0.13s;
}
.cookie-btn:hover, .cookie-btn:focus, .cookie-btn-settings:hover, .cookie-btn-settings:focus {
  background: var(--primary);
  color: #fff;
}
.cookie-btn.reject {
  background: #D8DCE7;
  color: var(--primary-dark);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #bbc6dd;
  color: var(--accent);
}
.cookie-btn-settings {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.cookie-btn-settings:hover {
  background: var(--accent-light);
  color: #fff;
}

/* ---------- COOKIE MODAL ---------- */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2000;
  background: rgba(40, 73, 123, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.27s;
}
.cookie-modal.active {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal-inner {
  background: var(--card-bg);
  border-radius: 13px;
  box-shadow: 0 10px 36px rgba(40,83,122,0.18);
  padding: 34px 32px 28px 32px;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.cookie-modal-header {
  margin-bottom: 7px;
}
.cookie-modal-close {
  position: absolute;
  top: 33px;
  right: 45px;
  background: none;
  color: var(--primary);
  border: none;
  font-size: 1.9rem;
  cursor: pointer;
  z-index: 2100;
  transition: color 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--accent);
}
.cookie-toggle-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.cookie-toggle-item label {
  font-size: 1.01rem;
  color: var(--primary-dark);
  flex: 1 1 70%;
}
.cookie-toggle-item input[type="checkbox"] {
  accent-color: var(--accent);
  width: 20px; height: 20px;
}
.cookie-toggle-item input[disabled] {
  opacity: 0.53;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 17px;
}

/* ---------- RESPONSIVE/MOBILE FIRST ---------- */
@media (max-width: 1120px) {
  .feature-card { max-width: 100%; }
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  .container { max-width: 100vw; padding: 0 13px; }
  .feature-grid { gap: 18px; }
  .testimonial-card { max-width: 100%; }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  .section { padding: 32px 9px; }
  .container { padding: 0 7px; }
  .text-section { padding: 24px 8px; }
  .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature-card {
    min-width: 0; max-width: 100%;
    width: 100%;
    padding: 21px 13px;
  }
  .content-wrapper {
    gap: 12px;
  }
  .footer-nav {
    gap: 13px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 17px;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  header .container {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.1rem;
    min-height: 58px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .footer-brand {
    margin-bottom: 0.6rem;
  }
  footer .container {
    padding: 0 0.5rem;
  }
  .cookie-modal-inner, .cookie-banner-inner {
    max-width: 97vw;
    padding: 18px 8px 15px 8px;
    border-radius: 11px 11px 0 0;
  }
  .cookie-modal-inner {
    padding-top: 19px;
  }
}

/* Show/hide mobile menu */
@media (max-width: 1100px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1101px) {
  .mobile-menu {
    display: none !important;
  }
}

/* Utility: visually hidden for accessibility */
.visually-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Utility: transition for focusable elements */
a, button, .cta-button, .cookie-btn, .cookie-btn-settings {
  outline: none;
  transition: box-shadow 0.14s, border-color 0.14s, color 0.14s, background 0.14s;
  box-shadow: none;
}
a:focus-visible, button:focus-visible, .cta-button:focus-visible, .cookie-btn:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px #E6F1D6;
}

/* ---------- ANIMATIONS/MICRO-INTERACTIONS ---------- */
.cta-button,
.main-nav .cta-primary,
.feature-card,
.cookie-btn,
.cookie-btn-settings {
  transition: background 0.17s, color 0.17s, transform 0.14s, box-shadow 0.19s;
}

/* Section Spacing Utilities */
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;
}
