/* Afly Consultancy New Theming System */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');
:root {
  --color-brand-blue:#0a2472;
  --color-brand-red:#d32f2f;
  --color-white:#ffffff;
  --color-bg:#ffffff;
  --color-surface:#ffffff;
  --color-text:#0a2472;
  --color-text-soft:#193884;
  --color-border:rgba(10,36,114,0.18);
  --color-border-strong:#0a2472;
  --radius-xs:4px; --radius-sm:8px; --radius:14px; --radius-lg:22px; --radius-pill:999px;
  --shadow-sm:0 2px 6px rgba(10,36,114,0.08);
  --shadow:0 4px 18px rgba(10,36,114,0.12);
  --shadow-lg:0 6px 28px rgba(10,36,114,0.18);
  --gradient-brand:linear-gradient(135deg,#0a2472 0%,#d32f2f 55%,#ffffff 100%);
  --gradient-accent:linear-gradient(90deg,#d32f2f 0%,#0a2472 100%);
  --transition-fast:.18s cubic-bezier(.4,0,.2,1);
  --parallax-translate-mult: 8; /* multiplier used by JS for subtle motion */
  --parallax-rotate-mult: 1.2; /* small rotate factor */
  --card-tilt-intensity: 6; /* degrees */
  --nav-height:78px;
  /* Interactive graphics defaults */
  --interactive-enabled: 1; /* 0 to disable site-wide */
  --interactive-opacity: 0.18; /* overall overlay opacity */
  --interactive-primary: rgba(10,36,114,0.12); /* default particle color on light */
  --interactive-accent: rgba(210,47,47,0.08); /* subtle accent */
  --interactive-density: 0.00011; /* particles per px^2 */
}
[data-theme="dark"] {
  /* softer, lighter dark theme to reduce heavy contrast */
  --color-bg: #0b2540; /* slightly lighter than previous */
  --color-surface: #112a4a; /* slightly lighter surface tone */
  --color-surface-elevated: #173556; /* lighter surface for cards and logos */
  --color-text: #eef4fb; /* softer white for long-form readability */
  --color-text-soft: #d6e6ff;
  --color-brand-blue: #95b8ff; /* softer brand blue on dark */
  --color-brand-red: #e25858; /* slightly warmed CTA red */
  --color-border: rgba(255,255,255,0.12);
  --color-border-strong: rgba(255,255,255,0.14);
  --shadow-sm: 0 2px 6px rgba(8,20,36,0.25);
  --shadow: 0 4px 18px rgba(6,18,36,0.30);
  --shadow-lg: 0 6px 28px rgba(4,14,30,0.36);
  --gradient-brand: linear-gradient(135deg,#0a2472 0%,#d32f2f 55%,#13335a 100%);
  --footer-bg: #0f2b44;
  --footer-link: #dbeaff;
}
* {box-sizing:border-box;}
html {scroll-behavior:smooth;}
body {margin:0;font-family:Montserrat,Arial,sans-serif;background:var(--color-bg);color:var(--color-text);line-height:1.6;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}
img {max-width:100%;height:auto;display:block;}
a { color: var(--color-brand-blue); text-decoration: none; border-bottom: 1px dotted rgba(0,0,0,0.06); }
a:hover, a:focus { color: var(--color-brand-red); text-decoration: none; border-bottom-style: solid; }
/* Utility */
.container {width:100%;max-width:1240px;margin:0 auto;padding:0 28px;}
.flex {display:flex;} .center {justify-content:center;align-items:center;} .gap-sm{gap:8px;} .gap{gap:18px;} .gap-lg{gap:34px;}
.wrap{flex-wrap:wrap;}
.btn {--btn-bg:var(--color-brand-red);--btn-color:#fff;--btn-bg-hover:#ffffff;--btn-color-hover:var(--color-brand-red);display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:.95rem;padding:12px 26px;border-radius:var(--radius-pill);background:var(--btn-bg);color:var(--btn-color);border:2px solid var(--color-brand-red);box-shadow:var(--shadow-sm);transition:var(--transition-fast);cursor:pointer;}
.btn:hover {background:var(--btn-bg-hover);color:var(--btn-color-hover);} .btn-outline {--btn-bg:transparent;--btn-color:var(--color-brand-blue);--btn-bg-hover:var(--color-brand-red);--btn-color-hover:#fff;}
/* Header / Nav */
.site-header {position:sticky;top:0;z-index:1000;background:var(--color-surface);border-bottom:4px solid var(--color-brand-red);box-shadow:var(--shadow-sm);} 
/* Default layout for headers - keep markup clean by avoiding inline styles */
.site-header .container { justify-content: space-between; height: var(--nav-height); }
.brand {display:flex;align-items:center;gap:14px;font-weight:800;font-size:1.05rem;color:var(--color-brand-blue);} 
.brand img {height:54px;width:54px;object-fit:contain;border-radius:16px;}
.navbar {display:flex;align-items:center;gap:42px;margin:0;padding:0;list-style:none;height:var(--nav-height);} 
.navbar > li {position:relative;display:flex;align-items:center;height:100%;}
.navbar > li > a, .navbar > li > button.nav-link {font-weight:800;letter-spacing:.14em;font-size:.85rem;text-transform:uppercase;color:var(--color-brand-blue);background:none;border:none;cursor:pointer;height:100%;display:flex;align-items:center;padding:0 0 6px 0;border-bottom:3px solid transparent;transition:var(--transition-fast);} 
.navbar > li > a:hover, .navbar > li > a.active, .navbar > li > button.nav-link[aria-expanded="true"] {color:var(--color-brand-red);border-bottom-color:var(--color-brand-red);} 
.dropdown-panel {position:absolute;left:0;top:100%;min-width:240px;background:var(--color-surface);border:1.5px solid var(--color-brand-blue);border-left:6px solid var(--color-brand-red);border-radius:var(--radius);padding:8px 0;margin-top:6px;box-shadow:var(--shadow);display:none;} 
.navbar > li:focus-within .dropdown-panel, .navbar > li:hover .dropdown-panel, .navbar > li.show .dropdown-panel {display:block;} 
.dropdown-panel a {display:block;padding:10px 18px;font-weight:600;font-size:.9rem;color:var(--color-brand-blue);border-radius:8px;transition:var(--transition-fast);text-decoration:none;} 
.dropdown-panel a:hover {background:#f3f7ff;color:var(--color-brand-red);} 
.theme-toggle {margin-left:auto;background:var(--color-brand-blue);color:#fff;border:2px solid var(--color-brand-blue);border-radius:var(--radius-pill);padding:8px 18px;font-weight:600;font-size:.75rem;cursor:pointer;letter-spacing:.1em;transition:var(--transition-fast);display:inline-flex;align-items:center;gap:6px;} .theme-toggle:hover {background:var(--color-brand-red);border-color:var(--color-brand-red);} 
/* Icon button variant */
.icon-btn {width:48px;height:48px;padding:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:0;background:var(--color-brand-blue);}
.icon-btn:hover {background:var(--color-brand-red);}
.icon-btn svg {display:block;stroke:#fff;}

/* Graphics polish: subtle page background, stronger hero & button treatments */
body { background-image: radial-gradient(circle at 10% 10%, rgba(255,255,255,0.06), transparent 8%), radial-gradient(circle at 90% 80%, rgba(10,36,114,0.03), transparent 20%); background-repeat:no-repeat; background-color:var(--color-bg); }

/* Global interactive canvas overlay (theme-aware) */
.interactive-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: var(--interactive-opacity); transition: opacity .28s ease; mix-blend-mode: normal; }

/* Use mix-blend or lower opacity on dark theme to keep subtle */
[data-theme="dark"] { --interactive-primary: rgba(255,255,255,0.06); --interactive-accent: rgba(149,184,255,0.05); --interactive-opacity: 0.22; }

/* Prefer reduced motion: disable interactive canvas entirely */
@media (prefers-reduced-motion: reduce){
  .interactive-canvas { display:none !important; }
}

/* Small-screen disable: to reduce CPU work on phones */
@media (max-width:640px){
  .interactive-canvas { display:none; }
}

/* brand logo and header polish */
.brand img { border-radius:14px; padding:4px; box-shadow: 0 6px 18px rgba(10,36,114,0.08); border:1px solid rgba(10,36,114,0.06); background:linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.98)); }

/* Buttons upgrade: gradient primary for more modern look */
.btn { background: linear-gradient(90deg, var(--color-brand-red), #c32a60 60%, var(--color-brand-blue)); border-color: transparent; color: #fff; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }

/* Slightly brighten hero heading and add soft glow */
.hero h1 { text-shadow: 0 6px 24px rgba(10,36,114,0.12); }

/* Partner logos: unified card look with consistent padding and subtle elevating shadow */
.logo-track img { padding:12px 18px; background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.94)); border-radius:10px; box-shadow: 0 6px 18px rgba(10,36,114,0.06); transition: transform 320ms ease, box-shadow 320ms ease; }
.logo-track img:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 12px 26px rgba(10,36,114,0.10); }

/* Subtle marquee 'breathing' — gentle scale animation on tracks for life */
.logo-track { animation: marquee 42s linear infinite, breathe 8s ease-in-out infinite; }
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.002); } }

@media (max-width:940px){ .icon-btn {order:90;margin-right:8px;} }
.hamburger {display:none;flex-direction:column;justify-content:center;align-items:center;width:50px;height:50px;background:none;border:none;cursor:pointer;margin-left:12px;} .hamburger span {width:28px;height:3.5px;background:var(--color-brand-blue);margin:4px 0;border-radius:2px;transition:var(--transition-fast);} .hamburger.open span:nth-child(1){transform:translateY(7px) rotate(45deg);} .hamburger.open span:nth-child(2){opacity:0;} .hamburger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg);} 
@media (max-width:940px){ .navbar-wrapper {position:fixed;left:0;right:0;top:var(--nav-height);background:var(--color-surface);box-shadow:var(--shadow);border-bottom:4px solid var(--color-brand-red);display:none;} .navbar-wrapper.open{display:block;} .navbar {flex-direction:column;align-items:flex-start;padding:14px 22px;gap:10px;height:auto;} .navbar > li {height:auto;width:100%;} .dropdown-panel {position:static;border:0;border-left:6px solid var(--color-brand-red);box-shadow:none;margin:4px 0 0 0;border-radius:0;padding:4px 0;} .dropdown-panel a {padding:8px 22px;} .hamburger {display:flex;} .theme-toggle {order:99;margin:8px 0 0 0;} }
/* Hero */
.hero {position:relative;padding:120px 0 70px;background:var(--gradient-brand);overflow:hidden;color:var(--color-brand-blue);} .hero::before {content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.5),rgba(255,255,255,.9));} [data-theme="dark"] .hero::before {background: linear-gradient(180deg, rgba(18,32,56,0.22), rgba(4,12,26,0.28));}
.hero-inner {position:relative;z-index:2;max-width:860px;margin:0 auto;text-align:center;background:linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));padding:48px 38px;border-radius:var(--radius-lg);box-shadow:var(--shadow);backdrop-filter: blur(6px) saturate(110%);border:1px solid rgba(255,255,255,0.6);} .hero h1 {margin:0 0 18px;font-size:clamp(1.9rem,3.2vw,2.6rem);line-height:1.15;letter-spacing:.5px;} .hero p.lead {margin:0 0 24px;font-weight:600;font-size:1.05rem;}

