/* =========================
   Reset & Variables
   ========================= */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding-left: 1.25rem; }
h1, h2, h3, h4, h5, h6, p { margin: 0 0 12px 0; }
button { background: none; border: none; font: inherit; cursor: pointer; }
:root {
  --brand-primary: #1F3A5F;
  --brand-secondary: #1B6E46;
  --brand-accent: #F2F5F9;
  --retro-cream: #F7F2E7;
  --retro-paper: #EFE7DA;
  --retro-brown: #6B4F3A;
  --retro-rust: #B5651D;
  --retro-mustard: #D4A373;
  --ink: #2B2B2B;
  --muted: #555555;
  --white: #FFFFFF;
  --border: #D9CBB5;
  --shadow: rgba(0,0,0,0.08);
}

/* =========================
   Base Typography & Body
   ========================= */
body {
  background: var(--retro-cream);
  color: var(--ink);
  font-family: Verdana, Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", Times, serif;
  color: var(--brand-primary);
}
h1 { font-size: 32px; line-height: 1.2; letter-spacing: 0.2px; }
h2 { font-size: 24px; line-height: 1.25; }
h3 { font-size: 18px; line-height: 1.3; color: var(--retro-brown); }
h4 { font-size: 16px; color: var(--brand-primary); }
.p-muted { color: var(--muted); }
.kicker {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--retro-rust);
  font-weight: bold;
  font-size: 12px;
  margin-bottom: 10px;
}
.subheadline { color: var(--ink); font-size: 18px; }

/* =========================
   Layout Helpers (Flex-only)
   ========================= */
.container {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 1100px;
}
section { padding: 40px 0; }

/* Mandatory spacing classes */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: var(--white); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 6px 0 0 rgba(107,79,58,0.08); padding: 18px; }
.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; }

/* Generic card look used across site */
.feature, .testimonial-card, .contact-details, .text-section, .metrics-row, .stat-counters {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 0 0 var(--shadow);
  padding: 20px;
}

/* =========================
   Header & Navigation
   ========================= */
header {
  background: var(--brand-primary);
  color: var(--white);
  border-bottom: 4px solid var(--retro-mustard);
}
header .container { padding: 12px 16px; }
header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; gap: 14px; }
.logo { display: flex; align-items: center; }
.logo img { height: 38px; }
.main-nav {
  display: none; /* shown on desktop */
  align-items: center; gap: 18px;
}
.main-nav a {
  color: var(--white);
  padding: 8px 10px;
  border-radius: 8px;
  transition: color .2s ease, background-color .2s ease, transform .12s ease;
}
.main-nav a:hover { background: rgba(255,255,255,0.1); transform: translateY(-1px); }
.main-nav .cta {
  background: var(--retro-mustard);
  color: #3b2a18;
  padding: 10px 14px;
  border: 2px solid #C99657;
  box-shadow: 0 4px 0 0 rgba(0,0,0,0.15);
}
.main-nav .cta:hover { background: #CFA06B; }

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  color: var(--brand-primary);
  background: var(--retro-mustard);
  border: 2px solid #C99657;
  border-radius: 10px;
  box-shadow: 0 4px 0 0 rgba(0,0,0,0.18);
  transition: transform .12s ease;
}
.mobile-menu-toggle:active { transform: translateY(1px); }

/* =========================
   Mobile Menu Overlay
   ========================= */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 85vw; max-width: 360px;
  background: var(--retro-paper);
  border-left: 4px solid var(--retro-mustard);
  box-shadow: -6px 0 18px rgba(0,0,0,0.2);
  transform: translateX(100%);
  transition: transform .3s ease;
  z-index: 9999;
  display: flex; flex-direction: column; gap: 10px; padding: 16px;
}
.mobile-menu.active { transform: translateX(0); }
.mobile-menu-close {
  align-self: flex-end;
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--brand-primary); color: var(--white);
}
.mobile-nav {
  display: flex; flex-direction: column; gap: 8px; margin-top: 8px;
}
.mobile-nav a {
  display: flex; align-items: center;
  padding: 12px 10px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--brand-primary);
  font-weight: 600;
}
.mobile-nav a:hover { background: var(--brand-accent); }

/* =========================
   Hero Section (Vintage accents)
   ========================= */
.hero {
  background: var(--retro-paper);
  border-top: 6px solid var(--retro-mustard);
  border-bottom: 2px solid var(--border);
}
.hero .content-wrapper { padding: 10px 0 0 0; }
.hero h1 { color: var(--brand-primary); }
.hero .subheadline { color: var(--muted); }

/* CTA Row */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row a,
.main-nav .cta,
button.cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  background: var(--retro-mustard);
  color: #2b1d13;
  font-weight: 700;
  box-shadow: 0 6px 0 0 rgba(0,0,0,0.18);
  transition: transform .15s ease, box-shadow .15s ease, background-color .2s ease;
}
.cta-row a:nth-child(2) { background: var(--brand-secondary); color: var(--white); border-color: #0E4B31; }
.cta-row a:hover { transform: translateY(-2px); box-shadow: 0 8px 0 0 rgba(0,0,0,0.18); }
.cta-row a:active { transform: translateY(0); box-shadow: 0 2px 0 0 rgba(0,0,0,0.18); }

/* Trust Badges */
.trust-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px dashed var(--border); border-radius: 10px; background: var(--white); }
.badge img { width: 22px; height: 22px; }
.badge span { font-size: 14px; color: var(--muted); }

/* =========================
   Feature Grid & Content Blocks
   ========================= */
.feature-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.feature { flex: 1 1 260px; }
.feature h3 { margin-bottom: 6px; }

