/*
Theme Name: Grey Express
Theme URI: https://greyexpresse.com
Author: Grey Express
Description: Grey Express – Global Logistics & Freight Forwarding | 220+ Countries
Version: 4.7.0
License: GNU General Public License v2 or later
Text Domain: grey-express
*/

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

:root {
  --navy:      #0a1628;
  --navy-mid:  #0f2040;
  --navy-light:#1a3a5c;
  --gold:      #c9a84c;
  --gold-light:#e8c96a;
  --cyan:      #00d4ff;
  --white:     #ffffff;
  --off-white: #f4f6f8;
  --text-muted:#8fa0b3;
  --border:    rgba(201,168,76,0.2);
  --shadow:    0 8px 32px rgba(0,0,0,0.4);
  --radius:    12px;
  --transition:all 0.3s cubic-bezier(0.4,0,0.2,1);
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Raleway',sans-serif;background:var(--navy);color:var(--white);line-height:1.6;overflow-x:hidden}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
ul{list-style:none}
h1,h2,h3,h4{font-family:'Bebas Neue',sans-serif;letter-spacing:.04em;line-height:1.1}

/* UTILITY */
.container{max-width:1200px;margin:0 auto;padding:0 24px}
.section{padding:80px 0}
.gold{color:var(--gold)}
.cyan{color:var(--cyan)}
.text-center{text-align:center}
.badge{display:inline-block;background:var(--gold);color:var(--navy);font-family:'Bebas Neue',sans-serif;font-size:12px;letter-spacing:2px;padding:4px 14px;border-radius:20px;margin-bottom:12px}

/* NAVBAR */
#navbar{position:fixed;top:0;left:0;right:0;z-index:1000;background:rgba(10,22,40,.95);backdrop-filter:blur(12px);border-bottom:1px solid var(--border);transition:var(--transition)}
.nav-inner{display:flex;align-items:center;justify-content:space-between;height:70px;padding:0 24px;max-width:1400px;margin:0 auto}
.nav-logo{display:flex;align-items:center;gap:10px;font-family:'Bebas Neue',sans-serif;font-size:22px;letter-spacing:.06em}
.logo-icon{background:var(--gold);color:var(--navy);width:36px;height:36px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:900}
.nav-links{display:flex;align-items:center;gap:28px}
.nav-links a{font-size:13px;font-weight:600;letter-spacing:.06em;color:var(--text-muted);transition:var(--transition)}
.nav-links a:hover,.nav-links a.active{color:var(--gold)}
.nav-cta{background:var(--gold);color:var(--navy)!important;padding:8px 20px;border-radius:6px;font-weight:700!important}
.nav-cta:hover{background:var(--gold-light)!important}
.hamburger{display:none;flex-direction:column;gap:5px;cursor:pointer;padding:4px}
.hamburger span{width:24px;height:2px;background:var(--white);border-radius:2px;transition:var(--transition)}
@media(max-width:900px){.nav-links{display:none;position:fixed;top:70px;left:0;right:0;background:var(--navy-mid);flex-direction:column;padding:24px;gap:16px;border-bottom:1px solid var(--border)}.nav-links.open{display:flex}.hamburger{display:flex}}

/* HERO */
#hero{min-height:100vh;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden;padding-top:70px}
.hero-slider{position:absolute;inset:0;z-index:0}
.slide{position:absolute;inset:0;opacity:0;transition:opacity 1s ease}
.slide.active{opacity:1}
.slide img{width:100%;height:100%;object-fit:cover}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(135deg,rgba(10,22,40,.9) 0%,rgba(10,22,40,.6) 100%)}
.hero-content{position:relative;z-index:2;padding:0 24px;max-width:1200px;margin:0 auto;width:100%}
.hero-eyebrow{display:flex;align-items:center;gap:12px;margin-bottom:20px}
.hero-eyebrow-line{width:40px;height:2px;background:var(--gold)}
.hero-eyebrow span{font-size:13px;letter-spacing:3px;font-weight:700;color:var(--gold);text-transform:uppercase}
.hero-title{font-size:clamp(48px,8vw,96px);line-height:1;margin-bottom:20px}
.hero-sub{font-size:clamp(14px,2vw,18px);color:var(--text-muted);max-width:520px;margin-bottom:36px;font-weight:400}
.hero-btns{display:flex;gap:16px;flex-wrap:wrap}
.btn-primary{background:var(--gold);color:var(--navy);padding:14px 32px;border-radius:8px;font-family:'Bebas Neue',sans-serif;font-size:16px;letter-spacing:.08em;transition:var(--transition);display:inline-flex;align-items:center;gap:8px}
.btn-primary:hover{background:var(--gold-light);transform:translateY(-2px)}
.btn-outline{border:2px solid var(--gold);color:var(--gold);padding:12px 32px;border-radius:8px;font-family:'Bebas Neue',sans-serif;font-size:16px;letter-spacing:.08em;transition:var(--transition)}
.btn-outline:hover{background:var(--gold);color:var(--navy)}
.hero-stats{display:flex;gap:40px;margin-top:48px;flex-wrap:wrap}
.stat-item{text-align:left}
.stat-num{font-family:'Bebas Neue',sans-serif;font-size:36px;color:var(--gold);line-height:1}
.stat-label{font-size:11px;letter-spacing:2px;color:var(--text-muted);text-transform:uppercase}
.slider-dots{position:absolute;bottom:30px;left:50%;transform:translateX(-50%);z-index:3;display:flex;gap:8px}
.dot{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.3);cursor:pointer;transition:var(--transition)}
.dot.active{background:var(--gold);width:24px;border-radius:4px}
.slider-btn{position:absolute;top:50%;z-index:3;transform:translateY(-50%);background:rgba(201,168,76,.2);border:1px solid var(--gold);color:var(--gold);width:44px;height:44px;border-radius:50%;cursor:pointer;font-size:18px;display:flex;align-items:center;justify-content:center;transition:var(--transition)}
.slider-btn:hover{background:var(--gold);color:var(--navy)}
.slider-prev{left:20px}
.slider-next{right:20px}

