/* ============================================================
   Award TMS — Marketing Site
   Scheme: light grey/white background, dark text, teal accents only
   ============================================================ */

:root {
  /* accent — swapped by theme switcher */
  --accent:   #01a9ac;
  --accent-d: #008b8e;

  /* keep teal aliases pointing at accent for backwards compat */
  --teal:   var(--accent);
  --teal-d: var(--accent-d);

  --dark:   #1a1f2e;
  --heading:#1a1f2e;
  --text:   #4a5568;
  --muted:  #718096;
  --bg:     #f7f8fa;
  --bg-alt: #f0f2f5;
  --white:  #ffffff;
  --border: #e2e8f0;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.06);
  --shadow:    0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  margin: 0;
}

img { max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }
p   { margin-bottom: 0; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
h1,h2,h3,h4,h5 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--heading);
  margin-bottom: .5rem;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }

/* accent on highlighted words — switches with theme */
.gradient-text { color: var(--accent); }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn-teal {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .65rem 1.6rem;
  font-weight: 600;
  font-size: .95rem;
  transition: background .2s, box-shadow .2s, transform .15s;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.btn-teal:hover {
  background: var(--accent-d);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.22);
  transform: translateY(-1px);
}

.btn-outline-dark {
  background: transparent !important;
  color: var(--dark);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: .65rem 1.6rem;
  font-weight: 600;
  font-size: .95rem;
  transition: border-color .2s, color .2s, transform .2s;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.btn-outline-dark:hover,
.btn-outline-dark:focus,
.btn-outline-dark:active {
  background: transparent !important;
  border-color: var(--teal) !important;
  color: var(--teal) !important;
  box-shadow: none !important;
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent !important;
  color: var(--dark);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: .65rem 1.6rem;
  font-weight: 600;
  font-size: .95rem;
  transition: border-color .2s, color .2s;
  display: inline-flex;
  align-items: center;
}
.btn-outline-white:hover,
.btn-outline-white:focus,
.btn-outline-white:active {
  background: transparent !important;
  border-color: var(--teal) !important;
  color: var(--teal) !important;
  box-shadow: none !important;
}

.btn-lg { padding: .85rem 2rem; font-size: 1.05rem; }

/* ─── LABEL / SECTION TAG ────────────────────────────────── */
.label-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(1,169,172,.08);
  color: var(--teal);
  border: 1px solid rgba(1,169,172,.2);
  border-radius: 50px;
  padding: .3rem 1rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.label-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(1,169,172,.08);
  color: var(--teal);
  border-radius: 50px;
  padding: .28rem .9rem;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* ─── NAVBAR ─────────────────────────────────────────────── */
.navbar-awardtms {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0;
  transition: box-shadow .3s;
}
.navbar-awardtms.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.08); }

.navbar-awardtms .logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 7px;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
}
.navbar-awardtms .logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
}
.navbar-awardtms .nav-link {
  color: var(--accent) !important;
  font-weight: 500;
  font-size: .9rem;
  padding: .5rem .85rem !important;
  transition: color .18s;
}
.navbar-awardtms .nav-link:hover,
.navbar-awardtms .nav-link.active { color: var(--accent) !important; }
.navbar-toggler { border: none; box-shadow: none !important; }
.navbar-awardtms .nav-cta { margin: 8px 0; }

/* ─── HERO ───────────────────────────────────────────────── */
.hero-section {
  position: relative;
  padding: 130px 0 90px;
  background: var(--bg);
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
}

/* Subtle top-left dot-grid texture */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(circle, #c8d0dc 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .45;
  mask-image: radial-gradient(ellipse 70% 80% at 10% 30%, black 0%, transparent 70%);
}

.hero-section h1 { color: var(--heading); }
.hero-section .hero-sub {
  color: var(--text);
  font-size: 1.1rem;
  max-width: 520px;
}
.hero-actions { display: flex; gap: .85rem; flex-wrap: wrap; margin: 2rem 0; }

