/* ═══════════════════════════════════════════════════
   S & S LOGISTICS — SHARED DESIGN SYSTEM v4.0
   snslogisticsbd.com

   THEME ENGINE STRATEGY
   ─────────────────────
   • :root holds LIGHT MODE values (default — no attribute needed).
   • [data-theme="dark"] on <html> activates dark overrides.
   • localStorage key: "sns-theme" ("dark" | unset = light).
   • Toggle lives ONLY in the footer Navigate column.
   • NO hardcoded hex values anywhere in shared.css.
     Page inline styles MUST use only these tokens.

   PAGE-SPECIFIC TOKENS (declared here so both themes cover them):
   • --page-deep   — used by #ab-contact, #th-contact, #contact
   • --page-card   — used by .why-item, .ab-stat-cell, stat grids
   • --card-scrim  — product card image overlay (bottom gradient)
   • --ab-deep     — AquaBounty section deep bg
   • --th-deep     — TropiqHarvest section deep bg

   CHANGELOG v4.0:
   - Light mode default; dark is the override.
   - All tokens cover both themes.
   - Theme toggle in footer only (removed from header).
   - Skeleton loader, mobile menu, scroll reveal preserved.
═══════════════════════════════════════════════════ */

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; scrollbar-gutter: stable; }
img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }
button { font-family: inherit; }

/* ════════════════════════════════════════════════
   DESIGN TOKENS — LIGHT MODE (DEFAULT)
   No attribute needed on <html>; these are the base.
════════════════════════════════════════════════ */
:root {
  /* ── Backgrounds ── */
  --ink:          #f4f1eb;
  --ink2:         #ede9e1;
  --ink3:         #e5e0d7;
  --card:         #ffffff;
  --card2:        #f9f6f1;

  /* ── Brand ── */
  --gold:         #a8720a;
  --gold-light:   #c9940d;
  --gold-dim:     rgba(168,114,10,0.14);
  --gold-faint:   rgba(168,114,10,0.07);

  --teal:         #155f6a;
  --teal-bright:  #1a9aaa;
  --teal-faint:   rgba(21,95,106,0.14);

  --rust:         #7a3025;

  /* ── Text ── */
  --cream:        #1a1610;
  --sand:         #4a3e2e;
  --white:        #0d0a06;

  /* ── Borders ── */
  --border-gold:  rgba(168,114,10,0.18);
  --border-white: rgba(26,22,16,0.12);

  /* ── Layout ── */
  --nav-h:        80px;
  --section-pad:  110px;

  /* ── Shadows ── */
  --shadow-gold:  0 8px 32px rgba(168,114,10,0.12);
  --shadow-dark:  0 20px 60px rgba(0,0,0,0.12);

  /* ── Mobile menu ── */
  --menu-transition: 0.34s cubic-bezier(0.16,1,0.3,1);

  /* ── Nav scrolled bg ── */
  --nav-scrolled-bg:  rgba(244,241,235,0.96);
  --nav-scrolled-shadow: rgba(168,114,10,0.15);

  /* ── Mobile menu bg ── */
  --mob-menu-bg:  rgba(244,241,235,0.98);

  /* ── Footer ── */
  --footer-bg:    #e5e0d7;

  /* ── Forms ── */
  --field-bg:     rgba(0,0,0,0.04);
  --field-border: rgba(26,22,16,0.14);
  --placeholder:  rgba(74,62,46,0.4);
  --select-opt-bg: #ffffff;

  /* ── Page-specific deep section backgrounds ── */
  /* Used by: #ab-contact, #th-contact, about #contact, hero-bg sections */
  --page-deep:    #d8d2c7;
  --ab-deep:      #c8e4e8;   /* AquaBounty contact section */
  --th-deep:      #ccd8c8;   /* TropiqHarvest contact section */

  /* ── Card / stat grid backgrounds ── */
  --page-card:    #ffffff;   /* .why-item, .ab-stat-cell etc */

  /* ── Product card image scrim (bottom gradient) ── */
  /* Light mode: slightly lighter scrim so text stays readable */
  --card-scrim-start: rgba(20,18,12,0.82);
  --card-scrim-mid:   rgba(20,18,12,0.15);

  /* ── Skeleton loader ── */
  --skel-base:    #ede9e1;
  --skel-shine:   #f9f6f1;

  /* ── Dev credit ── */
  --dev-text:     rgba(74,62,46,0.4);
  --dev-link:     rgba(168,114,10,0.6);

  /* ── Theme toggle button ── */
  --toggle-bg:    rgba(168,114,10,0.1);
  --toggle-border: rgba(168,114,10,0.3);
  --toggle-color: #a8720a;
  --toggle-icon:  '🌙'; /* shown in light mode → click for dark */
}