/* TICKER */
#ticker{background:var(--gold);padding:10px 0;overflow:hidden}
.ticker-inner{display:flex;gap:60px;animation:ticker 30s linear infinite;white-space:nowrap}
.ticker-item{font-family:'Bebas Neue',sans-serif;font-size:14px;letter-spacing:.1em;color:var(--navy);display:flex;align-items:center;gap:12px}
@keyframes ticker{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}

/* TRACKING SECTION */
#tracking{background:var(--navy-mid);padding:80px 0}
.track-card{background:rgba(255,255,255,.04);border:1px solid var(--border);border-radius:20px;padding:48px;max-width:800px;margin:0 auto}
.track-form{display:flex;gap:12px;margin:28px 0}
.track-input{flex:1;background:rgba(255,255,255,.06);border:1px solid var(--border);border-radius:10px;padding:16px 20px;color:var(--white);font-size:15px;font-family:'Raleway',sans-serif;outline:none;transition:var(--transition)}
.track-input:focus{border-color:var(--gold);background:rgba(201,168,76,.08)}
.track-input::placeholder{color:var(--text-muted)}
.track-btn{background:var(--gold);color:var(--navy);border:none;padding:16px 32px;border-radius:10px;font-family:'Bebas Neue',sans-serif;font-size:16px;letter-spacing:.08em;cursor:pointer;transition:var(--transition);white-space:nowrap}
.track-btn:hover{background:var(--gold-light);transform:translateY(-1px)}

