/* =========================================================
   SmartEdge Technologies — Design System
   Tokens -> Base -> Layout -> Components -> Utilities -> Motion
   ========================================================= */

:root {
  /* Colour tokens (from brand brief) */
  --deep-navy: #071A2F;
  --navy: #0B2748;
  --electric-blue: #1677FF;
  --cyan: #22C7F2;
  --soft-blue: #EAF4FF;
  --slate: #526174;
  --off-white: #F7FAFC;
  --white: #FFFFFF;
  --dark-text: #101828;

  --gradient-brand: linear-gradient(135deg, var(--electric-blue) 0%, var(--cyan) 100%);
  --gradient-navy: linear-gradient(180deg, var(--deep-navy) 0%, var(--navy) 100%);

  /* Type */
  --font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(7,26,47,0.06), 0 1px 1px rgba(7,26,47,0.04);
  --shadow-md: 0 8px 24px rgba(7,26,47,0.10);
  --shadow-lg: 0 20px 48px rgba(7,26,47,0.16);
  --shadow-glow: 0 0 0 1px rgba(34,199,242,0.25), 0 12px 32px rgba(22,119,255,0.18);

  /* Layout */
  --container-w: 1200px;
  --header-h: 96px;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--dark-text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--deep-navy);
  line-height: 1.15;
  margin: 0 0 var(--space-4);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.25rem, 4vw + 1rem, 3.5rem); }
h2 { font-size: clamp(1.75rem, 2.4vw + 1rem, 2.5rem); }
h3 { font-size: clamp(1.25rem, 1.2vw + 1rem, 1.5rem); }
p { margin: 0 0 var(--space-4); color: var(--slate); }
a { color: var(--electric-blue); text-decoration: none; }
a:hover { color: var(--cyan); }
img { max-width: 100%; display: block; height: auto; }
ul, ol { padding-left: 1.25rem; color: var(--slate); }
button { font-family: inherit; cursor: pointer; }

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--electric-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 0; top: -100px; background: var(--electric-blue); color: #fff;
  padding: 10px 18px; z-index: 200; transition: top .2s ease; border-radius: 0 0 8px 0;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.section { padding-block: var(--space-9); }
.section-tight { padding-block: var(--space-7); }
.section-navy { background: var(--gradient-navy); color: var(--off-white); }
.section-navy h1, .section-navy h2, .section-navy h3,
.hero h1, .hero h2, .hero h3,
.page-hero h1, .page-hero h2, .page-hero h3 { color: var(--white); }
.section-navy p, .hero p, .page-hero p { color: rgba(234,244,255,0.8); }
.section-soft { background: var(--soft-blue); }

.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: var(--space-2); } .gap-3 { gap: var(--space-3); } .gap-4 { gap: var(--space-4); }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.max-w-content { max-width: 680px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--electric-blue);
  margin-bottom: var(--space-3);
}
.eyebrow::before {
  content: ''; width: 18px; height: 2px; background: var(--cyan); display: inline-block;
}

