/* ============================
   Reset & Variables
   ============================ */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Verdana, Tahoma, sans-serif; color: #1d2530; background: #ffffff; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: #0B3D91; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font-family: inherit; }
ul, ol { padding-left: 20px; }

:root {
  --primary: #0B3D91; /* Brand dark blue */
  --secondary: #C47E3A; /* Brand copper */
  --accent: #F4FAFF; /* Brand light accent */
  /* Playful brights (for highlights only) */
  --mint: #23D5AB;
  --sun: #FFD23F;
  --pink: #FF477E;
  --sky: #3EC1F3;
  --ink: #121722;
  --ink-2: #222;
  --muted: #5e6b7a;
  --surface: #ffffff;
  --surface-2: #F7FBFF;
  --shadow: rgba(11, 61, 145, 0.12);
}

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

/* Mandatory spacing and alignment 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; }

/* ============================
   Typography
   ============================ */
h1, h2, h3 { font-family: 'Trebuchet MS', Verdana, system-ui, sans-serif; color: var(--ink); margin: 0; line-height: 1.25; letter-spacing: 0.2px; }
.subheadline { color: var(--muted); font-size: 16px; }
h1 { font-size: 28px; }
h2 { font-size: 22px; margin-top: 8px; }
h3 { font-size: 18px; }
p { margin: 0; }
strong { color: var(--ink); }

/* Responsive type scale */
@media (min-width: 768px) {
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
  h3 { font-size: 20px; }
  .subheadline { font-size: 18px; }
}
@media (min-width: 1024px) {
  h1 { font-size: 44px; }
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }
  .subheadline { font-size: 18px; }
}

/* ============================
   Header & Navigation
   ============================ */
header { background: var(--surface); border-bottom: 4px solid var(--accent); position: relative; z-index: 20; }
header .container { padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; }
.logo img { height: 36px; }

.main-nav { display: none; align-items: center; gap: 16px; flex-wrap: wrap; }
.main-nav a { color: var(--ink); font-weight: 600; padding: 8px 10px; border-radius: 10px; transition: background-color .25s ease, transform .15s ease; }
.main-nav a:hover { background: var(--accent); transform: translateY(-1px); }

.header-cta { display: none; align-items: center; gap: 10px; flex-wrap: wrap; }
.header-cta .btn img { width: 18px; height: 18px; margin-right: 8px; }

/* Mobile burger */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--primary); background: #fff; color: var(--primary); font-size: 22px; cursor: pointer; transition: transform .2s ease, background-color .2s ease; }
.mobile-menu-toggle:hover { background: var(--accent); transform: translateY(-2px); }

/* Mobile menu overlay */
.mobile-menu { position: fixed; inset: 0 0 0 auto; width: 100%; max-width: 86%; background: #ffffff; box-shadow: -6px 0 24px rgba(0,0,0,0.12); transform: translateX(100%); transition: transform .35s ease; display: flex; flex-direction: column; padding: 20px; gap: 16px; z-index: 999; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--primary); background: #fff; color: var(--primary); font-size: 18px; cursor: pointer; }
.mobile-nav { display: flex; flex-direction: column; gap: 12px; }
.mobile-nav a { padding: 14px 12px; border-radius: 12px; background: var(--accent); color: var(--ink); font-weight: 600; }
.mobile-nav a:hover { background: #e9f5ff; }

/* Header layout switching */
@media (min-width: 992px) {
  header .container { flex-direction: row; align-items: center; gap: 20px; }
  .logo img { height: 42px; }
  .main-nav { display: flex; }
  .header-cta { display: flex; }
  .mobile-menu-toggle, .mobile-menu { display: none; }
}

/* ============================
   Hero Sections (Playful Dynamic)
   ============================ */
.hero { background: var(--accent); position: relative; overflow: hidden; }
.hero .container { padding-top: 28px; padding-bottom: 28px; }
.hero .content-wrapper { padding: 10px 0; }

/* Playful color chips behind content (decorative, non-card) */
.hero::before, .hero::after { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 30px; opacity: 0.15; z-index: 0; }
.hero::before { background: var(--sun); top: -30px; right: -30px; transform: rotate(12deg); }
.hero::after { background: var(--pink); bottom: -30px; left: -30px; transform: rotate(-8deg); }
.hero .content-wrapper { position: relative; z-index: 1; }

/* Badges */
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--ink); border: 2px dashed var(--mint); padding: 10px 12px; border-radius: 14px; font-weight: 700; font-size: 14px; box-shadow: 0 4px 10px var(--shadow); }
.badge img { width: 16px; height: 16px; }
.badge.accent { background: var(--sun); border-color: #00000010; color: #222; }

/* ============================
   Buttons
   ============================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 999px; border: 2px solid transparent; font-weight: 800; cursor: pointer; transition: transform .15s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease; text-decoration: none; }
.btn.primary { background: var(--primary); color: #fff; box-shadow: 0 8px 16px rgba(11,61,145,0.25); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(11,61,145,0.3); }
.btn.primary:active { transform: translateY(0); }

.btn.secondary { background: #fff; color: var(--primary); border-color: var(--primary); box-shadow: 0 6px 12px var(--shadow); }
.btn.secondary:hover { background: var(--accent); transform: translateY(-2px); }

/* Focus states */
.btn:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus, a:focus { outline: 3px solid var(--sun); outline-offset: 2px; }

/* CTA groups */
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 768px) { .cta-group { gap: 16px; } }

