/* Reset & Normalize */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: Verdana, Geneva, sans-serif; color: #0a1520; background-color: #F5F7FA; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; display: block; }
a { color: #0A3D62; text-decoration: none; }
button { font-family: inherit; }
ul { margin: 0; padding: 0 0 0 20px; }
li { margin: 6px 0; }

/* Brand Variables with fallbacks */
:root {
  --color-primary: #0A3D62; /* brand navy */
  --color-secondary: #2E8B57; /* brand green */
  --color-accent: #F5F7FA; /* light */
  --color-dark: #081826;
  --color-mid: #113B57;
  --color-muted: #8aa0b2;
  /* energetic accents */
  --electric-cyan: #00E5FF;
  --electric-pink: #FF3B7F;
  --electric-yellow: #FFC400;
  --surface: #ffffff;
  --shadow: 0 10px 24px rgba(10, 61, 98, 0.12), 0 4px 12px rgba(10, 61, 98, 0.08);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --gap-xs: 8px; --gap-sm: 12px; --gap-md: 16px; --gap-lg: 24px; --gap-xl: 32px; --gap-xxl: 48px;
  --focus-ring: 0 0 0 3px rgba(0, 229, 255, 0.35);
}

/* Typography */
h1, h2, h3, h4 { font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif; color: var(--color-dark); margin: 0 0 12px; line-height: 1.2; }
h1 { font-size: 36px; letter-spacing: -0.5px; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }
.subheadline { font-size: 16px; color: var(--color-dark); opacity: 0.8; margin-top: -4px; }
p { margin: 0 0 12px; }
strong { color: var(--color-dark); }
small { font-size: 12px; color: var(--color-muted); }

/* Global layout containers - flexbox only */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; flex-direction: column; gap: var(--gap-lg); }
.content-wrapper { display: flex; flex-direction: column; gap: var(--gap-lg); }
section { background: transparent; }
.section { margin-bottom: 60px; padding: 40px 20px; }

