/* ===============================
    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,
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;
  vertical-align: baseline;
  font: inherit;
  background: transparent;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  background: #F0F4F8;
  color: #1E2A38;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #205e22;
  text-decoration: none;
  transition: color 0.25s;
}
a:hover, a:focus {
  color: #8CE85E;
  outline: none;
}
ul, ol {
  padding-left: 24px;
}
button {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}

/* ===============================
    BRAND COLORS & FONTS
=============================== */
:root {
  --brand-primary: #1E2A38;
  --brand-secondary: #8CE85E;
  --brand-accent: #F0F4F8;
  --brand-muted: #E5EAEF;
  --brand-contrast: #fff;
  --text-main: #1E2A38;
  --text-muted: #606871;
  --font-display: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Georgia', 'Times New Roman', serif;
}

/* ===============================
    TYPOGRAPHY SCALE
=============================== */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.12;
  color: var(--text-main);
  margin-bottom: 24px;
  letter-spacing: -0.015em;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 16px;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 12px;
}
h4, .h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
p, ul, ol {
  font-family: var(--font-body);
  color: var(--text-main);
  margin-bottom: 16px;
  font-size: 1.05rem;
  font-weight: 400;
}
em, i {
  font-style: italic;
}
strong, b {
  font-weight: 700;
  color: #1E2A38;
}
.text-muted {
  color: var(--text-muted);
}

/* ===============================
    CONTAINER & LAYOUT
=============================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 640px) {
  .section {
    padding: 28px 10px;
    margin-bottom: 36px;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* ===============================
    HEADER & NAV
=============================== */
header {
  background: var(--brand-contrast);
  border-bottom: 1px solid var(--brand-muted);
  box-shadow: 0 2px 16px rgba(30, 42, 56, 0.04);
  position: relative;
  z-index: 1002;
}
header .container {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 16px;
  padding-bottom: 16px;
  justify-content: space-between;
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.08rem;
  color: var(--text-main);
  position: relative;
  padding: 6px 0;
  transition: color 0.23s;
}
.main-nav a:after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--brand-secondary);
  transform: scaleX(0);
  transition: transform 0.23s cubic-bezier(.57,1.07,.96,.99);
}
.main-nav a:hover:after, .main-nav a:focus:after {
  transform: scaleX(1);
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--brand-secondary);
}
.cta-primary {
  background: var(--brand-secondary);
  color: #1E2A38;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 10px 26px;
  border-radius: 28px;
  font-size: 1.1rem;
  box-shadow: 0 2px 24px rgba(140, 232, 94, 0.055);
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.23s;
  margin-left: 28px;
  letter-spacing: 0.03em;
  will-change: background, color, box-shadow;
  display: inline-block;
}
.cta-primary:hover,
.cta-primary:focus {
  background: #6fdc3b;
  color: #fff;
  box-shadow: 0 4px 32px rgba(140, 232, 94, 0.15);
  outline: none;
}
@media (max-width: 990px) {
  .main-nav {
    gap: 18px;
  }
  .cta-primary {
    margin-left: 12px;
  }
}
@media (max-width: 820px) {
  header .container {
    gap: 12px;
  }
}