/* Parallax canvas behind hero content - lightweight layers for 3D depth */
.hero { perspective: 1000px; }
.hero-canvas { position:absolute; inset:0; z-index:1; pointer-events:none; overflow:hidden; }
.parallax-layer { position:absolute; will-change:transform, opacity; transition:transform 420ms cubic-bezier(.22,.9,.25,1), opacity 420ms ease; transform-origin: center; }
.parallax-layer.layer-1 { width:120%; height:120%; left:-10%; top:-8%; transform:translateZ(-40px) scale(1.06); opacity:0.95; }
.parallax-layer.layer-2 { width:140%; height:120%; left:-20%; top:10%; transform:translateZ(-20px) scale(1.03); opacity:0.9; }
.parallax-layer.layer-3 { width:180%; height:140%; left:-40%; top:-18%; transform:translateZ(-8px) scale(1.015); opacity:0.8; }

/* Make the hero content sit above the canvas */
.hero-inner { position:relative; z-index:3; }

/* Card tilt + 3D micro-interaction */
.card { transform-style: preserve-3d; backface-visibility: hidden; }
.card .card-inner { transform-origin: center; transition: transform 360ms cubic-bezier(.22,.9,.25,1), box-shadow 360ms ease; }
  .card.tilt .card-inner { box-shadow: 0 12px 30px rgba(2,10,25,0.25); transform: translateZ(12px); }

