/* ═══════════════════════════════════════════════════
   S & S LOGISTICS — SHARED DESIGN SYSTEM v3.0
   snslogisticsbd.com
   All pages import this file.

   CHANGELOG v3.0:
   - Phase 3: Mobile title bug fixed (full brand name, no truncation)
   - Phase 3: Fullscreen overlay replaced with sleek slide-down dropdown menu
   - Phase 3: Developer credit strip hardened
   - Phase 1: Skeleton card loader styles added for catalog.js
   - General: Accessibility & print improvements
═══════════════════════════════════════════════════ */

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

/* ── DESIGN TOKENS ── */
:root {
  --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);

  --nav-h:        80px;
  --section-pad:  110px;

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

  /* mobile menu dropdown transition */
  --menu-transition: 0.34s cubic-bezier(0.16,1,0.3,1);
}

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

/* grain overlay */
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.025;
  pointer-events: none;
  z-index: 9998;
}

/* ── 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
════════════════════════════════════════════════ */
#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: rgba(13,17,23,0.96);
  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;
  /* Prevent logo from being squeezed by nav links */
  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(201,168,76,0.18));
  transition: filter 0.3s;
  flex-shrink: 0;
}
.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;
  /* Allow text to shrink on narrow screens */
  min-width: 0;
  overflow: hidden;
}

/* ── PHASE 3 FIX: MOBILE TITLE ──
   On desktop: full "Sufian & Safina Logistics"
   On ≤768px:  "S&S Logistics" (abbreviated, no truncation)
   On ≤480px:  "S&S" only (logo carries the brand)
   The .nav-logo-main-short / .nav-logo-main-abbr spans
   are toggled via media queries — no JS needed.
─────────────────────────────────────────────── */
.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;
}

/* Desktop: show full name, hide abbreviations */
.nav-logo-main-full  { display: inline; }
.nav-logo-main-short { display: none; }  /* "S&S Logistics" */
.nav-logo-main-abbr  { display: none; }  /* "S&S" */

.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: rgba(10,14,19,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(201,168,76,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;
}

.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 rgba(255,255,255,0.05);
  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 rgba(201,168,76,0.1); 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 rgba(201,168,76,0.25); color: var(--gold);
  padding: 2px 7px; border-radius: 2px; margin-left: auto; opacity: 0.7;
}

/* CTA button in nav */
.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;
}
.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); }

/* ════════════════════════════════════════════════
   PHASE 3: MOBILE MENU — SLEEK SLIDE-DOWN DROPDOWN
   Replaces the heavy fullscreen overlay.
   Opens as a panel below the navbar — compact,
   professional, and lightweight.
════════════════════════════════════════════════ */
#mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  /* Panel height: auto, but capped so it never covers everything */
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  background: rgba(10,14,19,0.98);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-top: 1px solid rgba(201,168,76,0.18);
  border-bottom: 1px solid rgba(201,168,76,0.10);
  box-shadow: 0 24px 60px rgba(0,0,0,0.7);
  z-index: 999; /* below hamburger z-index 1010 */

  /* Slide down from top */
  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 links ── */
.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 rgba(255,255,255,0.04);
  transition: color 0.2s, background 0.2s, padding-left 0.2s;

  /* Stagger-in */
  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);
}

/* Stagger delays */
#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 (product pages) ── */
.mobile-sub-links {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.02);
  border-left: 2px solid rgba(201,168,76,0.22);
  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 rgba(255,255,255,0.03);
  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); }

/* Sub-link icon */
.mobile-sub-links a::before {
  content: '→';
  font-size: 0.75rem;
  color: var(--gold);
  opacity: 0.6;
  flex-shrink: 0;
}

/* ── Mobile CTA ── */
.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;
  transition: background 0.2s;

  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 ── */
.mobile-menu-divider {
  height: 1px;
  background: rgba(201,168,76,0.12);
  margin: 8px 5vw;
  opacity: 0;
  transition: opacity var(--menu-transition);
}
#mobile-menu.open .mobile-menu-divider { opacity: 1; }

/* ── Mobile menu close ── */
/* No dedicated close button needed — hamburger toggles,
   tapping outside (overlay) closes, Escape closes.
   But keep the class in case HTML uses it. */