/* Fine grid / dot-grid background texture used sparingly on navy sections */
.bg-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* Signature "signal blocks" motif — echoes the fading squares in the logo mark */
.signal-blocks { display: inline-flex; align-items: flex-end; gap: 6px; }
.signal-blocks span {
  display: block; background: var(--gradient-brand); border-radius: 3px;
}
.signal-blocks span:nth-child(1) { width: 8px; height: 8px; opacity: 0.5; }
.signal-blocks span:nth-child(2) { width: 11px; height: 11px; opacity: 0.7; }
.signal-blocks span:nth-child(3) { width: 14px; height: 14px; opacity: 0.85; }
.signal-blocks span:nth-child(4) { width: 18px; height: 18px; opacity: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  padding: 0.85rem 1.6rem; border-radius: var(--radius-pill); border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gradient-brand); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { color: #fff; box-shadow: var(--shadow-glow); }
.btn-outline { border-color: rgba(255,255,255,0.35); color: #fff; }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-outline-navy { border-color: rgba(11,39,72,0.25); color: var(--deep-navy); }
.btn-outline-navy:hover { border-color: var(--electric-blue); color: var(--electric-blue); }
.btn-ghost { color: var(--electric-blue); padding: 0.6rem 0.2rem; }
.btn-ghost::after { content: '→'; margin-left: 6px; transition: transform .18s ease; display: inline-block; }
.btn-ghost:hover::after { transform: translateX(4px); }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(7,26,47,0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { background: rgba(7,26,47,0.94); box-shadow: 0 6px 24px rgba(0,0,0,0.25); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }

.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-display); font-weight: 700; }
.brand img { height: 62px; width: 62px; }
.mobile-nav-header .brand img { height: 50px; width: 50px; }

.main-nav { display: flex; align-items: center; gap: var(--space-6); }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: var(--space-5); margin: 0; padding: 0; }
.main-nav a { color: rgba(255,255,255,0.82); font-weight: 500; font-size: 0.95rem; padding: 8px 2px; position: relative; }
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--gradient-brand); border-radius: 2px;
}
.header-actions { display: flex; align-items: center; gap: var(--space-4); }
.header-call { color: rgba(255,255,255,0.75); font-size: 0.9rem; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.header-call:hover { color: var(--cyan); }

/* Services mega menu */
.has-mega { position: relative; }
/* Invisible bridge over the visual gap between the trigger and the menu —
   without this, moving the mouse diagonally from "Services" down to the
   panel crosses empty space and breaks :hover before the menu is reached. */
.has-mega::after {
  content: '';
  position: absolute;
  left: -20px; right: -20px; top: 100%; height: 20px;
}
.mega-menu {
  position: absolute; top: calc(100% + 18px); left: 50%; transform: translateX(-50%) translateY(-8px);
  width: 640px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: var(--space-5); display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s ease, transform .18s ease;
  z-index: 50;
}
.has-mega:hover .mega-menu,
.has-mega:focus-within .mega-menu,
.has-mega.menu-open .mega-menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.mega-menu a {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: var(--radius-sm);
  color: var(--dark-text); font-weight: 500;
}
.mega-menu a:hover { background: var(--soft-blue); color: var(--electric-blue); }
.mega-menu .mm-icon {
  width: 36px; height: 36px; border-radius: 10px; background: var(--soft-blue); color: var(--electric-blue);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mega-menu small { display: block; color: var(--slate); font-weight: 400; font-size: 0.8rem; }

/* Mobile nav */
.nav-toggle {
  display: none; background: none; border: none; color: #fff; width: 40px; height: 40px;
  align-items: center; justify-content: center; border-radius: 8px;
}
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 150; background: var(--deep-navy);
  padding: var(--space-5); overflow-y: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-6); }
