/* =========================
   Reset & Base Variables
   ========================= */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, video { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 16px 20px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; }
:root {
  /* Brand palette */
  --brand-primary: #1F2833; /* deep slate/navy */
  --brand-secondary: #2E5E4E; /* grounded forest green */
  --brand-accent: #F5F3EE; /* soft light */
  /* Vibrant energetic highlights */
  --electric-pink: #FF2D55;
  --electric-blue: #00C2FF;
  --electric-lime: #A2FF00;
  --ink: #121417;
  --text: #1A1D21;
  --muted: #6B7280;
  --surface: #FFFFFF;
  --surface-2: #F7F7F9;
  --shadow: rgba(18,20,23,0.08);
  --shadow-strong: rgba(18,20,23,0.18);
}

/* Typography */
body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  font-size: 16px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--ink);
  margin: 0 0 12px;
}
h1 { font-size: 36px; line-height: 1.15; font-weight: 700; letter-spacing: 0.2px; }
h2 { font-size: 28px; line-height: 1.2; font-weight: 700; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 700; }
p { margin: 0 0 12px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--electric-blue);
  font-size: 12px;
  margin-bottom: 10px;
}
.subheadline { font-size: 18px; color: var(--ink); opacity: 0.9; }

/* Accessibility focus */
:focus-visible {
  outline: 3px solid var(--electric-blue);
  outline-offset: 3px;
}

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

/* Mandatory spacing patterns */
.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; }

/* Default section spacing for semantic <section> tags */
section { margin-bottom: 60px; padding: 40px 20px; }

