/* ============================================================
   SeriaLug — Complete Stylesheet (No Tailwind)
   Brand: Orange #f97316 · Blue #2563eb · Silver #94a3b8 · Black
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

/* ── Variables ── */
:root {
  --orange:       #f97316;
  --orange-dim:   #e06010;
  --blue:         #2563eb;
  --blue-dim:     #1a4ec4;
  --silver:       #94a3b8;
  --navy:         #0B1B3A;

  --bg:           #eceef4;
  --bg-surface:   #f7f8fc;
  --bg-card:      rgba(248,249,253,0.85);
  --border:       rgba(11,27,58,0.09);

  --text:         #0B1B3A;
  --text-muted:   rgba(11,27,58,0.62);
  --text-faint:   rgba(11,27,58,0.38);

  --btn-grad:     linear-gradient(108deg, #e06010 0%, #1a4ec4 100%);
  --nav-bg:       rgba(242,244,249,0.88);
  --nav-border:   rgba(11,27,58,0.08);

  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    22px;
  --radius-xl:    30px;

  --shadow-card:  0 2px 16px rgba(11,27,58,0.07);
  --transition:   0.25s ease;
}

html.dark {
  --bg:           #060c18;
  --bg-surface:   #0a1020;
  --bg-card:      rgba(255,255,255,0.05);
  --border:       rgba(255,255,255,0.08);

  --text:         #e8edf5;
  --text-muted:   rgba(232,237,245,0.60);
  --text-faint:   rgba(232,237,245,0.32);

  --nav-bg:       rgba(6,12,24,0.90);
  --nav-border:   rgba(255,255,255,0.07);
  --shadow-card:  0 2px 20px rgba(0,0,0,0.3);
}

/* ── Base ── */
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

/* ── Typography ── */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; line-height: 1.18; letter-spacing: -0.015em; }
h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 600; }
p  { line-height: 1.75; }

.eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 0.75rem;
}
.eyebrow-orange { color: var(--orange); }
.eyebrow-blue   { color: var(--blue);   }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 5rem 0; position: relative; overflow: hidden; }
.section-sm { padding: 3rem 0; }

.grid-2  { display: grid; grid-template-columns: 1fr 1fr;    gap: 2rem; }
.grid-3  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap    { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }

/* Spacing */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ── Backgrounds (Section system) ── */
.sl-section { position: relative; overflow: hidden; }
.sl-bg {
  position: absolute; inset: 0;
  z-index: 0; pointer-events: none;
}
.sl-section > *:not(.sl-bg) { position: relative; z-index: 1; }

/* ── Section dividers / transitions ── */
.section-wave {
  position: relative;
  z-index: 2;
  margin-bottom: -2px;
  line-height: 0;
}
.section-wave svg { display: block; width: 100%; }

/* ── Natural bleed gradient between sections ── */
.section-fade-bottom::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 2;
}
.section-fade-top::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to top, transparent, var(--bg));
  pointer-events: none;
  z-index: 2;
}

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background var(--transition), border-color var(--transition);
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  max-width: 1240px; margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.nav-logo img { height: 52px; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 1.75rem;
  font-size: 0.875rem; font-weight: 500;
}
.nav-links a {
  color: var(--text-muted);
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--orange); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

/* Mobile nav */
.nav-mobile-btn {
  display: none;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.8rem; font-weight: 600;
  background: transparent;
  color: var(--text);
  transition: border-color var(--transition), color var(--transition);
}
.nav-mobile-btn:hover { border-color: var(--orange); color: var(--orange); }

.nav-drawer {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  z-index: 99;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  animation: slideDown 0.2s ease;
}
.nav-drawer.open { display: block; }
.nav-drawer a {
  display: block;
  padding: 0.75rem 0;
  font-size: 0.95rem; font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.nav-drawer a:hover { color: var(--orange); }
.nav-drawer a:last-of-type { border-bottom: none; }
.nav-drawer-footer {
  display: flex; align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  margin-top: 0.5rem;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Logos ── */
.logo-light { display: block; }
.logo-dark  { display: none;  }
html.dark .logo-light { display: none;  }
html.dark .logo-dark  { display: block; filter: brightness(0) invert(1); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 600;
  letter-spacing: 0.01em; white-space: nowrap;
  transition: filter var(--transition), opacity var(--transition), background var(--transition), border-color var(--transition);
  border: none; cursor: pointer;
}
.btn-primary {
  background: var(--btn-grad);
  color: #fff;
}
.btn-primary:hover  { filter: brightness(1.1); }
.btn-primary:active { filter: brightness(0.93); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}
.btn-outline:hover {
  border-color: rgba(249,115,22,0.45);
  background: rgba(249,115,22,0.06);
  color: var(--orange);
}

.btn-ghost {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.88);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.07);
  color: #fff;
}