/* RESULT */
#track-result{display:none;margin-top:32px}
.result-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:24px;padding-bottom:20px;border-bottom:1px solid var(--border)}
.result-id{font-family:'Bebas Neue',sans-serif;font-size:22px;color:var(--gold)}
.status-badge{padding:6px 16px;border-radius:20px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.status-processing{background:rgba(255,165,0,.15);color:#ffa500;border:1px solid rgba(255,165,0,.3)}
.status-shipped{background:rgba(0,212,255,.15);color:var(--cyan);border:1px solid rgba(0,212,255,.3)}
.status-transit{background:rgba(100,149,237,.15);color:#6495ed;border:1px solid rgba(100,149,237,.3)}
.status-delivered{background:rgba(0,200,81,.15);color:#00c851;border:1px solid rgba(0,200,81,.3)}
.status-pending{background:rgba(201,168,76,.15);color:var(--gold);border:1px solid var(--border)}
.status-clearance{background:rgba(138,43,226,.15);color:#9932cc;border:1px solid rgba(138,43,226,.3)}
.progress-bar{display:flex;align-items:center;justify-content:space-between;margin:24px 0;position:relative}
.progress-bar::before{content:'';position:absolute;top:16px;left:0;right:0;height:2px;background:rgba(255,255,255,.1);z-index:0}
.progress-fill{position:absolute;top:16px;left:0;height:2px;background:var(--gold);z-index:1;transition:width .8s ease}
.progress-step{display:flex;flex-direction:column;align-items:center;gap:8px;z-index:2;position:relative}
.step-dot{width:32px;height:32px;border-radius:50%;background:var(--navy);border:2px solid rgba(255,255,255,.2);display:flex;align-items:center;justify-content:center;font-size:14px;transition:var(--transition)}
.step-dot.done{background:var(--gold);border-color:var(--gold);color:var(--navy)}
.step-dot.active{background:rgba(201,168,76,.2);border-color:var(--gold);color:var(--gold)}
.step-label{font-size:10px;letter-spacing:.08em;color:var(--text-muted);text-transform:uppercase;font-weight:600}
.details-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px;margin:24px 0}
.detail-item{background:rgba(255,255,255,.04);border:1px solid var(--border);border-radius:10px;padding:14px 16px}
.detail-label{font-size:10px;letter-spacing:.1em;color:var(--text-muted);text-transform:uppercase;margin-bottom:4px}
.detail-value{font-weight:600;font-size:14px}
.timeline{margin-top:24px}
.tl-item{display:flex;gap:16px;padding:12px 0;border-bottom:1px solid rgba(255,255,255,.05);align-items:flex-start}
.tl-icon{width:36px;height:36px;border-radius:50%;background:rgba(201,168,76,.1);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;font-size:14px;flex-shrink:0}
.tl-info .tl-title{font-weight:700;font-size:14px;margin-bottom:2px}
.tl-info .tl-meta{font-size:12px;color:var(--text-muted)}
.not-found{text-align:center;padding:32px;color:var(--text-muted)}
.not-found h3{color:var(--white);margin-bottom:8px}

/* SECTION HEADER */
.section-header{text-align:center;margin-bottom:56px}
.section-header h2{font-size:clamp(32px,5vw,52px);margin-bottom:16px}
.section-header p{color:var(--text-muted);max-width:560px;margin:0 auto}

/* SERVICES */
#services{background:var(--navy)}
.services-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:24px}
.service-card{background:rgba(255,255,255,.04);border:1px solid var(--border);border-radius:16px;padding:32px;transition:var(--transition);position:relative;overflow:hidden}
.service-card::before{content:'';position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,var(--gold),var(--gold-light));transform:scaleX(0);transform-origin:left;transition:var(--transition)}
.service-card:hover::before{transform:scaleX(1)}
.service-card:hover{transform:translateY(-4px);border-color:var(--gold);background:rgba(201,168,76,.06)}
.service-icon{font-size:32px;margin-bottom:16px}
.service-card h3{font-size:22px;margin-bottom:10px}
.service-card p{color:var(--text-muted);font-size:14px}

/* FEATURES */
#features{background:var(--navy-mid)}
.features-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px}
.feature-card{background:rgba(255,255,255,.04);border:1px solid var(--border);border-radius:12px;padding:24px;transition:var(--transition)}
.feature-card:hover{border-color:var(--gold);background:rgba(201,168,76,.05)}
.feature-icon{font-size:28px;margin-bottom:12px}
.feature-card h3{font-size:18px;margin-bottom:8px}
.feature-card p{color:var(--text-muted);font-size:13px}

/* REVIEWS */
#reviews{background:var(--navy)}
.reviews-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:24px}
.review-card{background:rgba(255,255,255,.04);border:1px solid var(--border);border-radius:16px;padding:28px;transition:var(--transition)}
.review-card:hover{border-color:var(--gold);transform:translateY(-2px)}
.review-stars{color:var(--gold);font-size:14px;margin-bottom:12px;letter-spacing:2px}
.review-text{font-size:14px;color:var(--text-muted);margin-bottom:16px;line-height:1.7;font-style:italic}
.reviewer{display:flex;align-items:center;gap:12px}
.reviewer-avatar{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,var(--gold),var(--navy-light));display:flex;align-items:center;justify-content:center;font-family:'Bebas Neue',sans-serif;font-size:16px;color:var(--navy)}
.reviewer-name{font-weight:700;font-size:14px}
.reviewer-location{font-size:12px;color:var(--text-muted)}