.mobile-nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav > .container > ul > li { border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-nav a { display: block; padding: 16px 4px; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.mobile-nav .mobile-sub { display: none; padding-left: var(--space-4); }
.mobile-nav .mobile-sub.is-open { display: block; }
.mobile-nav .mobile-sub a { font-weight: 400; font-size: 1rem; padding: 12px 4px; color: rgba(255,255,255,0.75); }
.mobile-nav-cta { margin-top: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
.submenu-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; background: none; border: none; color: #fff; padding: 16px 4px; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.submenu-toggle svg { transition: transform .2s ease; }
.submenu-toggle.is-open svg { transform: rotate(180deg); }

@media (max-width: 960px) {
  .main-nav { display: none; }
  .header-call { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--gradient-navy); color: #fff;
  padding-block: var(--space-9);
}
.hero .container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-8); align-items: center; }
.hero-copy p.lead { font-size: 1.15rem; color: rgba(234,244,255,0.85); max-width: 540px; }
.hero-trust { display: flex; align-items: center; gap: 10px; margin-top: var(--space-6); font-size: 0.9rem; color: rgba(234,244,255,0.7); }
.hero-actions { display: flex; gap: var(--space-4); margin-top: var(--space-6); flex-wrap: wrap; }
.hero-visual { position: relative; }

/* Dashboard mock-up + node network (signature hero element) */
.dash-mock {
  position: relative; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
}
.dash-mock-bar { display: flex; gap: 6px; margin-bottom: var(--space-4); }
.dash-mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.dash-mock-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-4); }
.dash-mock-panel {
  background: rgba(255,255,255,0.06); border-radius: var(--radius-md); padding: var(--space-4);
  border: 1px solid rgba(255,255,255,0.08);
}
.dash-mock-panel h4 { color: #fff; font-size: 0.85rem; margin-bottom: var(--space-3); opacity: 0.75; }
.dash-bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; }
.dash-bars span { flex: 1; background: var(--gradient-brand); border-radius: 4px 4px 0 0; opacity: 0.85; }
.dash-mock-line { position: relative; height: 90px; }
.dash-node { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.dash-metric { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: #fff; }

.node-svg { position: absolute; inset: -40px -60px auto auto; width: 260px; height: 260px; opacity: 0.5; pointer-events: none; }
.node-svg circle { fill: var(--cyan); }
.node-svg line { stroke: rgba(34,199,242,0.35); stroke-width: 1; }

@keyframes pulse-node {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.25); }
}
.dash-node { animation: pulse-node 3.2s ease-in-out infinite; }
.dash-node:nth-child(2) { animation-delay: .6s; }
.dash-node:nth-child(3) { animation-delay: 1.2s; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: var(--gradient-navy); color: #fff; padding-block: var(--space-8) var(--space-7); }
.breadcrumbs { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 var(--space-4); font-size: 0.85rem; flex-wrap: wrap; }
.breadcrumbs li { color: rgba(255,255,255,0.55); display: flex; gap: 8px; }
.breadcrumbs a { color: rgba(255,255,255,0.75); }
.breadcrumbs a:hover { color: var(--cyan); }
.page-hero p.lead { max-width: 640px; color: rgba(234,244,255,0.85); font-size: 1.1rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border-radius: var(--radius-lg); padding: var(--space-6);
  box-shadow: var(--shadow-sm); border: 1px solid rgba(11,39,72,0.06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(22,119,255,0.18); }
.card-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md); background: var(--soft-blue);
  color: var(--electric-blue); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-4);
}
.card h3 { margin-bottom: var(--space-2); }
.card p { margin-bottom: var(--space-3); }

.icon-badge {
  width: 40px; height: 40px; border-radius: 10px; background: var(--soft-blue); color: var(--electric-blue);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ---------- Process timeline ---------- */
.process-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-5); counter-reset: step; }
.process-step { position: relative; padding-top: var(--space-6); }
.process-step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--electric-blue);
  display: block; margin-bottom: var(--space-3);
}
.process-step::after {
  content: ''; position: absolute; top: 14px; left: 60px; right: -32px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--cyan) 0 6px, transparent 6px 12px);
}
.process-step:last-child::after { display: none; }
@media (max-width: 900px) {
  .process-list { grid-template-columns: 1fr 1fr; }
  .process-step::after { display: none; }
}
@media (max-width: 640px) { .process-list { grid-template-columns: 1fr; } }

/* ---------- Industry & portfolio cards ---------- */
.media-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--white); box-shadow: var(--shadow-sm); border: 1px solid rgba(11,39,72,0.06); transition: box-shadow .2s ease, transform .2s ease; }
.media-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.media-card .media-card-img { aspect-ratio: 3/2; overflow: hidden; }
.media-card .media-card-img img { width: 100%; height: 100%; object-fit: cover; }
.media-card-body { padding: var(--space-5); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--space-3); }
.tag { font-size: 0.75rem; font-weight: 600; background: var(--soft-blue); color: var(--electric-blue); padding: 4px 10px; border-radius: var(--radius-pill); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--gradient-navy); color: #fff; border-radius: var(--radius-lg);
  padding: var(--space-8); text-align: center; position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(234,244,255,0.85); max-width: 560px; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Filters (portfolio) ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: var(--space-6); }