/* ════════════════════════════════════════════════
   DARK MODE OVERRIDES
   Applied when <html data-theme="dark">
════════════════════════════════════════════════ */
[data-theme="dark"] {
  --ink:          #0d1117;
  --ink2:         #0a0e13;
  --ink3:         #07090c;
  --card:         #0d1520;
  --card2:        #111e2c;

  --gold:         #c9a84c;
  --gold-light:   #e6c97a;
  --gold-dim:     rgba(201,168,76,0.15);
  --gold-faint:   rgba(201,168,76,0.07);

  --teal:         #1a5f6a;
  --teal-bright:  #25b8cc;
  --teal-faint:   rgba(26,95,106,0.18);

  --rust:         #8b3a2f;

  --cream:        #f5f0e8;
  --sand:         #d9cbb8;
  --white:        #fdfaf5;

  --border-gold:  rgba(201,168,76,0.15);
  --border-white: rgba(245,240,232,0.08);

  --shadow-gold:  0 8px 32px rgba(201,168,76,0.15);
  --shadow-dark:  0 20px 60px rgba(0,0,0,0.5);

  --nav-scrolled-bg:  rgba(13,17,23,0.96);
  --nav-scrolled-shadow: rgba(201,168,76,0.15);

  --mob-menu-bg:  rgba(10,14,19,0.98);

  --footer-bg:    #07090c;

  --field-bg:     rgba(255,255,255,0.04);
  --field-border: rgba(245,240,232,0.12);
  --placeholder:  rgba(217,203,184,0.38);
  --select-opt-bg: #0d1520;

  --page-deep:    #070d10;
  --ab-deep:      #0a1e26;
  --th-deep:      #0f1a14;

  --page-card:    #0d1520;

  --card-scrim-start: rgba(13,17,23,0.88);
  --card-scrim-mid:   rgba(13,17,23,0.0);

  --skel-base:    #0d1520;
  --skel-shine:   #111e2c;

  --dev-text:     rgba(217,203,184,0.35);
  --dev-link:     rgba(201,168,76,0.55);

  --toggle-bg:    rgba(201,168,76,0.1);
  --toggle-border: rgba(201,168,76,0.3);
  --toggle-color: #c9a84c;
}

/* ── BODY BASE ── */
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--ink);
  color: var(--cream);
  overflow-x: hidden;
  line-height: 1.65;
  transition: background 0.3s ease, color 0.3s ease;
}

/* grain overlay — subtle on light, very subtle on dark */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  opacity: 0.018;
  pointer-events: none;
  z-index: 9998;
}
[data-theme="dark"] body::before { opacity: 0.025; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--ink2); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
::selection { background: var(--gold); color: var(--ink); }

/* ════════════════════════════════════════════════
   GLOBAL NAVBAR
   Header is UNCHANGED per instructions.
   No toggle here — it lives in footer only.
════════════════════════════════════════════════ */
#global-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  z-index: 1000;
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}

#global-nav.scrolled {
  background: var(--nav-scrolled-bg);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 1px 0 var(--border-gold);
}

/* ── Logo ── */
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  line-height: 1; text-decoration: none;
  flex-shrink: 0; min-width: 0;
}
.nav-logo-img {
  height: 38px; width: auto; object-fit: contain; display: block;
  filter: brightness(1.05) drop-shadow(0 0 6px rgba(168,114,10,0.18));
  transition: filter 0.3s; flex-shrink: 0;
}
[data-theme="dark"] .nav-logo-img {
  filter: brightness(1.05) drop-shadow(0 0 6px rgba(201,168,76,0.18));
}
.nav-logo:hover .nav-logo-img {
  filter: brightness(1.15) drop-shadow(0 0 10px rgba(168,114,10,0.35));
}
[data-theme="dark"] .nav-logo:hover .nav-logo-img {
  filter: brightness(1.15) drop-shadow(0 0 10px rgba(201,168,76,0.35));
}