/* ============================
   Lists & Steps
   ============================ */
.usp-bullets, .steps-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding-left: 0; list-style: none; }
.usp-bullets li, .steps-list li { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #e7eef7; border-left: 6px solid var(--mint); padding: 10px 12px; border-radius: 12px; box-shadow: 0 3px 8px var(--shadow); }
.steps-list li { border-left-color: var(--secondary); }
.usp-bullets a { font-weight: 700; }

/* Generic text sections */
.text-section { display: flex; flex-direction: column; gap: 12px; }
.text-section h3 { color: var(--primary); }
.text-section ul { display: flex; flex-direction: column; gap: 8px; }

/* ============================
   Testimonials (high-contrast, light bg)
   ============================ */
.testimonial-card { background: #fff; border: 2px solid #eaf2ff; border-left: 8px solid var(--primary); border-radius: 14px; box-shadow: 0 8px 18px var(--shadow); align-items: flex-start; }
.testimonial-card h3 { color: var(--ink); font-style: italic; }
.testimonial-card p { color: #2b2b2b; }

/* ============================
   Footer
   ============================ */
footer { background: #607598; color: #eef5ff; margin-top: 40px; }
footer a { color: #ffffff; opacity: 0.95; }
footer a:hover { opacity: 1; text-decoration: underline; }
footer .container { padding-top: 28px; padding-bottom: 28px; }
footer .content-wrapper { gap: 24px; }
.brand-badge { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.brand-badge img { width: 120px; }
.footer-nav { display: flex; flex-direction: column; gap: 14px; }
.footer-nav nav { display: flex; flex-direction: column; gap: 8px; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; color: #e6f0ff; }

@media (min-width: 992px) {
  footer .content-wrapper { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  .footer-nav { flex-direction: row; gap: 40px; }
  .footer-nav nav { gap: 10px; }
}

/* ============================
   Sections default spacing
   ============================ */
main section { padding-top: 24px; padding-bottom: 24px; }

/* ============================
   Cards (generic)
   ============================ */
.card { background: #fff; border: 1px solid #e8eef7; border-radius: 14px; box-shadow: 0 8px 18px var(--shadow); padding: 18px; }
.card:hover { box-shadow: 0 12px 24px var(--shadow); }

/* ============================
   Content utilities
   ============================ */
.content-grid > * { flex: 1 1 280px; }
.card-container > * { flex: 1 1 260px; }
.text-image-section > * { flex: 1 1 320px; }

/* ============================
   Mobile-first responsiveness
   ============================ */
@media (min-width: 768px) {
  .hero .container { padding-top: 40px; padding-bottom: 40px; }
}

/* ============================
   Cookie Consent Banner & Modal
   ============================ */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; background: #ffffff; border-top: 4px solid var(--secondary); box-shadow: 0 -8px 20px rgba(0,0,0,0.12); padding: 16px; display: flex; flex-direction: column; gap: 12px; transform: translateY(110%); transition: transform .35s ease; z-index: 1000; }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-text { color: var(--ink-2); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { padding: 10px 14px; font-weight: 700; }
.cookie-actions .accept { background: var(--mint); color: #0b0d0f; border-color: transparent; }
.cookie-actions .reject { background: #fff; color: var(--ink); border-color: var(--ink); }
.cookie-actions .settings { background: var(--sun); color: #222; }

/* Cookie modal */
.cookie-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); opacity: 0; pointer-events: none; transition: opacity .3s ease; z-index: 1001; }
.cookie-overlay.open { opacity: 1; pointer-events: auto; }
.cookie-modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.96); background: #fff; width: 92%; max-width: 560px; border-radius: 16px; box-shadow: 0 24px 48px rgba(0,0,0,0.22); padding: 20px; display: flex; flex-direction: column; gap: 16px; opacity: 0; transition: transform .3s ease, opacity .3s ease; z-index: 1002; }
.cookie-modal.open { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.cookie-modal .cookie-groups { display: flex; flex-direction: column; gap: 12px; }
.cookie-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid #e8eef7; border-radius: 12px; }
.cookie-row .label { font-weight: 700; color: var(--ink); }
.cookie-row .always { font-size: 12px; color: var(--muted); }

/* Toggle switch (for analytics/marketing) */
.switch { position: relative; width: 48px; height: 28px; border: 2px solid var(--primary); border-radius: 999px; background: #fff; cursor: pointer; display: inline-flex; align-items: center; padding: 2px; }
.switch .dot { width: 20px; height: 20px; background: var(--primary); border-radius: 50%; transform: translateX(0); transition: transform .25s ease, background-color .25s ease; }
.switch.active { background: var(--accent); border-color: var(--mint); }
.switch.active .dot { background: var(--mint); transform: translateX(20px); }

.cookie-modal .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* ============================
   Playful micro-interactions
   ============================ */
@keyframes floaty {
  0% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(2.5deg); }
  75% { transform: rotate(-2.5deg); }
}
.badge { animation: floaty 4s ease-in-out infinite; }
.btn:hover { will-change: transform; }

/* ============================
   Accessibility & Helpers
   ============================ */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; border: 0; padding: 0; clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap; }

/* ============================
   Page-specific small touches
   ============================ */
/* Pricing page accents */
.badge img, .header-cta img { filter: saturate(1.2); }

/* Links inside dark footer blocks */
footer .footer-nav a, footer .footer-contact a { text-decoration: none; }

/* Ensure gaps between stacked elements across pages */
.content-wrapper > * + * { margin-top: 0; }

/* ============================
   Alignment rules for text-image sections on mobile
   ============================ */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: center; }
}

/* ============================
   Ensure adequate spacing between all elements
   ============================ */
main .container { gap: 20px; }
main .content-wrapper { gap: 20px; }
.testimonial-card + .testimonial-card { margin-top: 20px; }

/* ============================
   Link styles inside content
   ============================ */
.content-wrapper a { color: var(--primary); font-weight: 700; }
.content-wrapper a:hover { color: #072b66; }

/* ============================
   Tables (if any appear later)
   ============================ */
.table { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.table-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; border: 1px solid #e8eef7; border-radius: 12px; }
.table-row > * { flex: 1 1 160px; }

/* ============================
   Ensure no overlapping and good stacking
   ============================ */
.hero, header, footer, .mobile-menu, .cookie-banner, .cookie-modal, .cookie-overlay { isolation: isolate; }

/* ============================
   Desktop refinements
   ============================ */
@media (min-width: 1024px) {
  .hero .container { flex-direction: column; }
  .footer-nav nav { flex-direction: column; }
}

/* ============================
   Additional component styles from HTML structure
   ============================ */
/* Footer nav layout already flex. Ensure vertical spacing on mobile. */
.footer-nav nav a { padding: 4px 0; }

/* Lists inside policy pages */
.text-section ul li, .content-wrapper ul li { padding-left: 0; }

/* Ensure all sections have at least the minimum separation */
section + section { margin-top: 10px; }

/* High-contrast in testimonial text across dark/light contexts */
.testimonial-card h3, .testimonial-card p, .testimonial-card strong { color: #1b1f27; }

/* ============================
   Energetic dividers (borders) for headers inside content
   ============================ */
.content-wrapper h2 { position: relative; padding-left: 10px; }
.content-wrapper h2::before { content: ""; width: 6px; height: 100%; background: var(--secondary); border-radius: 6px; position: absolute; left: 0; top: 0; }

/* ============================
   Make nav items playful on hover
   ============================ */
.main-nav a:hover { box-shadow: 0 6px 14px var(--shadow); }

/* ============================
   Ensure interactive elements are large enough on touch
   ============================ */
.mobile-nav a, .btn, .mobile-menu-toggle, .mobile-menu-close { min-height: 44px; }

/* ============================
   End of stylesheet
   ============================ */