/* IMAGE SECTION */
.img-banner{width:100%;height:320px;object-fit:cover;border-radius:16px}

/* FAQ */
#faq{background:var(--navy-mid)}
.faq-list{max-width:800px;margin:0 auto}
.faq-item{border:1px solid var(--border);border-radius:12px;margin-bottom:12px;overflow:hidden}
.faq-q{padding:20px 24px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;font-weight:600;font-size:15px;transition:var(--transition)}
.faq-q:hover{background:rgba(201,168,76,.06)}
.faq-q .arrow{color:var(--gold);font-size:18px;transition:var(--transition);flex-shrink:0}
.faq-q.open .arrow{transform:rotate(180deg)}
.faq-a{display:none;padding:0 24px 20px;color:var(--text-muted);font-size:14px;line-height:1.7}

/* CONTACT */
#contact{background:var(--navy);border-top:1px solid var(--border)}
.contact-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:24px;max-width:900px;margin:0 auto}
.contact-card{background:rgba(255,255,255,.04);border:1px solid var(--border);border-radius:12px;padding:24px;text-align:center;transition:var(--transition)}
.contact-card:hover{border-color:var(--gold)}
.contact-card h3{font-size:18px;margin:12px 0 8px}
.contact-card p,.contact-card a{font-size:14px;color:var(--text-muted)}
.contact-card a:hover{color:var(--gold)}

/* FOOTER */
#footer{background:var(--navy-mid);border-top:1px solid var(--border);padding:60px 0 20px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:40px;margin-bottom:48px}
.footer-brand p{color:var(--text-muted);font-size:13px;margin-top:16px;max-width:280px}
.footer-col h4{font-size:14px;font-weight:700;letter-spacing:.08em;margin-bottom:16px;color:var(--gold)}
.footer-col ul li{margin-bottom:10px}
.footer-col ul li a{color:var(--text-muted);font-size:13px;transition:var(--transition)}
.footer-col ul li a:hover{color:var(--gold)}
.footer-bottom{border-top:1px solid var(--border);padding-top:20px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
.footer-bottom p{font-size:12px;color:var(--text-muted)}
.footer-contact-item{display:flex;align-items:center;gap:8px;color:var(--text-muted);font-size:13px;margin-bottom:10px}
.footer-contact-item .icon{font-size:14px}
@media(max-width:768px){.footer-grid{grid-template-columns:1fr 1fr}.track-form{flex-direction:column}}
@media(max-width:480px){.footer-grid{grid-template-columns:1fr}}

/* PARTNERS */
#partners{background:var(--navy-mid);padding:40px 0;border-top:1px solid var(--border)}
.partners-strip{display:flex;gap:40px;flex-wrap:wrap;align-items:center;justify-content:center}
.partner-badge{background:rgba(255,255,255,.05);border:1px solid var(--border);border-radius:8px;padding:10px 24px;font-family:'Bebas Neue',sans-serif;font-size:16px;letter-spacing:.08em;color:var(--text-muted);transition:var(--transition)}
.partner-badge:hover{border-color:var(--gold);color:var(--gold)}

/* WORKERS SECTION */
.workers-img-wrap{border-radius:16px;overflow:hidden;border:1px solid var(--border)}
.workers-img-wrap img{width:100%;height:400px;object-fit:cover}

/* TRACKING RESULT — WPCargo style sections */
.tr-section{margin-bottom:24px;border:1px solid var(--border);border-radius:12px;overflow:hidden}
.tr-section-title{padding:12px 18px;font-family:'Bebas Neue',sans-serif;font-size:16px;letter-spacing:.1em;background:rgba(255,255,255,.04);border-bottom:1px solid var(--border)}
.tr-section-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
.tr-row{padding:12px 18px;border-bottom:1px solid rgba(255,255,255,.05);border-right:1px solid rgba(255,255,255,.03)}
.tr-row:last-child{border-bottom:none}
.tr-label{display:block;font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--text-muted);margin-bottom:3px;font-weight:700}
.tr-value{display:block;font-size:14px;font-weight:600;color:var(--white);word-break:break-word}
.tr-two-col{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:24px}
@media(max-width:640px){.tr-two-col{grid-template-columns:1fr}}