.hero-stat .num {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--teal);
}
.hero-stat .lbl {
  font-size: .75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ─── DASHBOARD MOCKUP ───────────────────────────────────── */
.dashboard-wrap { position: relative; z-index: 2; }

.dashboard-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.dash-bar {
  background: var(--bg-alt);
  padding: .65rem 1rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  border-bottom: 1px solid var(--border);
}
.dash-dot { width: 10px; height: 10px; border-radius: 50%; }
.dash-dot.r { background: #fc5f63; }
.dash-dot.y { background: #fdbc40; }
.dash-dot.g { background: #33c748; }
.dash-url {
  margin-left: .5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .18rem .65rem;
  font-size: .7rem;
  color: var(--muted);
  font-family: monospace;
}
.dash-body { display: flex; min-height: 320px; }
.dash-sidebar {
  width: 130px;
  background: var(--bg);
  padding: .85rem .5rem;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
}
.dash-nav-item {
  padding: .45rem .7rem;
  border-radius: 6px;
  font-size: .68rem;
  color: var(--muted);
  margin-bottom: 2px;
  cursor: default;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-nav-item.active {
  background: rgba(1,169,172,.1);
  color: var(--teal);
  font-weight: 600;
}
.dash-main { flex: 1; padding: 1rem; background: var(--white); }
.dash-heading {
  font-size: .72rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.dash-kpis { display: flex; gap: .55rem; margin-bottom: .75rem; }
.kpi-card { flex: 1; border-radius: 7px; padding: .6rem .65rem; border: 1px solid var(--border); }
.kpi-card.t { background: rgba(1,169,172,.07); border-color: rgba(1,169,172,.2); }
.kpi-card.g { background: rgba(16,185,129,.07); border-color: rgba(16,185,129,.2); }
.kpi-card.n { background: var(--bg-alt); }
.kpi-lbl { font-size: .58rem; color: var(--muted); margin-bottom: .12rem; }
.kpi-num { font-size: 1.2rem; font-weight: 800; color: var(--dark); }
.kpi-card.t .kpi-num { color: var(--teal); }
.kpi-card.g .kpi-num { color: #10b981; }

.dash-table { width: 100%; border-collapse: collapse; font-size: .68rem; }
.dash-table th {
  color: var(--muted);
  font-size: .6rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .3rem .4rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-weight: 600;
}
.dash-table td { padding: .38rem .4rem; color: var(--text); border-bottom: 1px solid var(--bg-alt); }
.badge-transit   { background: rgba(1,169,172,.1);  color: var(--teal); border-radius: 4px; padding: 2px 6px; font-size: .58rem; font-weight: 600; }
.badge-delivered { background: rgba(16,185,129,.1); color: #059669;     border-radius: 4px; padding: 2px 6px; font-size: .58rem; font-weight: 600; }
.badge-scheduled { background: rgba(100,116,139,.1);color: #64748b;     border-radius: 4px; padding: 2px 6px; font-size: .58rem; font-weight: 600; }

/* ─── FEATURE STRIP ──────────────────────────────────────── */
.feature-strip {
  background: var(--white);
  padding: 1.1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.strip-scroll { display: flex; gap: 2.5rem; flex-wrap: wrap; justify-content: center; }
.strip-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.strip-item svg { width: 16px; height: 16px; color: var(--teal); flex-shrink: 0; }

/* ─── SECTIONS ───────────────────────────────────────────── */
.section-pad    { padding: 90px 0; }
.section-pad-sm { padding: 60px 0; }

.section-title { color: var(--heading); }
.section-sub   { color: var(--muted); font-size: 1.02rem; max-width: 580px; }

/* ─── FEATURE CARDS ──────────────────────────────────────── */
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  height: 100%;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(1,169,172,.35);
}
.feature-card.highlighted {
  background: var(--bg);
  border-color: rgba(1,169,172,.25);
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.feature-icon svg { width: 20px; height: 20px; }
.fi-teal { background: rgba(1,169,172,.1);  color: var(--teal); }
.fi-gold { background: rgba(100,116,139,.1); color: #64748b; }
.fi-navy { background: rgba(26,31,46,.07);   color: var(--dark); }
.feature-card h3 { font-size: 1.05rem; color: var(--heading); margin-bottom: .45rem; }
.feature-card p  { font-size: .9rem;   color: var(--muted); }

/* ─── MODULES SECTION ────────────────────────────────────── */
.bg-navy-dark { background: var(--bg); }  /* light on light — no dark section */

.module-item {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  transition: border-color .2s, box-shadow .2s;
  height: 100%;
}
.module-item:hover {
  border-color: rgba(1,169,172,.35);
  box-shadow: var(--shadow-sm);
}
.module-icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: rgba(1,169,172,.1);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.module-icon svg { width: 18px; height: 18px; }
.module-item h5 { color: var(--heading); font-size: .92rem; margin-bottom: .2rem; font-weight: 600; }
.module-item p  { color: var(--muted);   font-size: .8rem; }

/* ─── PERSONA CARDS ──────────────────────────────────────── */
.persona-card {
  text-align: center;
  padding: 1.85rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s, transform .2s;
  height: 100%;
}
.persona-card:hover {
  border-color: rgba(1,169,172,.35);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.persona-emoji { font-size: 2rem; margin-bottom: .65rem; display: block; }
.persona-card h4 { color: var(--heading); font-size: 1rem;  margin-bottom: .4rem; }
.persona-card p  { color: var(--muted);   font-size: .86rem; }

/* ─── METRICS BAND ───────────────────────────────────────── */
.bg-teal-gradient { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.metric-box { text-align: center; padding: 1rem; }
.metric-num {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  display: block;
  margin-bottom: .2rem;
}
.metric-lbl  { font-size: .95rem; font-weight: 600; color: var(--heading); margin-bottom: .3rem; }
.metric-desc { font-size: .82rem; color: var(--muted); max-width: 170px; margin: 0 auto; }

/* ─── GLOBE CANVAS (hero background) ────────────────────── */
#globe-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ─── INTEGRATIONS ───────────────────────────────────────── */
.integration-pill {
  display: flex;
  align-items: center;
  gap: .65rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: .6rem 1.2rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.integration-pill:hover {
  border-color: var(--teal);
  box-shadow: 0 3px 10px rgba(1,169,172,.12);
}
.int-emoji { font-size: 1.2rem; }

/* ─── CTA SECTION ────────────────────────────────────────── */
.cta-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.cta-section h2 { color: var(--heading); }
.cta-section .section-sub { color: var(--muted); }
.cta-note { font-size: .86rem; color: var(--muted); margin-top: .75rem; }
.cta-note a { color: var(--teal); }

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.site-footer .footer-brand p {
  color: var(--muted);
  font-size: .86rem;
  max-width: 250px;
  margin-top: .6rem;
}
.footer-logo-text {
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
}
.footer-logo-text strong { color: var(--accent); }
.site-footer h6 {
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .7rem;
}
.site-footer a {
  color: var(--muted);
  font-size: .86rem;
  display: block;
  margin-bottom: .3rem;
  transition: color .18s;
}
.site-footer a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.1rem 0;
  font-size: .8rem;
  color: var(--muted);
}
.footer-bottom a { color: var(--muted); display: inline; }
.footer-bottom a:hover { color: var(--accent); }
[data-theme="dark"] .site-footer { background: #0f1117; border-color: #2d3448; }
[data-theme="dark"] .footer-bottom { border-color: #2d3448; }

/* ─── UTILITIES ──────────────────────────────────────────── */
.bg-light-custom { background: var(--bg); }
.text-teal { color: var(--accent) !important; }

/* Logo — full text in accent */
.logo-text        { color: var(--accent) !important; font-weight: 700; }
.logo-text strong { color: var(--accent) !important; font-weight: 800; }

/* ─── DARK MODE ──────────────────────────────────────────── */
[data-theme="dark"] {
  --dark:    #e2e8f0;
  --heading: #f1f5f9;
  --text:    #94a3b8;
  --muted:   #64748b;
  --bg:      #0f1117;
  --bg-alt:  #1a1f2e;
  --white:   #141824;
  --border:  #2d3448;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.3);
  --shadow:    0 4px 20px rgba(0,0,0,.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.5);
}
[data-theme="dark"] .navbar-awardtms {
  background: rgba(20,24,36,.97);
  border-bottom-color: #2d3448;
}
[data-theme="dark"] .navbar-awardtms .nav-link { color: var(--accent) !important; }
[data-theme="dark"] .navbar-awardtms .nav-link:hover,
[data-theme="dark"] .navbar-awardtms .nav-link.active { color: var(--accent) !important; }
[data-theme="dark"] .theme-panel {
  background: #1a1f2e;
  border-color: #2d3448;
}
[data-theme="dark"] .theme-label { color: #64748b; }
[data-theme="dark"] .mode-btn { background: #0f1117; border-color: #2d3448; color: #94a3b8; }
[data-theme="dark"] .mode-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
[data-theme="dark"] .btn-outline-dark {
  color: #e2e8f0;
  border-color: #2d3448;
}
[data-theme="dark"] .btn-outline-dark:hover,
[data-theme="dark"] .btn-outline-dark:focus,
[data-theme="dark"] .btn-outline-dark:active { background: transparent !important; border-color: var(--accent) !important; color: var(--accent) !important; box-shadow: none !important; }
[data-theme="dark"] .integration-pill { background: #1a1f2e; border-color: #2d3448; color: #94a3b8; }
[data-theme="dark"] .feature-card,
[data-theme="dark"] .module-item,
[data-theme="dark"] .persona-card { background: #1a1f2e; border-color: #2d3448; }
[data-theme="dark"] .feature-strip { background: #141824; border-color: #2d3448; }
[data-theme="dark"] .strip-item { color: #94a3b8; }
[data-theme="dark"] .bg-light-custom { background: #0f1117; }
[data-theme="dark"] .bg-navy-dark    { background: #0f1117; }
[data-theme="dark"] .bg-teal-gradient { background: #1a1f2e; border-color: #2d3448; }
[data-theme="dark"] .cta-section { background: #0f1117; border-color: #2d3448; }
[data-theme="dark"] .hero-section { background: #0f1117; }
[data-theme="dark"] .hero-section h1 { color: #f1f5f9; }
[data-theme="dark"] .hero-section .hero-sub { color: #94a3b8; }
[data-theme="dark"] .dashboard-card { background: #1a1f2e; border-color: #2d3448; }
[data-theme="dark"] .dash-bar { background: #141824; border-color: #2d3448; }
[data-theme="dark"] .dash-main { background: #1a1f2e; }
[data-theme="dark"] .theme-divider { background: #2d3448; }

/* ─── THEME SIDEBAR ──────────────────────────────────────── */
.theme-sidebar {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 1100;
  display: flex;
  flex-direction: row;
  align-items: center;
}

/* Toggle tab — always visible at the right window edge */
.theme-sidebar-toggle {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px 0 0 6px;
  width: 32px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: -2px 2px 10px rgba(0,0,0,.18);
  transition: background .2s;
  flex-shrink: 0;
  z-index: 1;
}
.theme-sidebar-toggle:hover { background: var(--accent-d); }

/* Clip wrapper — hides the panel when closed without affecting the toggle */
.theme-panel-clip {
  overflow: hidden;
  width: 0;
  transition: width .25s ease;
}
.theme-sidebar.open .theme-panel-clip {
  width: 168px;
}

/* Panel — visible content */
.theme-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 10px 0 0 10px;
  padding: 1rem .85rem;
  box-shadow: -4px 0 24px rgba(0,0,0,.10);
  width: 168px;
  opacity: 0;
  transition: opacity .2s ease;
  white-space: nowrap;
}
.theme-sidebar.open .theme-panel {
  opacity: 1;
}
.theme-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: .65rem;
}
.theme-swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}
.swatch {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform .15s, border-color .15s;
}
.swatch:hover  { transform: scale(1.18); }
.swatch.active { border-color: #1a1f2e; box-shadow: 0 0 0 1px #fff inset; }

.theme-divider {
  height: 1px;
  background: var(--border);
  margin: .85rem 0 .7rem;
}
.theme-modes {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mode-btn {
  display: flex;
  align-items: center;
  gap: .45rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .38rem .65rem;
  font-size: .75rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  width: 100%;
  text-align: left;
}
.mode-btn:hover  { border-color: var(--accent); color: var(--accent); }
.mode-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 991px) {
  .hero-section  { padding-top: 100px; }
  .dash-sidebar  { display: none; }
}
@media (max-width: 767px) {
  .hero-section  { padding-bottom: 50px; min-height: auto; }
  .hero-actions  { flex-direction: column; }
  .strip-item:nth-child(n+4) { display: none; }
  .theme-sidebar { top: auto; bottom: 80px; transform: none; right: 0; }
}