.nav-logo-text { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }

.nav-logo-main {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem; font-weight: 600; color: var(--gold);
  letter-spacing: 0.06em; line-height: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-logo-main-full  { display: inline; }
.nav-logo-main-short { display: none; }
.nav-logo-main-abbr  { display: none; }

.nav-logo-sub {
  font-size: 0.52rem; letter-spacing: 0.26em; color: var(--sand);
  text-transform: uppercase; margin-top: 3px; opacity: 0.8; white-space: nowrap;
}

/* ── Nav links ── */
.nav-links { display: flex; align-items: center; list-style: none; gap: 0; }
.nav-links > li { position: relative; }

.nav-links > li > a,
.nav-links > li > button.nav-dd-trigger {
  display: block; padding: 28px 18px;
  font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cream); text-decoration: none;
  cursor: pointer; background: none; border: none;
  transition: color 0.25s; position: relative; white-space: nowrap;
}

.nav-links > li > a::after,
.nav-links > li > button.nav-dd-trigger::after {
  content: ''; position: absolute;
  bottom: 20px; left: 18px; right: 18px;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transition: transform 0.3s ease; transform-origin: left;
}
.nav-links > li:hover > a,
.nav-links > li:hover > button.nav-dd-trigger,
.nav-links > li > a.nav-active { color: var(--gold-light); }
.nav-links > li:hover > a::after,
.nav-links > li:hover > button.nav-dd-trigger::after,
.nav-links > li > a.nav-active::after { transform: scaleX(1); }

/* ── Desktop Dropdown ── */
.nav-dropdown {
  position: absolute; top: calc(100% - 8px); left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--nav-scrolled-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(168,114,10,0.22);
  border-top: 2px solid var(--gold);
  min-width: 270px; opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  box-shadow: var(--shadow-dark); z-index: 100;
}
[data-theme="dark"] .nav-dropdown {
  background: rgba(10,14,19,0.98);
  border-color: rgba(201,168,76,0.22);
}
.has-dropdown:hover .nav-dropdown {
  opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: flex; align-items: center; gap: 14px; padding: 14px 20px;
  font-size: 0.82rem; color: var(--cream);
  border-bottom: 1px solid var(--border-white);
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
}
.nav-dropdown a:last-of-type { border-bottom: none; }
.nav-dropdown a:hover { background: var(--gold-faint); color: var(--gold-light); padding-left: 26px; }

.dd-icon { font-size: 1.25rem; flex-shrink: 0; }
.dd-text { display: flex; flex-direction: column; }
.dd-name { font-weight: 600; font-size: 0.83rem; }
.dd-tag  { font-size: 0.65rem; color: var(--sand); letter-spacing: 0.08em; margin-top: 2px; }
.dd-divider { border: none; border-top: 1px solid var(--border-gold); margin: 4px 0; }
.dd-coming-soon { padding: 8px 20px 14px; }
.dd-soon-label {
  font-size: 0.58rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--sand); opacity: 0.5; display: block; margin-bottom: 8px;
}
.dd-soon-item {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0; font-size: 0.78rem; color: var(--sand); opacity: 0.55; cursor: default;
}
.dd-soon-item:hover { background: none !important; padding-left: 0 !important; color: var(--sand) !important; }
.dd-soon-badge {
  font-size: 0.54rem; letter-spacing: 0.15em; text-transform: uppercase;
  border: 1px solid var(--border-gold); color: var(--gold);
  padding: 2px 7px; border-radius: 2px; margin-left: auto; opacity: 0.7;
}

.nav-cta {
  margin-left: 10px; padding: 10px 22px !important;
  background: var(--gold) !important; color: var(--ink) !important;
  font-weight: 700 !important; letter-spacing: 0.14em;
  transition: background 0.25s !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }
.nav-cta::after { display: none !important; }