/* Utility flex helpers */
.stack-16 { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* =========================
   Buttons
   ========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 160ms ease, box-shadow 200ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn.primary {
  background: var(--brand-secondary);
  color: #FFFFFF;
  box-shadow: 0 6px 18px var(--shadow);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px var(--shadow-strong); background: #2B5A4A; }
.btn.primary:active { transform: translateY(0); }

.btn.secondary {
  background: #FFFFFF;
  color: var(--brand-secondary);
  border-color: var(--brand-secondary);
}
.btn.secondary:hover { background: var(--brand-accent); border-color: var(--electric-pink); color: var(--brand-primary); }

.btn.link {
  padding: 0; border: none; background: transparent;
  color: var(--brand-secondary);
  font-weight: 700;
  position: relative;
}
.btn.link::after {
  content: '';
  display: block; height: 3px; width: 100%;
  background: var(--electric-pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
  margin-top: 4px;
}
.btn.link:hover::after { transform: scaleX(1); }

.cta-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* =========================
   Header & Navigation
   ========================= */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: #FFFFFF;
  border-bottom: 3px solid var(--brand-accent);
  box-shadow: 0 4px 16px var(--shadow);
}
.site-header .content-wrapper {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}
.logo { display: flex; align-items: center; }
.logo img { height: 36px; width: auto; }

.main-nav { display: none; align-items: center; gap: 18px; }
.main-nav a {
  color: var(--brand-primary);
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 8px;
}
.main-nav a:hover { background: var(--brand-accent); color: var(--brand-primary); }

.header-cta { display: none; align-items: center; gap: 10px; }

.mobile-menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  color: #FFFFFF;
  background: var(--brand-primary);
  box-shadow: 0 8px 18px var(--shadow);
}
.mobile-menu-toggle:hover { background: #19202A; }

/* =========================
   Mobile Menu Overlay
   ========================= */
.mobile-menu {
  position: fixed; inset: 0 0 0 auto; /* right side drawer */
  width: 86%; max-width: 420px;
  background: #0B1320;
  color: #FFFFFF;
  display: flex; flex-direction: column; gap: 16px;
  transform: translateX(100%);
  transition: transform 280ms ease;
  z-index: 2000;
  padding: 18px;
  box-shadow: -10px 0 28px rgba(0,0,0,0.28);
}
.mobile-menu.open, body.menu-open .mobile-menu { transform: translateX(0); }
.mobile-menu-close {
  align-self: flex-end; width: 40px; height: 40px; border-radius: 10px;
  color: var(--electric-blue); background: rgba(255,255,255,0.08);
}
.mobile-nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-nav a {
  display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: 10px;
  color: #E9F3FF; font-weight: 700;
}
.mobile-nav a:hover { background: rgba(255,255,255,0.08); color: #FFFFFF; }
body.menu-open { overflow: hidden; }

/* =========================
   Hero Section (vibrant)
   ========================= */
.hero {
  position: relative;
  background: var(--brand-primary);
  color: #FFFFFF;
  overflow: hidden;
  border-bottom: 4px solid var(--electric-pink);
}
.hero .content-wrapper { padding: 32px 0; }
.hero .eyebrow { color: var(--electric-lime); }
.hero h1 { color: #FFFFFF; font-size: 34px; }
.hero .subheadline { color: #E6ECF4; }
.hero .cta-group .btn.primary { background: var(--electric-pink); border-color: var(--electric-pink); }
.hero .cta-group .btn.primary:hover { background: #E6244A; }
.hero nav[aria-label] { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: #C7D0DB; }
.hero nav[aria-label] a { color: #F1F6FF; text-decoration: underline; text-underline-offset: 3px; }

/* Decorative energetic blocks */
.hero::before, .hero::after {
  content: '';
  position: absolute; z-index: 0;
  width: 220px; height: 220px; border-radius: 28px;
  opacity: 0.16;
}
.hero::before { background: var(--electric-blue); top: -60px; left: -40px; transform: rotate(18deg); }
.hero::after { background: var(--electric-pink); bottom: -60px; right: -40px; transform: rotate(-14deg); }
.hero .container, .hero .content-wrapper, .hero * { position: relative; z-index: 1; }

/* =========================
   Content Blocks & Lists
   ========================= */
.text-section { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--surface); border: 1px solid var(--brand-accent); border-radius: 14px; box-shadow: 0 6px 14px var(--shadow); }
.text-section h3 { margin-top: 4px; }
.text-section ul { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0 0 0 18px; }
.text-section li { margin: 0; }
.text-section .privacy-note { font-size: 14px; color: var(--muted); }

.usp-badges ul { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0; }
.usp-badges li { display: flex; align-items: center; gap: 10px; border: 1px solid var(--brand-accent); background: #FFFFFF; color: var(--brand-primary); padding: 10px 12px; border-radius: 12px; box-shadow: 0 4px 10px var(--shadow); font-weight: 700; }
.usp-badges img { width: 18px; height: 18px; }

/* =========================
   Cards
   ========================= */
.card { background: #FFFFFF; border-radius: 16px; padding: 18px; box-shadow: 0 8px 18px var(--shadow); border: 1px solid var(--brand-accent); transition: transform 160ms ease, box-shadow 200ms ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 26px var(--shadow-strong); }

/* Testimonials – high contrast light cards */
.testimonial-card {
  background: var(--brand-accent);
  color: var(--brand-primary);
  border: 2px solid #E9E5DD;
  border-radius: 14px;
  box-shadow: 0 6px 14px var(--shadow);
}
.testimonial-card p { margin: 0; }
.testimonial-card p + p { opacity: 0.9; }

/* =========================
   Footer
   ========================= */
.site-footer {
  background: #0E1520;
  color: #D6DFEA;
  border-top: 4px solid var(--electric-blue);
}
.site-footer a { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .text-section { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.06); color: #EAF2FF; }
.site-footer h3 { color: #FFFFFF; }
.site-footer p { margin: 0; }

/* =========================
   Cookie Consent (banner & modal)
   ========================= */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  background: #0B1320;
  color: #FFFFFF;
  border: 2px solid var(--electric-blue);
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(0,0,0,0.35);
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px;
  z-index: 2500;
  transform: translateY(120%);
  transition: transform 260ms ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .btn { border-radius: 10px; }
.cookie-banner .btn.accept { background: var(--electric-lime); color: #0B1320; }
.cookie-banner .btn.accept:hover { background: #8AE600; }
.cookie-banner .btn.reject { background: transparent; color: #FFFFFF; border: 2px solid rgba(255,255,255,0.25); }
.cookie-banner .btn.settings { background: var(--electric-blue); color: #0B1320; }

.cookie-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  display: none; align-items: center; justify-content: center;
  z-index: 3000;
}
.cookie-modal-overlay.open { display: flex; }
.cookie-modal {
  background: #FFFFFF;
  color: var(--text);
  width: 100%; max-width: 720px;
  border-radius: 16px;
  border: 2px solid var(--brand-accent);
  box-shadow: 0 20px 40px var(--shadow-strong);
  padding: 20px;
  display: flex; flex-direction: column; gap: 16px;
  transform: translateY(24px);
  transition: transform 240ms ease;
}
.cookie-modal.open { transform: translateY(0); }
.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-options { display: flex; flex-direction: column; gap: 12px; }
.cookie-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--brand-accent); background: var(--surface-2); }
.cookie-toggle { width: 48px; height: 28px; border-radius: 14px; background: #CBD5E1; position: relative; transition: background-color 160ms ease; display: inline-flex; align-items: center; }
.cookie-toggle::after { content: ''; width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 2px 6px var(--shadow); transform: translateX(3px); transition: transform 160ms ease; }
.cookie-toggle.on { background: var(--electric-blue); }
.cookie-toggle.on::after { transform: translateX(23px); }

/* =========================
   Links & Rich Content
   ========================= */
main a { color: var(--brand-secondary); font-weight: 700; }
main a:hover { color: var(--electric-pink); }
address { font-style: normal; color: var(--text); }

/* =========================
   Responsive Flex Behaviors
   ========================= */
/* Content wrappers: let headings span full width, items wrap on larger viewports */
@media (min-width: 768px) {
  .content-wrapper { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
  .content-wrapper > h1,
  .content-wrapper > h2,
  .content-wrapper > nav[aria-label] { flex: 1 1 100%; }
  .text-section { flex: 1 1 260px; }
  .testimonial-card { flex: 1 1 320px; }
}

/* Header desktop nav */
@media (min-width: 980px) {
  .main-nav { display: flex; }
  .header-cta { display: flex; }
  .mobile-menu-toggle { display: none; }
}

/* Hero sizing on larger screens */
@media (min-width: 768px) {
  .hero .content-wrapper { padding: 48px 0; }
  .hero h1 { font-size: 46px; }
  .subheadline { font-size: 20px; }
}
@media (min-width: 1180px) { .hero h1 { font-size: 52px; } }

/* Text-image sections default alignment rules */
.text-image-section { align-items: center; }
@media (max-width: 768px) { .text-image-section { flex-direction: column; } }

/* Content grids spacing and prevention of overlap */
.content-grid > * { flex: 1 1 280px; }

/* =========================
   Page-specific micro-tweaks
   ========================= */
/* Breadcrumbs spacing across internal pages */
.hero nav[aria-label] { margin-bottom: 8px; }

/* Lists inside content wrappers: ensure readable spacing */
.content-wrapper ul { margin: 0; }
.content-wrapper li { margin: 0 0 6px; }

/* Contact info rows with icons */
.text-section li img { width: 18px; height: 18px; }
.text-section li { display: list-item; }

/* =========================
   Visual Accents
   ========================= */
hr { border: none; height: 2px; background: var(--brand-accent); margin: 24px 0; }
.tag { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--brand-accent); font-weight: 700; font-size: 12px; }

/* =========================
   Prevent overlaps via spacing
   ========================= */
section + section { margin-top: 0; }
section .text-section + .text-section { margin-top: 0; }

/* =========================
   Print basics (optional safety)
   ========================= */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  a { text-decoration: underline; }
}