/* ===============================
    MOBILE NAV HAMBURGER MENU
=============================== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  right: 24px;
  top: 19px;
  z-index: 2002;
  background: var(--brand-secondary);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 2rem;
  color: #1E2A38;
  align-items: center;
  justify-content: center;
  border: 1px solid #d0e9c1;
  transition: background 0.21s, color 0.21s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #d0e9c1;
}
@media (max-width: 960px) {
  .main-nav, .cta-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
/* Overlay */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: var(--brand-primary);
  color: #fff;
  z-index: 3000;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.57,1.07,.68,1); 
  box-shadow: 2px 0 32px 0 rgba(30,42,56,0.19);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 21px;
  right: 30px;
  background: none;
  color: #fff;
  font-size: 2rem;
  padding: 6px 10px;
  z-index: 100;
  border-radius: 6px;
  transition: background 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(255,255,255,0.13);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100vw;
  padding-top: 86px;
  gap: 14px;
  align-items: flex-start;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.19rem;
  padding: 18px 34px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  width: 100%;
  transition: background 0.19s, color 0.19s;
  border-radius: 0 16px 16px 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-secondary);
  color: #1E2A38;
}
@media (min-width: 961px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* ===============================
    HERO & CLASSIC SPACING
=============================== */
.hero {
  background: #F0F4F8;
  padding: 60px 0;
  min-height: 300px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

/* ===============================
    CARDS & FLEX CONTAINERS
=============================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: var(--brand-contrast);
  border: 1px solid var(--brand-muted);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(30,42,56,0.06);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 280px;
  max-width: 400px;
  transition: box-shadow .24s, transform .18s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(30,42,56,0.12);
  transform: translateY(-4px);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.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;
  background: #fff;
  border: 1px solid var(--brand-muted);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(30,42,56,0.04);
  padding: 20px;
  margin-bottom: 20px;
  max-width: 700px;
  color: #1E2A38;
  font-family: var(--font-body);
  font-size: 1.05rem;
  transition: box-shadow 0.18s, border 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px rgba(30,42,56,0.13);
  border-color: var(--brand-secondary);
}
@media (max-width: 900px) {
  .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .content-grid {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}

/* ===============================
    BUTTONS & LINK BUTTONS
=============================== */
button, .button, .cta-primary {
  font-family: var(--font-display);
  border-radius: 28px;
  background: var(--brand-secondary);
  color: #1E2A38;
  padding: 10px 26px;
  border: none;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 2px 18px rgba(140,232,94,0.06);
  transition: background 0.18s, color 0.18s, box-shadow 0.20s;
}
button:hover, button:focus, .cta-primary:focus, .button:hover, .button:focus {
  background: #6fdc3b;
  color: #fff;
  outline: none;
  box-shadow: 0 4px 30px rgba(140,232,94,0.13);
}

/* ===============================
    FOOTER
=============================== */
footer {
  background: var(--brand-primary);
  color: #fff;
  padding: 40px 0 28px 0;
  box-shadow: 0 -4px 24px rgba(30,42,56,0.08);
}
.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  justify-content: center;
}
.footer-nav a {
  color: #E5EAEF;
  font-family: var(--font-body);
  font-size: 1.04rem;
  transition: color 0.21s;
  text-decoration: underline;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--brand-secondary);
}
.footer-info {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}
.brand-footer {
  display: flex;
  align-items: center;
}
.contact-footer {
  font-family: var(--font-body);
  color: #F0F4F8;
  font-size: 1rem;
}
@media (max-width:700px) {
  .footer-info {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

/* ===============================
    RESPONSIVE & UTILITIES
=============================== */
@media (max-width: 560px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.12rem; }
  .footer-nav { gap: 12px; }
}

/* ===============================
    LISTS & DETAILS
=============================== */
ul, ol {
  margin-bottom: 20px;
  font-size: 1.05rem;
}
ul > li, ol > li {
  margin-bottom: 11px;
  line-height: 1.7;
  padding-left: 4px;
}

/* ===============================
    MISC
=============================== */
.text-section {
  margin-bottom: 16px;
}
.content-wrapper > a.cta-primary {
  margin-top: 8px;
  align-self: flex-start;
}

/* ===============================
    COOKIE BANNER & MODAL
=============================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4000;
  background: #fff;
  color: #1E2A38;
  box-shadow: 0 -2px 20px rgba(30,42,56,0.11);
  padding: 22px 40px 22px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  font-family: var(--font-body);
  font-size: 1rem;
  border-top: 2px solid #E5EAEF;
  transition: transform 0.38s;
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner__text {
  flex: 1 1 220px;
  min-width: 120px;
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}
.cookie-banner__btn {
  font-family: var(--font-display);
  border-radius: 24px;
  border: 1px solid var(--brand-muted);
  padding: 8px 20px;
  background: var(--brand-secondary);
  color: #1E2A38;
  font-size: 1rem;
  font-weight: 600;
  transition: background .17s, color .17s;
}
.cookie-banner__btn--accept {
  background: var(--brand-secondary);
  color: #1E2A38;
}
.cookie-banner__btn--accept:hover,
.cookie-banner__btn--accept:focus {
  background: #6fdc3b;
  color: #fff;
}
.cookie-banner__btn--decline {
  background: #E5EAEF;
  color: #1E2A38;
}
.cookie-banner__btn--decline:hover,
.cookie-banner__btn--decline:focus {
  background: #d0e0e9;
  color: #2d3a48;
}
.cookie-banner__btn--settings {
  background: var(--brand-primary);
  color: #fff;
}
.cookie-banner__btn--settings:hover,
.cookie-banner__btn--settings:focus {
  background: #12202b;
  color: var(--brand-secondary);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    padding: 16px 8px;
    gap: 12px;
    font-size: .96rem;
  }
  .cookie-banner__actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 5000;
  background: rgba(46,57,67,0.54);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .35s;
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  padding: 36px 28px 32px 28px;
  max-width: 450px;
  width: 95vw;
  box-shadow: 0 6px 44px rgba(30,42,56,0.21);
  color: #1E2A38;
  font-family: var(--font-body);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalFadeIn 0.30s;
}
@keyframes modalFadeIn {
  0% { transform: translateY(36px) scale(0.98); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-modal__close {
  position: absolute;
  right: 18px; top: 12px;
  font-size: 1.48rem;
  background: none;
  color: #1E2A38;
  border-radius: 6px;
  padding: 2px 9px;
  transition: background .16s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  background: #F0F4F8;
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
}
.cookie-checkbox {
  accent-color: var(--brand-secondary);
  width: 20px;
  height: 20px;
}
.cookie-category-essential {
  font-weight: 600;
  color: #1E2A38;
  opacity: 0.97;
}
.cookie-category-description {
  font-size: .97rem;
  color: #606871;
}
.cookie-modal__actions {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

/* ===============================
    ANIMATIONS & MICRO-INTERACTIONS
=============================== */
.card, .cta-primary, .button, .testimonial-card, .cookie-banner {
  transition: box-shadow .20s, transform .18s, background .18s, color .18s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 12px 42px rgba(30,42,56,0.16);
  transform: translateY(-2px) scale(1.02);
}
.cta-primary:active {
  transform: scale(0.97);
}

/* ===============================
    ACCESSIBILITY & FOCUS
=============================== */
a:focus, button:focus, .cta-primary:focus, .footer-nav a:focus, .cookie-banner__btn:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 2px;
  z-index: 1;
}

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