/* ── Hamburger ── */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; cursor: pointer; padding: 10px; background: none; border: none;
  z-index: 1010; position: relative; width: 44px; height: 44px; flex-shrink: 0;
  touch-action: manipulation; /* prevent 300ms tap delay on mobile */
  -webkit-tap-highlight-color: transparent;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--cream); border-radius: 2px;
  transition: transform var(--menu-transition), opacity 0.2s ease, background 0.2s;
  transform-origin: center;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════════════════════════════════════════════
   MOBILE MENU — SLIDE-DOWN DROPDOWN
════════════════════════════════════════════════ */
#mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  max-height: calc(100vh - var(--nav-h));
  max-height: calc(100dvh - var(--nav-h)); /* dynamic viewport — hides mobile browser chrome correctly */
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--mob-menu-bg);
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
  box-shadow: var(--shadow-dark);
  z-index: 999;
  transform: translateY(-12px); opacity: 0;
  visibility: hidden; pointer-events: none;
  transition:
    transform var(--menu-transition),
    opacity var(--menu-transition),
    visibility var(--menu-transition);
  padding: 18px 0 24px;
}
#mobile-menu.open {
  transform: translateY(0); opacity: 1;
  visibility: visible; pointer-events: all;
}

.mobile-menu-link {
  display: block; width: 100%; padding: 14px 5vw;
  font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cream); text-decoration: none; background: none; border: none;
  text-align: left; cursor: pointer;
  border-bottom: 1px solid var(--border-white);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  opacity: 0; transform: translateX(-10px);
  transition:
    color 0.2s, background 0.2s, padding-left 0.2s,
    opacity var(--menu-transition), transform var(--menu-transition);
}
#mobile-menu.open .mobile-menu-link { opacity: 1; transform: translateX(0); }
#mobile-menu.open .mobile-menu-link:nth-of-type(1) { transition-delay: 0.04s; }
#mobile-menu.open .mobile-menu-link:nth-of-type(2) { transition-delay: 0.08s; }
#mobile-menu.open .mobile-menu-link:nth-of-type(3) { transition-delay: 0.12s; }
#mobile-menu.open .mobile-menu-link:nth-of-type(4) { transition-delay: 0.16s; }
#mobile-menu.open .mobile-menu-link:nth-of-type(5) { transition-delay: 0.20s; }
#mobile-menu.open .mobile-menu-link:nth-of-type(6) { transition-delay: 0.24s; }
.mobile-menu-link:hover,
.mobile-menu-link:focus-visible {
  color: var(--gold); background: var(--gold-faint); padding-left: calc(5vw + 8px);
}

.mobile-sub-links {
  display: flex; flex-direction: column;
  background: var(--gold-faint);
  border-left: 2px solid var(--border-gold);
  margin: 0 5vw 4px calc(5vw + 12px); padding: 4px 0;
  opacity: 0; transform: translateY(-6px);
  transition: opacity var(--menu-transition), transform var(--menu-transition);
}
#mobile-menu.open .mobile-sub-links { opacity: 1; transform: translateY(0); transition-delay: 0.10s; }
.mobile-sub-links a {
  display: flex; align-items: center; gap: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 0.85rem; font-weight: 500;
  color: var(--sand); text-decoration: none;
  padding: 10px 14px; border-bottom: 1px solid var(--border-white);
  transition: color 0.2s, background 0.2s; letter-spacing: 0.04em;
}
.mobile-sub-links a:last-child { border-bottom: none; }
.mobile-sub-links a:hover { color: var(--gold-light); background: var(--gold-faint); }
.mobile-sub-links a::before { content: '→'; font-size: 0.75rem; color: var(--gold); opacity: 0.6; flex-shrink: 0; }

.mobile-menu-cta {
  display: block; margin: 16px 5vw 4px; padding: 13px 20px;
  background: var(--gold); color: var(--ink);
  font-family: 'DM Sans', sans-serif; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  text-align: center; border: none; cursor: pointer; text-decoration: none;
  opacity: 0; transform: translateY(8px);
  transition: background 0.2s, opacity var(--menu-transition), transform var(--menu-transition);
  transition-delay: 0.28s;
}
#mobile-menu.open .mobile-menu-cta { opacity: 1; transform: translateY(0); }
.mobile-menu-cta:hover { background: var(--gold-light); }