.btn-sm { padding: 0.45rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }

.btn-group { display: flex; flex-wrap: wrap; gap: 0.875rem; }

/* ── Theme toggle ── */
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--transition), color var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--orange); color: var(--orange); }
.icon-sun  { display: none; width: 20px; height: 20px; }
.icon-moon { display: block; width: 20px; height: 20px; }
html.dark .icon-sun  { display: block; }
html.dark .icon-moon { display: none;  }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.card:hover { box-shadow: 0 4px 28px rgba(11,27,58,0.1); }
html.dark .card:hover { box-shadow: 0 4px 28px rgba(0,0,0,0.35); }

.card-lg { border-radius: var(--radius-lg); padding: 2.5rem; }

/* ── Stat cards ── */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-card { padding: 1.5rem; border-radius: var(--radius-md); }
.stat-number {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800; line-height: 1;
  color: var(--text);
}
.stat-label { margin-top: 0.5rem; font-size: 0.8rem; color: var(--text-muted); }

/* ── Pill tags ── */
.pill {
  display: inline-flex; align-items: center;
  padding: 0.45rem 1rem;
  border-radius: 99px;
  font-size: 0.8rem; font-weight: 600;
  white-space: nowrap;
}
.pill-orange { background: rgba(249,115,22,0.12); color: var(--orange); border: 1px solid rgba(249,115,22,0.2); }
.pill-blue   { background: rgba(37,99,235,0.12);  color: var(--blue);   border: 1px solid rgba(37,99,235,0.2); }
.pill-silver { background: rgba(148,163,184,0.1); color: var(--silver); border: 1px solid rgba(148,163,184,0.18); }
.pill-ghost  { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }

/* ── Hero ── */
#heroSection {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  padding-top: 5rem;
  color: #fff;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-media video,
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.42;
}
@media (max-width: 768px) {
  #heroSection { min-height: 80vh; }
  .hero-media video,
  .hero-media img {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    min-width: 100%;
    min-height: 56.25vw;
    object-fit: cover;
  }
}
.hero-overlay {
  position: absolute; inset: 0;
  z-index: 1; pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2;
  width: 100%; max-width: 1240px;
  margin: 0 auto; padding: 4rem 1.5rem;
}
.hero-content h1 { color: #fff; max-width: 700px; }
.hero-eyebrow { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-bottom: 1rem; }
.hero-sub { color: rgba(255,255,255,0.72); font-size: 1.1rem; line-height: 1.7; max-width: 600px; margin-top: 1.25rem; }

/* ── Section entrance animations ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Forms ── */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
.form-input {
  width: 100%; padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color var(--transition), background var(--transition);
}
.form-input:focus { outline: none; border-color: var(--orange); }
.form-input::placeholder { color: var(--text-faint); }
textarea.form-input { resize: vertical; min-height: 120px; }

.form-status { padding: 0.75rem 1rem; border-radius: var(--radius-sm); font-size: 0.8rem; display: none; margin-top: 0.75rem; }
.form-status.success { background: rgba(34,197,94,0.1); color: #15803d; border: 1px solid rgba(34,197,94,0.25); display: block; }
.form-status.error   { background: rgba(239,68,68,0.1);  color: #b91c1c; border: 1px solid rgba(239,68,68,0.2);  display: block; }
html.dark .form-status.success { color: #4ade80; }
html.dark .form-status.error   { color: #f87171; }
.form-stack { display: flex; flex-direction: column; gap: 1rem; }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 4rem 0 2rem;
  transition: background var(--transition), border-color var(--transition);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; margin-top: 1rem; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 1rem; }
.footer-col a, .footer-col p { font-size: 0.875rem; color: var(--text-muted); display: block; margin-bottom: 0.6rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--orange); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.78rem; color: var(--text-faint); }
.social-links { display: flex; align-items: center; gap: 1rem; }
.social-links a { color: var(--text-muted); transition: color var(--transition); }
.social-links a:hover { color: var(--orange); }

/* ── News cards ── */
.news-card { display: flex; flex-direction: column; }
.news-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.news-cat { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.5rem; }
.news-title { font-size: 1rem; font-weight: 700; color: var(--text); line-height: 1.4; }
.news-body { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.5rem; flex: 1; }
.news-link { font-size: 0.8rem; font-weight: 600; color: var(--orange); margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.3rem; }
.news-link:hover { text-decoration: underline; }

/* ── Job cards ── */
.job-card { display: flex; flex-direction: column; gap: 0.75rem; }
.job-title { font-size: 1.05rem; font-weight: 700; }
.job-meta  { font-size: 0.8rem; color: var(--text-muted); }
.job-desc  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }

/* ── Team ── */
.team-card { text-align: center; }
.team-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(249,115,22,0.2), rgba(37,99,235,0.2));
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800; color: var(--text);
  margin: 0 auto 1rem;
}
.team-name { font-size: 0.95rem; font-weight: 700; }
.team-role { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ── Projects ── */
.project-card { position: relative; overflow: hidden; }
.project-num {
  font-size: 3.5rem; font-weight: 900;
  line-height: 1; opacity: 0.1;
  color: var(--text);
  margin-bottom: -0.5rem;
}
.project-title { font-size: 1rem; font-weight: 700; }
.project-tag { font-size: 0.75rem; color: var(--text-faint); margin-top: 0.3rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* ── Process list ── */
.process-list { display: flex; flex-direction: column; gap: 1.25rem; }
.process-item { display: flex; gap: 1rem; align-items: flex-start; }
.process-num { font-size: 0.75rem; font-weight: 800; color: var(--orange); min-width: 24px; padding-top: 0.1rem; }
.process-text { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }
.process-text strong { color: var(--text); font-weight: 600; }

/* ── Checkbox ── */
.service-option { width: 17px; height: 17px; accent-color: var(--orange); }

/* ── Focus ── */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid rgba(249,115,22,0.55);
  outline-offset: 3px; border-radius: var(--radius-sm);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(148,163,184,0.4); border-radius: 99px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .section { padding: 3.5rem 0; }
  .nav-links, .nav-actions { display: none; }
  .nav-mobile-btn { display: block; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-content { padding: 3rem 1.25rem; }
  .card-lg { padding: 1.75rem; }
}
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .btn-group { flex-direction: column; }
  .btn-group .btn { justify-content: center; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

/* ── News tabs ── */
.news-tab-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.news-tab-btn:hover { border-color: var(--orange); color: var(--orange); }
.news-tab-btn.active {
  background: rgba(249,115,22,0.1);
  border-color: var(--orange);
  color: var(--orange);
}

/* ─────────────────────────────────────────────────────────────
   HIDE-THEN-REVEAL — dynamic Firestore elements
   Body gets .sl-loading class while Firestore is fetching.
   All dynamic text elements are invisible until data arrives.
   ───────────────────────────────────────────────────────────── */
body.sl-loading #heroEyebrow,
body.sl-loading #heroHeadline,
body.sl-loading #heroSubtext,
body.sl-loading #aboutEyebrow,
body.sl-loading #aboutHeadline,
body.sl-loading #aboutBody,
body.sl-loading #stat1Label,
body.sl-loading #stat2Label,
body.sl-loading #stat3Label,
body.sl-loading #stat4Label,
body.sl-loading #provisionsEyebrow,
body.sl-loading #provisionsHeadline,
body.sl-loading #provisionsBody,
body.sl-loading #provisionsDetail,
body.sl-loading #provisionPills,
body.sl-loading #newsEyebrow,
body.sl-loading #newsHeadline,
body.sl-loading #careersEyebrow,
body.sl-loading #careersHeadline,
body.sl-loading #careersBody,
body.sl-loading #applyStep1,
body.sl-loading #applyStep2,
body.sl-loading #applyStep3,
body.sl-loading #applyStep4,
body.sl-loading #careersEmailDisplay,
body.sl-loading #contactEyebrow,
body.sl-loading #contactHeadline,
body.sl-loading #contactSubtext,
body.sl-loading #servicesHeadline,
body.sl-loading #servicesSubtext,
body.sl-loading #footerTagline,
body.sl-loading #footerEmailLine,
body.sl-loading #footerPhoneLine,
body.sl-loading #footerLocationLine,
body.sl-loading #footerCopyright,
body.sl-loading #teamSubtext,
body.sl-loading #projectsSubtext,
body.sl-loading #careersSubtext,
body.sl-loading .legal-email,
body.sl-loading .legal-location,
body.sl-loading #legalLastUpdated {
  opacity: 0;
}

/* Smooth reveal — elements transition in once class is removed */
#heroEyebrow, #heroHeadline, #heroSubtext,
#aboutEyebrow, #aboutHeadline, #aboutBody,
#stat1Label, #stat2Label, #stat3Label, #stat4Label,
#provisionsEyebrow, #provisionsHeadline, #provisionsBody, #provisionsDetail, #provisionPills,
#newsEyebrow, #newsHeadline,
#careersEyebrow, #careersHeadline, #careersBody,
#applyStep1, #applyStep2, #applyStep3, #applyStep4, #careersEmailDisplay,
#contactEyebrow, #contactHeadline, #contactSubtext,
#servicesHeadline, #servicesSubtext,
#footerTagline, #footerEmailLine, #footerPhoneLine,
#footerLocationLine, #footerCopyright,
#teamSubtext, #projectsSubtext, #careersSubtext,
.legal-email, .legal-location, #legalLastUpdated {
  transition: opacity 0.35s ease;
}

/* ─────────────────────────────────────────────────────────────
   SKELETON LOADER — services / provisions page
   ───────────────────────────────────────────────────────────── */
@keyframes sl-shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}

