/* === CSS RESET & BASE TYPOGRAPHY === */
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.5;
  font-family: 'Roboto', Arial, sans-serif;
  color: #243140;
  background-color: #F8FAF9;
  min-height: 100vh;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  text-decoration: none;
  color: inherit;
}
ul, ol {
  list-style: inside disc;
  margin-left: 1.5em;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-sizing: border-box;
}
:focus {
  outline: 2px solid #91C87C;
  outline-offset: 2px;
}

/* === VARIABLE FONT FAMILIES (with fallbacks) === */
:root {
  --font-display: 'Montserrat', 'Arial', sans-serif;
  --font-body: 'Roboto', 'Arial', sans-serif;
}

/* === COLOR VARIABLES === */
:root {
  --primary: #1C355E;
  --secondary: #91C87C;
  --accent: #F8FAF9;
  --card-bg: #fff;
  --text: #243140;
  --muted: #607089;
  --border: #E4E8F1;
  --shadow: rgba(28,53,94,0.06);
  --shadow-strong: rgba(28,53,94,0.12);
  --error: #D84242;
  --success: #48B881;
}

/* === GENERAL TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.375rem; /* 38px */
  margin-bottom: 16px;
}
h2 {
  font-size: 1.75rem; /* 28px */
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem; /* 20px */
  margin-bottom: 10px;
}
h4 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}
p, ul, ol {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
}
.subheadline {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-weight: 400;
}
.price {
  font-size: 1.15rem;
  color: var(--secondary);
  margin-top: 12px;
  font-weight: 700;
}
strong, b {
  font-weight: 700;
}

/* === LAYOUT CONTAINERS & RESPONSIVE === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 36px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 18px;
}

@media (max-width: 900px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .section {
    padding: 32px 10px;
  }
}
@media (max-width: 768px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .section {
    padding: 24px 0;
    margin-bottom: 36px;
    border-radius: 0;
  }
  .content-wrapper {
    margin-bottom: 16px;
  }
}

/* === HEADER & NAVIGATION === */
header {
  background: var(--card-bg);
  box-shadow: 0 2px 10px var(--shadow);
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 101;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 16px;
  padding-top: 0;
  padding-bottom: 0;
}
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
nav.main-nav a {
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 8px 8px 8px 8px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  font-weight: 500;
}
nav.main-nav a:hover,
nav.main-nav a:focus {
  background: var(--secondary);
  color: #fff;
}
header img {
  height: 44px;
  width: auto;
}

/* === PRIMARY BUTTON === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  margin-left: 20px;
  border-radius: 28px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.01em;
  border: none;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px var(--shadow);
  cursor: pointer;
  transition: background 0.14s, box-shadow 0.24s, transform 0.14s;
  outline: none;
  min-width: 160px;
  gap: 8px;
  will-change: background, transform, box-shadow;
}
.btn.primary:hover, .btn.primary:focus {
  background: #254278;
  box-shadow: 0 4px 16px var(--shadow-strong);
  transform: translateY(-2px) scale(1.035);
}
.btn.secondary {
  background: var(--secondary);
  color: var(--primary);
}
.btn.secondary:hover, .btn.secondary:focus {
  background: #75b15e;
  color: var(--card-bg);
}

/* === BURGER MENU (Mobile) === */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-size: 2rem;
  padding: 5px 16px;
  border: none;
  cursor: pointer;
  z-index: 112;
  box-shadow: 0 2px 6px var(--shadow-strong);
  transition: background 0.18s, color 0.18s;
  margin-left: 10px;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--secondary);
  color: var(--primary);
}
@media (max-width: 1024px) {
  nav.main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .btn.primary {
    margin-left: 0;
    min-width: 120px;
  }
}

/* === MOBILE MENU SLIDE-IN === */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: var(--primary);
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(0.4, 0.7, 0.3, 1);
  z-index: 1150;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px 18px 18px 18px;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0%);
  transition: transform 0.36s cubic-bezier(0.4, 0.7, 0.3, 1);
  pointer-events: all;
  box-shadow: 0 8px 32px rgba(28,53,94,0.22);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.2rem;
  border: none;
  align-self: flex-end;
  margin-bottom: 28px;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  background: none;
  padding: 10px 10px 10px 0;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  min-width: 180px;
  will-change: color, background;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
