/* =========================================================================
   SmartSS public-site design system
   Loaded after site.css. Principles:
   1. One neutral ink/surface palette; brand colour is an accent, never a text colour on white.
   2. 8px spacing rhythm, one radius scale (10 / 16 / 24), soft layered shadows.
   3. Calm sections: white <-> very light grey, generous vertical padding.
   4. Admin-editable theme colours (injected after this file) can only change accents.
   ========================================================================= */

:root {
  --ink: #0F172A;
  --ink-soft: #334155;
  --muted: #64748B;
  --surface: #F8FAFC;
  --line: #E2E8F0;
  --success: #16A34A;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow-md: 0 4px 6px -2px rgba(15, 23, 42, .05), 0 12px 24px -8px rgba(15, 23, 42, .10);
  --shadow-lg: 0 24px 48px -16px rgba(15, 23, 42, .22);

  --section-y: clamp(3.5rem, 6vw, 5.5rem);

  --brand-border: var(--line);
  --brand-muted: var(--muted);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  color: var(--ink-soft);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 { line-height: 1.35; letter-spacing: 0; }

:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Colour roles that must never follow the admin accent ---------- */
.text-primary-brand,
.section-heading,
.section-title { color: var(--ink) !important; }
.bg-light-brand { background-color: var(--surface) !important; }

/* ---------- Announcement bar ---------- */
.site-theme-banner {
  min-height: 0;
  padding: .45rem 0;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .01em;
}

/* ---------- Header ---------- */
.site-header {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  z-index: 1030;
}

.navbar-modern { padding-block: .6rem; }

.navbar-modern .navbar-brand { margin-inline-end: 1.25rem; }
.brand-logo-image { width: 40px; height: 40px; }
.brand-wordmark {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.01em;
}

.navbar-modern .nav-link {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: .95rem;
  padding: .5rem .8rem;
  border-radius: var(--radius-sm);
  transition: background .15s ease, color .15s ease;
}
.navbar-modern .nav-link:hover,
.navbar-modern .nav-link:focus,
.navbar-modern .nav-link.active,
.navbar-modern .nav-link.show {
  color: var(--ink);
  background: var(--surface);
}
.navbar-modern .dropdown-toggle::after { margin-inline-start: .4rem; vertical-align: .15em; }

.nav-dropdown {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: .5rem;
  min-width: 14rem;
  margin-top: .5rem !important;
}
.nav-dropdown .dropdown-item {
  border-radius: 8px;
  padding: .55rem .8rem;
  font-size: .93rem;
  color: var(--ink-soft);
}
.nav-dropdown .dropdown-item:hover { background: var(--surface); color: var(--ink); }

.localized-actions { margin-inline-start: 1rem; gap: .6rem !important; }

.language-switcher {
  padding: 3px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
}
.language-switch {
  width: auto;
  height: auto;
  padding: .2rem .6rem;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
  filter: none;
}
.language-switch:hover { background: #fff; color: var(--ink); }
.language-switch.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.nav-icon-action {
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink-soft);
  font-size: 1.1rem;
  line-height: 1;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.nav-icon-action:hover { border-color: var(--brand-blue); color: var(--brand-blue); background: #fff; }

.cart-nav-count {
  position: absolute;
  top: -6px;
  inset-inline-end: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 .3rem;
  font-size: .7rem;
  border: 2px solid #fff;
  background: var(--brand-blue);
}

/* ---------- Buttons ---------- */
.btn { border-radius: var(--radius-sm); font-weight: 600; }
.btn-lg { padding: .8rem 1.6rem; font-size: 1rem; }

.btn-gradient-brand {
  border-radius: var(--radius-sm);
  background: var(--brand-gradient);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .12), 0 8px 16px -8px color-mix(in srgb, var(--brand-blue) 55%, transparent);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-gradient-brand:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .12), 0 14px 24px -10px color-mix(in srgb, var(--brand-blue) 60%, transparent);
}

.btn-outline-soft {
  border-radius: var(--radius-sm);
  border: 1px solid #CBD5E1;
  color: var(--ink);
  background: #fff;
}
.btn-outline-soft:hover { border-color: var(--ink); color: var(--ink); background: #fff; }

/* ---------- Section rhythm ---------- */
main > section.py-5,
main > section.smart-entry-section {
  padding-block: var(--section-y) !important;
}

.section-badge {
  background: color-mix(in srgb, var(--brand-purple) 9%, #fff);
  color: color-mix(in srgb, var(--brand-purple) 82%, #000);
  border: 1px solid color-mix(in srgb, var(--brand-purple) 16%, #fff);
  font-size: .8rem;
  letter-spacing: .01em;
}

.section-heading.display-6,
h2.section-heading {
  font-size: clamp(1.65rem, 2.8vw, 2.3rem);
  font-weight: 800;
  line-height: 1.4;
}
.section-subtitle { color: var(--muted); max-width: 40rem; line-height: 1.9; }

/* ---------- Hero ---------- */
.hero-section-v2 {
  position: relative;
  padding-block: clamp(3rem, 7vw, 6rem);
  /* Brand background: navy/blue/teal glow, dissolving pixels and circuit orbits drawn from the logo. */
  background: #F3F8FF url("/images/hero-bg.svg") center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.hero-title {
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -.01em;
}
.hero-lead {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--muted);
  line-height: 1.95;
  max-width: 38rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1.75rem 0 0;
  padding: 0;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: .85rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.hero-trust i { color: var(--success); font-size: .95rem; flex-shrink: 0; }

.hero-visual {
  max-width: 430px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.hero-visual img { display: block; width: 100%; height: auto; }

.hero-mockup .mockup-frame { box-shadow: var(--shadow-md); }

/* ---------- Cards ---------- */
.card-soft,
.route-card,
.feature-box,
.sector-card,
.step-pill-v2 {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.card-soft:hover,
.route-card:hover,
.feature-box:hover,
.sector-card:hover {
  transform: translateY(-3px);
  border-color: #CBD5E1;
  box-shadow: var(--shadow-md);
}
.card-soft h5, .feature-box h6, .route-card h4 { color: var(--ink); }
.card-soft .badge.text-bg-light {
  background: var(--surface) !important;
  color: var(--ink-soft) !important;
  border: 1px solid var(--line);
  font-weight: 600;
}

.icon-chip { width: 48px; height: 48px; border-radius: 12px; font-size: 1.25rem; }

.smart-entry-shell { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.smart-entry-intro,
.smart-entry-action { border-radius: var(--radius-md); }
.smart-entry-action { color: var(--ink); }
.smart-entry-action:hover { color: var(--ink); }
.smart-entry-icon { background: var(--ink); border-radius: 12px; }
.smart-entry-action-primary { background: color-mix(in srgb, var(--brand-blue) 6%, #fff); border-color: color-mix(in srgb, var(--brand-blue) 20%, #fff); }

.step-number { box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--brand-blue) 60%, transparent); }

.accordion-item {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden;
  margin-bottom: .75rem;
  box-shadow: var(--shadow-sm);
}
.accordion-button { font-weight: 600; color: var(--ink); background: #fff; }
.accordion-button:not(.collapsed) { background: var(--surface); color: var(--ink); box-shadow: none; }

/* ---------- CTA band ---------- */
.cta-band {
  background: #0B2A6F url("/images/cta-bg.svg") center / cover no-repeat;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #CBD5E1; }

/* ---------- Footer ---------- */
.footer-modern {
  margin-top: 0 !important;
  padding-block: clamp(3rem, 5vw, 4.5rem) 2rem !important;
  background: #0B1220;
  color: #CBD5E1;
  border-top: 0;
}
.footer-modern h6 { color: #fff; font-size: .95rem; margin-bottom: 1.1rem; }
.footer-modern .text-muted,
.footer-modern li { color: #94A3B8; }
.footer-modern .footer-link { color: #CBD5E1; transition: color .15s ease; }
.footer-modern .footer-link:hover { color: #fff; }
.footer-modern .text-info-brand { color: #60A5FA; }
.footer-modern hr { border-color: rgba(255, 255, 255, .12); opacity: 1; }
.footer-modern .social-icon { border-color: rgba(255, 255, 255, .2); color: #CBD5E1; }
.footer-modern .social-icon:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .navbar-modern .navbar-collapse {
    margin-top: .75rem;
    padding: 1rem 0 .5rem;
    border-top: 1px solid var(--line);
  }
  .localized-actions { margin-inline-start: 0; padding-top: .75rem; border-top: 1px solid var(--line); }
  .nav-dropdown { box-shadow: none; border: 0; padding-inline: 1rem; background: var(--surface); }
}

@media (max-width: 575.98px) {
  .hero-visual { max-width: 300px; }
  .hero-trust li { width: 100%; border-radius: var(--radius-sm); }
  .btn-lg { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Security landing page ---------- */
.security-hero-panel {
  position: relative;
  max-width: 420px;
  margin-inline: auto;
  padding: 2.25rem 2rem 1.75rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #0B2A6F 0%, #0E4A9E 70%, #0E7490 100%);
  box-shadow: var(--shadow-lg);
  color: #fff;
  overflow: hidden;
}
.security-hero-panel::after {
  content: "";
  position: absolute;
  inset-inline-end: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, .25);
}
.security-hero-icon {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  font-size: 2.6rem;
}
.security-hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.security-hero-stats strong { display: block; font-size: 1.4rem; line-height: 1.2; }
.security-hero-stats span { font-size: .78rem; color: #BFD7FF; }

.security-band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(520px 220px at 0% 100%, color-mix(in srgb, var(--brand-blue) 10%, transparent), transparent 70%),
    #fff;
  box-shadow: var(--shadow-md);
}
.security-band-copy p { color: var(--muted); max-width: 36rem; }
.security-band-icon {
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: linear-gradient(145deg, #0B2A6F, #0E7490);
  color: #fff;
  font-size: 3.4rem;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 767.98px) {
  .security-band { grid-template-columns: 1fr; }
  .security-band-icon { display: none; }
}

/* ---------- Legal pages / footer identity ---------- */
.legal-content { max-width: 52rem; margin-inline: auto; line-height: 2; }
.legal-content h2 { font-size: 1.25rem; font-weight: 800; color: var(--ink); margin: 2rem 0 .5rem; }
.legal-content ul { padding-inline-start: 1.25rem; }
.legal-content li { margin-bottom: .35rem; }
.footer-legal-id li { color: #94A3B8; }