.benefit-list { display: flex; flex-direction: column; gap: 6px; }
.process-steps { display: flex; flex-direction: column; gap: 10px; counter-reset: step; list-style: none; padding: 0; }
.process-steps li {
  display: flex; align-items: flex-start; gap: 12px; background: var(--white);
  border: 1px solid var(--border); border-radius: 12px; padding: 12px;
}
.process-steps li::before {
  content: counter(step);
  counter-increment: step;
  flex: 0 0 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: var(--retro-rust); color: var(--white);
  border-radius: 50%; font-weight: 700; font-size: 14px;
  margin-top: 2px;
}

.usps { display: flex; }
.usps p { background: var(--brand-accent); border: 1px solid #dfe6ef; padding: 12px; border-radius: 10px; }

.text-section { display: flex; flex-direction: column; gap: 10px; }
.values-list { display: flex; flex-wrap: wrap; gap: 10px; padding-left: 18px; }

/* Stats */
.stat-counters { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.stat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 14px 16px; min-width: 120px; border: 1px solid var(--border); border-radius: 12px; background: var(--white); box-shadow: 0 6px 0 0 var(--shadow); }
.stat strong { font-size: 24px; color: var(--brand-secondary); }
.stat span { font-size: 13px; color: var(--muted); }

/* Metrics row lists */
.metrics-row { display: flex; }
.metrics-row ul { display: flex; flex-wrap: wrap; gap: 12px; padding-left: 18px; margin: 0; }
.metrics-row li { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }

/* =========================
   Testimonials (high contrast)
   ========================= */
.testimonial-list { display: flex; flex-wrap: wrap; gap: 20px; }
.testimonial-card { flex: 1 1 280px; background: var(--white); color: var(--ink); border-color: var(--border); border-radius: 12px; box-shadow: 0 8px 0 0 var(--shadow); }
.testimonial-card p { margin: 0; }
.rating-summary { margin-left: auto; color: #C28B00; font-size: 18px; }

/* =========================
   Contact Details
   ========================= */
.contact-details { display: flex; flex-direction: column; gap: 8px; }
.contact-details a { color: var(--brand-secondary); text-decoration: underline; }
.privacy-note { font-size: 13px; color: var(--muted); }

/* =========================
   Footer
   ========================= */
footer { background: var(--brand-primary); color: var(--white); border-top: 6px solid var(--retro-mustard); }
footer .container { padding: 24px 16px; }
footer .content-wrapper { gap: 20px; }
.footer-columns { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-columns > div { flex: 1 1 260px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; padding: 16px; }
footer nav { display: flex; flex-direction: column; gap: 8px; }
footer a { color: var(--brand-accent); }
footer a:hover { text-decoration: underline; }

/* =========================
   Links & Focus States
   ========================= */
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px dashed var(--retro-rust); outline-offset: 3px; }

/* =========================
   Utility & Patterns for Vintage Feel
   ========================= */
hr { border: none; height: 1px; background: var(--border); }
.small { font-size: 14px; }

/* =========================
   Cookie Consent Banner & Modal
   ========================= */
.cookie-banner {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.18);
  padding: 14px;
  z-index: 9998;
  display: none;
}
.cookie-banner.active { display: flex; }
.cookie-banner .cookie-content { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.cookie-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-buttons .btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 10px; border: 2px solid var(--ink); font-weight: 700; box-shadow: 0 6px 0 0 rgba(0,0,0,0.18); }
.cookie-accept { background: var(--brand-secondary); color: var(--white); border-color: #0E4B31; }
.cookie-reject { background: var(--retro-rust); color: var(--white); border-color: #8C4916; }
.cookie-settings { background: var(--retro-mustard); color: #2b1d13; border-color: #c99657; }

.cookie-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 9997; display: none;
}
.cookie-modal-overlay.active { display: block; }
.cookie-modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(92vw, 640px);
  background: var(--retro-paper);
  border: 3px solid var(--retro-mustard);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  padding: 18px;
  z-index: 10000;
  display: none; flex-direction: column; gap: 14px;
}
.cookie-modal.active { display: flex; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.cookie-category .label { font-weight: 700; color: var(--brand-primary); }
.toggle { width: 48px; height: 28px; border-radius: 20px; background: #ccc; position: relative; transition: background .2s ease; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background: var(--white); border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2); transition: transform .2s ease; }
.toggle.active { background: var(--brand-secondary); }
.toggle.active::after { transform: translateX(20px); }
.cookie-modal .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* =========================
   Responsive (Flex directions & spacing)
   ========================= */
@media (min-width: 480px) {
  h1 { font-size: 36px; }
}
@media (min-width: 768px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 24px; }

  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }

  .text-image-section { flex-direction: row; }
  .content-wrapper { gap: 24px; }
}
@media (min-width: 1024px) {
  .feature { flex: 1 1 320px; }
  .testimonial-card { flex: 1 1 360px; }
  .footer-columns > div { flex: 1 1 300px; }
}

/* =========================
   Additional Styling for Lists & Pages
   ========================= */
.next-steps-list { display: flex; flex-direction: column; gap: 8px; }
.text-section ul { display: flex; flex-direction: column; gap: 6px; }

/* =========================
   Page-specific subtle accents
   ========================= */
.hero .cta-row a:first-child { background: var(--retro-mustard); }

/* =========================
   Accessibility & Micro-interactions
   ========================= */
button:hover, .mobile-nav a:active { filter: brightness(0.98); }
[role="button"], a, button { transition: background-color .2s ease, color .2s ease, transform .15s ease, box-shadow .15s ease; }

/* =========================
   Ensure Flex spacing and non-overlapping
   ========================= */
section > .container > .content-wrapper > * + * { margin-top: 0; }

/* End of stylesheet */