.mobile-menu-divider {
  height: 1px; background: var(--border-gold);
  margin: 8px 5vw; opacity: 0; transition: opacity var(--menu-transition);
}
#mobile-menu.open .mobile-menu-divider { opacity: 1; }

.mobile-menu-close {
  position: absolute; top: 14px; right: 5vw;
  background: none; border: 1px solid var(--border-gold);
  color: var(--cream); font-size: 1rem; cursor: pointer;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.mobile-menu-close:hover { border-color: var(--gold); color: var(--gold); }
.mobile-menu-logo { display: none; }

/* ════════════════════════════════════════════════
   SHARED SECTION UTILITIES
════════════════════════════════════════════════ */
.section-pad    { padding: var(--section-pad) 5vw; }
.section-pad-sm { padding: 80px 5vw; }

.gold-rule {
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--teal-bright) 40%, transparent 100%);
}

.eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.eyebrow-line { width: 28px; height: 1px; background: var(--gold); }
.eyebrow-text { font-size: 0.67rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 700; color: var(--white); line-height: 1.08;
}
.section-title em { font-style: italic; color: var(--gold); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 36px; background: var(--gold); color: var(--ink);
  font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.25s, transform 0.2s;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 36px; background: transparent; color: var(--cream);
  font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--border-white);
  cursor: pointer; transition: border-color 0.25s, color 0.25s, transform 0.2s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; background: #25D366; color: #fff;
  font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; transition: background 0.25s, transform 0.2s;
}
.btn-whatsapp:hover { background: #1db954; transform: translateY(-2px); }

/* ════════════════════════════════════════════════
   AVAILABILITY BADGES
════════════════════════════════════════════════ */
.avail-badge {
  display: inline-block; font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 2px; margin-top: 6px;
}
.avail-yes      { background: rgba(37,211,102,0.12); color: #1a9944; border: 1px solid rgba(37,211,102,0.28); }
.avail-seasonal { background: rgba(245,158,11,0.12); color: #a06800; border: 1px solid rgba(245,158,11,0.28); }
.avail-soon     { background: var(--gold-faint); color: var(--gold); border: 1px solid var(--border-gold); }
[data-theme="dark"] .avail-yes   { color: #25d366; }
[data-theme="dark"] .avail-seasonal { color: #f59e0b; }

/* ════════════════════════════════════════════════
   SKELETON LOADER
════════════════════════════════════════════════ */
.catalog-loading {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px; padding: 24px 0;
}
@keyframes skeleton-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}
.skeleton-card {
  height: 280px; border-radius: 2px;
  background: linear-gradient(90deg, var(--skel-base) 0px, var(--skel-shine) 80px, var(--skel-base) 160px);
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

/* ════════════════════════════════════════════════
   TICKER / MARQUEE
════════════════════════════════════════════════ */
.ticker { background: var(--gold); padding: 13px 0; overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; animation: sns-ticker 30s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 20px;
  padding: 0 28px; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink);
}
.ticker-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink); opacity: 0.4; }
@keyframes sns-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ════════════════════════════════════════════════
   SHARED FOOTER
════════════════════════════════════════════════ */
.site-footer {
  background: var(--footer-bg);
  padding: 70px 5vw 28px;
  border-top: 1px solid var(--border-gold);
  transition: background 0.3s ease;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px; margin-bottom: 56px;
}

.footer-brand p {
  font-size: 0.86rem; line-height: 1.75;
  color: var(--sand); margin-top: 18px; max-width: 270px;
}

.footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-logo-img { height: 32px; width: auto; object-fit: contain; filter: brightness(1.05) opacity(0.9); }
.footer-logo-text { display: flex; flex-direction: column; }

.footer-col h4 {
  font-size: 0.67rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border-gold);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size: 0.84rem; color: var(--sand); text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold); }

.footer-contact-item {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 12px; font-size: 0.83rem; color: var(--sand);
}
.footer-contact-item .fci-icon { color: var(--gold); font-size: 0.95rem; flex-shrink: 0; margin-top: 1px; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid var(--border-white);
  flex-wrap: wrap; gap: 14px;
}
.footer-bottom p { font-size: 0.77rem; color: var(--sand); opacity: 0.55; }