.sl-skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-secondary) 25%,
    color-mix(in srgb, var(--bg-secondary) 60%, var(--text) 10%) 50%,
    var(--bg-secondary) 75%
  );
  background-size: 600px 100%;
  animation: sl-shimmer 1.4s infinite linear;
  border-radius: 6px;
}

.sl-skeleton-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  border-top: 2px solid var(--border);
}

.sl-skeleton-title {
  height: 14px;
  width: 55%;
  margin-bottom: 1.1rem;
}

.sl-skeleton-line {
  height: 11px;
  border-radius: 4px;
  margin-bottom: 0.65rem;
}

.sl-skeleton-line:last-child { width: 70%; }

/* ─────────────────────────────────────────────────────────────
   COOKIE BANNER
   ───────────────────────────────────────────────────────────── */
#cookieBanner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 640px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  animation: bannerSlide 0.3s ease;
}
@keyframes bannerSlide {
  from { opacity:0; transform:translateX(-50%) translateY(12px); }
  to   { opacity:1; transform:translateX(-50%) translateY(0); }
}
#cookieBanner p { font-size:0.85rem; color:var(--text-muted); line-height:1.6; margin:0; flex:1; min-width:200px; }
#cookieBanner a { color:var(--orange); text-decoration:underline; text-underline-offset:2px; }
.cookie-btn-group { display:flex; gap:0.75rem; flex-shrink:0; flex-wrap:wrap; }
.cookie-btn-accept { padding:0.5rem 1.1rem; background:linear-gradient(108deg,#e06010 0%,#1a4ec4 100%); color:#fff; border:none; border-radius:6px; font-size:0.85rem; font-weight:600; cursor:pointer; white-space:nowrap; }
.cookie-btn-decline { padding:0.5rem 1.1rem; background:transparent; color:var(--text-muted); border:1px solid var(--border); border-radius:6px; font-size:0.85rem; font-weight:500; cursor:pointer; white-space:nowrap; }
.cookie-btn-decline:hover { border-color:var(--orange); color:var(--orange); }
@media(max-width:480px) {
  #cookieBanner { bottom:0; border-radius:12px 12px 0 0; width:100%; left:0; transform:none; }
  .cookie-btn-group { width:100%; }
  .cookie-btn-accept, .cookie-btn-decline { flex:1; text-align:center; }
}

/* Nav drawer close button */
.nav-drawer-close { display:block; background:none; border:none; color:var(--text-muted); font-size:1.2rem; cursor:pointer; padding:0.5rem 0; margin-bottom:0.5rem; text-align:right; width:100%; }
.nav-drawer-close:hover { color:var(--orange); }
