/* =============================================================================
 * Dravyam Industries — Modern Light Theme Override (gated by data-theme)
 * -----------------------------------------------------------------------------
 * Loaded AFTER css/main.css. Re-skins the dark surfaces of the site with a
 * clean, modern light palette. Every rule is gated by html[data-theme="light"]
 * so it can be toggled off (returning to the original dark theme) by setting
 * data-theme="dark" on the <html> element.
 *
 * Default theme is light, but js/theme.js may switch it to dark on first
 * load if the user's OS reports prefers-color-scheme: dark and they have not
 * saved a manual preference.
 *
 * No structural / layout / animation rules from main.css are altered.
 * ========================================================================== */

/* ── 1. DESIGN TOKENS ─────────────────────────────────────────────────────── */
html[data-theme="light"] {
  --bg-900: #f5f8fc;
  --bg-850: #ffffff;
  --bg-800: #eef2f8;
  --bg-700: #e3eaf3;
  --steel:  #5b6b82;

  --text-100: #0f1828;
  --text-300: #4a5868;

  --accent-gold:        #c96439;
  --accent-gold-bright: #ef9f79;
  --accent-blue:        #1f61ab;
  --accent-premium:     #c89a5a;

  --glass-bg:     rgba(255, 255, 255, 0.78);
  --glass-stroke: rgba(15, 24, 40, 0.10);
  --shadow-soft:  0 12px 32px rgba(20, 30, 50, 0.08);
  --shadow-hard:  0 22px 56px rgba(20, 30, 50, 0.14);

  scrollbar-color: var(--accent-gold) #e3eaf3;
  color-scheme: light;
}