.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px; border: 1px solid var(--border-white);
  display: flex; align-items: center; justify-content: center;
  color: var(--sand); text-decoration: none; font-size: 0.85rem;
  transition: border-color 0.2s, color 0.2s;
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }

/* ════════════════════════════════════════════════
   THEME TOGGLE — FOOTER ONLY
   Placed in the Navigate footer column by HTML.
   (.footer-theme-row wraps label + the toggle switch)
════════════════════════════════════════════════ */
.footer-theme-row {
  display: flex; align-items: center; gap: 12px;
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--border-gold);
}
.footer-theme-label {
  font-size: 0.78rem; color: var(--sand);
  user-select: none; cursor: pointer; flex: 1;
}

/* The pill toggle switch */
.theme-switch {
  position: relative; display: inline-block;
  width: 46px; height: 24px; flex-shrink: 0; cursor: pointer;
}
.theme-switch input { opacity: 0; width: 0; height: 0; position: absolute; }

.theme-switch-track {
  position: absolute; inset: 0;
  background: var(--toggle-bg);
  border: 1px solid var(--toggle-border);
  border-radius: 24px;
  transition: background 0.3s, border-color 0.3s;
}
.theme-switch-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), background 0.3s;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; line-height: 1;
}
/* LIGHT MODE (default): thumb slides RIGHT — day is active/on. Shows ☀️ sun. */
.theme-switch-thumb { transform: translateX(22px); }
.theme-switch-thumb::after { content: '☀️'; }

/* DARK MODE: thumb returns LEFT — night is active. Shows 🌙 moon. */
[data-theme="dark"] .theme-switch-thumb { transform: translateX(0); }
[data-theme="dark"] .theme-switch-thumb::after { content: '🌙'; }
[data-theme="dark"] .theme-switch-track { background: var(--toggle-bg); border-color: var(--toggle-border); }

/* ════════════════════════════════════════════════
   DEVELOPER CREDIT STRIP
════════════════════════════════════════════════ */
#dev-credit {
  background: var(--footer-bg);
  border-top: 1px solid var(--border-gold);
  padding: 10px 5vw; text-align: center;
  font-size: 0.68rem; letter-spacing: 0.12em;
  color: var(--dev-text);
  display: block !important; visibility: visible !important; opacity: 1 !important;
  user-select: none; transition: background 0.3s ease;
}
#dev-credit a {
  color: var(--dev-link); text-decoration: none;
  font-weight: 600; letter-spacing: 0.14em; transition: color 0.2s;
}
#dev-credit a:hover { color: var(--gold); }

/* ════════════════════════════════════════════════
   FLOATING ACTION BUTTONS
   Fixed in VIEWPORT units so page zoom never
   distorts the button size or position.
════════════════════════════════════════════════ */
.float-btns {
  position: fixed;
  bottom: 28px; right: 22px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 500;
  /* Prevent page zoom from affecting layout */
  pointer-events: none;
}
.float-btn {
  /* Strict fixed size — immune to page zoom */
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  max-width: 52px;
  max-height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.28);
  transition: transform 0.25s, box-shadow 0.25s;
  pointer-events: all;
  overflow: hidden;
  flex-shrink: 0;
}
.float-btn:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(0,0,0,0.38); }

/* WhatsApp — green background, SVG icon via <img> or inline */
.float-wa {
  background: #25D366;
  padding: 11px;
}
.float-wa img,
.float-wa svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.float-tg { background: #2CA5E0; font-size: 1.3rem; }

/* ════════════════════════════════════════════════
   SCROLL REVEAL
════════════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1), transform 0.75s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.10s; }
.reveal-d2 { transition-delay: 0.22s; }
.reveal-d3 { transition-delay: 0.34s; }
.reveal-d4 { transition-delay: 0.46s; }
.reveal-d5 { transition-delay: 0.58s; }

/* ════════════════════════════════════════════════
   SHARED PAGE HERO (services, about)
════════════════════════════════════════════════ */
.page-hero {
  position: relative; padding: calc(var(--nav-h) + 80px) 5vw 80px;
  overflow: hidden; min-height: 55vh;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 75% 40%, var(--teal-faint) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 5% 80%, var(--gold-faint) 0%, transparent 60%),
    linear-gradient(170deg, var(--ink) 0%, var(--ink2) 100%);
  transition: background 0.3s ease;
}
.page-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(-55deg, transparent 0px, transparent 40px, var(--border-gold) 40px, var(--border-gold) 41px);
}
.page-hero-content { position: relative; z-index: 2; }

