/* =============================
   Reset & Base Styles
   ============================= */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Verdana, sans-serif; color: #1E3A5F; background-color: #FFFFFF; line-height: 1.6; }
img, video { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 16px 20px; padding: 0; }
p { margin: 0 0 12px; }
a { color: #1E3A5F; text-decoration: none; position: relative; }
a:focus { outline: 3px solid #00D1FF; outline-offset: 2px; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:root {
  --primary: #1E3A5F;
  --secondary: #7A3E00;
  --accent: #F2F5F7;
  /* Playful energy accents */
  --energy-yellow: #FFD100;
  --energy-pink: #FF5A8A;
  --energy-cyan: #00D1FF;
  --energy-lime: #7BE000;
  --ink: #0F2440;
  --muted: #6B7A90;
  --white: #FFFFFF;
  --shadow-1: 0 6px 18px rgba(30,58,95,0.14);
  --shadow-2: 0 12px 32px rgba(30,58,95,0.18);
}

/* =============================
   Typography
   ============================= */
h1, h2, h3, h4 { font-family: "Trebuchet MS", Verdana, sans-serif; color: var(--ink); margin: 0 0 12px; line-height: 1.25; }
h1 { font-size: 32px; letter-spacing: 0.2px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
.subheadline { color: var(--muted); font-size: 16px; margin: 6px 0 16px; }
strong { color: var(--ink); }

/* =============================
   Layout Containers (Flex Only)
   ============================= */
.container { display: flex; width: 100%; padding: 0 16px; justify-content: center; }
.content-wrapper { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; width: 100%; max-width: 1100px; }
section { margin-bottom: 48px; padding: 28px 0; position: relative; }
.section { margin-bottom: 60px; padding: 40px 20px; }

/* Text-Image & Grids (Flex Only) */
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; display: flex; flex-direction: column; gap: 12px; background: var(--white); border: 2px solid var(--accent); border-radius: 14px; padding: 18px; box-shadow: var(--shadow-1); }
.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; }

/* =============================
   Header & Navigation
   ============================= */