.mobile-menu-close {
  position: absolute;
  top: 14px; right: 5vw;
  background: none;
  border: 1px solid rgba(201,168,76,0.28);
  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 (kept for backwards compat) ── */
.mobile-menu-logo { display: none; } /* logo is in nav — no duplicate needed */

/* ════════════════════════════════════════════════
   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 rgba(245,240,232,0.28);
  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 (used by catalog.js)
════════════════════════════════════════════════ */
.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: #25d366; border: 1px solid rgba(37,211,102,0.28); }
.avail-seasonal { background: rgba(245,158,11,0.12); color: #f59e0b; border: 1px solid rgba(245,158,11,0.28); }
.avail-soon     { background: rgba(201,168,76,0.10); color: var(--gold); border: 1px solid rgba(201,168,76,0.25); }

/* ════════════════════════════════════════════════
   SKELETON LOADER — shown while catalog fetches
════════════════════════════════════════════════ */
.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(--card) 0px,
    var(--card2) 80px,
    var(--card) 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(--ink3);
  padding: 70px 5vw 28px;
  border-top: 1px solid var(--border-gold);
}

.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 rgba(201,168,76,0.18);
}
.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 rgba(245,240,232,0.14);
  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); }

/* ════════════════════════════════════════════════
   PHASE 3: DEVELOPER CREDIT STRIP
   Permanent below site-footer on ALL pages.
   HTML: <div id="dev-credit">Developed by
         <a href="https://github.com/nbm" …>nbm</a></div>
════════════════════════════════════════════════ */
#dev-credit {
  background: var(--ink3);
  border-top: 1px solid rgba(201,168,76,0.08);
  padding: 10px 5vw;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: rgba(217,203,184,0.35);
  /* Prevent accidental hiding */
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  user-select: none;
}
#dev-credit a {
  color: rgba(201,168,76,0.55);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.14em;
  transition: color 0.2s;
}
#dev-credit a:hover { color: var(--gold); }

/* ════════════════════════════════════════════════
   FLOATING ACTION BUTTONS
════════════════════════════════════════════════ */
.float-btns {
  position: fixed; bottom: 28px; right: 22px;
  display: flex; flex-direction: column; gap: 10px; z-index: 500;
}
.float-btn {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 1.4rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.45);
  transition: transform 0.25s, box-shadow 0.25s;
}
.float-btn:hover { transform: scale(1.12); box-shadow: 0 8px 28px rgba(0,0,0,0.55); }
.float-wa { background: #25D366; }
.float-tg { background: #2CA5E0; }

/* ════════════════════════════════════════════════
   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%, rgba(201,168,76,0.07) 0%, transparent 60%),
    linear-gradient(170deg, var(--ink) 0%, #0b151d 100%);
}
.page-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    -55deg, transparent 0px, transparent 40px,
    rgba(201,168,76,0.022) 40px, rgba(201,168,76,0.022) 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 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: rgba(255,255,255,0.04);
  border: 1px solid rgba(245,240,232,0.12);
  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: rgba(201,168,76,0.04);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(217,203,184,0.38); font-size: 0.86rem; }
.form-group select option { background: #0d1520; 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; }

/* Honeypot — always hidden */
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; tab-index: -1; }

.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 (catalog.js homepage preview)
════════════════════════════════════════════════ */
.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; }

  /* hide desktop nav, show hamburger */
  .nav-links    { display: none; }
  .nav-hamburger { display: flex; }

  /* ── PHASE 3: Mobile logo fix ──
     Show abbreviated brand name that fits cleanly.
     Full name → "S&S Logistics" at ≤768px.       */
  .nav-logo-img  { height: 30px; }
  .nav-logo-main { font-size: 1.2rem; }
  .nav-logo-sub  { display: none; }

  /* Switch which text span is visible */
  .nav-logo-main-full  { display: none; }
  .nav-logo-main-short { display: inline; } /* "S&S Logistics" */
  .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; }

  /* At very narrow widths, show just "S&S" — logo carries the brand */
  .nav-logo-main-full  { display: none; }
  .nav-logo-main-short { display: none; }
  .nav-logo-main-abbr  { display: inline; } /* "S&S" */
}

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

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