@media (max-width: 1024px) {
  .mobile-menu {
    display: flex;
  }
}

/* Overlay for mobile menu */
.mobile-menu::after {
  content: '';
  display: block;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(26,36,64,0.16);
  z-index: -1;
  pointer-events: none;
}

/* === HERO, CTA, and FEATURE SECTIONS === */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  justify-content: flex-start;
}
.feature {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 2px 10px var(--shadow);
  min-width: 220px;
  flex: 1 1 220px;
  max-width: 270px;
  padding: 26px 20px 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.21s, transform 0.2s;
  cursor: default;
}
.feature img {
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
}
.feature h3 {
  font-size: 1.13rem;
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 8px 28px var(--shadow-strong);
  transform: translateY(-4px) scale(1.025);
}

@media (max-width: 900px) {
  .feature-grid {
    gap: 15px;
  }
  .feature {
    max-width: 100%;
    flex: 1 1 180px;
    padding: 18px 12px 16px 14px;
  }
}
@media (max-width: 600px) {
  .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature {
    width: 100%;
    min-width: unset;
    padding: 13px 10px 14px 10px;
  }
}

/* === COMMON FLEX UTILITIES === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px var(--shadow-strong);
  position: relative;
  transition: box-shadow 0.18s, transform 0.14s;
}
.card:hover {
  box-shadow: 0 8px 22px var(--shadow-strong);
  transform: translateY(-1.5px);
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* === TESTIMONIALS === */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 24px;
  background: #fff;
  border-radius: 13px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px var(--shadow);
  color: var(--text);
  font-size: 1.1rem;
  max-width: 520px;
  transition: box-shadow 0.18s, transform 0.16s;
  will-change: box-shadow, transform;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 28px var(--shadow-strong);
  transform: scale(1.018);
}
.testimonial-card p {
  color: var(--primary);
  font-size: 1.08rem;
  margin-bottom: 6px;
  line-height: 1.6;
}
.testimonial-card span {
  color: var(--muted);
  font-size: 0.98rem;
}
@media (max-width: 600px) {
  .testimonial-card {
    padding: 12px;
    font-size: 1rem;
    gap: 10px;
  }
}

/* === FOOTER === */
footer {
  background: var(--primary);
  color: #fff;
  padding: 42px 0 22px 0;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.footer-nav, .footer-contact, .footer-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav {
  min-width: 220px;
}
.footer-nav a {
  color: #fff;
  opacity: 0.92;
  padding: 4px 0;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: opacity 0.18s, color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--secondary);
  opacity: 1;
}
.footer-contact {
  font-size: 0.98rem;
  gap: 4px;
}
.footer-contact a {
  color: var(--secondary);
  text-decoration: underline;
  transition: color 0.16s;
}
.footer-contact a:hover, .footer-contact a:focus {
  color: #fff;
}
.footer-social {
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.09);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  transition: background 0.16s, transform 0.15s;
}
.footer-social a:hover, .footer-social a:focus {
  background: var(--secondary);
  transform: translateY(-3px) scale(1.08);
}
.footer-social img {
  width: 20px;
  height: 20px;
}
@media (max-width: 900px) {
  footer .container {
    gap: 14px;
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-social {
    margin-top: 10px;
  }
}

/* === CARDS & FEATURES === */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === SECTION SPACING & FLEXBOXS === */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}
.section:last-child, .content-wrapper:last-child { margin-bottom: 0; }