/* ── 2. BODY BACKGROUND ───────────────────────────────────────────────────── */
html[data-theme="light"] body {
  background:
    radial-gradient(circle at 15% -20%, rgba(31, 97, 171, 0.10), transparent 48%),
    radial-gradient(circle at 80% -10%, rgba(201, 100, 57, 0.08), transparent 45%),
    linear-gradient(170deg, #f7faff 0%, #eef3fb 52%, #f5f8fc 100%) !important;
  color: var(--text-100) !important;
}

/* ── 3. HEADER ───────────────────────────────────────────────────────────── */
html[data-theme="light"] .header.scrolled {
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(15, 24, 40, 0.08) !important;
  box-shadow: 0 8px 24px rgba(20, 30, 50, 0.06) !important;
}
html[data-theme="light"] .nav-links a { color: var(--text-100); }
html[data-theme="light"] .nav-links a:hover { color: var(--accent-gold); }
html[data-theme="light"] .brand b { color: var(--text-100); }
html[data-theme="light"] .brand small { color: var(--text-300); }
html[data-theme="light"] .nav-toggle { color: var(--text-100); }
html[data-theme="light"] .nav-toggle svg path { fill: var(--text-100); }

/* Active / hover link — visible on light bg (fixes "selected not visible") */
html[data-theme="light"] .nav-links a:hover,
html[data-theme="light"] .nav-links a.active {
  color: var(--accent-gold) !important;
  background: rgba(201, 100, 57, 0.12) !important;
}
html[data-theme="light"] .header.scrolled .nav-links a.active {
  color: #fff !important;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-bright)) !important;
  box-shadow: 0 4px 14px rgba(201, 100, 57, 0.32) !important;
}
html[data-theme="light"] .nav-links a.active::after {
  background: linear-gradient(90deg, var(--accent-gold), #ffb480) !important;
}

@media (max-width: 880px) {
  html[data-theme="light"] .nav-links {
    background: rgba(255, 255, 255, 0.97) !important;
    border-color: rgba(15, 24, 40, 0.08) !important;
    box-shadow: 0 18px 44px rgba(20, 30, 50, 0.12) !important;
  }
}

/* ── 4. EYEBROW / PILLS ──────────────────────────────────────────────────── */
html[data-theme="light"] .eyebrow {
  background: linear-gradient(90deg, rgba(201, 100, 57, 0.14), rgba(31, 97, 171, 0.12)) !important;
  color: #6a4a2e !important;
  border-color: rgba(201, 100, 57, 0.28) !important;
}

/* ── 5. HERO ─────────────────────────────────────────────────────────────── */
html[data-theme="light"] .hero h1,
html[data-theme="light"] .hero h1 * { color: var(--text-100); }
html[data-theme="light"] .hero p,
html[data-theme="light"] .hero p.lead,
html[data-theme="light"] p.lead { color: var(--text-300) !important; }

html[data-theme="light"] .hero-tags span {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.85), rgba(238, 244, 252, 0.85)) !important;
  border: 1px solid rgba(15, 24, 40, 0.10) !important;
  color: var(--text-100) !important;
  box-shadow: 0 6px 16px rgba(20, 30, 50, 0.06) !important;
}
html[data-theme="light"] .hero-tags span:hover {
  background: linear-gradient(120deg, #ffffff, #f4f8ff) !important;
}

html[data-theme="light"] .btn-secondary {
  background: rgba(15, 24, 40, 0.04) !important;
  color: var(--text-100) !important;
  border-color: rgba(15, 24, 40, 0.14) !important;
}
html[data-theme="light"] .btn-secondary:hover {
  background: rgba(15, 24, 40, 0.08) !important;
}

html[data-theme="light"] .metric {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(15, 24, 40, 0.08) !important;
  box-shadow: 0 10px 26px rgba(20, 30, 50, 0.06) !important;
}
html[data-theme="light"] .metric strong { color: var(--text-100) !important; }
html[data-theme="light"] .metric span   { color: var(--text-300) !important; }

html[data-theme="light"] .hero-info,
html[data-theme="light"] .hero-chip,
html[data-theme="light"] .hero-float {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(15, 24, 40, 0.08) !important;
  color: var(--text-100) !important;
  box-shadow: 0 14px 32px rgba(20, 30, 50, 0.10) !important;
}
html[data-theme="light"] .hero-chip span { color: var(--text-300) !important; }

html[data-theme="light"] .hero-scene-ocean { mix-blend-mode: multiply; opacity: 0.55; }
html[data-theme="light"] .hero-scene-road  { mix-blend-mode: multiply; opacity: 0.7; }

/* ── 6. GLASS / GENERIC PANELS ───────────────────────────────────────────── */
html[data-theme="light"] .glass {
  background: var(--glass-bg) !important;
  border-color: var(--glass-stroke) !important;
  box-shadow: var(--shadow-soft) !important;
}
html[data-theme="light"] .card {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(15, 24, 40, 0.08) !important;
  box-shadow: 0 14px 36px rgba(20, 30, 50, 0.08) !important;
  color: var(--text-100) !important;
}

/* ── 7. ABOUT SECTION ────────────────────────────────────────────────────── */
/* About intro / panel / chips / badges / metrics — light cards */
html[data-theme="light"] .about-intro,
html[data-theme="light"] .about-visual,
html[data-theme="light"] .about-panel {
  background: rgba(255, 255, 255, 0.97) !important;
  border-color: rgba(15, 24, 40, 0.08) !important;
  box-shadow: 0 14px 34px rgba(20, 30, 50, 0.08) !important;
  color: var(--text-100) !important;
}
html[data-theme="light"] .about-intro h2,
html[data-theme="light"] .about-panel h3,
html[data-theme="light"] .about-visual h3 { color: var(--text-100) !important; }
html[data-theme="light"] .about-intro .lead,
html[data-theme="light"] .about-visual p,
html[data-theme="light"] .about-panel p { color: var(--text-300) !important; }

/* Summary strip pills (3 stat boxes inside about-intro) */
html[data-theme="light"] .about-summary-strip div {
  background: linear-gradient(180deg, #ffffff, #eef3fb) !important;
  border: 1px solid rgba(15, 24, 40, 0.10) !important;
  box-shadow: 0 6px 14px rgba(20, 30, 50, 0.05) !important;
}
html[data-theme="light"] .about-summary-strip div:hover {
  border-color: rgba(201, 100, 57, 0.45) !important;
  background: linear-gradient(180deg, #ffffff, #fff4ea) !important;
}
html[data-theme="light"] .about-summary-strip strong { color: var(--text-100) !important; }
html[data-theme="light"] .about-summary-strip span   { color: var(--text-300) !important; }

/* Badges row */
html[data-theme="light"] .about-badges span {
  background: linear-gradient(135deg, rgba(31, 97, 171, 0.12), rgba(201, 100, 57, 0.10)) !important;
  border: 1px solid rgba(31, 97, 171, 0.30) !important;
  color: #1a4f8f !important;
}

/* Mini metrics under about-visual */
html[data-theme="light"] .about-mini-metrics div {
  background: linear-gradient(180deg, #ffffff, #eef3fb) !important;
  border: 1px solid rgba(15, 24, 40, 0.10) !important;
  box-shadow: 0 6px 14px rgba(20, 30, 50, 0.05) !important;
}
html[data-theme="light"] .about-mini-metrics div:hover {
  border-color: rgba(31, 97, 171, 0.40) !important;
  background: linear-gradient(180deg, #ffffff, #eaf2fc) !important;
}
html[data-theme="light"] .about-mini-metrics strong { color: var(--text-100) !important; }
html[data-theme="light"] .about-mini-metrics span   { color: var(--text-300) !important; }

/* Chip eyebrow */
html[data-theme="light"] .about-chip {
  background: linear-gradient(135deg, rgba(31, 97, 171, 0.12), rgba(201, 100, 57, 0.10)) !important;
  border: 1px solid rgba(31, 97, 171, 0.30) !important;
  color: #1a4f8f !important;
  box-shadow: none !important;
}

/* Feature list items + principle items */
html[data-theme="light"] .about-feature-item,
html[data-theme="light"] .about-principle {
  background: linear-gradient(180deg, #ffffff, #f4f8fd) !important;
  border: 1px solid rgba(15, 24, 40, 0.10) !important;
  box-shadow: 0 6px 14px rgba(20, 30, 50, 0.05) !important;
}
html[data-theme="light"] .about-feature-item:hover,
html[data-theme="light"] .about-principle:hover {
  background: linear-gradient(180deg, #ffffff, #fff4ea) !important;
  border-color: rgba(201, 100, 57, 0.45) !important;
  box-shadow: 0 12px 24px rgba(201, 100, 57, 0.14) !important;
}
html[data-theme="light"] .about-feature-item::before,
html[data-theme="light"] .about-principle::before {
  background: linear-gradient(105deg, transparent 0%, rgba(15, 24, 40, 0.08) 45%, transparent 100%) !important;
}
html[data-theme="light"] .about-feature-item h4,
html[data-theme="light"] .about-principle h4 { color: var(--text-100) !important; }
html[data-theme="light"] .about-feature-item p,
html[data-theme="light"] .about-principle p,
html[data-theme="light"] .about-milestone-item p { color: var(--text-300) !important; }

/* Icon tile inside feature/principle cards — original .icon uses near-white
   SVG fill on a translucent gold/blue gradient, both invisible on white. */
html[data-theme="light"] .about-feature-item .icon,
html[data-theme="light"] .about-principle .icon {
  background: linear-gradient(135deg, rgba(201, 100, 57, 0.22), rgba(31, 97, 171, 0.20)) !important;
  border: 1px solid rgba(31, 97, 171, 0.32) !important;
  box-shadow: 0 4px 10px rgba(31, 97, 171, 0.12) !important;
}
html[data-theme="light"] .about-feature-item .icon svg,
html[data-theme="light"] .about-principle .icon svg {
  fill: #1a4f8f !important;
}
html[data-theme="light"] .about-feature-item:hover .icon,
html[data-theme="light"] .about-principle:hover .icon {
  background: linear-gradient(135deg, rgba(201, 100, 57, 0.32), rgba(31, 97, 171, 0.26)) !important;
  border-color: rgba(201, 100, 57, 0.45) !important;
  box-shadow: 0 8px 18px rgba(201, 100, 57, 0.22) !important;
}
html[data-theme="light"] .about-feature-item:hover .icon svg,
html[data-theme="light"] .about-principle:hover .icon svg {
  fill: #6a3318 !important;
}

/* Milestones timeline */
html[data-theme="light"] .about-milestone-item {
  background: linear-gradient(180deg, #ffffff, #f4f8fd) !important;
  border: 1px solid rgba(15, 24, 40, 0.10) !important;
}
html[data-theme="light"] .about-milestone-item:hover {
  background: linear-gradient(180deg, #ffffff, #eaf2fc) !important;
  border-color: rgba(31, 97, 171, 0.45) !important;
}
html[data-theme="light"] .about-milestone-item strong {
  background: rgba(201, 100, 57, 0.12) !important;
  border: 1px solid rgba(201, 100, 57, 0.40) !important;
  color: #8a4a16 !important;
  /* Outer ring needs to match the page bg, not the dark navy */
  box-shadow: 0 0 0 8px #f5f8fc !important;
  animation: none !important;
}
html[data-theme="light"] .about-milestone-item h4 { color: var(--text-100) !important; }
html[data-theme="light"] .about-milestones::before {
  background: linear-gradient(180deg, rgba(201, 100, 57, 0.55), rgba(31, 97, 171, 0.30)) !important;
  opacity: 0.8 !important;
}

/* ── About visual SVG (workflow diagram) ─────────────────────────────────── */
/* The dark glass plate behind the SVG — make it a soft white panel */
html[data-theme="light"] .about-visual-media {
  background:
    radial-gradient(circle at 14% 24%, rgba(31, 97, 171, 0.10), transparent 48%),
    radial-gradient(circle at 84% 30%, rgba(201, 100, 57, 0.10), transparent 45%),
    linear-gradient(145deg, #ffffff, #eef3fb) !important;
  border: 1px solid rgba(15, 24, 40, 0.10) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 8px 22px rgba(20, 30, 50, 0.06) !important;
}
html[data-theme="light"] .about-visual-media::before {
  background: linear-gradient(105deg, transparent 0%, rgba(15, 24, 40, 0.06) 42%, transparent 100%) !important;
}

/* SVG <rect> backplate — uses fill, not background */
html[data-theme="light"] .about-svg-bg {
  fill: rgba(255, 255, 255, 0.85) !important;
  stroke: rgba(15, 24, 40, 0.14) !important;
}
html[data-theme="light"] .about-scan {
  fill: rgba(31, 97, 171, 0.10) !important;
}

/* Step cards (Collect / Inspect / Verify / Release) */
html[data-theme="light"] .about-step-card {
  fill: rgba(31, 97, 171, 0.08) !important;
  stroke: rgba(31, 97, 171, 0.32) !important;
}
@keyframes aboutCardGlowLight {
  0%, 100% { fill: rgba(31, 97, 171, 0.08); }
  50%      { fill: rgba(31, 97, 171, 0.16); }
}
html[data-theme="light"] .about-step-card { animation-name: aboutCardGlowLight !important; }

/* SVG text labels */
html[data-theme="light"] .about-visual-media text { fill: var(--text-100) !important; }
html[data-theme="light"] .about-step-title { fill: #1a4f8f !important; opacity: 1 !important; }
html[data-theme="light"] .about-stage-label { fill: var(--text-100) !important; }
html[data-theme="light"] .about-node-tip    { fill: var(--text-100) !important; }

/* Flow nodes / halos / rings */
html[data-theme="light"] .about-flow-node,
html[data-theme="light"] .about-flow-node-core { fill: #1f61ab !important; }
html[data-theme="light"] .about-flow-node-halo {
  stroke: rgba(31, 97, 171, 0.55) !important;
}
html[data-theme="light"] .about-flow-node-ring {
  stroke: rgba(31, 97, 171, 0.60) !important;
}
html[data-theme="light"] .about-flow-particle { fill: rgba(31, 97, 171, 0.55) !important; }

/* Flow path glow + progress rail */
html[data-theme="light"] .about-flow-path-glow {
  stroke: rgba(31, 97, 171, 0.30) !important;
}
html[data-theme="light"] .about-progress-rail {
  fill: rgba(15, 24, 40, 0.10) !important;
}

/* Visual chips (Full Chain / Get Requirement / etc) */
html[data-theme="light"] .about-visual-chip {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(15, 24, 40, 0.12) !important;
  color: var(--text-100) !important;
}
html[data-theme="light"] .about-visual-chip:hover {
  background: linear-gradient(135deg, rgba(201, 100, 57, 0.12), rgba(31, 97, 171, 0.10)) !important;
  border-color: rgba(201, 100, 57, 0.45) !important;
  color: #6a3318 !important;
}
html[data-theme="light"] .about-visual-chip.is-active {
  background: linear-gradient(135deg, rgba(201, 100, 57, 0.18), rgba(31, 97, 171, 0.16)) !important;
  border-color: rgba(201, 100, 57, 0.50) !important;
  color: #6a3318 !important;
}

/* Visual status panel */
html[data-theme="light"] .about-visual-status {
  background: linear-gradient(145deg, #ffffff, #eef3fb) !important;
  border: 1px solid rgba(15, 24, 40, 0.10) !important;
  box-shadow: 0 8px 18px rgba(20, 30, 50, 0.06) !important;
  color: var(--text-100) !important;
}
html[data-theme="light"] .about-visual-status strong { color: var(--text-100) !important; }
html[data-theme="light"] .about-visual-status span   { color: var(--text-300) !important; }
html[data-theme="light"] .about-status-kpis span {
  background: rgba(31, 97, 171, 0.10) !important;
  border: 1px solid rgba(31, 97, 171, 0.28) !important;
  color: #1a4f8f !important;
}

/* ── 8. INDUSTRIES ───────────────────────────────────────────────────────── */
/* Only the .industry-card paints a surface. .industry-head and .industry-foot
   stay transparent so the card reads as one unified panel (no "3 parts" look). */
html[data-theme="light"] .industry-card {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(15, 24, 40, 0.08) !important;
  box-shadow: 0 14px 30px rgba(20, 30, 50, 0.07) !important;
  color: var(--text-100) !important;
}
html[data-theme="light"] .industry-head,
html[data-theme="light"] .industry-foot {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
}
html[data-theme="light"] .industry-card h3,
html[data-theme="light"] .industry-card h4 { color: var(--text-100) !important; }
html[data-theme="light"] .industry-card p,
html[data-theme="light"] .industry-card li { color: var(--text-300) !important; }

html[data-theme="light"] .premium-industries-grid > * {
  background: linear-gradient(180deg, #ffffff, #f5f8fc) !important;
  border-color: rgba(15, 24, 40, 0.08) !important;
  box-shadow: 0 14px 32px rgba(20, 30, 50, 0.08) !important;
}

/* Industries meta pills (above the grid) */
html[data-theme="light"] .industries-meta span {
  background: rgba(31, 97, 171, 0.08) !important;
  border: 1px solid rgba(31, 97, 171, 0.28) !important;
  color: #1a4f8f !important;
}

/* Industry card icon — original .icon uses fill:#e8f1ff (near-white) and
   a faint translucent gradient bg, both invisible on white cards.
   In light theme: dark navy fill + colored ring keyed to --industry-accent.
   Several icon paths contain open line subpaths (e.g. "M8 18h8" in the
   Chemicals icon) that don't render via fill alone — add a matching stroke. */
html[data-theme="light"] .industry-card .industry-head .icon {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--industry-accent) 32%, #ffffff),
    color-mix(in srgb, var(--industry-accent) 14%, #ffffff)) !important;
  border: 1px solid color-mix(in srgb, var(--industry-accent) 65%, #0f1828 35%) !important;
  box-shadow: 0 4px 10px color-mix(in srgb, var(--industry-accent) 30%, transparent) !important;
}
html[data-theme="light"] .industry-card .industry-head .icon svg {
  fill: #0f1828 !important;
  stroke: #0f1828 !important;
  stroke-width: 0.6 !important;
  stroke-linejoin: round !important;
  stroke-linecap: round !important;
}
html[data-theme="light"] .industry-card:hover .industry-head .icon {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--industry-accent) 50%, #ffffff),
    color-mix(in srgb, var(--industry-accent) 25%, #ffffff)) !important;
  border-color: color-mix(in srgb, var(--industry-accent) 85%, #0f1828 15%) !important;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--industry-accent) 45%, transparent) !important;
}
html[data-theme="light"] .industry-card:hover .industry-head .icon svg {
  fill: color-mix(in srgb, var(--industry-accent) 30%, #0f1828 70%) !important;
  stroke: color-mix(in srgb, var(--industry-accent) 30%, #0f1828 70%) !important;
}

/* Footer divider + label inside industry-card */
html[data-theme="light"] .industry-foot {
  border-top: 1px solid rgba(15, 24, 40, 0.10) !important;
  box-shadow: none !important;
}
html[data-theme="light"] .industry-foot span {
  color: color-mix(in srgb, var(--industry-accent) 55%, #0f1828 45%) !important;
}
html[data-theme="light"] .industry-foot::after {
  opacity: 1 !important;
}

/* Featured card highlight */
html[data-theme="light"] .industry-card.is-featured {
  border-color: color-mix(in srgb, var(--industry-accent) 60%, rgba(15, 24, 40, 0.22)) !important;
  box-shadow: 0 14px 30px color-mix(in srgb, var(--industry-accent) 18%, rgba(20, 30, 50, 0.10)) !important;
}

/* Card sweep ::after — was white, would still work but soften it */
html[data-theme="light"] .industry-card::after {
  background: linear-gradient(115deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0)) !important;
}

/* ── 9. PRODUCTS ─────────────────────────────────────────────────────────── */
html[data-theme="light"] .product-card,
html[data-theme="light"] .product-body {
  background: rgba(255, 255, 255, 0.97) !important;
  border-color: rgba(15, 24, 40, 0.08) !important;
  box-shadow: 0 14px 32px rgba(20, 30, 50, 0.07) !important;
  color: var(--text-100) !important;
}
/* Make product SVGs light and colorful in light theme */
html[data-theme="light"] .product-media img {
  filter: brightness(1.18) contrast(1.08) saturate(1.18) !important;
  transition: filter 0.3s ease !important;
}
html[data-theme="light"] .product-card h3,
html[data-theme="light"] .product-card h4 { color: var(--text-100) !important; }
html[data-theme="light"] .product-card p,
html[data-theme="light"] .product-card li,
html[data-theme="light"] .product-body p { color: var(--text-300) !important; }

html[data-theme="light"] .product-filter {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(15, 24, 40, 0.10) !important;
  color: var(--text-100) !important;
}
html[data-theme="light"] .product-filter:hover { background: #f1f5fb !important; }
html[data-theme="light"] .product-filter.is-active,
html[data-theme="light"] .product-filter[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(201, 100, 57, 0.18), rgba(31, 97, 171, 0.16)) !important;
  border-color: rgba(201, 100, 57, 0.40) !important;
  color: #6a3318 !important;
}

html[data-theme="light"] .prd-item {
  background: rgba(255, 255, 255, 0.97) !important;
  border-color: rgba(15, 24, 40, 0.08) !important;
  box-shadow: 0 10px 26px rgba(20, 30, 50, 0.06) !important;
  color: var(--text-100) !important;
}
html[data-theme="light"] .prd-item:hover { background: #ffffff !important; }
html[data-theme="light"] .prd-name { color: var(--text-100) !important; }
html[data-theme="light"] .prd-desc { color: var(--text-300) !important; }
html[data-theme="light"] .prd-link { color: var(--accent-blue) !important; }

html[data-theme="light"] .prd-group-hd,
html[data-theme="light"] .prd-gh-label { color: var(--text-100) !important; }
html[data-theme="light"] .prd-gh-line  { background: linear-gradient(90deg, rgba(15, 24, 40, 0.20), transparent) !important; }
html[data-theme="light"] .prd-gh-count { color: var(--text-300) !important; }

html[data-theme="light"] .prd-viewall-btn {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(15, 24, 40, 0.10) !important;
  color: var(--text-100) !important;
}
html[data-theme="light"] .prd-viewall-btn:hover {
  background: linear-gradient(135deg, rgba(201, 100, 57, 0.14), rgba(31, 97, 171, 0.12)) !important;
}

html[data-theme="light"] .product-overlay {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(15, 24, 40, 0.55)) !important;
  color: #ffffff !important;
}
html[data-theme="light"] .product-search input,
html[data-theme="light"] .product-search [type="search"] {
  background: #ffffff !important;
  border-color: rgba(15, 24, 40, 0.14) !important;
  color: var(--text-100) !important;
}
html[data-theme="light"] .product-search input::placeholder { color: var(--text-300) !important; }

/* ── 10. SERVICES ────────────────────────────────────────────────────────── */
html[data-theme="light"] .service-category,
html[data-theme="light"] .service-item,
html[data-theme="light"] .services-meta > * {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(15, 24, 40, 0.08) !important;
  box-shadow: 0 12px 28px rgba(20, 30, 50, 0.06) !important;
  color: var(--text-100) !important;
}
html[data-theme="light"] .service-category h3,
html[data-theme="light"] .service-item h4 { color: var(--text-100) !important; }
html[data-theme="light"] .service-category p,
html[data-theme="light"] .service-item p { color: var(--text-300) !important; }

/* Services meta pills above the grid */
html[data-theme="light"] .services-meta span {
  background: rgba(31, 97, 171, 0.08) !important;
  border: 1px solid rgba(31, 97, 171, 0.28) !important;
  color: #1a4f8f !important;
}

/* Service category H3 — keep brand-tinted */
html[data-theme="light"] .service-category h3 {
  color: color-mix(in srgb, var(--svc-accent, #1f61ab) 35%, #0f1828 65%) !important;
}

/* Service-item icon — original .icon uses fill:#e8f1ff (near-white) and a
   faint translucent gradient bg, both invisible on white cards. Recolor
   per the parent .service-category --svc-accent token (gold/blue/mint). */
html[data-theme="light"] .service-item .icon {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--svc-accent, #1f61ab) 32%, #ffffff),
    color-mix(in srgb, var(--svc-accent, #1f61ab) 14%, #ffffff)) !important;
  border: 1px solid color-mix(in srgb, var(--svc-accent, #1f61ab) 65%, #0f1828 35%) !important;
  box-shadow: 0 4px 10px color-mix(in srgb, var(--svc-accent, #1f61ab) 30%, transparent) !important;
}
html[data-theme="light"] .service-item .icon svg {
  fill: #0f1828 !important;
  stroke: #0f1828 !important;
  stroke-width: 0.6 !important;
  stroke-linejoin: round !important;
  stroke-linecap: round !important;
}
html[data-theme="light"] .service-item:hover .icon {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--svc-accent, #1f61ab) 50%, #ffffff),
    color-mix(in srgb, var(--svc-accent, #1f61ab) 25%, #ffffff)) !important;
  border-color: color-mix(in srgb, var(--svc-accent, #1f61ab) 85%, #0f1828 15%) !important;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--svc-accent, #1f61ab) 45%, transparent) !important;
}
html[data-theme="light"] .service-item:hover .icon svg {
  fill: color-mix(in srgb, var(--svc-accent, #1f61ab) 30%, #0f1828 70%) !important;
  stroke: color-mix(in srgb, var(--svc-accent, #1f61ab) 30%, #0f1828 70%) !important;
}

/* ── 11. TIMELINE / MILESTONES ───────────────────────────────────────────── */
/* Exact 1:1 mirror of dark theme, but in light palette.
   Every dark-theme value is mapped to its light-theme equivalent so the
   structure, borders, active state, and top strokes are all preserved —
   just rendered in white/navy/copper instead of dark/white/gold. */

/* Panel: dark used navy radial-gradient. Light uses white→pale-blue with
   matching brand-colour tinted corner glows. */
html[data-theme="light"] .timeline {
  background:
    radial-gradient(circle at 10% 20%, rgba(31, 97, 171, 0.12), transparent 46%),
    radial-gradient(circle at 90% 12%, rgba(201, 100, 57, 0.12), transparent 44%),
    linear-gradient(135deg, #ffffff, #f1f5fb) !important;
  border: 1px solid rgba(15, 24, 40, 0.10) !important;
  color: var(--text-100) !important;
  box-shadow: 0 14px 36px rgba(20, 30, 50, 0.08) !important;
}
/* Inner sheen overlay (dark used white-alpha 0.08→0.02). */
html[data-theme="light"] .timeline::before {
  background: linear-gradient(125deg, rgba(15, 24, 40, 0.06), transparent 35%, rgba(15, 24, 40, 0.02)) !important;
}

html[data-theme="light"] .timeline-track {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
/* Rail base (dark: rgba(255,255,255,0.12)) → light: rgba(15,24,40,0.12). */
html[data-theme="light"] .timeline-track::before {
  background: rgba(15, 24, 40, 0.12) !important;
}
/* Progress (dark: cyan→gold) → light: blue→copper, copper glow. */
html[data-theme="light"] .timeline-track::after {
  background: linear-gradient(90deg, #1f61ab, #c96439) !important;
  filter: drop-shadow(0 0 4px rgba(201, 100, 57, 0.45)) !important;
}

/* Cards (dark: bg rgba(255,255,255,0.02), border rgba(255,255,255,0.06))
   → light: bg rgba(15,24,40,0.02), border rgba(15,24,40,0.06). */
html[data-theme="light"] .timeline-step {
  background: rgba(15, 24, 40, 0.02) !important;
  border: 1px solid rgba(15, 24, 40, 0.06) !important;
  color: var(--text-100) !important;
  box-shadow: none !important;
}
/* Top stroke (dark: gold→cyan at 0.45) → light: copper→blue at 0.45. */
html[data-theme="light"] .timeline-step::before {
  background: linear-gradient(90deg, color-mix(in srgb, #c96439 88%, #1f61ab 12%), transparent 78%) !important;
  opacity: 0.45 !important;
}
/* Active card (dark: gold border, white-alpha glass) → light: copper
   border, navy-alpha glass. */
html[data-theme="light"] .timeline-step.is-active {
  background: linear-gradient(160deg, rgba(15, 24, 40, 0.06), rgba(15, 24, 40, 0.02)) !important;
  border-color: rgba(201, 100, 57, 0.38) !important;
}
/* Headings + body (dark: #e6eef9 / #b5c5de) → light: navy / slate. */
html[data-theme="light"] .timeline-step h3,
html[data-theme="light"] .timeline-step h4 { color: var(--text-100) !important; }
html[data-theme="light"] .timeline-step p  { color: var(--text-300) !important; }
/* Active heading (dark: #edd39f gold) → light: #6a3318 copper. */
html[data-theme="light"] .timeline-step.is-active h3,
html[data-theme="light"] .timeline-step.is-active h4 {
  color: #6a3318 !important;
  text-shadow: 0 0 8px rgba(201, 100, 57, 0.18) !important;
}
html[data-theme="light"] .timeline-step.is-active p { color: var(--text-100) !important; }

html[data-theme="light"] .milestone,
html[data-theme="light"] .milestone-year,
html[data-theme="light"] .vision-card {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(15, 24, 40, 0.08) !important;
  color: var(--text-100) !important;
}

/* ── 12. CTA PANEL ───────────────────────────────────────────────────────── */
html[data-theme="light"] .cta-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(238, 243, 251, 0.82) 60%, rgba(255, 244, 234, 0.86) 100%),
    url("../image/sliders/slider-lg-civil-a.jpg") center/cover !important;
  border: 1px solid rgba(15, 24, 40, 0.08) !important;
  box-shadow: 0 22px 56px rgba(20, 30, 50, 0.10) !important;
  color: var(--text-100) !important;
}
html[data-theme="light"] .cta-panel h2,
html[data-theme="light"] .cta-panel h3 { color: var(--text-100) !important; }
html[data-theme="light"] .cta-panel p { color: var(--text-300) !important; }

/* ── 13. LOGISTICS MARQUEE ───────────────────────────────────────────────── */
html[data-theme="light"] .logistics-marquee {
  background: transparent !important;
}
/* Keep the colorful blue+orange aura behind the lanes */
html[data-theme="light"] .logistics-marquee::before {
  background:
    radial-gradient(circle at 8% 50%, rgba(31, 97, 171, 0.18), transparent 35%),
    radial-gradient(circle at 90% 35%, rgba(201, 100, 57, 0.20), transparent 38%) !important;
  opacity: 0.9 !important;
}
/* Side fades use the light page bg so vehicles fade out at edges */
html[data-theme="light"] .logistics-marquee::after {
  background: linear-gradient(90deg,
    #f5f8fc 0%,
    rgba(245, 248, 252, 0) 8%,
    rgba(245, 248, 252, 0) 92%,
    #f5f8fc 100%) !important;
}

html[data-theme="light"] .marquee-head { color: var(--text-100) !important; }
html[data-theme="light"] .marquee-head h2 { color: var(--text-100) !important; }

html[data-theme="light"] .marquee-mode-toggle {
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(15, 24, 40, 0.14) !important;
  color: var(--text-100) !important;
  box-shadow: 0 4px 12px rgba(20, 30, 50, 0.06) !important;
}
html[data-theme="light"] .marquee-mode-toggle:hover {
  background: linear-gradient(135deg, rgba(201, 100, 57, 0.14), rgba(31, 97, 171, 0.10)) !important;
  border-color: rgba(201, 100, 57, 0.40) !important;
  color: #6a3318 !important;
}
html[data-theme="light"] .marquee-mode-toggle[aria-pressed="true"] {
  border-color: rgba(31, 97, 171, 0.45) !important;
  color: var(--accent-blue) !important;
}

/* Marquee item pills — white card with dark text and a soft shadow so the
   colorful little vehicles inside remain readable on the light page bg */
html[data-theme="light"] .marquee-item {
  background: linear-gradient(145deg, #ffffff, #f4f8fd) !important;
  border: 1px solid rgba(15, 24, 40, 0.12) !important;
  color: var(--text-100) !important;
  box-shadow: 0 6px 16px rgba(20, 30, 50, 0.08) !important;
}
html[data-theme="light"] .marquee-item:hover {
  background: linear-gradient(145deg, #ffffff, #fff4ea) !important;
  border-color: rgba(201, 100, 57, 0.50) !important;
  color: var(--text-100) !important;
  box-shadow: 0 10px 22px rgba(201, 100, 57, 0.18) !important;
}
/* Inner sheen sweep — make it dark instead of white so it shows on white */
html[data-theme="light"] .marquee-item::before {
  background: linear-gradient(115deg, transparent, rgba(15, 24, 40, 0.08), transparent) !important;
}
html[data-theme="light"] .marquee-label {
  color: var(--text-100) !important;
  font-weight: 600 !important;
}

/* Color variants: keep the brand-colored borders visible against white */
html[data-theme="light"] .marquee-item.tanker {
  color: #1a4f8f !important;
  border-color: rgba(31, 97, 171, 0.40) !important;
}
html[data-theme="light"] .marquee-item.chemical {
  color: #136d83 !important;
  border-color: rgba(31, 154, 187, 0.45) !important;
}
html[data-theme="light"] .marquee-item.truck {
  color: #8a4a16 !important;
  border-color: rgba(201, 100, 57, 0.45) !important;
}

/* Vehicle SVG plates — strengthen their gradient borders so they read on white */
html[data-theme="light"] .veh-body,
html[data-theme="light"] .veh-cabin,
html[data-theme="light"] .marquee-item.truck .veh-box,
html[data-theme="light"] .marquee-item.truck .veh-cabin {
  border-color: rgba(15, 24, 40, 0.30) !important;
  box-shadow: 0 1px 2px rgba(15, 24, 40, 0.18) !important;
}
html[data-theme="light"] .veh-wheel {
  border-color: rgba(15, 24, 40, 0.45) !important;
}

/* ── 14. INSIGHTS / NEWS / CONFERENCES ───────────────────────────────────── */
html[data-theme="light"] .news-section,
html[data-theme="light"] .insights-section { background: transparent !important; }

html[data-theme="light"] .news-card,
html[data-theme="light"] .conf-card,
html[data-theme="light"] .conf-strip-grid > .conf-card {
  background: rgba(255, 255, 255, 0.97) !important;
  border-color: rgba(15, 24, 40, 0.08) !important;
  box-shadow: 0 14px 30px rgba(20, 30, 50, 0.07) !important;
  color: var(--text-100) !important;
}
html[data-theme="light"] .news-card h3,
html[data-theme="light"] .news-card h4,
html[data-theme="light"] .conf-card h3,
html[data-theme="light"] .conf-card h4 { color: var(--text-100) !important; }
html[data-theme="light"] .news-card p,
html[data-theme="light"] .conf-card p,
html[data-theme="light"] .conf-card-meta,
html[data-theme="light"] .conf-card-location,
html[data-theme="light"] .conf-card-date,
html[data-theme="light"] .conf-card-time,
html[data-theme="light"] .conf-card-desc { color: var(--text-300) !important; }
html[data-theme="light"] .conf-card-link,
html[data-theme="light"] .news-card a { color: var(--accent-blue) !important; }
html[data-theme="light"] .conf-card-tag {
  background: linear-gradient(135deg, rgba(201, 100, 57, 0.14), rgba(31, 97, 171, 0.12)) !important;
  color: #6a3318 !important;
  border-color: rgba(201, 100, 57, 0.30) !important;
}

html[data-theme="light"] .conf-strip-eyebrow { color: var(--text-300) !important; }
html[data-theme="light"] .conf-strip-cta {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(15, 24, 40, 0.10) !important;
  color: var(--text-100) !important;
}
html[data-theme="light"] .conf-strip-cta:hover {
  background: linear-gradient(135deg, rgba(201, 100, 57, 0.14), rgba(31, 97, 171, 0.12)) !important;
}
html[data-theme="light"] .conf-strip-loading,
html[data-theme="light"] .news-loading { color: var(--text-300) !important; }

html[data-theme="light"] .news-refresh {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(15, 24, 40, 0.10) !important;
  color: var(--text-100) !important;
}
html[data-theme="light"] .news-sub { color: var(--text-300) !important; }

html[data-theme="light"] .news-ticker,
html[data-theme="light"] .news-ticker-track {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(238, 243, 251, 0.95)) !important;
  border-color: rgba(15, 24, 40, 0.08) !important;
  color: var(--text-100) !important;
}

html[data-theme="light"] .skeleton,
html[data-theme="light"] .skeleton-line,
html[data-theme="light"] .skeleton-block {
  background: linear-gradient(90deg, #eef2f8, #ffffff, #eef2f8) !important;
}

html[data-theme="light"] .pager,
html[data-theme="light"] .pager a,
html[data-theme="light"] .pager button,
html[data-theme="light"] .pagination,
html[data-theme="light"] .pagination a,
html[data-theme="light"] .pagination button {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(15, 24, 40, 0.10) !important;
  color: var(--text-100) !important;
}
html[data-theme="light"] .pager .is-active,
html[data-theme="light"] .pagination .is-active,
html[data-theme="light"] .pager [aria-current="page"],
html[data-theme="light"] .pagination [aria-current="page"] {
  background: linear-gradient(135deg, rgba(201, 100, 57, 0.18), rgba(31, 97, 171, 0.16)) !important;
  border-color: rgba(201, 100, 57, 0.40) !important;
  color: #6a3318 !important;
}

html[data-theme="light"] .insight-article,
html[data-theme="light"] .insight-article * { color: var(--text-100); }
html[data-theme="light"] .insight-article p,
html[data-theme="light"] .insight-article li { color: var(--text-300); }
html[data-theme="light"] .insight-breadcrumb,
html[data-theme="light"] .insight-breadcrumb a { color: var(--text-300) !important; }
html[data-theme="light"] .insight-breadcrumb a:hover { color: var(--accent-gold) !important; }

/* ── 15. FORMS / INPUTS ──────────────────────────────────────────────────── */
html[data-theme="light"] input[type="text"],
html[data-theme="light"] input[type="email"],
html[data-theme="light"] input[type="tel"],
html[data-theme="light"] input[type="url"],
html[data-theme="light"] input[type="search"],
html[data-theme="light"] input[type="number"],
html[data-theme="light"] input[type="password"],
html[data-theme="light"] input[type="date"],
html[data-theme="light"] input[type="datetime-local"],
html[data-theme="light"] select,
html[data-theme="light"] textarea {
  background: #ffffff !important;
  border: 1px solid rgba(15, 24, 40, 0.14) !important;
  color: var(--text-100) !important;
}
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder { color: #8794a8 !important; }
html[data-theme="light"] input:focus,
html[data-theme="light"] select:focus,
html[data-theme="light"] textarea:focus {
  border-color: var(--accent-gold) !important;
  box-shadow: 0 0 0 4px rgba(201, 100, 57, 0.14) !important;
  outline: none;
}
html[data-theme="light"] label { color: var(--text-100) !important; }
html[data-theme="light"] .upload-zone {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(15, 24, 40, 0.18) !important;
  color: var(--text-300) !important;
}

/* ── 16. SUITE / CONTACT CARDS ───────────────────────────────────────────── */
html[data-theme="light"] .suite-card,
html[data-theme="light"] .field-full {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(15, 24, 40, 0.08) !important;
  color: var(--text-100) !important;
}

/* ── 17. PORTFOLIO LINKS ─────────────────────────────────────────────────── */
html[data-theme="light"] .portfolio-link {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(15, 24, 40, 0.10) !important;
  color: var(--text-100) !important;
}
html[data-theme="light"] .portfolio-link:hover {
  background: linear-gradient(135deg, rgba(201, 100, 57, 0.12), rgba(31, 97, 171, 0.10)) !important;
}

/* ── 18. STATS / COUNTERS ────────────────────────────────────────────────── */
html[data-theme="light"] .counter,
html[data-theme="light"] .stats-row > * {
  background: linear-gradient(180deg, #ffffff, #f5f8fc) !important;
  border-color: rgba(15, 24, 40, 0.10) !important;
  color: var(--text-100) !important;
  box-shadow: 0 10px 26px rgba(20, 30, 50, 0.08) !important;
}
html[data-theme="light"] .counter:hover {
  border-color: rgba(201, 100, 57, 0.45) !important;
  background: linear-gradient(180deg, #ffffff, #fdf3ee) !important;
  box-shadow: 0 16px 32px rgba(201, 100, 57, 0.14) !important;
}
html[data-theme="light"] .counter strong,
html[data-theme="light"] .counter .num,
html[data-theme="light"] .counter .value {
  color: #6a3318 !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}
html[data-theme="light"] .counter p {
  color: var(--text-100) !important;
  font-weight: 600 !important;
  opacity: 0.92;
}
html[data-theme="light"] .counter span { color: var(--text-300) !important; }

/* ── 19. FOOTER ──────────────────────────────────────────────────────────── */
html[data-theme="light"] .site-footer,
html[data-theme="light"] footer.site-footer,
html[data-theme="light"] footer {
  background: linear-gradient(180deg, #eef3fb 0%, #e3eaf3 100%) !important;
  color: var(--text-100) !important;
  border-top: 1px solid rgba(15, 24, 40, 0.08) !important;
}
html[data-theme="light"] .site-footer * { color: var(--text-100); }
html[data-theme="light"] .site-footer p,
html[data-theme="light"] .site-footer li,
html[data-theme="light"] .site-footer address,
html[data-theme="light"] .site-footer .footer-meta,
html[data-theme="light"] .site-footer small { color: var(--text-300) !important; }
html[data-theme="light"] .site-footer h3,
html[data-theme="light"] .site-footer h4 { color: var(--text-100) !important; }
html[data-theme="light"] .site-footer a { color: var(--text-300) !important; }
html[data-theme="light"] .site-footer a:hover { color: var(--accent-gold) !important; }
html[data-theme="light"] .site-footer .footer-bottom,
html[data-theme="light"] .site-footer .footer-bar {
  border-top: 1px solid rgba(15, 24, 40, 0.10) !important;
  background: rgba(255, 255, 255, 0.5) !important;
}
html[data-theme="light"] .site-footer .social a,
html[data-theme="light"] .site-footer .footer-social a {
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(15, 24, 40, 0.10) !important;
  color: var(--text-100) !important;
}
html[data-theme="light"] .site-footer .social a:hover,
html[data-theme="light"] .site-footer .footer-social a:hover {
  background: var(--accent-gold) !important;
  color: #ffffff !important;
}

/* ── 20. FLOATING ACTIONS ────────────────────────────────────────────────── */
/* WhatsApp floating chat preview is intentionally left untouched in light theme
   so its appearance matches the dark-theme design (per user request). */

html[data-theme="light"] .scroll-top,
html[data-theme="light"] .scroll-to-top {
  background: #ffffff !important;
  border: 1px solid rgba(15, 24, 40, 0.10) !important;
  color: var(--text-100) !important;
  box-shadow: 0 12px 28px rgba(20, 30, 50, 0.14) !important;
}
html[data-theme="light"] .scroll-top:hover,
html[data-theme="light"] .scroll-to-top:hover {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-bright)) !important;
  color: #ffffff !important;
}

/* ── 21. SECTION DIVIDERS / SHEEN ────────────────────────────────────────── */
html[data-theme="light"] .section-divider,
html[data-theme="light"] hr {
  background: linear-gradient(90deg, transparent, rgba(15, 24, 40, 0.18), transparent) !important;
  border: none !important;
}

/* ── 22. GLOBAL TEXT FALLBACKS ───────────────────────────────────────────── */
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4,
html[data-theme="light"] h5,
html[data-theme="light"] h6 { color: var(--text-100); }

/* ── 23. MODALS ──────────────────────────────────────────────────────────── */
html[data-theme="light"] .modal,
html[data-theme="light"] .modal-content,
html[data-theme="light"] .quote-modal,
html[data-theme="light"] .quote-modal-content,
html[data-theme="light"] .spec-modal,
html[data-theme="light"] .spec-modal-content {
  background: #ffffff !important;
  color: var(--text-100) !important;
  border: 1px solid rgba(15, 24, 40, 0.10) !important;
  box-shadow: 0 30px 70px rgba(20, 30, 50, 0.20) !important;
}
html[data-theme="light"] .modal-backdrop,
html[data-theme="light"] .modal-overlay {
  background: rgba(15, 24, 40, 0.45) !important;
}
html[data-theme="light"] .modal h2,
html[data-theme="light"] .modal h3,
html[data-theme="light"] .modal h4 { color: var(--text-100) !important; }
html[data-theme="light"] .modal p,
html[data-theme="light"] .modal li,
html[data-theme="light"] .modal label { color: var(--text-300) !important; }

/* ── 24. RESPONSIVE FINE-TUNES ───────────────────────────────────────────── */
@media (max-width: 768px) {
  html[data-theme="light"] body {
    background:
      radial-gradient(circle at 100% -10%, rgba(201, 100, 57, 0.06), transparent 50%),
      linear-gradient(170deg, #f7faff 0%, #eef3fb 100%) !important;
  }
}

/* =============================================================================
 * 24b. VISIBILITY FIXES — hard-coded dark surfaces in main.css
 * These selectors target specific dark gradients/colors that survive the
 * cascade because they're written with literal hex/rgba values.
 * ========================================================================== */

/* --- Hero headline gradient (was #f8fbff → #d4e7ff → premium = invisible) -- */
html[data-theme="light"] .hero h1 {
  background: linear-gradient(95deg, #0f1828 0%, #1f3a5f 40%, var(--accent-gold) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  text-shadow: none !important;
}
html[data-theme="light"] .hero p { color: var(--text-300) !important; }

/* --- Section backgrounds: ensure none of them paint a dark gradient ------ */
html[data-theme="light"] section,
html[data-theme="light"] main > section,
html[data-theme="light"] .about,
html[data-theme="light"] .industries,
html[data-theme="light"] .products,
html[data-theme="light"] .services,
html[data-theme="light"] .insights,
html[data-theme="light"] .insights-section,
html[data-theme="light"] .news-section,
html[data-theme="light"] .contact { background: transparent !important; }

/* --- Cards: catch-all dark linear-gradient surfaces ---------------------- */
html[data-theme="light"] .industry-card,
html[data-theme="light"] .industry-card::before,
html[data-theme="light"] .product-card,
html[data-theme="light"] .product-card::before,
html[data-theme="light"] .service-category,
html[data-theme="light"] .service-category::before,
html[data-theme="light"] .service-item,
html[data-theme="light"] .service-item::before,
html[data-theme="light"] .vision-card,
html[data-theme="light"] .vision-card::before,
html[data-theme="light"] .milestone,
html[data-theme="light"] .milestone::before,
html[data-theme="light"] .tracking-step,
html[data-theme="light"] .conf-card,
html[data-theme="light"] .news-card {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(15, 24, 40, 0.08) !important;
  color: var(--text-100) !important;
}
/* Pseudo-elements act as decorative tints, not full surfaces */
html[data-theme="light"] .industry-card::before,
html[data-theme="light"] .product-card::before,
html[data-theme="light"] .service-category::before,
html[data-theme="light"] .service-item::before,
html[data-theme="light"] .vision-card::before,
html[data-theme="light"] .milestone::before {
  background: linear-gradient(135deg, rgba(201, 100, 57, 0.08), rgba(31, 97, 171, 0.06)) !important;
  opacity: 1 !important;
}

/* --- About panels: lines 1426, 1441, 1503, 1517 ------------------------- */
html[data-theme="light"] .about-panel,
html[data-theme="light"] .about-stage,
html[data-theme="light"] .about-stage-card,
html[data-theme="light"] .about-status-card,
html[data-theme="light"] .about-step,
html[data-theme="light"] .about-step-card,
html[data-theme="light"] .about-visual,
html[data-theme="light"] .about-visual-status,
html[data-theme="light"] .about-principle,
html[data-theme="light"] .about-mini-metric,
html[data-theme="light"] .about-milestone-item {
  background: linear-gradient(145deg, #ffffff 0%, #f4f8fd 100%) !important;
  border-color: rgba(15, 24, 40, 0.08) !important;
  color: var(--text-100) !important;
}
html[data-theme="light"] .about-panel *,
html[data-theme="light"] .about-stage *,
html[data-theme="light"] .about-status-card *,
html[data-theme="light"] .about-step *,
html[data-theme="light"] .about-visual-status * { color: inherit; }
html[data-theme="light"] .about-panel p,
html[data-theme="light"] .about-stage p,
html[data-theme="light"] .about-step p,
html[data-theme="light"] .about-status-card p,
html[data-theme="light"] .about-status-card span,
html[data-theme="light"] .about-step span,
html[data-theme="light"] .about-stage-label,
html[data-theme="light"] .about-mini-metric span,
html[data-theme="light"] .about-milestone-item span { color: var(--text-300) !important; }
html[data-theme="light"] .about-mini-metric strong,
html[data-theme="light"] .about-milestone-item strong { color: var(--text-100) !important; }

/* --- Hero info / chip / float / metrics: catch any dark inner text ------ */
html[data-theme="light"] .hero-info *,
html[data-theme="light"] .hero-chip *,
html[data-theme="light"] .hero-float *,
html[data-theme="light"] .metric * { color: inherit; }

/* --- News tabs / insights tabs ------------------------------------------ */
html[data-theme="light"] .news-tab {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(15, 24, 40, 0.10) !important;
  color: var(--text-300) !important;
}
html[data-theme="light"] .news-tab:hover {
  color: var(--text-100) !important;
  border-color: rgba(201, 100, 57, 0.45) !important;
}
html[data-theme="light"] .news-tab.is-active {
  background: linear-gradient(135deg, rgba(201, 100, 57, 0.18), rgba(31, 97, 171, 0.16)) !important;
  border-color: rgba(201, 100, 57, 0.42) !important;
  color: #6a3318 !important;
}

/* --- Tracking / onboarding / wizard steps ------------------------------- */
html[data-theme="light"] .tracking-step,
html[data-theme="light"] .onboarding-step,
html[data-theme="light"] .onboarding-steps button {
  background: #ffffff !important;
  border: 1px solid rgba(15, 24, 40, 0.10) !important;
  color: var(--text-100) !important;
}
html[data-theme="light"] .tracking-step.is-active,
html[data-theme="light"] .onboarding-steps button.is-active {
  background: linear-gradient(135deg, rgba(201, 100, 57, 0.16), rgba(31, 97, 171, 0.14)) !important;
  border-color: rgba(201, 100, 57, 0.42) !important;
  color: #6a3318 !important;
}

/* --- Timeline active step: keep accent but readable -------------------- */
html[data-theme="light"] .timeline-step.is-active {
  background: linear-gradient(135deg, #ffffff, #fff7ee) !important;
  border-color: rgba(201, 100, 57, 0.42) !important;
}
html[data-theme="light"] .timeline-step.is-active h3,
html[data-theme="light"] .timeline-step.is-active h4 { color: var(--accent-gold) !important; }
html[data-theme="light"] .timeline-step.is-active p   { color: var(--text-300) !important; }

/* --- Insight detail page: hero stats / breadcrumbs / sponsor badges ---- */
html[data-theme="light"] .insight-hero,
html[data-theme="light"] .insight-hero-stats,
html[data-theme="light"] .insight-conf-card,
html[data-theme="light"] .more-conf-card {
  background: #ffffff !important;
  border: 1px solid rgba(15, 24, 40, 0.08) !important;
  color: var(--text-100) !important;
  box-shadow: 0 14px 30px rgba(20, 30, 50, 0.07) !important;
}
html[data-theme="light"] .insight-hero-stats strong { color: var(--accent-gold) !important; }
html[data-theme="light"] .insight-conf-where i,
html[data-theme="light"] .insight-conf-badge-sponsor,
html[data-theme="light"] .more-conf-badge-sponsor {
  color: #8a4a16 !important;
  background: rgba(201, 100, 57, 0.14) !important;
  border-color: rgba(201, 100, 57, 0.35) !important;
}
html[data-theme="light"] .more-conf-badge-track {
  background: rgba(15, 24, 40, 0.05) !important;
  color: var(--text-300) !important;
  border-color: rgba(15, 24, 40, 0.12) !important;
}

/* --- Conference slider page dots / mcp pages --------------------------- */
html[data-theme="light"] .mcp-page,
html[data-theme="light"] .conf-dot {
  background: rgba(15, 24, 40, 0.10) !important;
  color: var(--text-300) !important;
}
html[data-theme="light"] .mcp-page.is-active,
html[data-theme="light"] .conf-dot.is-active {
  background: var(--accent-gold) !important;
  color: #ffffff !important;
}

/* --- Header bar: transparent at top, glass-white when scrolled --------- */
html[data-theme="light"] .header {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid transparent !important;
  box-shadow: none !important;
}
html[data-theme="light"] .header.scrolled {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(16px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
  border-bottom: 1px solid rgba(15, 24, 40, 0.08) !important;
  box-shadow: 0 8px 24px rgba(20, 30, 50, 0.06) !important;
}
html[data-theme="light"] .nav-links a { color: var(--text-100) !important; }

/* --- Hero scene side fades (line 1391 dark mask) ----------------------- */
html[data-theme="light"] .hero-scene::before,
html[data-theme="light"] .hero-scene::after {
  background: linear-gradient(90deg,
    rgba(247, 250, 255, 0.96),
    rgba(247, 250, 255, 0) 10%,
    rgba(247, 250, 255, 0) 90%,
    rgba(247, 250, 255, 0.96)) !important;
}

/* --- Generic catch-all: any element styled with dark text-on-dark ------ */
html[data-theme="light"] [style*="color: #fff"],
html[data-theme="light"] [style*="color:#fff"],
html[data-theme="light"] [style*="color: white"] { color: inherit !important; }

/* --- Buttons primary -- ensure readable -------------------------------- */
html[data-theme="light"] .btn-primary {
  color: #ffffff !important;
}

/* --- Table-like rows / lists used inside cards ------------------------- */
html[data-theme="light"] .industry-card li,
html[data-theme="light"] .product-card li,
html[data-theme="light"] .service-category li,
html[data-theme="light"] .service-item li,
html[data-theme="light"] .timeline-step li,
html[data-theme="light"] .milestone li,
html[data-theme="light"] .vision-card li {
  color: var(--text-300) !important;
}
html[data-theme="light"] .industry-card li::marker,
html[data-theme="light"] .product-card li::marker,
html[data-theme="light"] .service-item li::marker { color: var(--accent-gold) !important; }

/* --- Scrollbar for whole page ------------------------------------------ */
html[data-theme="light"] ::-webkit-scrollbar { width: 12px; height: 12px; }
html[data-theme="light"] ::-webkit-scrollbar-track { background: #eef2f8; }
html[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-gold), #b85a30);
  border-radius: 999px;
  border: 3px solid #eef2f8;
}

/* =============================================================================
 * 25. THEME TOGGLE BUTTON
 * Works in both themes (the button itself stays visible regardless of theme).
 * ========================================================================== */
.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: 6px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffd9b8;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }

html[data-theme="light"] .theme-toggle {
  background: rgba(15, 24, 40, 0.04);
  border: 1px solid rgba(15, 24, 40, 0.14);
  color: var(--accent-gold);
}
html[data-theme="light"] .theme-toggle:hover {
  background: rgba(201, 100, 57, 0.12);
  color: #6a3318;
}
html[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Subtle pulse on click */
.theme-toggle:active svg { transform: scale(0.85) rotate(20deg); }

@media (max-width: 880px) {
  .theme-toggle {
    width: 38px;
    height: 38px;
    margin-left: 4px;
  }
}

/* =============================================================================
 * 26. COMPREHENSIVE VISIBILITY SWEEP
 * Covers every remaining dark surface enumerated in main.css:
 *   .conf-card-thumb, .conf-slider, .insight-* family, .more-conf-* family,
 *   .pa-card, .pa-visual, .product-action, .product-media, .calc-result,
 *   .toast, .upload-zone, .wa-preview-*, .marquee-*, .news-*, footer parts,
 *   .icon, .site-spotlight, .footer-shimmer, .lottie-logistics, .veh-*,
 *   .sk-line skeletons, .scroll-progress.
 * ========================================================================== */

html[data-theme="light"] .conf-card-thumb,
html[data-theme="light"] .insight-article-thumb,
html[data-theme="light"] .product-media,
html[data-theme="light"] .pa-visual,
html[data-theme="light"] .lottie-logistics {
  background: linear-gradient(160deg, #f4f8fd, #e3eaf3) !important;
}

/* Products in Action — `paSky*` SVG gradients: light sky blue → light orange
   (only in light theme; dark theme keeps the original deep-navy sky). */
html[data-theme="light"] .pa-visual svg linearGradient[id^="paSky"] stop:first-child { stop-color: #cfeaff !important; }
html[data-theme="light"] .pa-visual svg linearGradient[id^="paSky"] stop:last-child  { stop-color: #ffd9b5 !important; }

html[data-theme="light"] .conf-slider,
html[data-theme="light"] .conf-strip,
html[data-theme="light"] .insight-conf,
html[data-theme="light"] .insight-conf-upcoming,
html[data-theme="light"] .more-conf-upcoming,
html[data-theme="light"] .more-conf-card,
html[data-theme="light"] .insight-cta,
html[data-theme="light"] .pa-card,
html[data-theme="light"] .product-action,
html[data-theme="light"] .calc-result,
html[data-theme="light"] .onboarding-strip,
html[data-theme="light"] .news-meta,
html[data-theme="light"] .news-refresh,
html[data-theme="light"] .insight-article,
html[data-theme="light"] .insight-article-cat,
html[data-theme="light"] .insight-conf-link,
html[data-theme="light"] .news-cat-pill,
html[data-theme="light"] .more-conf-badge,
html[data-theme="light"] .insight-conf-badge,
html[data-theme="light"] .conf-slider-arrow,
html[data-theme="light"] .news-viewall-link {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(15, 24, 40, 0.10) !important;
  color: var(--text-100) !important;
  box-shadow: 0 8px 22px rgba(20, 30, 50, 0.06) !important;
}

html[data-theme="light"] .conf-slider-arrow:hover,
html[data-theme="light"] .news-viewall-link:hover,
html[data-theme="light"] .more-conf-card:hover {
  background: linear-gradient(135deg, rgba(201, 100, 57, 0.14), rgba(31, 97, 171, 0.10)) !important;
  border-color: rgba(201, 100, 57, 0.40) !important;
  color: #6a3318 !important;
}

html[data-theme="light"] .insight-article *,
html[data-theme="light"] .insight-conf *,
html[data-theme="light"] .insight-cta *,
html[data-theme="light"] .more-conf-card *,
html[data-theme="light"] .pa-card *,
html[data-theme="light"] .product-action *,
html[data-theme="light"] .calc-result * { color: inherit; }
html[data-theme="light"] .insight-article p,
html[data-theme="light"] .insight-article li,
html[data-theme="light"] .more-conf-card p,
html[data-theme="light"] .more-conf-card span,
html[data-theme="light"] .pa-card p,
html[data-theme="light"] .product-action p,
html[data-theme="light"] .calc-result span,
html[data-theme="light"] .calc-result p { color: var(--text-300) !important; }

/* WhatsApp floating widget is intentionally NOT overridden in light theme
   — it keeps the original dark-theme styling from main.css per user request. */

/* Toasts */
html[data-theme="light"] .toast {
  background: #ffffff !important;
  color: var(--text-100) !important;
  border: 1px solid rgba(15, 24, 40, 0.10) !important;
  box-shadow: 0 18px 42px rgba(20, 30, 50, 0.18) !important;
}

/* Upload zone drag state */
html[data-theme="light"] .upload-zone.is-dragover {
  background: rgba(201, 100, 57, 0.06) !important;
  border-color: var(--accent-gold) !important;
  color: var(--text-100) !important;
}

/* Skeleton loaders */
html[data-theme="light"] .sk-line {
  background: linear-gradient(90deg, #eef2f8, #ffffff, #eef2f8) !important;
}

/* Decorative icons / spotlights / vehicles in hero — soften only */
html[data-theme="light"] .icon {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(15, 24, 40, 0.10) !important;
  color: var(--accent-gold) !important;
}
html[data-theme="light"] .site-spotlight,
html[data-theme="light"] .footer-shimmer,
html[data-theme="light"] .scroll-progress { opacity: 0.5; }

/* Footer bottom strip */
html[data-theme="light"] .footer-bottom {
  background: rgba(255, 255, 255, 0.6) !important;
  border-top: 1px solid rgba(15, 24, 40, 0.10) !important;
  color: var(--text-300) !important;
}

/* About visual chips (interactive aboutfocus chips) */
html[data-theme="light"] .about-visual-chip {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(15, 24, 40, 0.10) !important;
  color: var(--text-100) !important;
}
html[data-theme="light"] .about-visual-chip:hover {
  background: rgba(15, 24, 40, 0.04) !important;
}
html[data-theme="light"] .about-visual-chip.is-active {
  background: linear-gradient(135deg, rgba(201, 100, 57, 0.18), rgba(31, 97, 171, 0.16)) !important;
  border-color: rgba(201, 100, 57, 0.40) !important;
  color: #6a3318 !important;
}

/* Hero visual / photo plate — keep the slider image visible with a soft
   light-tinted overlay (instead of the dark navy wash used in dark theme) */
html[data-theme="light"] .hero-visual {
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.32), rgba(238, 244, 252, 0.20)),
    url("../image/sliders/slider-lg-oil-a.jpg") center/cover !important;
  border-color: rgba(15, 24, 40, 0.10) !important;
  box-shadow: 0 22px 56px rgba(20, 30, 50, 0.16) !important;
}
/* Soft inner ring for definition on light bg */
html[data-theme="light"] .hero-visual::before {
  background: rgba(31, 97, 171, 0.30) !important;
}
html[data-theme="light"] .hero-visual::after {
  background: rgba(201, 100, 57, 0.32) !important;
}

/* Conf card tag (was dark) */
html[data-theme="light"] .conf-card-tag {
  background: rgba(201, 100, 57, 0.14) !important;
  color: #6a3318 !important;
  border: 1px solid rgba(201, 100, 57, 0.32) !important;
}

/* About visual status / KPIs / Mini metrics: ensure inner highlights readable */
html[data-theme="light"] .about-visual-status::before,
html[data-theme="light"] .about-visual-status::after { opacity: 0.4 !important; }

/* Headline gradient text inside cards/sections sometimes uses bg-clip:text */
html[data-theme="light"] .card-title,
html[data-theme="light"] .section-title,
html[data-theme="light"] .stat-title,
html[data-theme="light"] [class*="-title"] {
  -webkit-text-fill-color: currentColor;
}

/* Force any element where text becomes invisible due to bg-clip:text */
html[data-theme="light"] .industry-card h3,
html[data-theme="light"] .product-card h3,
html[data-theme="light"] .service-category h3,
html[data-theme="light"] .service-item h4,
html[data-theme="light"] .conf-card h3,
html[data-theme="light"] .news-card h3,
html[data-theme="light"] .insight-hero h1,
html[data-theme="light"] .insight-hero h2,
html[data-theme="light"] .cta-panel h2,
html[data-theme="light"] .cta-panel h3 {
  background: none !important;
  -webkit-text-fill-color: var(--text-100) !important;
  color: var(--text-100) !important;
}

/* Hero left/right scene bands (decorative SVGs) — dim, don't recolor */
html[data-theme="light"] .hero-scene-band { opacity: 0.85; }

/* Anchors inside cards */
html[data-theme="light"] .industry-card a,
html[data-theme="light"] .product-card a,
html[data-theme="light"] .service-category a,
html[data-theme="light"] .service-item a,
html[data-theme="light"] .conf-card a,
html[data-theme="light"] .news-card a { color: var(--accent-blue) !important; }
html[data-theme="light"] .industry-card a:hover,
html[data-theme="light"] .product-card a:hover,
html[data-theme="light"] .service-category a:hover,
html[data-theme="light"] .service-item a:hover,
html[data-theme="light"] .conf-card a:hover,
html[data-theme="light"] .news-card a:hover { color: var(--accent-gold) !important; }

/* Make sure ALL paragraph / span text inside cards/sections is readable */
html[data-theme="light"] .industry-card,
html[data-theme="light"] .industry-card p,
html[data-theme="light"] .industry-card span,
html[data-theme="light"] .product-card,
html[data-theme="light"] .product-card p,
html[data-theme="light"] .product-card span,
html[data-theme="light"] .service-category,
html[data-theme="light"] .service-category p,
html[data-theme="light"] .service-category span,
html[data-theme="light"] .service-item,
html[data-theme="light"] .service-item p,
html[data-theme="light"] .service-item span,
html[data-theme="light"] .conf-card p,
html[data-theme="light"] .conf-card span,
html[data-theme="light"] .news-card p,
html[data-theme="light"] .news-card span,
html[data-theme="light"] .timeline-step p,
html[data-theme="light"] .timeline-step span,
html[data-theme="light"] .milestone p,
html[data-theme="light"] .milestone span,
html[data-theme="light"] .vision-card p,
html[data-theme="light"] .vision-card span { color: var(--text-300) !important; }

/* Headings keep dark primary */
html[data-theme="light"] .industry-card h2,
html[data-theme="light"] .industry-card h3,
html[data-theme="light"] .industry-card h4,
html[data-theme="light"] .product-card h2,
html[data-theme="light"] .product-card h3,
html[data-theme="light"] .product-card h4,
html[data-theme="light"] .service-category h2,
html[data-theme="light"] .service-category h3,
html[data-theme="light"] .service-item h2,
html[data-theme="light"] .service-item h3,
html[data-theme="light"] .service-item h4,
html[data-theme="light"] .conf-card h2,
html[data-theme="light"] .conf-card h3,
html[data-theme="light"] .conf-card h4,
html[data-theme="light"] .news-card h2,
html[data-theme="light"] .news-card h3,
html[data-theme="light"] .news-card h4,
html[data-theme="light"] .timeline-step h2,
html[data-theme="light"] .timeline-step h3,
html[data-theme="light"] .timeline-step h4 { color: var(--text-100) !important; }

/* =============================================================================
 * end of 26.
 * ========================================================================== */


/* =============================================================================
 * 27. PRODUCTS IN ACTION — compact card + single-line tags (both themes)
 * ========================================================================== */
/* Tighter card padding / radius and slimmer visual area */
.pa-card {
  border-radius: 12px !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22) !important;
}
.pa-visual { aspect-ratio: 240 / 110 !important; }
.pa-body   { padding: 0.7rem 0.78rem 0.78rem !important; }
.pa-body h3 {
  margin: 0 0 0.18rem !important;
  font-size: 0.94rem !important;
  gap: 0.32rem !important;
}
.pa-body h3 span {
  font-size: 0.62rem !important;
  letter-spacing: 0.06em !important;
}
.pa-body p {
  margin: 0 0 0.4rem !important;
  font-size: 0.78rem !important;
  line-height: 1.38 !important;
  /* Clamp to two lines so the card stays compact */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Single-line tag list — clean overflow, no scroll/mask (those caused
   the right-edge pills to visually overlap the card edge). */
.pa-tags {
  flex-wrap: nowrap !important;
  white-space: nowrap;
  overflow: hidden;
  gap: 0.28rem !important;
  min-width: 0;
}
.pa-tags li {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 0.6rem !important;
  padding: 0.2rem 0.46rem !important;
  letter-spacing: 0.02em !important;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Light-theme tag pills (override dark blue translucent fill) */
html[data-theme="light"] .pa-tags li {
  background: rgba(31, 97, 171, 0.10) !important;
  border: 1px solid rgba(31, 97, 171, 0.28) !important;
  color: #1a4f8f !important;
}

/* ==========================================================================
   28. CONFERENCE CARDS — compact, beautiful, animated (both themes)
   --------------------------------------------------------------------------
   Tightens padding, shrinks thumb, adds entrance stagger + shimmer hover
   and a "Recently completed" pulsing badge for fresh events.
   ========================================================================== */
.conf-strip-grid { gap: 0.85rem !important; }

.conf-card {
  padding: 0.85rem 0.85rem 0.85rem !important;
  gap: 0.32rem !important;
  border-radius: 14px !important;
  transform: translateY(14px);
  opacity: 0;
  animation: confCardIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: var(--i, 0ms);
  will-change: transform, opacity;
}
@keyframes confCardIn {
  to { transform: translateY(0); opacity: 1; }
}

.conf-card-thumb {
  width: calc(100% + 1.7rem) !important;
  margin: -0.85rem -0.85rem 0.6rem !important;
  aspect-ratio: 16 / 9 !important;
}
/* Subtle scan line over the thumb */
.conf-card-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(168, 242, 251, 0.18) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  mix-blend-mode: overlay;
}
.conf-card:hover .conf-card-thumb::after { transform: translateX(110%); }

.conf-card-tag {
  font-size: 0.58rem !important;
  padding: 0.2rem 0.5rem !important;
  letter-spacing: 0.12em !important;
}

.conf-card h4 {
  font-size: 0.88rem !important;
  line-height: 1.28 !important;
  margin: 0.05rem 0 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.conf-card-meta {
  font-size: 0.7rem !important;
  margin: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.conf-card-location {
  font-size: 0.72rem !important;
  margin: 0.15rem 0 0.1rem !important;
}
.conf-card-date {
  font-size: 0.7rem !important;
  margin: 0.1rem 0 0.25rem !important;
  gap: 6px 10px !important;
}
.conf-card-desc {
  font-size: 0.74rem !important;
  line-height: 1.42 !important;
  margin: 0.15rem 0 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.conf-card-link {
  font-size: 0.72rem !important;
  padding-top: 0.3rem !important;
  position: relative;
  align-self: flex-start;
}
.conf-card-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.32s ease;
}
.conf-card:hover .conf-card-link::after { width: 100%; }

/* "Recently completed" pulsing badge on the thumb */
.conf-card-fresh {
  position: absolute;
  top: 8px; right: 8px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(135deg, #1f9d55, #25b35e);
  box-shadow: 0 6px 16px rgba(31, 157, 85, 0.45);
  z-index: 2;
  pointer-events: none;
  animation: confFreshIn 0.5s ease 0.4s both;
}
@keyframes confFreshIn {
  from { transform: translateY(-6px) scale(0.9); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.conf-card-fresh-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.65);
  animation: confFreshPulse 1.6s ease-in-out infinite;
}
@keyframes confFreshPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.65); }
  50%      { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
}
/* Highlight ring on a fresh card */
.conf-card--fresh {
  border-color: rgba(31, 157, 85, 0.40) !important;
}
.conf-card--fresh:hover {
  border-color: rgba(31, 157, 85, 0.65) !important;
  box-shadow: 0 18px 40px rgba(31, 157, 85, 0.22) !important;
}

/* Light-theme conf-card surface */
html[data-theme="light"] .conf-card {
  background: linear-gradient(180deg, #ffffff, #f5f8fc) !important;
  border: 1px solid rgba(15, 24, 40, 0.08) !important;
  color: var(--text-100) !important;
  box-shadow: 0 8px 22px rgba(20, 30, 50, 0.06) !important;
}
html[data-theme="light"] .conf-card:hover {
  border-color: rgba(201, 100, 57, 0.40) !important;
  box-shadow: 0 18px 36px rgba(201, 100, 57, 0.14) !important;
}
html[data-theme="light"] .conf-card h4 { color: var(--text-100) !important; }
html[data-theme="light"] .conf-card-meta { color: var(--text-300) !important; }
html[data-theme="light"] .conf-card-desc { color: var(--text-300) !important; }
html[data-theme="light"] .conf-card-location { color: var(--text-300) !important; }
html[data-theme="light"] .conf-card-date { color: #6a3318 !important; }
html[data-theme="light"] .conf-card-time { color: var(--text-300) !important; }
html[data-theme="light"] .conf-card-tag {
  background: rgba(201, 100, 57, 0.10) !important;
  border-color: rgba(201, 100, 57, 0.30) !important;
  color: #6a3318 !important;
}
html[data-theme="light"] .conf-card-link { color: #1f61ab !important; }
html[data-theme="light"] .conf-card-thumb {
  background: linear-gradient(135deg, rgba(31, 97, 171, 0.10), rgba(201, 100, 57, 0.08)) !important;
  border-bottom: 1px solid rgba(15, 24, 40, 0.06) !important;
}
html[data-theme="light"] .conf-card-thumb-fallback { color: rgba(15, 24, 40, 0.55) !important; }

/* ============================================================
   29. NEWS MARQUEE — colorful, beautiful, theme-aware
   ============================================================
   Goals:
   - Both themes: rotating gradient border, glowing brand-coloured
     pills, alternating dot colours, smooth edge fades.
   - Light theme: visible against pale backgrounds (no opaque white
     wash that hid the headlines).
   - Dark theme: richer copper/blue/teal accents with soft glow.
   - All overrides are CSS-only and respect prefers-reduced-motion.
============================================================ */

/* ---- Shared structure (both themes) ---- */
.news-marquee {
  position: relative !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  padding: 0.6rem 0 !important;
  background-clip: padding-box !important;
  isolation: isolate;
  overflow: hidden !important;
}
/* Animated gradient ring sits behind the bar */
.news-marquee::before,
.news-marquee::after {
  z-index: 2;
}
.news-marquee > .news-marquee-track {
  position: relative;
  z-index: 1;
}
.news-marquee::before {
  /* Note: ::before/::after are also used as edge-fade gradients in
     main.css. We keep those, just retint per theme below. */
}

/* Decorative animated gradient ring via outline element */
.news-marquee {
  background-image: linear-gradient(var(--news-bar-bg, rgba(0,0,0,0.32)), var(--news-bar-bg, rgba(0,0,0,0.32))),
                    linear-gradient(90deg,
                      #1f61ab 0%,
                      #2aa0c9 25%,
                      #c96439 50%,
                      #e8a05a 75%,
                      #1f61ab 100%) !important;
  background-origin: border-box !important;
  background-clip: padding-box, border-box !important;
  background-size: auto, 300% 100% !important;
  animation: newsMarqueeRing 12s linear infinite;
}
@keyframes newsMarqueeRing {
  from { background-position: 0 0, 0% 50%; }
  to   { background-position: 0 0, 300% 50%; }
}

/* Pills: gradient chip with shimmer dot */
.news-marquee-track {
  gap: 1.6rem !important;
  padding: 0 1rem;
}
.news-marquee-track span {
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  padding: 0.18rem 0.7rem 0.18rem 0.55rem !important;
  border-radius: 999px !important;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.news-marquee-track span:hover {
  transform: translateY(-1px);
}
/* Cycle dot colours so each pill feels distinct */
.news-marquee-track span:nth-child(4n+1)::before { background: #c96439 !important; box-shadow: 0 0 8px rgba(201,100,57,0.65) !important; }
.news-marquee-track span:nth-child(4n+2)::before { background: #2aa0c9 !important; box-shadow: 0 0 8px rgba(42,160,201,0.65) !important; }
.news-marquee-track span:nth-child(4n+3)::before { background: #e8a05a !important; box-shadow: 0 0 8px rgba(232,160,90,0.65) !important; }
.news-marquee-track span:nth-child(4n)::before   { background: #1f61ab !important; box-shadow: 0 0 8px rgba(31,97,171,0.65) !important; }
.news-marquee-track span::before {
  width: 8px !important;
  height: 8px !important;
  animation: newsDotPulse 2s ease-in-out infinite;
}
@keyframes newsDotPulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.35); opacity: 0.75; }
}

/* ---- Dark theme (default) ---- */
html:not([data-theme="light"]) .news-marquee {
  --news-bar-bg: linear-gradient(90deg, rgba(8,15,30,0.92), rgba(15,28,52,0.88));
  background-image: var(--news-bar-bg),
                    linear-gradient(90deg, #1f61ab, #2aa0c9, #c96439, #e8a05a, #1f61ab) !important;
  box-shadow: 0 10px 28px rgba(0,0,0,0.45),
              inset 0 1px 0 rgba(255,255,255,0.06) !important;
}
html:not([data-theme="light"]) .news-marquee::before {
  background: linear-gradient(90deg, rgba(5,11,20,0.95), transparent) !important;
}
html:not([data-theme="light"]) .news-marquee::after {
  background: linear-gradient(270deg, rgba(5,11,20,0.95), transparent) !important;
}
html:not([data-theme="light"]) .news-marquee-track span {
  color: #e6eef9 !important;
  background: linear-gradient(135deg, rgba(31,97,171,0.18), rgba(201,100,57,0.14)) !important;
  border-color: rgba(255,255,255,0.08);
}
html:not([data-theme="light"]) .news-marquee-track span:hover {
  background: linear-gradient(135deg, rgba(31,97,171,0.32), rgba(201,100,57,0.22)) !important;
  border-color: rgba(232,160,90,0.45);
  box-shadow: 0 6px 16px rgba(201,100,57,0.22);
}

/* ---- Light theme ---- */
html[data-theme="light"] .news-marquee {
  --news-bar-bg: linear-gradient(90deg, #ffffff, #eef4fb);
  background-image: var(--news-bar-bg),
                    linear-gradient(90deg, #1f61ab, #2aa0c9, #c96439, #e8a05a, #1f61ab) !important;
  box-shadow: 0 10px 26px rgba(20,30,50,0.10),
              inset 0 1px 0 rgba(255,255,255,0.9) !important;
}
html[data-theme="light"] .news-marquee::before {
  background: linear-gradient(90deg, rgba(255,255,255,0.95), transparent) !important;
}
html[data-theme="light"] .news-marquee::after {
  background: linear-gradient(270deg, rgba(255,255,255,0.95), transparent) !important;
}
html[data-theme="light"] .news-marquee-track span {
  color: #0f1828 !important;
  background: linear-gradient(135deg, rgba(31,97,171,0.10), rgba(201,100,57,0.10)) !important;
  border-color: rgba(15,24,40,0.10);
}
html[data-theme="light"] .news-marquee-track span:hover {
  background: linear-gradient(135deg, rgba(31,97,171,0.18), rgba(201,100,57,0.18)) !important;
  border-color: rgba(201,100,57,0.40);
  color: #6a3318 !important;
  box-shadow: 0 6px 16px rgba(201,100,57,0.16);
}

@media (prefers-reduced-motion: reduce) {
  .news-marquee { animation: none !important; }
  .news-marquee-track span::before { animation: none !important; }
}

/* ============================================================
   30. CONTACT SECTION — light-theme fix + polish
   ============================================================
   Issue: #contact .contact-card uses a dark navy gradient with
   pale text in main.css. In light theme that produced washed-out,
   barely visible cards. Override surface + text + accents.
============================================================ */
html[data-theme="light"] #contact::before {
  background: radial-gradient(circle at 20% 50%, rgba(31,97,171,0.10), transparent 60%) !important;
}
html[data-theme="light"] #contact .contact-card {
  background: linear-gradient(158deg, #ffffff 0%, #f5f8fc 100%) !important;
  border: 1px solid rgba(15,24,40,0.10) !important;
  box-shadow: 0 14px 30px rgba(20,30,50,0.08) !important;
  color: var(--text-100) !important;
}
html[data-theme="light"] #contact .contact-card::before {
  background: linear-gradient(120deg, rgba(31,97,171,0.10), transparent 38%, rgba(201,100,57,0.12)) !important;
  opacity: 0.85 !important;
}
html[data-theme="light"] #contact .contact-card::after {
  background: linear-gradient(90deg, rgba(31,97,171,0.85), rgba(201,100,57,0.78), transparent) !important;
}
html[data-theme="light"] #contact .contact-card:hover {
  border-color: rgba(201,100,57,0.42) !important;
  box-shadow: 0 20px 40px rgba(201,100,57,0.14) !important;
}
html[data-theme="light"] #contact .contact-card h3 { color: var(--text-100) !important; }
html[data-theme="light"] #contact .contact-lead { color: var(--text-300) !important; }
html[data-theme="light"] #contact .contact-list a,
html[data-theme="light"] #contact .contact-list p { color: var(--text-100) !important; }
html[data-theme="light"] #contact .contact-list a:hover { color: #6a3318 !important; }
html[data-theme="light"] #contact .contact-list a::before,
html[data-theme="light"] #contact .contact-list p::before {
  background: linear-gradient(145deg, #1f61ab, #c96439) !important;
  box-shadow: 0 0 0 4px rgba(31,97,171,0.12) !important;
}
html[data-theme="light"] #contact .map-wrap {
  border: 1px solid rgba(15,24,40,0.12) !important;
  box-shadow: inset 0 0 0 1px rgba(15,24,40,0.04) !important;
  background: #ffffff !important;
}
/* Form inputs inside the contact card */
html[data-theme="light"] #contact form input,
html[data-theme="light"] #contact form textarea,
html[data-theme="light"] #contact form select {
  background: #ffffff !important;
  border: 1px solid rgba(15,24,40,0.12) !important;
  color: var(--text-100) !important;
}
html[data-theme="light"] #contact form input::placeholder,
html[data-theme="light"] #contact form textarea::placeholder { color: rgba(15,24,40,0.45) !important; }
html[data-theme="light"] #contact .upload-zone {
  background: linear-gradient(180deg, #ffffff, #f5f8fc) !important;
  border: 1.5px dashed rgba(31,97,171,0.35) !important;
  color: var(--text-300) !important;
}
html[data-theme="light"] #contact .upload-zone:hover,
html[data-theme="light"] #contact .upload-zone:focus-visible,
html[data-theme="light"] #contact .upload-zone.is-dragover {
  border-color: rgba(201,100,57,0.55) !important;
  background: linear-gradient(180deg, rgba(201,100,57,0.05), rgba(31,97,171,0.05)) !important;
  color: #6a3318 !important;
}
html[data-theme="light"] #contact .upload-zone strong { color: var(--text-100) !important; }
html[data-theme="light"] #contact .upload-zone small { color: var(--text-300) !important; }

/* ============================================================
   31. HERO SVG — BITUMEN mark on container ship (theme-aware)
   ============================================================ */
.hs-bitumen-mark { fill: #f0c78f; }                    /* dark theme: cream-gold like OIL */
html:not([data-theme="light"]) .hs-bitumen-mark { fill: #ffffff; } /* dark theme override: pure white for max visibility */
html[data-theme="light"] .hs-bitumen-mark { fill: #0c1d34; }       /* light theme: dark navy / near-black */

/* ============================================================
   32. INDUSTRIES GRID — light-theme polish (per-tone accents)
   ============================================================
   Issue: catch-all in Section 22 collapsed every industry-card
   ::before to a generic copper/blue gradient, so all 8 cards
   looked identical and flat.
   Fix: restore per-tone --industry-accent glow + tinted surface,
   accent top stroke, accent hover ring. Mirrors the dark theme's
   "uniform but colourful" treatment in light palette.
============================================================ */

/* Card surface — subtle accent-tinted gradient instead of plain white */
html[data-theme="light"] .industry-card {
  background: linear-gradient(180deg,
    #ffffff,
    color-mix(in srgb, var(--industry-accent) 6%, #f5f8fc)) !important;
  border: 1px solid color-mix(in srgb, var(--industry-accent) 22%, rgba(15,24,40,0.08)) !important;
  box-shadow: 0 12px 28px rgba(20,30,50,0.07),
              inset 0 1px 0 rgba(255,255,255,0.7) !important;
}

/* Restore per-tone radial glow + diagonal accent (was killed by Section 22) */
html[data-theme="light"] .industry-card::before {
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
      color-mix(in srgb, var(--industry-accent) 38%, transparent) 0%,
      transparent 38%),
    linear-gradient(125deg,
      color-mix(in srgb, var(--industry-accent) 18%, transparent),
      transparent 40%,
      color-mix(in srgb, var(--industry-accent) 14%, transparent) 70%,
      transparent 100%) !important;
  opacity: 0.85 !important;
}

/* Accent top stroke (matches the gold sheen on the dark cards) */
html[data-theme="light"] .industry-card {
  position: relative;
}
html[data-theme="light"] .industry-card > .industry-head::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--industry-accent) 80%, transparent),
    color-mix(in srgb, var(--industry-accent) 35%, transparent) 60%,
    transparent);
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  pointer-events: none;
  z-index: 1;
}

/* Hover — lift + accent ring + brighter glow */
html[data-theme="light"] .industry-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--industry-accent) 60%, rgba(15,24,40,0.10)) !important;
  box-shadow: 0 18px 38px color-mix(in srgb, var(--industry-accent) 22%, rgba(20,30,50,0.10)) !important;
  background: linear-gradient(180deg,
    #ffffff,
    color-mix(in srgb, var(--industry-accent) 12%, #f5f8fc)) !important;
}
html[data-theme="light"] .industry-card:hover::before {
  opacity: 1 !important;
}

/* Featured card — strongest tint */
html[data-theme="light"] .industry-card.is-featured {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--industry-accent) 6%, #ffffff),
    color-mix(in srgb, var(--industry-accent) 14%, #f5f8fc)) !important;
  border-color: color-mix(in srgb, var(--industry-accent) 70%, rgba(15,24,40,0.16)) !important;
  box-shadow: 0 16px 34px color-mix(in srgb, var(--industry-accent) 22%, rgba(20,30,50,0.10)) !important;
}

/* Industry-foot accent label — stronger on white */
html[data-theme="light"] .industry-foot {
  border-top: 1px solid color-mix(in srgb, var(--industry-accent) 30%, rgba(15,24,40,0.08)) !important;
}
html[data-theme="light"] .industry-foot span {
  color: color-mix(in srgb, var(--industry-accent) 30%, #0f1828 70%) !important;
  font-weight: 700 !important;
}
html[data-theme="light"] .industry-foot::after {
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--industry-accent) 75%, #0f1828 25%),
    transparent) !important;
  opacity: 1 !important;
  height: 2px !important;
}

/* Description text — slightly stronger than --text-300 to read on tinted card */
html[data-theme="light"] .industry-card p {
  color: var(--text-100) !important;
  opacity: 0.78;
}
html[data-theme="light"] .industry-card .industry-head h3 {
  color: var(--text-100) !important;
}

/* ============================================================
   32B. INDUSTRIES GRID - uniform light-theme surface
   ============================================================
   Override Section 32 to match the dark theme philosophy:
   uniform card surface + uniform border for all 8 tones,
   per-tone accent shows ONLY through the radial glow,
   icon ring, and the foot label/line. Same as dark theme,
   just light palette.
============================================================ */

/* Uniform white-to-pale-blue surface for every card */
html[data-theme="light"] .industry-card {
  background: linear-gradient(180deg, #ffffff 0%, #f3f7fc 100%) !important;
  border: 1px solid rgba(15, 24, 40, 0.10) !important;
  box-shadow:
    0 14px 30px rgba(20, 30, 50, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}

/* Tone shows only as a soft radial glow behind the card */
html[data-theme="light"] .industry-card::before {
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
      color-mix(in srgb, var(--industry-accent) 28%, transparent) 0%,
      transparent 38%),
    linear-gradient(125deg,
      color-mix(in srgb, var(--industry-accent) 12%, transparent),
      transparent 45%,
      color-mix(in srgb, var(--industry-accent) 8%, transparent) 75%,
      transparent 100%) !important;
  opacity: 0.7 !important;
}

/* Hover: uniform copper ring (same for all tones) like dark theme */
html[data-theme="light"] .industry-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 100, 57, 0.40) !important;
  background: linear-gradient(180deg, #ffffff 0%, #f3f7fc 100%) !important;
  box-shadow:
    0 18px 38px rgba(20, 30, 50, 0.12),
    0 8px 16px color-mix(in srgb, var(--industry-accent) 18%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}
html[data-theme="light"] .industry-card:hover::before {
  opacity: 0.95 !important;
}

/* Featured card: same surface + slightly stronger accent border + glow */
html[data-theme="light"] .industry-card.is-featured {
  background: linear-gradient(180deg, #ffffff 0%, #f3f7fc 100%) !important;
  border-color: color-mix(in srgb, var(--industry-accent) 45%, rgba(15, 24, 40, 0.18)) !important;
  box-shadow:
    0 16px 32px rgba(20, 30, 50, 0.10),
    0 6px 14px color-mix(in srgb, var(--industry-accent) 20%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}

/* Foot divider: uniform neutral line + accent gradient overlay
   (mirrors the dark-theme approach where the line is faint white
   and only the ::after is per-tone gradient) */
html[data-theme="light"] .industry-foot {
  border-top: 1px solid rgba(15, 24, 40, 0.10) !important;
}
html[data-theme="light"] .industry-foot::after {
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--industry-accent) 70%, #0f1828 30%),
    transparent) !important;
  opacity: 0.95 !important;
  height: 1.5px !important;
  width: 36% !important;
}
html[data-theme="light"] .industry-foot span {
  color: color-mix(in srgb, var(--industry-accent) 35%, #0f1828 65%) !important;
  font-weight: 700 !important;
}

/* Drop the head::before top stroke from Section 32 (broke uniformity) */
html[data-theme="light"] .industry-card > .industry-head::before {
  content: none !important;
}

/* Body text */
html[data-theme="light"] .industry-card p {
  color: var(--text-300) !important;
  opacity: 1 !important;
}
html[data-theme="light"] .industry-card .industry-head h3 {
  color: var(--text-100) !important;
}

/* Ensure equal-height grid (dark theme uses align-items: stretch implicitly via grid;
   re-state in case any earlier rule broke it). */
html[data-theme="light"] .industries-grid,
html[data-theme="light"] .premium-industries-grid {
  align-items: stretch !important;
}
html[data-theme="light"] .industry-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
html[data-theme="light"] .industry-card .industry-foot {
  margin-top: auto;
}

/* ============================================================
   33. PRODUCT-ACTION-SUB - keep on a single line
   ============================================================ */
.product-action-sub {
  max-width: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
@media (max-width: 720px) {
  .product-action-sub {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
}

/* ============================================================
   34. ABOUT-DETAIL-GRID - equal-sized cards
   ============================================================
   Original main.css uses 1.2fr / 0.9fr / 0.9fr making the first
   panel wider. Force equal columns + stretched heights for a
   uniform 3-up layout on desktop. On tablet/mobile fall back to
   the responsive single-column layout defined in main.css.
============================================================ */
.about-detail-grid {
  align-items: stretch !important;
}
.about-detail-grid > .about-panel {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}
@media (min-width: 1081px) {
  .about-detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 1080px) and (min-width: 681px) {
  .about-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 680px) {
  .about-detail-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   35. INSIGHT-HERO-LEAD - readable in light theme
   ============================================================ */
html[data-theme="light"] .insight-hero-lead {
  color: var(--text-100) !important;
  -webkit-text-fill-color: var(--text-100) !important;
  background: none !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
html[data-theme="light"] .insight-hero-stats span {
  color: var(--text-300) !important;
}

/* ============================================================
   36. LEGAL PAGES (privacy-policy.html, terms-and-conditions.html)
   ============================================================ */
.legal-section {
  padding: 4rem 0 5rem;
}
.legal-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2.5rem;
  align-items: start;
}
.legal-article {
  background: rgba(15, 25, 45, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 2.25rem 2.4rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  line-height: 1.75;
  font-size: 1.02rem;
}
.legal-article h2 {
  font-family: "Space Grotesk", "Poppins", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2.1rem 0 0.85rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  letter-spacing: -0.01em;
  scroll-margin-top: 100px;
}
.legal-article h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.legal-article p,
.legal-article li {
  color: #c8d4e6;
}
.legal-article ul {
  padding-left: 1.25rem;
  margin: 0.6rem 0 1.1rem;
}
.legal-article li {
  margin-bottom: 0.45rem;
}
.legal-article a {
  color: #5bbcff;
  text-decoration: none;
  border-bottom: 1px dashed rgba(91, 188, 255, 0.5);
  transition: color .2s ease, border-color .2s ease;
}
.legal-article a:hover {
  color: #e8a05a;
  border-bottom-color: #e8a05a;
}
.legal-article strong {
  color: #ffffff;
}
.legal-contact {
  list-style: none !important;
  padding: 0 !important;
}
.legal-contact li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.legal-contact i {
  color: #c96439;
  width: 18px;
  text-align: center;
}

/* Last-updated meta inside hero */
.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #c8d4e6;
  background: rgba(31, 97, 171, 0.16);
  border: 1px solid rgba(31, 97, 171, 0.30);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}
.legal-updated i { color: #e8a05a; }

/* Sticky TOC + CTA aside */
.legal-aside {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.legal-toc {
  background: rgba(15, 25, 45, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
}
.legal-toc .eyebrow {
  display: block;
  margin-bottom: 0.85rem;
}
.legal-toc nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.legal-toc nav a {
  font-size: 0.88rem;
  color: #aebfd8;
  text-decoration: none;
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
  border-left: 2px solid transparent;
  transition: all .2s ease;
}
.legal-toc nav a:hover {
  color: #ffffff;
  background: rgba(31, 97, 171, 0.18);
  border-left-color: #c96439;
  transform: translateX(2px);
}
.legal-cta {
  background: linear-gradient(135deg, rgba(31, 97, 171, 0.20), rgba(201, 100, 57, 0.20));
  border: 1px solid rgba(201, 100, 57, 0.30);
  border-radius: 16px;
  padding: 1.4rem;
  text-align: center;
}
.legal-cta h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #ffffff;
}
.legal-cta p {
  font-size: 0.88rem;
  color: #c8d4e6;
  margin: 0 0 0.9rem;
}
.legal-cta .btn { width: 100%; }

@media (max-width: 960px) {
  .legal-container { grid-template-columns: 1fr; }
  .legal-aside { position: static; order: -1; }
  .legal-aside .legal-toc { display: none; }
  .legal-article { padding: 1.6rem 1.4rem; }
  .legal-section { padding: 2.5rem 0 3.5rem; }
}

/* ---------- LIGHT THEME ---------- */
html[data-theme="light"] .legal-article {
  background: #ffffff;
  border-color: rgba(15, 24, 40, 0.10);
  box-shadow: 0 14px 30px rgba(20, 30, 50, 0.07);
}
html[data-theme="light"] .legal-article h2 {
  color: var(--text-100) !important;
  border-top-color: rgba(15, 24, 40, 0.08);
}
html[data-theme="light"] .legal-article p,
html[data-theme="light"] .legal-article li {
  color: var(--text-300) !important;
}
html[data-theme="light"] .legal-article strong {
  color: var(--text-100) !important;
}
html[data-theme="light"] .legal-article a {
  color: #1f61ab;
  border-bottom-color: rgba(31, 97, 171, 0.45);
}
html[data-theme="light"] .legal-article a:hover {
  color: #c96439;
  border-bottom-color: #c96439;
}
html[data-theme="light"] .legal-toc {
  background: #ffffff;
  border-color: rgba(15, 24, 40, 0.10);
  box-shadow: 0 8px 18px rgba(20, 30, 50, 0.05);
}
html[data-theme="light"] .legal-toc nav a {
  color: var(--text-300);
}
html[data-theme="light"] .legal-toc nav a:hover {
  color: #0c1d34;
  background: rgba(31, 97, 171, 0.08);
}
html[data-theme="light"] .legal-cta {
  background: linear-gradient(135deg, rgba(31, 97, 171, 0.10), rgba(201, 100, 57, 0.10));
  border-color: rgba(201, 100, 57, 0.30);
}
html[data-theme="light"] .legal-cta h3 { color: var(--text-100) !important; }
html[data-theme="light"] .legal-cta p  { color: var(--text-300) !important; }
html[data-theme="light"] .legal-updated {
  color: var(--text-100);
  background: rgba(31, 97, 171, 0.08);
  border-color: rgba(31, 97, 171, 0.25);
}

/* ============================================================
   37. CONTACT SECTION - premium redesign
   ============================================================ */
#contact {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 6rem;
}
.contact-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
}
.contact-bg .cbg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  animation: cbgFloat 16s ease-in-out infinite;
}
.contact-bg .cbg-orb-1 { width: 360px; height: 360px; left: -80px; top: -60px; background: radial-gradient(circle, rgba(31,97,171,0.55), transparent 70%); animation-delay: 0s; }
.contact-bg .cbg-orb-2 { width: 320px; height: 320px; right: -60px; bottom: -40px; background: radial-gradient(circle, rgba(201,100,57,0.45), transparent 70%); animation-delay: -6s; }
.contact-bg .cbg-orb-3 { width: 240px; height: 240px; left: 45%; top: 30%; background: radial-gradient(circle, rgba(42,160,201,0.40), transparent 70%); animation-delay: -10s; }
.contact-bg .cbg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  opacity: 0.6;
}
@keyframes cbgFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(20px, -18px) scale(1.05); }
}
#contact > .container { position: relative; z-index: 1; }
#contact h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.contact-intro {
  max-width: 720px;
  color: #c8d4e6;
  margin: 0.5rem 0 1.6rem;
  line-height: 1.7;
}
.contact-intro:hover { color: #e8a05a; transition: color .3s ease; }

/* Quick contact pills row */
.contact-quick-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin: 0 0 2rem;
}
.cqi {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(15,25,45,0.55);
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.cqi::before {
  content: "";
  position: absolute; inset: -1px;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.08) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .6s ease;
  pointer-events: none;
}
.cqi:hover { transform: translateY(-3px); border-color: rgba(201,100,57,0.45); box-shadow: 0 14px 30px rgba(201,100,57,0.15); }
.cqi:hover::before { transform: translateX(100%); }
.cqi-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(31,97,171,0.40), rgba(201,100,57,0.40));
  color: #fff; font-size: 1.05rem;
  flex: 0 0 auto;
  transition: transform .3s ease;
}
.cqi:hover .cqi-icon { transform: scale(1.08) rotate(-4deg); }
.cqi-call .cqi-icon { background: linear-gradient(135deg, #1f61ab, #2aa0c9); }
.cqi-mail .cqi-icon { background: linear-gradient(135deg, #c96439, #e8a05a); }
.cqi-wa   .cqi-icon { background: linear-gradient(135deg, #25d366, #128c7e); }
.cqi-hours .cqi-icon { background: linear-gradient(135deg, #4a5868, #0c1d34); }
.cqi-label { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: #aebfd8; display: block; }
.cqi-value { font-size: 0.95rem; font-weight: 700; color: #fff; }
.cqi-hours { cursor: default; }

/* Two-col grid */
#contact .contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.5rem;
  align-items: stretch;
}

/* Info card */
.contact-info-card { display: flex; flex-direction: column; gap: 1rem; }
.cic-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
#contact .cic-head h3 { margin: 0; display: inline-flex; align-items: center; gap: 0.55rem; }
#contact .cic-head h3 i { color: #e8a05a; }
.cic-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; font-weight: 700;
  padding: 0.3rem 0.7rem; border-radius: 999px;
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.30);
}
.cic-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #25d366;
  box-shadow: 0 0 0 0 rgba(37,211,102,0.7);
  animation: cicPulse 1.8s ease-in-out infinite;
}
@keyframes cicPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.6); }
  50%      { box-shadow: 0 0 0 8px rgba(37,211,102,0); }
}
.contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.contact-list li { display: flex; gap: 0.75rem; align-items: flex-start; line-height: 1.55; color: #c8d4e6; }
.contact-list a { color: #c8d4e6; text-decoration: none; transition: color .2s ease; }
.contact-list a:hover { color: #e8a05a; }
.contact-list strong { color: #fff; }
.cli-icon {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(31,97,171,0.30), rgba(201,100,57,0.30));
  color: #e8a05a;
  font-size: 0.9rem;
  transition: transform .25s ease, background .25s ease;
}
.contact-list li:hover .cli-icon { transform: rotate(-6deg) scale(1.05); background: linear-gradient(135deg, #1f61ab, #c96439); color: #fff; }

.cic-socials { display: flex; gap: 0.55rem; padding-top: 0.5rem; }
.cic-socials a {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  color: #aebfd8; text-decoration: none;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.cic-socials a:hover { transform: translateY(-3px) scale(1.08); background: linear-gradient(135deg, #1f61ab, #c96439); color: #fff; }

/* Map */
.map-wrap {
  margin-top: auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  height: 220px;
  position: relative;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.25) contrast(0.95); transition: filter .4s ease; }
.map-wrap:hover iframe { filter: grayscale(0) contrast(1); }

/* Form card */
.contact-form-card { display: flex; flex-direction: column; gap: 1.2rem; }
.cfc-head h3 { margin: 0 0 0.3rem; display: inline-flex; align-items: center; gap: 0.55rem; }
.cfc-head h3 i { color: #2aa0c9; }
.contact-lead { color: #aebfd8; margin: 0; font-size: 0.95rem; }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.cf-field {
  position: relative;
  display: flex;
  align-items: center;
}
.cf-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: #aebfd8;
  font-size: 0.95rem;
  pointer-events: none;
  transition: color .25s ease, transform .25s ease;
  z-index: 2;
}
.cf-field input,
.cf-field select,
.cf-field textarea {
  width: 100%;
  padding: 1.05rem 1rem 0.5rem 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(15,25,45,0.55);
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
  outline: none;
}
.cf-field-area textarea {
  padding-top: 1.4rem;
  resize: vertical;
  min-height: 120px;
  line-height: 1.55;
}
.cf-field-area .cf-icon { top: 18px; transform: none; }
.cf-field input::placeholder,
.cf-field textarea::placeholder { color: transparent; }
.cf-label {
  position: absolute;
  left: 42px; top: 50%;
  transform: translateY(-50%);
  font-size: 0.92rem;
  color: #aebfd8;
  pointer-events: none;
  transition: top .2s ease, font-size .2s ease, color .2s ease, transform .2s ease;
  background: transparent;
}
.cf-field-area .cf-label { top: 16px; transform: none; }
.cf-field input:focus + .cf-label,
.cf-field input:not(:placeholder-shown) + .cf-label,
.cf-field textarea:focus + .cf-label,
.cf-field textarea:not(:placeholder-shown) + .cf-label,
.cf-field-select select:focus ~ .cf-label,
.cf-field-select select:valid ~ .cf-label {
  top: 8px;
  transform: none;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #e8a05a;
  font-weight: 700;
}
.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
  border-color: rgba(201,100,57,0.55);
  background: rgba(15,25,45,0.75);
  box-shadow: 0 0 0 4px rgba(201,100,57,0.10);
}
.cf-field input:focus ~ .cf-icon,
.cf-field textarea:focus ~ .cf-icon,
.cf-field select:focus ~ .cf-icon { color: #e8a05a; }
.cf-field-select select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23aebfd8' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  cursor: pointer;
}
.cf-field-select select option { background: #0c1d34; color: #fff; }

.cf-error {
  display: none;
  position: absolute;
  left: 14px; bottom: -18px;
  font-size: 0.74rem;
  color: #ff7a7a;
}
.cf-field.is-invalid .cf-error { display: block; }
.cf-field.is-invalid input,
.cf-field.is-invalid textarea { border-color: rgba(255,122,122,0.55); box-shadow: 0 0 0 4px rgba(255,122,122,0.10); }
.cf-field.is-valid input,
.cf-field.is-valid textarea { border-color: rgba(37,211,102,0.45); }

.cf-counter {
  position: absolute;
  right: 14px; bottom: 10px;
  font-size: 0.72rem;
  color: #aebfd8;
  background: rgba(15,25,45,0.65);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  pointer-events: none;
}

.cf-consent { font-size: 0.85rem; color: #c8d4e6; }
.cf-check { display: flex; gap: 0.7rem; cursor: pointer; align-items: flex-start; line-height: 1.5; }
.cf-check input { position: absolute; opacity: 0; pointer-events: none; }
.cf-check-box {
  width: 20px; height: 20px;
  border-radius: 6px;
  border: 1.5px solid rgba(255,255,255,0.25);
  background: rgba(15,25,45,0.55);
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
  transition: all .2s ease;
}
.cf-check-box i {
  font-size: 0.7rem;
  color: #fff;
  opacity: 0;
  transform: scale(0.5);
  transition: all .2s ease;
}
.cf-check input:checked + .cf-check-box {
  background: linear-gradient(135deg, #c96439, #e8a05a);
  border-color: transparent;
}
.cf-check input:checked + .cf-check-box i { opacity: 1; transform: scale(1); }
.cf-check input:focus-visible + .cf-check-box { box-shadow: 0 0 0 3px rgba(201,100,57,0.30); }
.cf-check a { color: #2aa0c9; }
.cf-check a:hover { color: #e8a05a; }

/* Honeypot - completely hidden from real users */
.cf-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Submit button */
.cf-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.cf-submit {
  position: relative;
  min-width: 200px;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  overflow: hidden;
}
.cf-submit i { transition: transform .3s ease; }
.cf-submit:hover i { transform: translateX(4px) rotate(-12deg); }
.cf-submit-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  display: none;
  animation: cfSpin 0.8s linear infinite;
}
.cf-submit.is-loading { pointer-events: none; opacity: 0.8; }
.cf-submit.is-loading .cf-submit-spinner { display: inline-block; }
.cf-submit.is-loading i { display: none; }
@keyframes cfSpin { to { transform: rotate(360deg); } }

.cf-status { font-size: 0.88rem; line-height: 1.45; }
.cf-status.is-ok    { color: #25d366; }
.cf-status.is-error { color: #ff7a7a; }
.cf-status .cfs-icon { margin-right: 0.4rem; }

/* Responsive */
@media (max-width: 980px) {
  #contact .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  #contact { padding: 3.5rem 0 4rem; }
  .cf-row { grid-template-columns: 1fr; }
  .cqi { padding: 0.7rem 0.85rem; }
  .cqi-value { font-size: 0.88rem; }
  .map-wrap { height: 200px; }
}

/* ---------- LIGHT THEME ---------- */
html[data-theme="light"] #contact .contact-bg .cbg-orb { opacity: 0.20; filter: blur(70px); }
html[data-theme="light"] #contact .contact-bg .cbg-grid {
  background-image:
    linear-gradient(rgba(15,24,40,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,24,40,0.04) 1px, transparent 1px);
}
html[data-theme="light"] .contact-intro { color: var(--text-300) !important; }
html[data-theme="light"] .cqi {
  background: #ffffff;
  border-color: rgba(15,24,40,0.10);
  box-shadow: 0 6px 16px rgba(20,30,50,0.05);
}
html[data-theme="light"] .cqi:hover { box-shadow: 0 14px 30px rgba(201,100,57,0.18); }
html[data-theme="light"] .cqi-label { color: var(--text-300); }
html[data-theme="light"] .cqi-value { color: var(--text-100); }
html[data-theme="light"] .contact-list,
html[data-theme="light"] .contact-list li { color: var(--text-300) !important; }
html[data-theme="light"] .contact-list a { color: var(--text-300) !important; }
html[data-theme="light"] .contact-list a:hover { color: #c96439 !important; }
html[data-theme="light"] .contact-list strong { color: var(--text-100) !important; }
html[data-theme="light"] .cli-icon {
  background: linear-gradient(135deg, rgba(31,97,171,0.10), rgba(201,100,57,0.10));
  color: #c96439;
}
html[data-theme="light"] .cic-socials a {
  background: rgba(15,24,40,0.05);
  color: var(--text-300);
}
html[data-theme="light"] .cic-socials a:hover { color: #fff; }
html[data-theme="light"] .map-wrap { border-color: rgba(15,24,40,0.10); }
html[data-theme="light"] .map-wrap iframe { filter: grayscale(0.10) contrast(1); }
html[data-theme="light"] .contact-lead { color: var(--text-300); }
html[data-theme="light"] .cf-field input,
html[data-theme="light"] .cf-field select,
html[data-theme="light"] .cf-field textarea {
  background: #ffffff;
  border-color: rgba(15,24,40,0.12);
  color: var(--text-100);
}
html[data-theme="light"] .cf-field input:focus,
html[data-theme="light"] .cf-field select:focus,
html[data-theme="light"] .cf-field textarea:focus {
  background: #ffffff;
  border-color: rgba(201,100,57,0.55);
  box-shadow: 0 0 0 4px rgba(201,100,57,0.10);
}
html[data-theme="light"] .cf-icon { color: var(--text-300); }
html[data-theme="light"] .cf-label { color: var(--text-300); }
html[data-theme="light"] .cf-field-select select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a5868' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }
html[data-theme="light"] .cf-field-select select option { background: #ffffff; color: var(--text-100); }
html[data-theme="light"] .cf-counter {
  color: var(--text-300);
  background: rgba(15,24,40,0.05);
}
html[data-theme="light"] .cf-consent { color: var(--text-300); }
html[data-theme="light"] .cf-check-box { background: #ffffff; border-color: rgba(15,24,40,0.20); }

/* ---------- 37b. Contact quick-row layout fix ---------- */
.contact-quick-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.cqi {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.85rem;
  row-gap: 0.1rem;
  align-items: center;
  min-width: 0;
}
.cqi-icon {
  grid-row: 1 / span 2;
  align-self: center;
}
.cqi-label,
.cqi-value {
  grid-column: 2;
  min-width: 0;
}
.cqi-value {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cqi-hours .cqi-value { font-size: 0.88rem; }

@media (max-width: 1080px) {
  .contact-quick-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .contact-quick-row { grid-template-columns: 1fr; }
}

/* ---------- 37c. Contact quick-row value wrap fix ---------- */
.cqi-value {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.3;
}
.cqi-mail .cqi-value { font-size: 0.86rem; letter-spacing: -0.01em; }
.cqi-hours .cqi-value { font-size: 0.85rem; }
.cqi { padding: 0.9rem 1rem; }

/* ---------- 37d. Email card single-line fit ---------- */
.contact-quick-row { gap: 0.7rem; }
.cqi { padding: 0.85rem 0.9rem; column-gap: 0.7rem; }
.cqi-icon { width: 40px; height: 40px; font-size: 0.95rem; }
.cqi-label { font-size: 0.66rem; }
.cqi-value { font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cqi-mail .cqi-value { font-size: 0.78rem; letter-spacing: -0.015em; }
.cqi-hours .cqi-value { font-size: 0.78rem; }
.cqi-call .cqi-value { font-size: 0.88rem; }
.cqi-wa .cqi-value { font-size: 0.88rem; }

@media (max-width: 1200px) {
  .contact-quick-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cqi-mail .cqi-value,
  .cqi-hours .cqi-value { font-size: 0.92rem; }
}

/* ============================================================
   38. CONTACT GRID - Premium compact + animations
   ============================================================ */
#contact .contact-grid { gap: 1.25rem; align-items: start; }

/* Card base: glass + animated gradient border */
#contact .contact-card {
  position: relative;
  padding: 1.4rem 1.5rem;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(20, 32, 56, 0.78), rgba(12, 22, 42, 0.82));
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease;
}
#contact .contact-card::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--cg-angle, 0deg),
    rgba(31,97,171,0) 0deg,
    rgba(31,97,171,0.55) 70deg,
    rgba(201,100,57,0.65) 160deg,
    rgba(42,160,201,0.55) 250deg,
    rgba(31,97,171,0) 360deg);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s ease;
  animation: cardBorderSpin 6s linear infinite;
  pointer-events: none;
  z-index: 0;
}
#contact .contact-card::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--cx, 50%) var(--cy, 0%),
    rgba(201,100,57,0.18), transparent 60%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
  z-index: 0;
}
#contact .contact-card > * { position: relative; z-index: 1; }
#contact .contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px -22px rgba(31,97,171,0.45),
              0 10px 28px -12px rgba(201,100,57,0.30);
  border-color: rgba(255,255,255,0.06);
}
#contact .contact-card:hover::before { opacity: 1; }
#contact .contact-card:hover::after  { opacity: 1; }
@property --cg-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes cardBorderSpin {
  0%   { --cg-angle: 0deg;   }
  100% { --cg-angle: 360deg; }
}

/* Headings tighter */
#contact .cic-head h3,
#contact .cfc-head h3 {
  font-size: 1.05rem;
  margin: 0;
  letter-spacing: -0.01em;
}
#contact .cic-head h3 i,
#contact .cfc-head h3 i {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  font-size: 0.85rem;
  background: linear-gradient(135deg, rgba(31,97,171,0.30), rgba(201,100,57,0.30));
  color: #e8a05a;
}
#contact .cfc-head h3 i { color: #2aa0c9; }
#contact .cfc-head { margin-bottom: 0.4rem; }
#contact .contact-lead { font-size: 0.86rem; margin: 0.15rem 0 0.6rem; }

/* Info card list - compact */
.contact-info-card { gap: 0.85rem; }
.contact-list { gap: 0.6rem; }
.contact-list li { font-size: 0.88rem; line-height: 1.5; }
.cli-icon { width: 32px; height: 32px; font-size: 0.8rem; border-radius: 9px; }

/* Socials - tight pill row */
.cic-socials { gap: 0.45rem; padding-top: 0.25rem; }
.cic-socials a { width: 32px; height: 32px; font-size: 0.85rem; }

/* Map - compact + premium frame */
.map-wrap {
  height: 170px;
  border-radius: 12px;
  border-color: rgba(255,255,255,0.08);
  position: relative;
}
.map-wrap::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06),
              inset 0 -40px 60px -30px rgba(12,29,52,0.55);
}

/* Form - compact density */
.contact-form { gap: 0.75rem; }
.cf-row { gap: 0.75rem; }
.cf-field input,
.cf-field select,
.cf-field textarea {
  padding: 0.95rem 1rem 0.45rem 40px;
  border-radius: 11px;
  font-size: 0.9rem;
}
.cf-field-area textarea { min-height: 96px; padding-top: 1.25rem; }
.cf-icon { left: 13px; font-size: 0.88rem; }
.cf-label { left: 40px; font-size: 0.88rem; }
.cf-field input:focus + .cf-label,
.cf-field input:not(:placeholder-shown) + .cf-label,
.cf-field textarea:focus + .cf-label,
.cf-field textarea:not(:placeholder-shown) + .cf-label,
.cf-field-select select:focus ~ .cf-label,
.cf-field-select select:valid ~ .cf-label {
  top: 6px;
  font-size: 0.62rem;
}

/* Animated focus ring on inputs */
.cf-field { border-radius: 11px; }
.cf-field::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(201,100,57,0);
  transition: box-shadow .35s ease;
}
.cf-field:focus-within::after {
  box-shadow: 0 0 0 4px rgba(201,100,57,0.12);
}
.cf-field:focus-within .cf-icon {
  transform: translateY(-50%) scale(1.12);
  color: #e8a05a;
}
.cf-field-area:focus-within .cf-icon { transform: scale(1.12); }

/* Consent row tighter */
.cf-consent { font-size: 0.78rem; }
.cf-check-box { width: 18px; height: 18px; border-radius: 5px; }

/* Submit button premium */
.cf-submit {
  background: linear-gradient(135deg, #c96439 0%, #e8a05a 100%) !important;
  border: 0 !important;
  box-shadow: 0 10px 24px -10px rgba(201,100,57,0.55);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
  letter-spacing: 0.01em;
  font-weight: 700;
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.cf-submit::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.30) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s ease;
}
.cf-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -10px rgba(201,100,57,0.7);
  filter: brightness(1.05);
}
.cf-submit:hover::before { transform: translateX(120%); }

/* Status + counter polish */
.cf-status { font-weight: 600; }
.cf-counter { backdrop-filter: blur(6px); }

/* Reveal on scroll */
@keyframes contactCardIn {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0)   scale(1);     }
}
#contact .contact-card { animation: contactCardIn .7s cubic-bezier(.2,.8,.2,1) both; }
#contact .contact-form-card { animation-delay: .12s; }

/* Light theme */
html[data-theme="light"] #contact .contact-card {
  background: linear-gradient(180deg, #ffffff, #f7faff);
  border-color: rgba(15,24,40,0.08);
  box-shadow: 0 6px 18px rgba(20,30,50,0.05);
}
html[data-theme="light"] #contact .contact-card::before {
  background: conic-gradient(from var(--cg-angle, 0deg),
    rgba(31,97,171,0) 0deg,
    rgba(31,97,171,0.55) 70deg,
    rgba(201,100,57,0.70) 160deg,
    rgba(42,160,201,0.55) 250deg,
    rgba(31,97,171,0) 360deg);
}
html[data-theme="light"] #contact .contact-card::after {
  background: radial-gradient(380px circle at var(--cx, 50%) var(--cy, 0%),
    rgba(201,100,57,0.10), transparent 60%);
}
html[data-theme="light"] #contact .contact-card:hover {
  box-shadow: 0 22px 44px -22px rgba(31,97,171,0.30),
              0 12px 26px -12px rgba(201,100,57,0.22);
}
html[data-theme="light"] #contact .map-wrap { border-color: rgba(15,24,40,0.10); }

@media (max-width: 980px) {
  #contact .contact-card { padding: 1.2rem 1.2rem; border-radius: 16px; }
  .map-wrap { height: 200px; }
}

/* ============================================================
   39. CONTACT FORM - structural overrides for main.css conflicts
   ============================================================ */
#contact form#contactForm.contact-form {
  display: flex !important;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.4rem;
}
#contact .contact-form .cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
#contact .contact-form .cf-field { width: 100%; }
#contact .contact-form input,
#contact .contact-form select,
#contact .contact-form textarea {
  width: 100%;
  padding: 1.05rem 1rem 0.4rem 42px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  background: rgba(15,25,45,0.55) !important;
  color: #fff !important;
  font: inherit;
  font-size: 0.92rem !important;
  box-shadow: none !important;
}
#contact .contact-form .cf-field-area textarea {
  min-height: 110px;
  padding-top: 1.35rem !important;
  resize: vertical;
}
#contact .contact-form input:focus,
#contact .contact-form select:focus,
#contact .contact-form textarea:focus {
  border-color: rgba(201,100,57,0.55) !important;
  background: rgba(15,25,45,0.75) !important;
  box-shadow: 0 0 0 4px rgba(201,100,57,0.12) !important;
}

/* Kill main.css bullet pseudos on our new info card */
#contact .contact-info-card .contact-list { display: flex; flex-direction: column; gap: 0.7rem; margin: 0; padding: 0; list-style: none; }
#contact .contact-info-card .contact-list li { display: flex; gap: 0.7rem; align-items: flex-start; }
#contact .contact-info-card .contact-list a,
#contact .contact-info-card .contact-list p,
#contact .contact-info-card .contact-list span { display: inline; }
#contact .contact-info-card .contact-list a::before,
#contact .contact-info-card .contact-list p::before { content: none !important; display: none !important; }

/* Select - always-floated label */
#contact .cf-field-select { position: relative; }
#contact .cf-field-select .cf-label {
  top: 6px !important;
  transform: none !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #e8a05a;
  font-weight: 700;
}
#contact .cf-field-select select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 38px !important;
}

/* Map cleanup */
#contact .contact-info-card .map-wrap {
  margin-top: 0.4rem;
  min-height: 0;
  height: 180px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: none;
}

/* Submit + actions row */
#contact .cf-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.3rem;
}
#contact .cf-submit { min-width: 180px; }

/* Consent inline */
#contact .cf-consent { font-size: 0.78rem; line-height: 1.4; }

/* ---------- LIGHT theme structural overrides ---------- */
html[data-theme="light"] #contact .contact-form input,
html[data-theme="light"] #contact .contact-form select,
html[data-theme="light"] #contact .contact-form textarea {
  background: #ffffff !important;
  border-color: rgba(15,24,40,0.12) !important;
  color: var(--text-100) !important;
}
html[data-theme="light"] #contact .contact-form input:focus,
html[data-theme="light"] #contact .contact-form select:focus,
html[data-theme="light"] #contact .contact-form textarea:focus {
  border-color: rgba(201,100,57,0.55) !important;
  box-shadow: 0 0 0 4px rgba(201,100,57,0.10) !important;
}
html[data-theme="light"] #contact .contact-info-card .map-wrap { border-color: rgba(15,24,40,0.10); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  #contact .contact-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 620px) {
  #contact .contact-form .cf-row { grid-template-columns: 1fr; }
  #contact .cf-actions { flex-direction: column; align-items: stretch; }
  #contact .cf-submit { width: 100%; }
  #contact .contact-card { padding: 1rem 1.05rem; }
  #contact .contact-info-card .map-wrap { height: 200px; }
}

/* ---------- 39b. Contact info-card icon visibility fix ---------- */
#contact .contact-info-card .contact-list span { display: initial; }
#contact .contact-info-card .contact-list .cli-icon {
  display: inline-flex !important;
  align-items: center; justify-content: center;
  flex: 0 0 36px;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(31,97,171,0.30), rgba(201,100,57,0.30));
  color: #e8a05a;
  font-size: 0.9rem;
  line-height: 1;
}
#contact .contact-info-card .contact-list .cli-icon i {
  display: inline-block;
  line-height: 1;
}
#contact .contact-info-card .contact-list li > span:last-child {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.5;
}

/* Heading icon for light + general */
#contact .cic-head h3 i,
#contact .cfc-head h3 i {
  background: linear-gradient(135deg, #1f61ab, #2aa0c9);
  color: #fff !important;
}
#contact .cfc-head h3 i { background: linear-gradient(135deg, #c96439, #e8a05a); }

/* Light theme icon contrast */
html[data-theme="light"] #contact .contact-info-card .contact-list .cli-icon {
  background: linear-gradient(135deg, #1f61ab, #2aa0c9);
  color: #ffffff;
  box-shadow: 0 4px 10px -4px rgba(31,97,171,0.45);
}
html[data-theme="light"] #contact .cic-socials a {
  background: rgba(15,24,40,0.06);
  color: #1f61ab;
}
html[data-theme="light"] #contact .cic-socials a:hover {
  background: linear-gradient(135deg, #1f61ab, #c96439);
  color: #fff;
}

/* ============================================================
   40. UNIVERSAL PREMIUM POLISH (all pages)
   - cursor-spotlight on cards
   - shine sweep on hover
   - animated orbs on heroes
   - smoother reveals
   - icon micro-animations
   ============================================================ */

/* ---- Cursor-tracked spotlight on cards ---- */
.card,
.pg-card,
.product-card,
.legal-article,
.spec-meta-card,
.faq-card,
.about-panel,
.industry-card,
.story-card,
.insight-conf,
.insight-news-card {
  position: relative;
  isolation: isolate;
  --cx: 50%;
  --cy: 0%;
}
.card::after,
.pg-card::after,
.product-card::after,
.legal-article::after,
.spec-meta-card::after,
.faq-card::after,
.about-panel::after,
.industry-card::after,
.story-card::after,
.insight-conf::after,
.insight-news-card::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--cx) var(--cy),
    rgba(201,100,57,0.16), transparent 65%);
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
  z-index: 0;
}
.card:hover::after,
.pg-card:hover::after,
.product-card:hover::after,
.legal-article:hover::after,
.spec-meta-card:hover::after,
.faq-card:hover::after,
.about-panel:hover::after,
.industry-card:hover::after,
.story-card:hover::after,
.insight-conf:hover::after,
.insight-news-card:hover::after { opacity: 1; }

/* keep contact cards' glow strength override */
#contact .contact-card::after { background: radial-gradient(380px circle at var(--cx, 50%) var(--cy, 0%), rgba(201,100,57,0.18), transparent 60%); }

/* Ensure card content is above the spotlight layer */
.card > *,
.pg-card > *,
.product-card > *,
.legal-article > *,
.spec-meta-card > *,
.faq-card > *,
.about-panel > *,
.industry-card > *,
.story-card > *,
.insight-conf > *,
.insight-news-card > * { position: relative; z-index: 1; }

/* ---- Shine sweep on hover (subtle) ---- */
.pg-card,
.product-card,
.story-card,
.industry-card,
.spec-meta-card { overflow: hidden; }
.pg-card::before,
.product-card::before,
.story-card::before,
.industry-card::before,
.spec-meta-card::before {
  content: "";
  position: absolute; top: 0; left: -60%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.10) 50%, transparent 70%);
  transform: skewX(-18deg);
  transition: left .8s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
  z-index: 2;
}
.pg-card:hover::before,
.product-card:hover::before,
.story-card:hover::before,
.industry-card:hover::before,
.spec-meta-card:hover::before { left: 130%; }

/* ---- Animated gradient orbs on every page hero ---- */
.pg-hero,
.insight-hero { position: relative; overflow: hidden; }
.pg-hero::before,
.insight-hero::after {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.pg-hero::before {
  left: -120px; top: -160px;
  background: radial-gradient(circle, rgba(31,97,171,0.45), transparent 70%);
  animation: heroOrbA 18s ease-in-out infinite;
}
.pg-hero::after {
  content: "";
  position: absolute;
  right: -140px; bottom: -160px;
  width: 460px; height: 460px;
  border-radius: 50%;
  filter: blur(70px);
  background: radial-gradient(circle, rgba(201,100,57,0.35), transparent 70%);
  animation: heroOrbB 20s ease-in-out infinite;
  pointer-events: none; z-index: 0;
}
.insight-hero::after {
  right: -120px; bottom: -180px;
  background: radial-gradient(circle, rgba(201,100,57,0.32), transparent 70%);
  animation: heroOrbB 20s ease-in-out infinite;
}
.pg-hero > .container,
.insight-hero > .container { position: relative; z-index: 1; }
@keyframes heroOrbA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, 30px) scale(1.08); }
}
@keyframes heroOrbB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-30px, -20px) scale(1.05); }
}

/* ---- Reveal smoother + stagger ---- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}
.reveal.in,
.reveal.is-visible,
.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Section eyebrow animated underline ---- */
.eyebrow {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
}
.eyebrow::after {
  content: "";
  display: inline-block;
  width: 28px; height: 1.5px;
  background: linear-gradient(90deg, #c96439, transparent);
  margin-left: 0.4rem;
  animation: eyebrowPulse 2.6s ease-in-out infinite;
  transform-origin: left center;
}
@keyframes eyebrowPulse {
  0%, 100% { transform: scaleX(1);   opacity: 1;    }
  50%      { transform: scaleX(1.6); opacity: 0.55; }
}

/* ---- Icon micro-animation on card hover ---- */
.pg-card:hover .pg-card-name,
.product-card:hover h3 { color: #e8a05a; transition: color .25s ease; }

/* ---- Animated counter / stat pulse ---- */
[data-counter],
.insight-hero-stats span strong,
.stat-number {
  transition: transform .4s ease, color .4s ease;
}
[data-counter].is-pulsing,
.insight-hero-stats span.is-pulsing strong {
  transform: scale(1.06);
  color: #e8a05a;
}

/* ---- Smooth scroll polish ---- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .pg-hero::before, .pg-hero::after, .insight-hero::after { animation: none !important; }
  .eyebrow::after { animation: none !important; }
  .pg-card::before, .product-card::before, .story-card::before { display: none; }
}

/* ---- Light-theme adjustments for hero orbs ---- */
html[data-theme="light"] .pg-hero::before,
html[data-theme="light"] .insight-hero::after {
  opacity: 0.55;
  filter: blur(90px);
}
html[data-theme="light"] .pg-hero::after { opacity: 0.55; filter: blur(80px); }
html[data-theme="light"] .pg-hero .reveal {
  opacity: 1 !important;
  transform: none !important;
}
html[data-theme="light"] .pg-card:hover,
html[data-theme="light"] .product-card:hover,
html[data-theme="light"] .story-card:hover,
html[data-theme="light"] .industry-card:hover {
  box-shadow: 0 22px 44px -22px rgba(31,97,171,0.30),
              0 12px 26px -12px rgba(201,100,57,0.22);
}

/* Subtle tilt on hover for cards (very small, premium) */
.pg-card,
.product-card,
.story-card,
.industry-card,
.about-panel,
.spec-meta-card {
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease;
}
.pg-card:hover,
.product-card:hover,
.story-card:hover,
.industry-card:hover,
.about-panel:hover,
.spec-meta-card:hover {
  transform: translateY(-4px);
}

/* Ensure section padding looks balanced on tiny phones */
@media (max-width: 480px) {
  .pg-hero { min-height: 220px; }
  .pg-hero h1 { font-size: 1.55rem; }
  .pg-section { padding: 50px 0 60px; }
}

/* ============================================================
   41. LIGHT-THEME OVERRIDES for .pg-card (product list pages)
   - inline page styles default to dark; invert in light theme
   ============================================================ */
html[data-theme="light"] .pg-card {
  background: #ffffff;
  border-color: rgba(15, 24, 40, 0.08);
  box-shadow: 0 6px 18px -10px rgba(15,24,40,0.18);
}
html[data-theme="light"] .pg-card:hover {
  border-color: rgba(201,100,57,0.40);
  box-shadow: 0 22px 44px -22px rgba(31,97,171,0.30),
              0 12px 26px -12px rgba(201,100,57,0.22);
}
html[data-theme="light"] .pg-card-img { background: #eef2f7; }
html[data-theme="light"] .pg-card-img-overlay {
  background: linear-gradient(180deg, transparent 55%, rgba(255,255,255,0.55));
}
html[data-theme="light"] .pg-card-name { color: #0f1828; }
html[data-theme="light"] .pg-card-desc { color: #4a5868; }
html[data-theme="light"] .pg-card:hover .pg-card-name { color: #c96439; }

/* spec-meta-card on petro page */
html[data-theme="light"] .spec-meta-card {
  background: #ffffff;
  border-color: rgba(15,24,40,0.08);
  color: #0f1828;
}
html[data-theme="light"] .spec-meta-card h3,
html[data-theme="light"] .spec-meta-card h4 { color: #0f1828; }
html[data-theme="light"] .spec-meta-card p,
html[data-theme="light"] .spec-meta-card li { color: #4a5868; }

/* pg-section bg: ensure no leftover dark bg on light theme */
html[data-theme="light"] .pg-section { background: transparent; }
html[data-theme="light"] .pg-cta-section {
  background: linear-gradient(135deg, #f6f9ff 0%, #fff5ee 100%);
  color: #0f1828;
}
html[data-theme="light"] .pg-cta-section .pg-cta-inner {
  border: 1px solid rgba(15,24,40,0.10) !important;
  box-shadow: 0 18px 42px rgba(20,30,50,0.10) !important;
}
html[data-theme="light"] .pg-cta-section h2,
html[data-theme="light"] .pg-cta-section h3,
html[data-theme="light"] .pg-cta-section p { color: #0f1828; }

/* pg-breadcrumb readability */
html[data-theme="light"] .pg-breadcrumb,
html[data-theme="light"] .pg-breadcrumb a { color: #4a5868; }
html[data-theme="light"] .pg-breadcrumb a:hover { color: #c96439; }

/* products counter in header */
html[data-theme="light"] .pg-section h2 { color: #0f1828; }

/* Spec modal (if open) light theme */
html[data-theme="light"] .pg-modal-content {
  background: #ffffff; color: #0f1828;
  border-color: rgba(15,24,40,0.08);
}
html[data-theme="light"] .pg-modal-content h3,
html[data-theme="light"] .pg-modal-content h4 { color: #0f1828; }
html[data-theme="light"] .pg-modal-content p,
html[data-theme="light"] .pg-modal-content li,
html[data-theme="light"] .pg-modal-content td,
html[data-theme="light"] .pg-modal-content th { color: #4a5868; }

/* ============================================================
   42. Logo swap for light theme
   - default logo.png stays for dark theme
   - logo-l.png used for header / footer / WhatsApp avatar in light theme
   ============================================================ */
html[data-theme="light"] .brand-logo img,
html[data-theme="light"] .footer-logo-img,
html[data-theme="light"] .wa-preview-avatar img {
  content: url("../image/logo/logo-l.png");
}

/* High-DPI variant */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  html[data-theme="light"] .brand-logo img,
  html[data-theme="light"] .footer-logo-img,
  html[data-theme="light"] .wa-preview-avatar img {
    content: url("../image/logo/logo2x-l.png");
  }
}

/* ============================================================
   43. WhatsApp preview card - light theme overrides
   - Light glassy panel, dark text, transparent avatar so the
     theme-appropriate logo (Section 42) reads on its own.
   ============================================================ */
html[data-theme="light"] .wa-preview {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 252, 0.96));
  border: 1px solid rgba(15, 24, 40, 0.08);
  box-shadow:
    0 24px 50px rgba(15, 24, 40, 0.18),
    0 0 0 1px rgba(37, 211, 102, 0.18) inset;
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
}

/* Tail tip matches panel */
html[data-theme="light"] .wa-preview::after {
  background: linear-gradient(135deg, transparent 50%, rgba(245, 248, 252, 0.96) 50%);
  border-right-color: rgba(15, 24, 40, 0.08);
  border-bottom-color: rgba(15, 24, 40, 0.08);
}

/* Close button */
html[data-theme="light"] .wa-preview-close {
  background: rgba(15, 24, 40, 0.06);
  color: #4a5868;
}
html[data-theme="light"] .wa-preview-close:hover {
  background: rgba(15, 24, 40, 0.12);
  color: #0f1828;
}

/* Header divider */
html[data-theme="light"] .wa-preview-head {
  border-bottom-color: rgba(15, 24, 40, 0.08);
}

/* Avatar transparent so the logo (logo-l.png from Section 42) sits clean */
html[data-theme="light"] .wa-preview-avatar {
  background: transparent;
  box-shadow: none;
  border: 1px solid rgba(15, 24, 40, 0.08);
}
html[data-theme="light"] .wa-preview-avatar img {
  filter: none;
  width: 32px;
  height: 32px;
}

/* Meta text */
html[data-theme="light"] .wa-preview-meta strong { color: #0f1828; }
html[data-theme="light"] .wa-preview-meta span   { color: #4a5868; }

/* Bubble */
html[data-theme="light"] .wa-preview-bubble {
  color: #1f2a3d;
  background: rgba(37, 211, 102, 0.08);
  border-color: rgba(37, 211, 102, 0.22);
}
html[data-theme="light"] .wa-preview-bubble b { color: #128c7e; }

/* CTA stays brand green - small shadow tweak for light bg */
html[data-theme="light"] .wa-preview-cta {
  box-shadow: 0 6px 16px rgba(18, 140, 126, 0.28);
}
html[data-theme="light"] .wa-preview-cta:hover {
  box-shadow: 0 10px 22px rgba(18, 140, 126, 0.4);
}

/* ============================================================
   44. WhatsApp avatar - transparent in BOTH themes
   - Removes the green disc behind the logo so the logo itself
     is the avatar. Logo source already swaps per theme via
     Section 42 (light) / default markup (dark).
   ============================================================ */
.wa-preview-avatar {
  background: transparent !important;
  box-shadow: none !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.wa-preview-avatar img {
  width: 32px;
  height: 32px;
  filter: none;
}

/* Light theme: softer border on light panel */
html[data-theme="light"] .wa-preview-avatar {
  border-color: rgba(15, 24, 40, 0.10);
}

/* ============================================================
   45. WhatsApp AI Concierge - chat thread, chips, input
   - Works in both dark (default) and light themes.
   - Lives inside the existing #waPreview panel (Sections 43-44).
   ============================================================ */

/* Make the panel a column so the input row sticks at bottom */
.wa-preview {
  display: flex;
  flex-direction: column;
  width: 320px;
  max-height: 460px;
}
.wa-preview-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 8px;
  margin-bottom: 10px;
}

/* Thread - scrollable */
.wa-thread {
  flex: 1 1 auto;
  min-height: 140px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.18) transparent;
}
.wa-thread::-webkit-scrollbar { width: 6px; }
.wa-thread::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18);
  border-radius: 3px;
}
html[data-theme="light"] .wa-thread {
  scrollbar-color: rgba(15,24,40,0.20) transparent;
}
html[data-theme="light"] .wa-thread::-webkit-scrollbar-thumb {
  background: rgba(15,24,40,0.20);
}

/* Bubble base */
.wa-msg {
  font-size: 0.78rem;
  line-height: 1.5;
  padding: 8px 11px;
  border-radius: 12px;
  max-width: 85%;
  word-wrap: break-word;
  animation: waBubbleIn 0.32s cubic-bezier(.2,.7,.2,1);
}
.wa-msg b { font-weight: 700; }

/* Bot bubble - left aligned */
.wa-msg-bot {
  align-self: flex-start;
  color: #d8e9ff;
  background: rgba(37, 211, 102, 0.10);
  border: 1px solid rgba(37, 211, 102, 0.18);
  border-radius: 12px 12px 12px 3px;
}
.wa-msg-bot b { color: #4cf08e; }

/* User bubble - right aligned */
.wa-msg-user {
  align-self: flex-end;
  color: #f4f8ff;
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.85), rgba(18, 140, 126, 0.9));
  border: 1px solid rgba(37, 211, 102, 0.5);
  border-radius: 12px 12px 3px 12px;
}

/* Light theme bubbles */
html[data-theme="light"] .wa-msg-bot {
  color: #1f2a3d;
  background: rgba(37, 211, 102, 0.10);
  border-color: rgba(37, 211, 102, 0.25);
}
html[data-theme="light"] .wa-msg-bot b { color: #128c7e; }
html[data-theme="light"] .wa-msg-user {
  color: #ffffff;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-color: rgba(18, 140, 126, 0.5);
}

/* Typing indicator */
.wa-typing {
  display: inline-flex;
  gap: 3px;
  padding: 10px 12px;
  align-items: center;
  align-self: flex-start;
}
.wa-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
  animation: waTypingDot 1.1s ease-in-out infinite;
}
.wa-typing span:nth-child(2) { animation-delay: 0.15s; }
.wa-typing span:nth-child(3) { animation-delay: 0.30s; }
@keyframes waTypingDot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40%           { transform: translateY(-3px); opacity: 0.95; }
}

/* Quick-reply chip row */
.wa-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.wa-chips:empty { display: none; }
.wa-chip {
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.10);
  color: #cfead6;
  border: 1px solid rgba(37, 211, 102, 0.30);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.wa-chip:hover {
  background: rgba(37, 211, 102, 0.22);
  color: #ffffff;
  border-color: rgba(37, 211, 102, 0.55);
  transform: translateY(-1px);
}
html[data-theme="light"] .wa-chip {
  background: rgba(37, 211, 102, 0.10);
  color: #128c7e;
  border-color: rgba(37, 211, 102, 0.32);
}
html[data-theme="light"] .wa-chip:hover {
  background: #25d366;
  color: #ffffff;
  border-color: #128c7e;
}

/* Input row */
.wa-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.wa-input {
  flex: 1 1 auto;
  font-family: inherit;
  font-size: 0.78rem;
  background: transparent;
  border: 0;
  outline: none;
  color: #f4f8ff;
  padding: 6px 0;
  min-width: 0;
}
.wa-input::placeholder { color: #8aa3bf; }
.wa-send {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(18, 140, 126, 0.35);
}
.wa-send:hover { transform: translateY(-1px); filter: brightness(1.08); }
.wa-send svg { width: 14px; height: 14px; }

/* Light theme input row */
html[data-theme="light"] .wa-input-row {
  background: rgba(15, 24, 40, 0.04);
  border-color: rgba(15, 24, 40, 0.10);
}
html[data-theme="light"] .wa-input { color: #0f1828; }
html[data-theme="light"] .wa-input::placeholder { color: #6b7a8c; }

/* Tighten on tiny screens */
@media (max-width: 420px) {
  .wa-preview { width: calc(100vw - 36px); max-height: 70vh; }
  .wa-thread  { max-height: 50vh; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .wa-msg, .wa-typing span, .wa-chip { animation: none !important; transition: none !important; }
}

/* ============================================================
   46. i18n - language switcher + Google Translate hide + RTL
   ============================================================ */

/* Hide Google Translate UI completely (banner, tooltip, branding) */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
iframe.skiptranslate,
.goog-tooltip,
.goog-tooltip:hover,
.goog-text-highlight {
  display: none !important;
  background: transparent !important;
  box-shadow: none !important;
}
body { top: 0 !important; position: static !important; }
#google_translate_element {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden !important;
  visibility: hidden !important;
}
.goog-te-gadget { font-size: 0 !important; color: transparent !important; }
.goog-te-gadget * { display: none !important; }

/* ---------- Language switcher trigger ---------- */
.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
}
.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f4f8ff;
  font: 600 0.78rem / 1 inherit;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.lang-trigger:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}
.lang-flag { font-size: 1.05rem; line-height: 1; }
.lang-code { font-weight: 700; }
.lang-caret {
  width: 10px; height: 7px;
  transition: transform 0.25s ease;
  opacity: 0.85;
}
.lang-switcher.is-open .lang-caret { transform: rotate(180deg); }

/* ---------- Dropdown menu ---------- */
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: linear-gradient(180deg, rgba(20, 32, 50, 0.96), rgba(8, 16, 28, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 1100;
}
.lang-switcher.is-open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.lang-menu li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  cursor: pointer;
  color: #d8e9ff;
  font-size: 0.82rem;
  line-height: 1.2;
  transition: background 0.18s ease, color 0.18s ease;
}
.lang-menu li:hover {
  background: rgba(37, 211, 102, 0.12);
  color: #ffffff;
}
.lang-menu li[aria-selected="true"] {
  background: rgba(37, 211, 102, 0.18);
  color: #ffffff;
}
.lang-menu li[aria-selected="true"]::after {
  content: '';
  margin-left: auto;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4cf08e;
  box-shadow: 0 0 6px rgba(76, 240, 142, 0.7);
}
.lang-menu .lang-native { font-weight: 600; }
.lang-menu .lang-en {
  font-size: 0.7rem;
  color: #8aa3bf;
  margin-left: 4px;
}

/* ---------- Light theme ---------- */
html[data-theme="light"] .lang-trigger {
  background: rgba(15, 24, 40, 0.05);
  border-color: rgba(15, 24, 40, 0.10);
  color: #0f1828;
}
html[data-theme="light"] .lang-trigger:hover {
  background: rgba(15, 24, 40, 0.10);
  border-color: rgba(15, 24, 40, 0.18);
}
html[data-theme="light"] .lang-menu {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,248,252,0.98));
  border-color: rgba(15, 24, 40, 0.10);
  box-shadow: 0 18px 40px rgba(15, 24, 40, 0.18);
}
html[data-theme="light"] .lang-menu li {
  color: #1f2a3d;
}
html[data-theme="light"] .lang-menu li:hover {
  background: rgba(37, 211, 102, 0.12);
  color: #0f1828;
}
html[data-theme="light"] .lang-menu li[aria-selected="true"] {
  background: rgba(37, 211, 102, 0.18);
  color: #0f1828;
}
html[data-theme="light"] .lang-menu .lang-en { color: #6b7a8c; }

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  .lang-trigger { height: 34px; padding: 0 8px; font-size: 0.72rem; }
  .lang-code { display: none; }
  .lang-menu { min-width: 180px; }
}

/* ---------- RTL adjustments (Arabic) ---------- */
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .lang-menu { right: auto; left: 0; transform-origin: top left; }
html[dir="rtl"] .lang-switcher { margin-right: 0; margin-left: 8px; }
html[dir="rtl"] .nav-links { padding-right: 0; }
html[dir="rtl"] .footer-grid,
html[dir="rtl"] .footer-cols { direction: rtl; }
html[dir="rtl"] .wa-msg-bot   { border-radius: 12px 12px 3px 12px; align-self: flex-end; }
html[dir="rtl"] .wa-msg-user  { border-radius: 12px 12px 12px 3px; align-self: flex-start; }
html[dir="rtl"] .wa-stack,
html[dir="rtl"] .scroll-top   { right: auto; left: 16px; }
html[dir="rtl"] .wa-preview   { right: auto; left: 0; transform-origin: bottom left; }
html[dir="rtl"] .wa-preview::after { right: auto; left: 22px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .lang-trigger, .lang-caret, .lang-menu { transition: none !important; }
}

/* ============================================================
   46b. i18n - compact dropdown + after-nav placement
   - Dropdown items show only flag + short code (EN/AR/ZH/VI)
   - Switcher sits at the far right of .nav-row, after menu
   ============================================================ */

/* Compact dropdown: narrower, icon + code only */
.lang-menu {
  min-width: 96px;
}
.lang-menu li {
  gap: 8px;
  padding: 8px 10px;
  justify-content: flex-start;
}
.lang-menu li .lang-code {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.lang-menu li .lang-flag {
  font-size: 1.05rem;
  width: 18px;
  text-align: center;
}
/* Selected dot pinned right */
.lang-menu li[aria-selected="true"]::after { margin-left: auto; }

/* Push switcher to the far right of the header row */
.lang-switcher {
  margin-left: auto;
  margin-right: 0;
}

/* When language switcher is the last child, ensure spacing from theme toggle */
.nav-row .theme-toggle + .lang-switcher,
.nav-row .nav-toggle  + .lang-switcher,
.nav-row nav + .lang-switcher {
  margin-left: 10px;
}

/* Mobile: keep compact, dropdown stays right-aligned */
@media (max-width: 600px) {
  .lang-menu { min-width: 88px; }
  .lang-menu li { padding: 7px 9px; }
}

/* RTL: flip the auto margin */
html[dir="rtl"] .lang-switcher {
  margin-left: 0;
  margin-right: auto;
}
html[dir="rtl"] .nav-row .theme-toggle + .lang-switcher,
html[dir="rtl"] .nav-row .nav-toggle  + .lang-switcher,
html[dir="rtl"] .nav-row nav + .lang-switcher {
  margin-left: 0;
  margin-right: 10px;
}

/* ============================================================
   47. Theme toggle - floating right-side slide-in tab
   - Removed from nav-row; now fixed to right edge, vertically
     centred. Peeks 10px from the right by default.
     Slides fully in on hover. No nav layout impact.
   ============================================================ */

.theme-toggle {
  /* Fixed, right-centred */
  position: fixed !important;
  right: 0 !important;
  top: 15% !important;
  z-index: 1200 !important;

  /* Pill shape, flat on the right (wall) side */
  width: 50px !important;
  height: 50px !important;
  padding: 0 !important;
  border-radius: 12px 0 0 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-right: none !important;

  /* Dark theme base */
  background: rgba(14, 31, 54, 0.92) !important;
  color: #f0c78f !important;
  cursor: pointer !important;
  display: grid !important;
  place-items: center !important;

  /* Slide: peeking 10px from right, centred vertically */
  transform: translateY(-50%) translateX(calc(100% - 20px)) !important;
  transition:
    transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.22s ease,
    box-shadow 0.22s ease !important;

  /* Soft left-side glow tab indicator */
  box-shadow:
    -3px 0 0 0 rgba(240, 199, 143, 0.55),
    0 4px 18px rgba(0, 0, 0, 0.35) !important;
}

/* Slide fully in on hover */
.theme-toggle:hover {
  transform: translateY(-50%) translateX(0) !important;
  background: rgba(14, 31, 54, 0.98) !important;
  box-shadow:
    -3px 0 0 0 rgba(240, 199, 143, 0.8),
    0 8px 28px rgba(0, 0, 0, 0.45) !important;
}

/* Icon sizing */
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  width: 18px !important;
  height: 18px !important;
  pointer-events: none !important;
}

/* Sun icon shown in dark theme, moon in light */
html[data-theme="dark"]  .theme-toggle .icon-sun  { display: block !important; }
html[data-theme="dark"]  .theme-toggle .icon-moon { display: none  !important; }
html[data-theme="light"] .theme-toggle .icon-sun  { display: none  !important; }
html[data-theme="light"] .theme-toggle .icon-moon { display: block !important; }

/* Light theme tab colours */
html[data-theme="light"] .theme-toggle {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(15, 24, 40, 0.12) !important;
  color: #1f2a3d !important;
  box-shadow:
    -3px 0 0 0 rgba(37, 211, 102, 0.55),
    0 4px 18px rgba(15, 24, 40, 0.18) !important;
}
html[data-theme="light"] .theme-toggle:hover {
  background: rgba(255, 255, 255, 1) !important;
  box-shadow:
    -3px 0 0 0 rgba(37, 211, 102, 0.9),
    0 8px 28px rgba(15, 24, 40, 0.22) !important;
}

/* RTL: mirror to left side */
html[dir="rtl"] .theme-toggle {
  right: auto !important;
  left: 0 !important;
  border-radius: 0 12px 12px 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-left: none !important;
  transform: translateY(-50%) translateX(calc(-100% + 10px)) !important;
  box-shadow:
    3px 0 0 0 rgba(240, 199, 143, 0.55),
    0 4px 18px rgba(0, 0, 0, 0.35) !important;
}
html[dir="rtl"] .theme-toggle:hover {
  transform: translateY(-50%) translateX(0) !important;
  box-shadow:
    3px 0 0 0 rgba(240, 199, 143, 0.8),
    0 8px 28px rgba(0, 0, 0, 0.45) !important;
}

/* Mobile: slightly smaller */
@media (max-width: 600px) {
  .theme-toggle {
    width: 38px !important;
    height: 38px !important;
  }
  .theme-toggle .icon-sun,
  .theme-toggle .icon-moon { width: 15px !important; height: 15px !important; }
}

/* Reduced motion: instant snap */
@media (prefers-reduced-motion: reduce) {
  .theme-toggle { transition: background 0.18s ease !important; transform: translateY(-50%) translateX(0) !important; }
}