/* Only enable motion-rich effects where users don't prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .parallax-layer, .card .card-inner { transition: none !important; }
  .parallax-layer { transform: none !important; }
}

/* Support other page structure variants so improvements show site-wide */
/* Many pages use .hero-content instead of .hero-inner — give them the same polished look */
.hero .hero-content { max-width:860px; margin:0 auto; text-align:center; padding:48px 28px; border-radius:var(--radius-lg); background:linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.86)); box-shadow:var(--shadow); border:1px solid rgba(10,36,114,0.06); z-index:3; position:relative; }
.hero .hero-cta { display:inline-block; padding:10px 20px; background: linear-gradient(90deg,var(--color-brand-red),var(--color-brand-blue)); color:#fff; border-radius:999px; font-weight:700; box-shadow:0 8px 22px rgba(10,36,114,0.12); margin-bottom:14px; }

/* Utility: hero CTA row spacing (move inline styles into CSS) */
.hero-content .cta-row { margin-top: 14px; }

/* Contact form / quick enquiry styles (remove inline styling on pages) */
.contact-form { max-width:480px; }
.contact-form input, .contact-form textarea { width:100%; margin-bottom:10px; padding:10px; border:1px solid var(--color-border-strong); border-radius:8px; background:var(--color-surface); color:var(--color-text); font-size:0.95rem; }
.contact-form textarea { min-height:120px; }

/* Section title spacing handled by CSS to avoid inline H2 styles */
.section-title { margin-top: 24px; }

/* Small whatsapp icon size standardized */
.whatsapp-btn img { height:22px; width:22px; vertical-align:middle; display:inline-block; }

/* If a page's header uses .logo instead of .brand, style it to match */
header .logo { display:flex; align-items:center; gap:12px; font-weight:800; color:var(--color-brand-blue); text-decoration:none; }
header .logo img { height:48px; width:48px; border-radius:12px; padding:4px; box-shadow: 0 6px 18px rgba(10,36,114,0.06); background:linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.96)); border:1px solid rgba(10,36,114,0.05); }