.breadcrumb {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sand); margin-bottom: 32px;
}
.breadcrumb a { color: var(--gold); }
.breadcrumb-sep { opacity: 0.35; }

.page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 900; color: var(--white);
  line-height: 0.95; letter-spacing: -0.01em; max-width: 820px;
  animation: sns-fade-up 1s cubic-bezier(0.16,1,0.3,1) both;
}
.page-title em { font-style: italic; color: var(--gold); }

@keyframes sns-fade-up {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════
   SHARED CONTACT / INQUIRY FORM
════════════════════════════════════════════════ */
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.form-group label { font-size: 0.67rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  color: var(--cream); padding: 14px 18px;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem;
  outline: none; transition: border-color 0.25s, background 0.25s;
  width: 100%; -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); background: var(--gold-faint); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--placeholder); font-size: 0.86rem; }
.form-group select option { background: var(--select-opt-bg); color: var(--cream); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-error { border-color: #c0392b !important; }

.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.form-check { display: flex; align-items: flex-start; gap: 12px; margin: 18px 0 26px; }
.form-check input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; accent-color: var(--gold); }
.form-check label { font-size: 0.8rem; color: var(--sand); line-height: 1.55; cursor: pointer; }
.form-check label a { color: var(--gold); }

.form-submit {
  width: 100%; padding: 16px; background: var(--gold); color: var(--ink);
  font-family: 'DM Sans', sans-serif; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; border: none; cursor: pointer;
  transition: background 0.25s, transform 0.2s;
}
.form-submit:hover { background: var(--gold-light); transform: translateY(-2px); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-success { display: none; text-align: center; padding: 48px 20px; }
.form-success.show { display: block; }
.form-success-icon { font-size: 3rem; margin-bottom: 18px; }
.form-success h3 { font-family: 'Playfair Display', serif; font-size: 1.7rem; color: var(--white); margin-bottom: 12px; }
.form-success p { font-size: 0.9rem; color: var(--sand); line-height: 1.75; }

/* ════════════════════════════════════════════════
   HOME PREVIEW CHIPS
════════════════════════════════════════════════ */
.home-preview-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.home-preview-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--border-gold);
  padding: 6px 14px 6px 8px; font-size: 0.78rem; color: var(--sand);
  transition: border-color 0.2s, color 0.2s;
}
.home-preview-chip:hover { border-color: var(--gold); color: var(--cream); }
.home-preview-chip img { width: 32px; height: 32px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }

/* ════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 72px; }
  .nav-links    { display: none; }
  .nav-hamburger { display: flex; }

  /* Mobile logo — show "S&S Logistics" (per instruction 4 in system prompt) */
  .nav-logo-img  { height: 30px; }
  .nav-logo-main { font-size: 1.2rem; }
  .nav-logo-sub  { display: none; }
  .nav-logo-main-full  { display: none; }
  .nav-logo-main-short { display: inline; }
  .nav-logo-main-abbr  { display: none; }

  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-title { font-size: clamp(2.8rem, 8vw, 4rem); }
}

@media (max-width: 480px) {
  :root { --nav-h: 68px; }
  .nav-logo-img  { height: 26px; }
  .nav-logo-main { font-size: 1rem; }
  .nav-logo-main-full  { display: none; }
  .nav-logo-main-short { display: inline; } /* keep "S&S Logistics" — not abbr */
  .nav-logo-main-abbr  { display: none; }
}

/* ── Focus styles ── */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px;
}

/* ── Print ── */
@media print {
  #global-nav, #mobile-menu, .float-btns, #dev-credit { display: none !important; }
  body { background: #fff; color: #000; }
}