header { position: sticky; top: 0; z-index: 50; background: var(--white); box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; padding: 14px 0; gap: 14px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-text { font-weight: 800; color: var(--primary); font-family: "Trebuchet MS", Verdana, sans-serif; letter-spacing: 0.4px; }

.main-nav { display: none; align-items: center; gap: 14px; flex-wrap: wrap; }
.main-nav a { padding: 10px 12px; border-radius: 10px; transition: background-color .25s ease, transform .15s ease; }
.main-nav a:hover { background: var(--accent); transform: translateY(-1px); }
.main-nav a:active { transform: translateY(0); }

.header-cta a { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 12px; background: var(--energy-yellow); color: #1A1A1A; font-weight: 700; box-shadow: var(--shadow-1); transition: transform .2s ease, box-shadow .2s ease; }
.header-cta a:hover { transform: translateY(-2px) scale(1.02); box-shadow: var(--shadow-2); }
.header-cta a:focus { outline: 3px solid var(--energy-cyan); outline-offset: 2px; }

.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; font-size: 22px; border-radius: 10px; background: var(--primary); color: var(--white); box-shadow: var(--shadow-1); transition: background .2s ease, transform .2s ease; }
.mobile-menu-toggle:hover { background: #25476F; transform: translateY(-1px); }

/* Mobile Menu Overlay */
.mobile-menu { position: fixed; inset: 0 0 0 auto; width: 100%; max-width: 360px; height: 100%; background: var(--white); box-shadow: -8px 0 24px rgba(0,0,0,0.15); transform: translateX(100%); transition: transform .35s ease; z-index: 100; display: flex; flex-direction: column; padding: 18px; gap: 16px; }
.mobile-menu::before { content: ""; position: absolute; top: 10%; right: 12%; width: 90px; height: 90px; background: var(--energy-pink); opacity: .1; border-radius: 18px; transform: rotate(12deg); }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; width: 40px; height: 40px; border-radius: 10px; background: var(--accent); color: var(--ink); font-size: 20px; }
.mobile-nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-nav a { padding: 12px 10px; border-radius: 10px; background: var(--accent); color: var(--ink); font-weight: 600; box-shadow: 0 2px 0 rgba(0,0,0,0.05) inset; transition: background .2s ease, transform .15s ease; }
.mobile-nav a:hover { background: #E7EDF2; transform: translateX(3px); }

/* Optional overlay when menu open */
body.nav-open::before { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 90; }

/* =============================
   Hero Section (Playful Dynamic)
   ============================= */
.hero { background: var(--accent); overflow: hidden; border-bottom: 4px solid var(--energy-yellow); }
.hero .content-wrapper { padding: 24px 0 12px; }
.hero h1 { font-size: 28px; font-weight: 900; color: var(--primary); text-shadow: 0 2px 0 rgba(255,209,0,0.25); }
.hero .subheadline { font-size: 16px; color: var(--ink); background: var(--white); display: inline-flex; padding: 8px 12px; border-radius: 12px; border: 2px solid var(--energy-cyan); box-shadow: var(--shadow-1); }
.hero .text-section a { margin-right: 10px; }

/* Decorative shapes (purely decorative, behind content) */
.hero::before, .hero::after { content: ""; position: absolute; z-index: 0; opacity: 0.12; pointer-events: none; }
.hero::before { width: 160px; height: 160px; background: var(--energy-cyan); border-radius: 28px; top: -30px; left: -20px; transform: rotate(8deg); animation: floaty 7s ease-in-out infinite; }
.hero::after { width: 220px; height: 220px; background: var(--energy-pink); border-radius: 36px; bottom: -40px; right: -30px; transform: rotate(-6deg); animation: floaty 8s ease-in-out infinite reverse; }
.hero .container, .hero .content-wrapper { position: relative; z-index: 1; }

/* =============================
   Text Blocks & Links
   ============================= */
.text-section { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.text-section a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--primary); color: var(--white); box-shadow: var(--shadow-1); transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.text-section a:hover { background: #25476F; transform: translateY(-2px); box-shadow: var(--shadow-2); }
.text-section a:active { transform: translateY(0); }
.text-section em { background: #FFF6CC; padding: 2px 6px; border-radius: 8px; }

/* =============================
   Testimonials (High Contrast)
   ============================= */
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; background: var(--accent); color: var(--ink); border: 2px solid #E1E7EC; border-radius: 16px; box-shadow: var(--shadow-1); }
.testimonial-card h3 { margin-bottom: 6px; }

/* =============================
   Footer
   ============================= */
footer { background: var(--primary); color: var(--white); padding: 26px 0; margin-top: 20px; }
footer a { color: #E7F2FF; }
footer .content-wrapper { flex-direction: column; gap: 14px; }
.footer-nav, .legal-nav { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-nav a, .legal-nav a { padding: 8px 10px; border-radius: 10px; transition: background .2s ease; }
.footer-nav a:hover, .legal-nav a:hover { background: rgba(255,255,255,0.12); }

/* =============================
   Buttons (Utility Classes)
   ============================= */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 14px; font-weight: 700; box-shadow: var(--shadow-1); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn-primary { background: var(--energy-yellow); color: #1A1A1A; }
.btn-primary:hover { transform: translateY(-2px) scale(1.01); box-shadow: var(--shadow-2); }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-secondary:hover { background: #8A4A0D; transform: translateY(-2px); }
.btn-ghost { background: var(--accent); color: var(--ink); }

/* =============================
   Cookie Consent (Banner & Modal)
   ============================= */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; display: none; background: var(--white); color: var(--ink); border: 2px solid #E3E9EE; border-radius: 16px; box-shadow: var(--shadow-2); padding: 16px; }
.cookie-banner.show { display: flex; flex-direction: column; gap: 12px; animation: slideUp .35s ease; }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .btn-accept { background: var(--energy-lime); color: #0B2010; }
.cookie-banner .btn-reject { background: #FFE2EA; color: #4A0E1F; }
.cookie-banner .btn-settings { background: var(--accent); color: var(--ink); }
.cookie-banner a { text-decoration: underline; }

.cookie-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 210; display: none; }
.cookie-overlay.show { display: block; animation: fadeIn .25s ease; }
.cookie-modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.96); transform-origin: center; z-index: 220; width: calc(100% - 32px); max-width: 640px; background: var(--white); border-radius: 18px; border: 3px solid var(--energy-cyan); box-shadow: var(--shadow-2); padding: 18px; display: none; }
.cookie-modal.show { display: flex; flex-direction: column; gap: 14px; animation: popIn .28s ease forwards; }
.cookie-modal h3 { margin-bottom: 6px; }
.cookie-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 2px dashed var(--accent); border-radius: 12px; }
.cookie-row small { color: var(--muted); }
.toggle { display: inline-flex; align-items: center; gap: 10px; }
.switch { width: 44px; height: 26px; background: #D9E1E8; border-radius: 999px; position: relative; transition: background .2s ease; }
.switch::after { content: ""; position: absolute; width: 20px; height: 20px; top: 3px; left: 3px; background: var(--white); border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: left .2s ease; }
.switch.on { background: var(--energy-cyan); }
.switch.on::after { left: 21px; }

/* =============================
   Micro-interactions & Animations
   ============================= */
@keyframes floaty { 0% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(8px) rotate(3deg); } 100% { transform: translateY(0) rotate(0deg); } }
@keyframes slideUp { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes popIn { from { transform: translate(-50%, -50%) scale(0.92); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =============================
   Utilities & Helpers
   ============================= */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: #FFF3B3; color: #3A3300; font-weight: 700; font-size: 12px; }
.hr { width: 100%; height: 2px; background: var(--accent); border-radius: 1px; }

/* =============================
   Responsive (Mobile-first)
   ============================= */
@media (min-width: 480px) {
  h1 { font-size: 34px; }
}

@media (min-width: 768px) {
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
  .content-wrapper { gap: 24px; }
  section { margin-bottom: 60px; padding: 32px 0; }
  .hero h1 { font-size: 40px; }
  .hero .subheadline { font-size: 18px; }
  .text-image-section { flex-direction: row; }
  .testimonial-card { padding: 22px; }
  header .content-wrapper { gap: 20px; }
}

@media (min-width: 1024px) {
  h1 { font-size: 44px; }
  h2 { font-size: 28px; }
  .hero h1 { font-size: 48px; }
}

/* =============================
   Spacing & Alignment Mandates
   ============================= */
/* Ensuring minimum spacing between all content blocks */
.content-wrapper > * { margin: 0; }
.content-wrapper > * + * { margin-top: 10px; }
section .testimonial-card + .testimonial-card { margin-top: 20px; }

/* =============================
   Page-specific Tweaks
   ============================= */
/* Lists inside features/sections gain playful bullets */
.text-section ul li, .text-section ol li { margin-bottom: 6px; }
.text-section ul { list-style: none; padding-left: 0; }
.text-section ul li { position: relative; padding-left: 28px; }
.text-section ul li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 4px; background: var(--energy-cyan); transform: rotate(12deg); box-shadow: 0 2px 0 rgba(0,0,0,0.05) inset; }
.text-section ol { padding-left: 22px; }

/* Price lists/FAQ emphasis */
.text-section h3 { color: var(--primary); }

/* Links inline within paragraphs */
p a { color: var(--secondary); text-decoration: underline; }
p a:hover { color: #9B530E; }

/* =============================
   Flex Compliance for all navs/footers/sections
   ============================= */
header nav, footer nav { display: flex; }

/* =============================
   Accessibility & Focus
   ============================= */
.main-nav a:focus, .mobile-nav a:focus, .footer-nav a:focus, .legal-nav a:focus, .text-section a:focus { outline: 3px solid var(--energy-cyan); outline-offset: 2px; border-radius: 10px; }

/* =============================
   Prevent Overlaps & Z-index Hygiene
   ============================= */
.hero, header, footer, .cookie-banner, .cookie-modal { isolation: isolate; }

/* =============================
   End of Styles
   ============================= */