/* ============================================================
   NOTIFICATION BANNER (customer tracking page)
   Controlled per-shipment from the WP admin Banner Manager.
   ============================================================ */
.ge-notice{
  display:flex;
  gap:14px;
  align-items:flex-start;
  padding:16px 18px;
  margin-bottom:22px;
  border-radius:12px;
  border:1px solid var(--gn-color,#e74c3c);
  border-left:5px solid var(--gn-color,#e74c3c);
  background:var(--gn-bg,rgba(231,76,60,.10));
  animation:geNoticeIn .45s ease both;
}
.ge-notice-icon{font-size:22px;line-height:1.2;flex:0 0 auto}
.ge-notice-body{flex:1;min-width:0}
.ge-notice-title{
  color:#fff;
  font-family:'Bebas Neue',sans-serif;
  font-size:17px;
  letter-spacing:.08em;
  line-height:1.3;
  margin-bottom:5px;
}
.ge-notice-msg{
  color:#dfe6ef;
  font-size:13.5px;
  line-height:1.65;
  white-space:pre-wrap;  /* preserves the admin's line breaks */
  word-break:break-word;
}

/* Priority variants */
.ge-notice-critical{--gn-color:#e74c3c;--gn-bg:rgba(231,76,60,.10);animation:geNoticeIn .45s ease both,geNoticePulse 2.4s ease-in-out .5s infinite}
.ge-notice-warning {--gn-color:#f39c12;--gn-bg:rgba(243,156,18,.10)}
.ge-notice-info    {--gn-color:#3498db;--gn-bg:rgba(52,152,219,.10)}
.ge-notice-success {--gn-color:#27ae60;--gn-bg:rgba(39,174,96,.10)}

@keyframes geNoticeIn{
  from{opacity:0;transform:translateY(-8px)}
  to{opacity:1;transform:translateY(0)}
}
@keyframes geNoticePulse{
  0%,100%{box-shadow:0 0 0 0 rgba(231,76,60,0)}
  50%    {box-shadow:0 0 0 6px rgba(231,76,60,.14)}
}
@media (prefers-reduced-motion:reduce){
  .ge-notice,.ge-notice-critical{animation:none}
}
@media (max-width:600px){
  .ge-notice{padding:14px;gap:10px}
  .ge-notice-title{font-size:15px}
  .ge-notice-msg{font-size:13px}
}

/* ============================================================
   TRACKING RESULT — LAYOUT REFINEMENTS
   Flattens the nested card-in-card-in-card look, especially
   on mobile where 3 layers of padding crushed the content.
   ============================================================ */

/* Map + credit line (moved out of inline styles) */
.tr-map-pad{padding:12px 18px}
.tr-map-canvas{border:1px solid var(--border);border-radius:10px}
.tr-credit{
  margin-top:20px;
  padding-top:14px;
  border-top:1px solid var(--border);
  font-size:11px;
  color:var(--text-muted);
  text-align:right;
}

/* Vertical field dividers only where a real neighbour exists */
.tr-section-grid > .tr-row:last-child{border-right:none}

/* ── Tablet ────────────────────────────────────────────── */
@media(max-width:900px){
  .track-card{padding:32px 24px;border-radius:16px}
  #tracking{padding:60px 0}
}

/* ── Mobile: ONE card level, not three ─────────────────── */
@media(max-width:640px){
  .container{padding:0 14px}
  #tracking{padding:44px 0}

  /* Outer wrapper dissolves — the sections become the cards */
  .track-card{
    background:transparent;
    border:none;
    border-radius:0;
    padding:0;
    max-width:100%;
  }

  #track-result{margin-top:24px}

  .result-header{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
    margin-bottom:20px;
    padding-bottom:16px;
  }

  .tr-section{margin-bottom:18px;border-radius:14px}
  .tr-section-grid{grid-template-columns:1fr}
  .tr-row{padding:13px 16px;border-right:none}
  .tr-two-col{gap:18px;margin-bottom:18px}

  /* Map stretches edge to edge */
  .tr-map-pad{padding:12px 0}
  .tr-map-canvas{
    border-left:none;
    border-right:none;
    border-radius:0;
    height:280px !important;
    width:calc(100% + 28px) !important;
    margin-left:-14px;
  }

  .tr-credit{text-align:center;line-height:1.7}

  /* Progress steps: keep all 5 visible without squashing */
  .progress-bar{margin:20px 0 26px}
  .step-dot{width:28px;height:28px;font-size:12px}
  .progress-bar::before{top:14px}
  .step-label{font-size:9px;letter-spacing:.02em;text-align:center}

  .ge-notice{margin-bottom:20px}
}

/* ── Small phones ──────────────────────────────────────── */
@media(max-width:380px){
  .container{padding:0 12px}
  .tr-map-canvas{width:calc(100% + 24px) !important;margin-left:-12px}
  .result-id{font-size:19px}
}

/* ============================================================
   3-TIER HIERARCHY: Section Title > Field Label > Field Value
   ============================================================ */
.tr-section{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  box-shadow:var(--card-shadow);
}

/* Tier 1 — Section title: gold accent bar, wide tracking, heavy */
.tr-section-title{
  position:relative;
  padding:14px 18px 14px 30px;
  background:var(--surface-2);
  border-bottom:2px solid var(--border);
  font-family:'Bebas Neue',sans-serif;
  font-size:17px;
  font-weight:400;
  letter-spacing:.16em;
  line-height:1.2;
}
.tr-section-title::before{
  content:'';
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  width:4px;
  height:18px;
  border-radius:2px;
  background:currentColor;
  opacity:.9;
}

/* Tier 2 — Field label: smaller, lighter, quieter */
.tr-label{
  display:block;
  font-size:10px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--muted);
  font-weight:700;
  opacity:.85;
  margin-bottom:5px;
}

/* Tier 3 — Field value: the thing the customer actually reads */
.tr-value{
  display:block;
  font-size:15px;
  font-weight:600;
  line-height:1.45;
  color:var(--text);
  word-break:break-word;
}

.tr-row{border-bottom:1px solid var(--line);border-right:1px solid var(--line)}
.tr-section-grid > .tr-row:last-child{border-right:none}
.tr-row:last-child{border-bottom:none}

/* ============================================================
   THEME SYSTEM — dark (default) + light via [data-theme]
   --navy stays dark on purpose: it is the INK used on gold
   buttons/badges, not a background.
   ============================================================ */
:root{
  --bg:          #0a1628;
  --bg-alt:      #0f2040;
  --text:        #ffffff;
  --muted:       #8fa0b3;
  --surface:     rgba(255,255,255,.04);
  --surface-2:   rgba(255,255,255,.07);
  --line:        rgba(255,255,255,.08);
  --nav-bg:      rgba(10,22,40,.95);
  --gold-text:   #c9a84c;
  --card-shadow: none;
}

[data-theme="light"]{
  --bg:          #f4f6f8;
  --bg-alt:      #ffffff;
  --text:        #0f1c2e;
  --white:       #0f1c2e;   /* legacy alias used for body text */
  --muted:       #5a6b7f;
  --text-muted:  #5a6b7f;   /* legacy alias */
  --surface:     #ffffff;
  --surface-2:   #f7f9fb;
  --line:        #e3e8ee;
  --border:      rgba(201,168,76,.55);
  --nav-bg:      rgba(255,255,255,.96);
  --gold-text:   #8a6d1c;   /* darkened so gold text passes on white */
  --card-shadow: 0 2px 10px rgba(15,28,46,.06);
  --shadow:      0 8px 32px rgba(15,28,46,.10);
}

/* Surfaces routed through the theme vars */
body{background:var(--bg);color:var(--text)}
#navbar{background:var(--nav-bg)}
#tracking,#features,#faq,#footer,#partners{background:var(--bg-alt)}
.track-card,.detail-item,.service-card,.feature-card,
.review-card,.contact-card{background:var(--surface)}
.partner-badge{background:var(--surface-2)}
.track-input{background:var(--surface-2);color:var(--text)}
.step-dot{background:var(--bg);border-color:var(--line)}
.progress-bar::before{background:var(--line)}
.tl-item{border-bottom-color:var(--line)}
.hamburger span{background:var(--text)}
@media(max-width:900px){
  .nav-links{background:var(--bg-alt)}
}

/* Gold text needs to darken in light mode; gold BACKGROUNDS stay put */
.gold,.result-id,.tr-section-title,.nav-links a:hover,.nav-links a.active{color:var(--gold-text)}

/* Light-mode readability touch-ups */
[data-theme="light"] .track-card{box-shadow:var(--card-shadow)}
[data-theme="light"] .ge-notice-title{color:#0f1c2e}
[data-theme="light"] .ge-notice-msg{color:#334155}
[data-theme="light"] .tr-map-canvas{background:#e8edf3}
[data-theme="light"] .not-found h3{color:#0f1c2e}
[data-theme="light"] .step-dot{background:#fff}

/* ============================================================
   THEME TOGGLE BUTTON
   ============================================================ */
.theme-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  flex:0 0 38px;
  border-radius:50%;
  border:1px solid var(--border);
  background:var(--surface-2);
  color:var(--gold-text);
  font-size:16px;
  line-height:1;
  cursor:pointer;
  transition:var(--transition);
  padding:0;
}
.theme-toggle:hover{background:var(--gold);color:var(--navy);transform:rotate(-15deg)}
.theme-toggle:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.theme-toggle .tt-sun{display:none}
.theme-toggle .tt-moon{display:block}
[data-theme="light"] .theme-toggle .tt-sun{display:block}
[data-theme="light"] .theme-toggle .tt-moon{display:none}

.nav-actions{display:flex;align-items:center;gap:12px}
@media(max-width:900px){
  .theme-toggle{width:34px;height:34px;flex-basis:34px;font-size:15px}
}

/* Section title tones — class-based so they can flip with the theme */
:root{--cyan-text:#00d4ff}
[data-theme="light"]{--cyan-text:#0b6f93}
.tr-section-title.tone-gold{color:var(--gold-text)}
.tr-section-title.tone-cyan{color:var(--cyan-text)}

/* ── Notification banner: extra tones, action button, close ── */
.ge-notice{position:relative}
.ge-notice-gold    {--gn-color:#c9a84c;--gn-bg:rgba(201,168,76,.10)}
.ge-notice-purple  {--gn-color:#8e44ad;--gn-bg:rgba(142,68,173,.12)}
.ge-notice-neutral {--gn-color:#7f8c9b;--gn-bg:rgba(127,140,155,.12)}
.ge-notice-gradient{
  --gn-color:#8e44ad;
  --gn-bg:linear-gradient(135deg,rgba(231,76,60,.14),rgba(142,68,173,.14),rgba(52,152,219,.14));
  border-color:transparent;
  border-left-color:#8e44ad;
}

/* Action button */
.ge-notice-btn{
  display:inline-block;
  margin-top:11px;
  padding:8px 18px;
  border-radius:6px;
  background:var(--gn-color,#e74c3c);
  color:#0a1628;
  font-size:12.5px;
  font-weight:800;
  letter-spacing:.04em;
  text-decoration:none;
  transition:var(--transition);
}
.ge-notice-btn:hover{filter:brightness(1.12);transform:translateY(-1px)}
.ge-notice-neutral .ge-notice-btn,
.ge-notice-purple  .ge-notice-btn{color:#fff}

/* Close button */
.ge-notice-close{
  position:absolute;
  top:10px;
  right:12px;
  width:26px;
  height:26px;
  border:none;
  background:transparent;
  color:var(--muted);
  font-size:20px;
  line-height:1;
  cursor:pointer;
  border-radius:50%;
  transition:var(--transition);
}
.ge-notice-close:hover{background:rgba(127,140,155,.18);color:var(--text)}
.ge-notice-close ~ .ge-notice-body,
.ge-notice:has(.ge-notice-close) .ge-notice-body{padding-right:22px}