/* Light-mode specific refinements; keep everything airy and readable */
:root { --surface-elev: rgba(255,255,255,0.98); --muted-border: rgba(10,36,114,0.06); }
@media (prefers-color-scheme: light) {
  .card, details, .stat, blockquote { background: var(--surface-elev); border-color: var(--muted-border); }
  .hero-inner, .hero .hero-content { color: var(--color-brand-blue); }
}

/* Dark-mode tuned surfaces should still feel softer across pages */
[data-theme="dark"] .hero .hero-content { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.02)); border:1px solid rgba(255,255,255,0.04); box-shadow: 0 12px 36px rgba(2,10,25,0.45); }

/* Buttons on sub-pages should match the new primary treatment */
 .btn-outline { --btn-bg: transparent; --btn-color: var(--color-brand-blue); --btn-bg-hover: var(--color-brand-blue); --btn-color-hover: #fff; }
/* Section titles */
.section-title {text-align:center;margin:0 0 10px;font-size:1.05rem;letter-spacing:.12em;text-transform:uppercase;color:var(--color-brand-blue);position:relative;display:inline-block;left:50%;transform:translateX(-50%);} 
.section-title::after {content:"";display:block;height:3px;width:80px;margin:8px auto 0;background:var(--color-brand-red);border-radius:2px;}
.section-subtitle {text-align:center;margin:0 auto 28px;max-width:720px;font-size:.95rem;color:var(--color-text-soft);} 
/* Certification strip */
.cert-strip {display:flex;align-items:center;justify-content:center;gap:16px;margin-top:34px;flex-wrap:wrap;}
.cert-strip img {height:70px;border-radius:12px;box-shadow:var(--shadow-sm);} 
.cert-strip p {margin:0;max-width:360px;font-size:.85rem;font-weight:600;line-height:1.4;color:var(--color-brand-blue);} 
/* Stats */
.stats {padding:30px 0;}
.stats-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:16px;}
.stat {background:var(--color-surface);border:1.5px solid var(--color-border-strong);border-radius:var(--radius);padding:16px;text-align:center;box-shadow:var(--shadow-sm);} 
.stat .num {font-weight:800;font-size:1.4rem;color:var(--color-brand-red);} 
.stat .label {font-size:.8rem;color:var(--color-brand-blue);letter-spacing:.06em;text-transform:uppercase;margin-top:4px;} 
/* CTA band */
.cta-band {background:var(--gradient-accent);color:#fff;padding:36px 0;margin:20px 0 0;}
.cta-inner {display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;}
.cta-band h3 {margin:0;font-size:1.2rem;letter-spacing:.08em;}
.cta-band .btn {background:#fff;color:var(--color-brand-red);border-color:#fff;}
.cta-band .btn:hover {background:transparent;color:#fff;border-color:#fff;}
/* Feature grid */
.features {padding:70px 0 30px;} .feature-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:28px;margin:0;} .card {background:var(--color-surface);border:1.5px solid var(--color-border-strong);border-radius:var(--radius);padding:24px 20px;box-shadow:var(--shadow-sm);position:relative;overflow:hidden;display:flex;flex-direction:column;gap:10px;transition:transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);} .card:hover {box-shadow:var(--shadow);transform:translateY(-3px);border-color:var(--color-brand-red);} .card h3 {margin:0;font-size:.95rem;letter-spacing:.1em;text-transform:uppercase;color:var(--color-brand-blue);} .card p {margin:0;font-size:.9rem;color:var(--color-text-soft);} 
.card-link {text-decoration:none;color:inherit;border-color:var(--color-border-strong);} .card-link:hover {transform:translateY(-2px);} 
.list-ticks {margin:0;padding:0 0 0 18px;display:flex;flex-direction:column;gap:6px;font-size:.88rem;color:var(--color-text-soft);} .list-ticks li {list-style:square;}
/* Process timeline */
.process {padding:40px 0;} .steps {display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:18px;margin:30px 0 0;} .step {background:var(--color-surface);border:1px dashed var(--color-border);padding:16px 14px;border-radius:var(--radius-sm);display:flex;flex-direction:column;gap:6px;} .step strong {color:var(--color-brand-blue);font-size:.85rem;letter-spacing:.05em;} .step p {margin:0;font-size:.8rem;}
/* Logos marquee */
.partners {padding:30px 0 60px;} .partners h2 {text-align:center;margin:0 0 24px;font-size:1.1rem;letter-spacing:.12em;text-transform:uppercase;color:var(--color-brand-blue);} .logo-marquee {display:flex;flex-direction:column;gap:16px;} .logo-row {position:relative;width:100%;overflow:hidden;height:72px;display:flex;align-items:center;} .logo-track {display:flex;align-items:center;gap:46px;width:max-content;animation:marquee 42s linear infinite;} .logo-row:nth-child(2) .logo-track {animation-duration:50s;animation-direction:reverse;} .logo-row:nth-child(3) .logo-track {animation-duration:56s;} .logo-row:nth-child(4) .logo-track {animation-duration:48s;animation-direction:reverse;} @keyframes marquee {0%{transform:translateX(0);}100%{transform:translateX(-50%);}} .logo-track img {height:56px;padding:10px 16px;object-fit:contain;background:var(--color-surface);border:1.5px solid var(--color-border-strong);border-radius:var(--radius-sm);box-shadow:var(--shadow-sm);min-width:130px;max-width:170px;transition:transform var(--transition-fast), box-shadow var(--transition-fast);} .logo-track img:hover {transform:translateY(-2px);} @media (max-width:900px){.logo-row{height:44px;} .logo-track img {height:32px;min-width:70px;padding:6px 8px;}}
/* Testimonials */
.testimonials {padding:40px 0;} .testimonials h2 {text-align:center;margin:0 0 24px;font-size:1.1rem;letter-spacing:.12em;text-transform:uppercase;color:var(--color-brand-blue);} .quotes {display:flex;flex-wrap:wrap;gap:18px;justify-content:center;} blockquote {flex:1 1 260px;min-width:230px;margin:0;background:var(--color-surface);border:1px solid var(--color-border);padding:20px 20px 16px;border-radius:var(--radius);box-shadow:var(--shadow-sm);font-size:.95rem;line-height:1.6;color:var(--color-text);} blockquote footer {margin-top:10px;font-weight:700;color:var(--color-brand-blue);} 
/* FAQ */
.faq {padding:50px 0;} .faq h2 {text-align:center;margin:0 0 18px;font-size:1.1rem;letter-spacing:.12em;text-transform:uppercase;color:var(--color-brand-blue);} details {background:var(--color-surface);border:1.5px solid var(--color-border-strong);border-radius:var(--radius);padding:12px 18px;margin-bottom:10px;box-shadow:var(--shadow-sm);} summary {cursor:pointer;font-weight:700;letter-spacing:.05em;color:var(--color-brand-blue);} details[open] {background:var(--color-surface);} details p {margin:6px 0 0;font-size:.85rem;color:var(--color-text-soft);} 
/* Footer */
.site-footer {background: linear-gradient(180deg, rgba(10,36,114,0.95), rgba(8,28,70,0.95)); color:#fff; padding:50px 0 40px;margin-top:40px; border-top: 4px solid rgba(255,255,255,0.03);} .site-footer .cols {display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:30px;margin-bottom:28px;} .site-footer h4 {margin:0 0 14px;font-size:.85rem;letter-spacing:.12em;text-transform:uppercase;} .site-footer ul {list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;} .site-footer a {color:#fff;text-decoration:none;font-size:.8rem;} .site-footer a:hover {text-decoration:underline;color:var(--color-brand-red);} .copyright {text-align:center;font-size:.7rem;letter-spacing:.08em;opacity:.85;}
/* Floating buttons */
.fab {position:fixed;bottom:26px;right:26px;display:flex;flex-direction:column;gap:14px;z-index:1200;} .fab a {display:inline-flex;align-items:center;justify-content:center;width:auto;height:auto;border-radius:0;background:transparent;box-shadow:none;border:none;transition:var(--transition-fast);} .fab a img {width:56px;height:56px;object-fit:contain;} .fab a:hover {transform:translateY(-2px);} 
@media (max-width:900px){ .fab a img {width:44px;height:44px;} }
.consult-btn {position:fixed;left:24px;bottom:30px;background:var(--color-brand-red);color:#fff;padding:14px 28px;font-weight:700;border:none;border-radius:var(--radius-pill);box-shadow:var(--shadow);cursor:pointer;letter-spacing:.1em;font-size:.8rem;transition:var(--transition-fast);z-index:1200;} .consult-btn:hover {background:#fff;color:var(--color-brand-red);}
/* Focus styles */
:focus-visible {outline:3px solid var(--color-brand-red);outline-offset:3px;}

/* Additional dark-mode component overrides for improved visual balance */
[data-theme="dark"] {
  /* Make hero copy more readable on dark backgrounds */
  --hero-overlay-top: rgba(18,32,56,0.20);
  --hero-overlay-bottom: rgba(6,18,36,0.26);
}

[data-theme="dark"] .hero { color: var(--color-text); }
[data-theme="dark"] .hero-inner { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.02)); box-shadow: 0 6px 20px rgba(4,14,30,0.32); }
[data-theme="dark"] .hero::before { background: linear-gradient(180deg, var(--hero-overlay-top), var(--hero-overlay-bottom)); }

[data-theme="dark"] .brand { color: var(--color-text); }

[data-theme="dark"] .card h3 { color: var(--color-text); }

[data-theme="dark"] .btn { box-shadow: 0 2px 10px rgba(0,0,0,0.35); }

[data-theme="dark"] .site-footer { background: var(--footer-bg); color: var(--color-text); }
[data-theme="dark"] .site-footer a { color: var(--footer-link); }
[data-theme="dark"] .site-footer a:hover { color: var(--color-brand-red); }

/* Dark-mode refinements (overrides) */
[data-theme="dark"] .card,
[data-theme="dark"] .step,
[data-theme="dark"] details,
[data-theme="dark"] blockquote {
  /* use a slightly lighter elevated surface for blocks so they lift off the base */
  background: var(--color-surface-elevated);
  border-color: var(--color-border-strong);
  font-size: .95rem; /* make quoted text a touch larger on dark to aid contrast */
  line-height: 1.6;
}

[data-theme="dark"] .logo-track img {
  background: var(--color-surface-elevated);
  border-color: var(--color-border-strong);
  filter: contrast(1.02) brightness(1.03);
}

[data-theme="dark"] .theme-toggle {
  background: rgba(255,255,255,0.06);
  color: var(--color-text);
  border-color: rgba(255,255,255,0.12);
}

[data-theme="dark"] .icon-btn { background: rgba(255,255,255,0.06); }
[data-theme="dark"] .icon-btn svg { stroke: var(--color-text); }

/* Generic page spacing for inner pages */
.page {padding:40px 0;}
.page h1 {margin:0 0 10px;color:var(--color-brand-blue);}
.page p, .page ul, .page ol {color:var(--color-text-soft);} 

/* Small-screen adjustments: tighten hero and page padding for narrow devices */
@media (max-width:560px){
  .hero {padding:60px 0 40px;}
  .hero-inner, .hero .hero-content { padding:28px 18px; }
  .hero h1 { font-size: 1.45rem; }
  .page { padding: 26px 0; }
  .container { padding-left: 18px; padding-right: 18px; }
}