/* Header */
header { position: sticky; top: 0; z-index: 1000; background: #ffffff; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--gap-md); padding-top: 12px; padding-bottom: 12px; }
header img { height: 40px; width: auto; }
.main-nav { display: none; align-items: center; gap: var(--gap-lg); }
.main-nav a { padding: 8px 10px; border-radius: 10px; font-weight: 700; color: var(--color-dark); }
.main-nav a:hover { background: var(--color-accent); box-shadow: inset 0 -3px 0 var(--electric-yellow); }
.cta-group { display: none; align-items: center; gap: var(--gap-md); }
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: none; border-radius: 12px; background: var(--color-primary); color: #fff; font-size: 22px; cursor: pointer; box-shadow: var(--shadow); transition: transform .2s ease, background .2s ease; }
.mobile-menu-toggle:hover { transform: translateY(-2px); background: #0c4874; }
.mobile-menu-toggle:focus { outline: none; box-shadow: var(--focus-ring); }

/* Mobile Menu (overlay) */
.mobile-menu { position: fixed; inset: 0 0 0 auto; width: 100%; max-width: 420px; height: 100vh; background: #0b2233; color: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s ease; box-shadow: -8px 0 24px rgba(0,0,0,0.25); z-index: 1500; padding: 20px; }
.mobile-menu::before { content: ""; position: fixed; inset: 0; right: 100%; background: rgba(0,0,0,0.35); opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.mobile-menu.open, body.menu-open .mobile-menu { transform: translateX(0); }
.mobile-menu.open::before, body.menu-open .mobile-menu::before { opacity: 1; pointer-events: auto; }
.mobile-menu-close { align-self: flex-end; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 2px solid rgba(255,255,255,0.2); color: #fff; border-radius: 12px; font-size: 18px; cursor: pointer; margin-bottom: 12px; }
.mobile-nav { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.mobile-nav a { color: #fff; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.06); font-weight: 700; }
.mobile-nav a:hover { background: rgba(255,255,255,0.12); box-shadow: inset 0 0 0 2px var(--electric-cyan); }

/* Hero & Section Accents */
main section:first-of-type { background: #ffffff; border-bottom: 4px solid var(--electric-cyan); }
.content-wrapper > h1 { position: relative; padding-bottom: 6px; }
.content-wrapper > h1::after { content: ""; display: block; width: 72px; height: 6px; background: var(--electric-pink); border-radius: 6px; margin-top: 10px; }

/* Lists: energetic bullets */
.content-wrapper ul { list-style: none; padding-left: 0; display: flex; flex-direction: column; gap: 8px; }
.content-wrapper ul li { position: relative; padding-left: 28px; }
.content-wrapper ul li::before { content: ""; position: absolute; left: 0; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--electric-cyan); box-shadow: 0 0 0 3px rgba(0,229,255,0.2); }

/* Reusable rows */
.cta-row { display: flex; flex-wrap: wrap; gap: var(--gap-md); align-items: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 14px; border: none; cursor: pointer; font-weight: 800; text-transform: none; letter-spacing: .3px; transition: background .2s ease, color .2s ease, transform .18s ease, box-shadow .2s ease; box-shadow: var(--shadow); }
.btn:focus { outline: none; box-shadow: var(--focus-ring), var(--shadow); }
.btn-primary { background: var(--color-secondary); color: #fff; }
.btn-primary:hover { background: #2a7c4e; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(46,139,87,.25); }
.btn-secondary { background: var(--color-primary); color: #fff; }
.btn-secondary:hover { background: #0c4874; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(10,61,98,.25); }

/* Feature Grid */
.feature-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.feature-grid > div { flex: 1 1 260px; background: var(--surface); border: 2px solid #e8eef4; border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow); position: relative; }
.feature-grid > div h3 { margin-bottom: 8px; }
.feature-grid > div::after { content: ""; position: absolute; right: 16px; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--electric-pink); box-shadow: 0 0 0 6px rgba(255,59,127,.1); }

/* Services list */
.service-list { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.service-list > div { flex: 1 1 260px; background: #ffffff; border-left: 6px solid var(--electric-cyan); border-radius: var(--radius-md); padding: 18px; box-shadow: var(--shadow); }
.service-list h3 { color: var(--color-dark); }
.service-list ul li::before { background: var(--electric-pink); box-shadow: 0 0 0 3px rgba(255,59,127,.18); }

/* Steps */
.steps { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.step { flex: 1 1 240px; background: #ffffff; border-radius: var(--radius-md); padding: 18px; box-shadow: var(--shadow); border: 2px solid #eaf0f5; }
.step h3 { display: flex; align-items: center; gap: 10px; }
.step h3 span { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 10px; background: var(--electric-yellow); color: #111; font-weight: 800; }

/* Trust badges */
.trust-badges { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding-left: 0; }
.trust-badges li { background: #ffffff; padding: 10px 14px; border-radius: 999px; border: 2px solid #e8eef4; box-shadow: var(--shadow); font-weight: 700; color: var(--color-dark); }

/* Stats */
.stats { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.stats > div { flex: 1 1 200px; background: #ffffff; padding: 18px; border-radius: var(--radius-md); box-shadow: var(--shadow); border-top: 6px solid var(--color-primary); text-align: center; font-weight: 700; }
.stats strong { display: block; color: var(--color-primary); margin-bottom: 6px; }

/* Testimonials */
.testimonial-list { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; background: #ffffff; border-radius: var(--radius-lg); border: 2px solid #e8eef4; box-shadow: var(--shadow); color: #0b1a27; flex: 1 1 300px; }
.testimonial-card p { margin: 0; font-style: italic; }
.testimonial-meta { color: #203244; font-weight: 700; }

/* Pricing */
.pricing-cards { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.pricing-card { flex: 1 1 280px; background: #ffffff; border-radius: 18px; padding: 20px; box-shadow: var(--shadow); border: 2px solid #e8eef4; display: flex; flex-direction: column; gap: 12px; }
.pricing-card h3 { margin-bottom: 4px; }
.pricing-card > strong { font-size: 22px; color: var(--color-secondary); }
.pricing-card ul { margin-top: 4px; }
.pricing-card .card-footer { display: flex; flex-direction: row; align-items: center; gap: 10px; padding-top: 8px; border-top: 1px dashed #d7e1ea; color: var(--color-muted); }
.mini-info { font-size: 12px; color: var(--color-muted); }
.pricing-card .btn { align-self: flex-start; margin-top: 6px; }
.pricing-card:hover { border-color: var(--electric-cyan); box-shadow: 0 16px 36px rgba(0,229,255,0.18); transform: translateY(-2px); }

/* Text sections / cards */
.text-section, .contact-fakeform { background: #ffffff; border-radius: var(--radius-md); padding: 18px; box-shadow: var(--shadow); border: 2px solid #e8eef4; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }

/* FAQ */
.faq-list { display: flex; flex-wrap: wrap; gap: 20px; }
.faq-list > div { flex: 1 1 260px; background: #ffffff; border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow); border-left: 6px solid var(--color-primary); }

/* Legal text blocks */
.legal-text { display: flex; flex-direction: column; gap: 16px; background: #ffffff; padding: 18px; border-radius: var(--radius-md); border: 2px solid #e8eef4; box-shadow: var(--shadow); }
.legal-text ul { padding-left: 18px; }

/* Tables (pricing comparison) */
table { width: 100%; border-collapse: collapse; background: #ffffff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow); }
thead th { text-align: left; background: var(--color-primary); color: #fff; padding: 12px; font-weight: 800; }
tbody td, thead th { border-right: 1px solid rgba(255,255,255,0.15); }
tbody td { padding: 12px; border-bottom: 1px solid #e8eef4; }
tbody tr:nth-child(even) td { background: #f9fcff; }

/* Footer */
footer { background: #081826; color: #e7eef5; margin-top: 40px; padding: 24px 0; }
footer .container { gap: var(--gap-lg); }
footer .content-wrapper { gap: var(--gap-lg); }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links nav { display: flex; flex-direction: column; gap: 8px; }
.footer-links strong { color: #fff; margin-bottom: 6px; }
footer a { color: #cde9ff; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-contact p { display: flex; align-items: center; gap: 10px; margin: 0; }
.footer-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: #0A3D62; color: #fff; padding: 16px; border-radius: var(--radius-md); box-shadow: var(--shadow); }

/* Accessibility focus for links */
a:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 8px; }

/* Cookie Consent Banner */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; background: #ffffff; border: 2px solid #e8eef4; border-left: 6px solid var(--electric-pink); color: #0b1a27; padding: 16px; border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,0.2); display: flex; flex-direction: column; gap: 12px; z-index: 2000; transform: translateY(140%); transition: transform .35s ease; }
.cookie-banner.show, body.cookies-open .cookie-banner { transform: translateY(0); }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .btn { padding: 10px 14px; border-radius: 10px; box-shadow: none; }
.btn-accept { background: var(--color-secondary); color: #fff; }
.btn-reject { background: #203244; color: #fff; }
.btn-settings { background: var(--color-primary); color: #fff; }

/* Cookie Preferences Modal */
.cookie-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 2100; }
.cookie-modal.open { display: flex; }
.cookie-modal .cookie-dialog { width: 100%; max-width: 640px; background: #ffffff; border-radius: 16px; padding: 18px; box-shadow: 0 24px 60px rgba(0,0,0,0.35); display: flex; flex-direction: column; gap: 14px; border: 2px solid #e8eef4; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed #e3ebf2; }
.cookie-dialog .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
/* Toggle switch */
.switch { position: relative; width: 46px; height: 26px; background: #d4dde6; border-radius: 999px; transition: background .2s ease; display: inline-flex; align-items: center; padding: 3px; }
.switch::after { content: ""; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,0.25); transform: translateX(0); transition: transform .2s ease; }
.switch.on { background: var(--color-secondary); }
.switch.on::after { transform: translateX(20px); }

/* Utility/Required spacing patterns */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: #ffffff; border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow); border: 2px solid #e8eef4; }
.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; }

/* Tables and images responsiveness helpers */
.table-wrap { display: flex; flex-direction: column; overflow-x: auto; }

/* Spacing between sections */
main section { padding: 28px 0; }
main section + section { border-top: 1px solid #e8eef4; }

/* Micro-interactions */
@keyframes pulse-glow { 0% { box-shadow: 0 0 0 0 rgba(0,229,255,0.5); } 100% { box-shadow: 0 0 0 14px rgba(0,229,255,0); } }
.btn-primary:active, .btn-secondary:active { transform: translateY(0); }
.feature-grid > div:hover, .service-list > div:hover, .faq-list > div:hover, .step:hover { animation: pulse-glow 1s ease-out 1; }

/* Responsive: Tablet/Desktop */
@media (min-width: 768px) {
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
  .main-nav { display: flex; }
  .cta-group { display: flex; }
  .mobile-menu-toggle { display: none; }
  .container { padding: 0 20px; }
  .content-wrapper { gap: var(--gap-xl); }
  .cta-row { gap: var(--gap-lg); }
}

@media (min-width: 1024px) {
  h1 { font-size: 48px; }
  .container { max-width: 1280px; }
}

/* Ensure no overlapping and good spacing */
.content-wrapper > * + * { margin-top: 0; }
main section .container { gap: var(--gap-lg); }

/* High-contrast in testimonial/review sections */
section .testimonial-card, .testimonial-card p, .testimonial-meta { color: #0b1a27; }

/* Specific page tweaks */
/* Index trust stats emphasis */
.stats > div:nth-child(odd) { border-top-color: var(--electric-cyan); }
.stats > div:nth-child(even) { border-top-color: var(--electric-pink); }

/* About stats */
/* already covered by .stats */

/* Header nav wrapping for safety */
header .container > nav, header .container > .cta-group { flex: 0 1 auto; }

/* Link states */
a:hover { color: #0c4874; }

/* Forms placeholder (no real form here) */
input, select, textarea { font-family: inherit; font-size: 16px; padding: 10px 12px; border: 2px solid #dbe6ef; border-radius: 12px; background: #fff; color: #0b1a27; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--electric-cyan); box-shadow: var(--focus-ring); }

/* Ensure adequate gaps between cards/blocks across pages */
.feature-grid > div, .service-list > div, .steps .step, .faq-list > div, .pricing-card, .testimonial-card { margin-bottom: 0; }

/* Header underline accent for h2 */
.content-wrapper > h2 { position: relative; padding-left: 14px; }
.content-wrapper > h2::before { content: ""; position: absolute; left: 0; top: 6px; width: 6px; height: 22px; border-radius: 6px; background: var(--electric-cyan); }

/* Contact links */
.text-section a { color: var(--color-secondary); font-weight: 700; }
.text-section a:hover { text-decoration: underline; }

/* Footer separation */
footer .content-wrapper { border-top: 2px solid rgba(255,255,255,0.08); padding-top: 12px; }

/* Print basics */
@media print { header, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; } a { text-decoration: underline; } body { background: #fff; } }