.filter-btn {
  border: 1px solid rgba(11,39,72,0.15); background: var(--white); color: var(--slate);
  padding: 8px 18px; border-radius: var(--radius-pill); font-weight: 600; font-size: 0.88rem;
  transition: all .18s ease;
}
.filter-btn:hover { border-color: var(--electric-blue); color: var(--electric-blue); }
.filter-btn.is-active { background: var(--gradient-brand); color: #fff; border-color: transparent; }

/* ---------- FAQ accordion ---------- */
.accordion-item { border-bottom: 1px solid rgba(11,39,72,0.1); }
.accordion-trigger {
  width: 100%; text-align: left; background: none; border: none; padding: var(--space-5) 0;
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--deep-navy);
}
.accordion-trigger svg { flex-shrink: 0; transition: transform .2s ease; color: var(--electric-blue); }
.accordion-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.accordion-panel-inner { padding-bottom: var(--space-5); color: var(--slate); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-5); }
.field.full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: 0.9rem; color: var(--dark-text); }
.hint { font-size: 0.8rem; color: var(--slate); font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  font-family: var(--font-body); font-size: 1rem; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid rgba(11,39,72,0.16); background: var(--white); color: var(--dark-text);
  transition: border-color .18s ease, box-shadow .18s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--electric-blue); box-shadow: 0 0 0 4px rgba(22,119,255,0.12); outline: none;
}
textarea { resize: vertical; min-height: 120px; }
.checkbox-field { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-field input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--electric-blue); }
.checkbox-field label { font-weight: 400; font-size: 0.9rem; }
.field-error { color: #C0362C; font-size: 0.82rem; }
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: var(--space-7); box-shadow: var(--shadow-md); border: 1px solid rgba(11,39,72,0.06); }
.form-message { padding: var(--space-4) var(--space-5); border-radius: var(--radius-sm); margin-bottom: var(--space-5); font-weight: 500; }
.form-message.success { background: #EAF9F0; color: #146C43; border: 1px solid #B9E6C9; }
.form-message.error { background: #FCEDEC; color: #A32E24; border: 1px solid #F3C6C1; }

/* ---------- Blog ---------- */
.blog-featured { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: center; }
@media (max-width: 900px) { .blog-featured { grid-template-columns: 1fr; } }
.post-body p { color: var(--slate); font-size: 1.05rem; }
.post-meta { display: flex; gap: var(--space-4); align-items: center; color: var(--slate); font-size: 0.88rem; margin-bottom: var(--space-5); }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep-navy); color: rgba(234,244,255,0.75); padding-block: var(--space-8) var(--space-6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-7); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: var(--space-4); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: rgba(234,244,255,0.7); font-size: 0.92rem; }
.site-footer a:hover { color: var(--cyan); }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-display); font-weight: 700; margin-bottom: var(--space-4); }
.footer-brand img { height: 54px; width: 54px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); margin-top: var(--space-7); padding-top: var(--space-5);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); font-size: 0.85rem;
  color: rgba(234,244,255,0.5);
}
.social-row { display: flex; gap: 10px; margin-top: var(--space-4); }
.social-row a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; }
.social-row a:hover { border-color: var(--cyan); }

/* ---------- Cookie notice & back-to-top ---------- */
.cookie-notice {
  position: fixed; bottom: 20px; left: 20px; right: 20px; max-width: 460px; z-index: 120;
  background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: var(--space-5); border: 1px solid rgba(11,39,72,0.08);
  transform: translateY(140%); transition: transform .3s ease;
}
.cookie-notice.is-visible { transform: translateY(0); }
.cookie-notice p { font-size: 0.88rem; margin-bottom: var(--space-4); }
.cookie-actions { display: flex; gap: 10px; }

.back-to-top {
  position: fixed; bottom: 24px; right: 24px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--gradient-brand); color: #fff; border: none; box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center; z-index: 90;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- 404 ---------- */
.error-page { min-height: 60vh; display: flex; align-items: center; }
.error-code { font-family: var(--font-display); font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; color: var(--electric-blue); line-height: 1; }

/* ---------- Misc utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-white { color: #fff; } .text-muted { color: var(--slate); }
.pill-badge { background: var(--soft-blue); color: var(--electric-blue); font-weight: 600; font-size: 0.78rem; padding: 5px 12px; border-radius: var(--radius-pill); }
.divider { height: 1px; background: rgba(11,39,72,0.08); border: none; margin: var(--space-7) 0; }
.dev-only-note { background: #FFF7E6; border: 1px dashed #E3A008; color: #7A4E00; padding: var(--space-4) var(--space-5); border-radius: var(--radius-sm); font-size: 0.88rem; }