/* === MODALS (for cookie settings & overlays) === */
.cookie-modal {
  position: fixed;
  z-index: 3002;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(28,53,94,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
  animation: cookieFadeIn 0.39s cubic-bezier(0.5, 0.6, 0.3, 1.0);
}
@keyframes cookieFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  border-radius: 14px;
  padding: 32px 28px;
  min-width: 320px;
  max-width: 95vw;
  box-shadow: 0 6px 40px rgba(28,53,94,.23);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: modalPopupUp 0.40s cubic-bezier(0.5,0.6,0.3,1.0);
}
@keyframes modalPopupUp {
  from { transform: translateY(48px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--primary);
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--secondary);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.07rem;
  margin-bottom: 10px;
}
.cookie-toggle {
  width: 48px;
  height: 26px;
  border-radius: 14px;
  background: #E4E8F1;
  position: relative;
  cursor: pointer;
  transition: background 0.17s;
  margin-left: auto;
  margin-right: 6px;
}
.cookie-toggle.on {
  background: var(--secondary);
}
.cookie-toggle .toggle-knob {
  position: absolute;
  left: 4px;
  top: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px #c3c3c3;
  transition: left 0.17s;
}
.cookie-toggle.on .toggle-knob {
  left: 24px;
}
/* Essential cookies fixed state */
.cookie-toggle.disabled {
  filter: grayscale(1) opacity(.7);
  pointer-events: none;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  justify-content: flex-end;
}

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  background: #fff;
  border-top: 2.5px solid var(--secondary);
  box-shadow: 0 -2px 20px rgba(28,53,94,.11);
  padding: 20px 26px 20px 26px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 100vw;
  animation: cookieBannerFadeIn 0.7s cubic-bezier(0.45,0.7,0.20,1.0);
}
@keyframes cookieBannerFadeIn {
  from { transform: translateY(60px); opacity: 0.1; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  flex: 1 0 160px;
  color: var(--primary);
  font-size: 1rem;
  font-family: var(--font-body);
  margin-bottom: 0;
}
.cookie-banner-actions {
  display: flex;
  gap: 16px;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 10px 24px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  border: none;
  font-weight: 700;
  margin: 0;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  box-shadow: 0 1px 8px var(--shadow);
}
.cookie-banner button.accept {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner button.accept:hover,
.cookie-banner button.accept:focus {
  background: #75b15e;
  color: #fff;
}
.cookie-banner button.reject {
  background: #fff;
  color: var(--primary);
  border: 1.6px solid var(--primary);
}
.cookie-banner button.reject:hover,
.cookie-banner button.reject:focus {
  background: #E4E8F1;
}
.cookie-banner button.settings {
  background: var(--primary);
  color: #fff;
  border: none;
}
.cookie-banner button.settings:hover,
.cookie-banner button.settings:focus {
  background: var(--secondary);
  color: var(--primary);
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 10px 15px 10px;
    gap: 12px;
  }
  .cookie-banner-actions {
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
}

/* === ACCESSIBILITY & HIDE CLASSES === */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.hide {
  display: none !important;
}

/* === UTILITY CLASSES === */
.mb-20 { margin-bottom: 20px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-40 { margin-top: 40px !important; }
.mb-40 { margin-bottom: 40px !important; }
.accent { color: var(--secondary) !important; }
.text-center { text-align: center; }

/* === RESPONSIVE SECTION HEADINGS === */
@media (max-width: 600px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.24rem; }
  h3 { font-size: 1.08rem; }
}

/* === FOCUS STATE FOR INTERACTIONS === */
a:focus, button:focus, .btn:focus, .cookie-banner button:focus, .mobile-menu-toggle:focus {
  outline: 2.5px solid var(--secondary);
  outline-offset: 2px;
}

/* === FORM ELEMENTS (if present in future) === */
input[type="text"], input[type="email"], textarea {
  border: 1.4px solid var(--border);
  border-radius: 7px;
  padding: 10px 14px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.19s;
  box-shadow: 0 1px 4px var(--shadow);
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 2px 9px var(--shadow-strong);
}

/* === TABLES (for policy pages) === */
table {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
}
th, td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
}
th {
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
}

/* === MISC VISUAL EFFECTS === */
@media (hover: hover) {
  .feature:hover, .card:hover, .btn:hover, .footer-social a:hover {
    filter: brightness(1.025);
    cursor: pointer;
  }
}

/* === PRINT (hide header/footer/nav almost always) === */
@media print {
  header, nav, .mobile-menu, .cookie-banner, .cookie-modal, footer {
    display: none !important;
  }
  body, main, .container, .section {
    padding: 0;
    margin: 0;
    background: #fff;
    color: #000;
  }
}

/* === END OF CSS === */
