/* ============================================================
   GLOBAL EXPRESS – PREMIUM DESIGN SYSTEM
   ============================================================ */

/* Google Fonts loaded in header */

:root {
    /* Brand Colors */
    --primary:        #2563eb;
    --primary-dark:   #1d4ed8;
    --primary-light:  #eff6ff;
    --primary-glow:   rgba(37,99,235,0.18);

    /* Neutrals */
    --navy:           #0f172a;
    --navy-mid:       #1e293b;
    --navy-soft:      #334155;
    --muted:          #64748b;
    --border:         #e2e8f0;
    --bg:             #f8fafc;
    --white:          #ffffff;

    /* Legacy aliases (used in older view files) */
    --primary-teal:       #2563eb;
    --primary-teal-dark:  #1d4ed8;
    --primary-teal-light: #eff6ff;
    --navy-midnight:      #0f172a;
    --navy-light:         #1e293b;
    --gray-bg:            #f8fafc;
    --gray-line:          #e2e8f0;
    --text-main:          #0f172a;
    --text-muted:         #64748b;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body:    'Inter', sans-serif;

    /* Spacing scale */
    --section-pad: 120px 40px;

    /* Shadows */
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:  0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg:  0 20px 40px rgba(0,0,0,0.10);
    --shadow-xl:  0 30px 60px rgba(0,0,0,0.14);
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--navy);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.22s cubic-bezier(.4,0,.2,1);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

.btn-outline-dark {
    background: transparent;
    color: var(--navy);
    border-color: var(--border);
}
.btn-outline-dark:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-white {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}
.btn-white:hover { background: #f1f5f9; }

.btn-large { padding: 16px 40px; font-size: 1.1rem; }

/* ── HERO SECTION ── */
.hero {
    position: relative;
    min-height: 100vh;
    background-image: url('https://images.unsplash.com/photo-1578575437130-527eed3abbec?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(15,23,42,0.96) 0%,
        rgba(15,23,42,0.7)  50%,
        rgba(15,23,42,0.3)  100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    padding: 200px 60px 60px;
    color: var(--white);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37,99,235,0.2);
    border: 1px solid rgba(37,99,235,0.4);
    color: #93c5fd;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 30px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 28px;
}

.hero-title .accent { color: var(--primary); }

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: rgba(255,255,255,0.8);
    margin-bottom: 50px;
    line-height: 1.75;
    max-width: 640px;
}

/* ── TRACKING WIDGET ── */
.tracking-widget-wrapper {
    position: absolute;
    bottom: -90px;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 0 60px;
}

.tracking-widget {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--border);
}

.widget-tabs {
    display: flex;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.widget-tabs .tab {
    flex: 1;
    padding: 22px 30px;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}

.widget-tabs .tab:hover { color: var(--navy); }
.widget-tabs .tab.active {
    background: var(--white);
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.widget-body { padding: 45px 50px; }

.spacer-for-widget { height: 160px; background: var(--white); }

/* ── SECTION SHARED ── */
.page-content { background: var(--white); }

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 18px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 20px;
}

.section-sub {
    font-size: 1.15rem;
    color: var(--muted);
    line-height: 1.75;
}

/* ── SOLUTION CARDS ── */
.solutions-grid { display: grid; gap: 30px; }

.solution-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.solution-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.solution-card img { width: 100%; height: 240px; object-fit: cover; }

.card-content { padding: 40px 30px; flex: 1; display: flex; flex-direction: column; }
.card-content h3 { font-size: 1.6rem; color: var(--navy); margin-bottom: 14px; }
.card-content p  { color: var(--muted); font-size: 1rem; line-height: 1.7; flex: 1; margin-bottom: 30px; }

/* ── LINK ARROW ── */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
    text-decoration: none;
    transition: gap 0.2s;
}
.link-arrow:hover { gap: 14px; }

/* ── NEWS / INSIGHTS ── */
.news-grid  { display: grid; gap: 30px; }
.news-item  {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 45px 35px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}
.news-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.news-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 16px;
}

.news-item h3 {
    font-size: 1.4rem;
    color: var(--navy);
    margin-bottom: 16px;
    line-height: 1.4;
}

.news-item p { color: var(--muted); font-size: 0.97rem; line-height: 1.65; margin-bottom: 25px; }

/* ── PAGE HEADER (interior pages) ── */
.page-hero {
    min-height: 480px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 0 0 80px;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15,23,42,0.4) 0%,
        rgba(15,23,42,0.85) 100%
    );
}

.page-hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    width: 100%;
}

.page-hero-content h1 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 800;
    margin-bottom: 18px;
}

.page-hero-content p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
    max-width: 680px;
    line-height: 1.7;
}

/* ── STATS BAR ── */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--navy);
    color: var(--white);
}

.stat-item {
    padding: 50px 40px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.stat-item:last-child { border-right: none; }

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    margin-bottom: 8px;
}

.stat-label { color: rgba(255,255,255,0.6); font-size: 0.97rem; }

/* ── PROMO SPLIT SECTION ── */
.promo-section {
    display: flex;
    align-items: stretch;
    min-height: 560px;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.promo-content {
    flex: 1;
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg);
}

.promo-content h2  { font-size: 2.8rem; font-weight: 800; color: var(--navy); margin-bottom: 20px; }
.promo-content p   { font-size: 1.1rem; color: var(--muted); line-height: 1.8; margin-bottom: 35px; }

.promo-image { flex: 1; min-height: 400px; overflow: hidden; }
.promo-image img { width: 100%; height: 100%; object-fit: cover; }

/* ── INPUT FIELDS ── */
.form-input {
    width: 100%;
    padding: 16px 20px;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--navy);
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.form-input:focus { border-color: var(--primary); background: var(--white); }

/* ── TRACKING FORM ── */
.tracking-form { display: flex; gap: 16px; align-items: center; }
.input-group { flex: 1; }

/* ── PRODUCT CARD (Prices page) ── */
.product-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    background: var(--white);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    position: relative;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.responsive-grid-3 { grid-template-columns: repeat(3, 1fr); }
.responsive-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ── UTILITY ── */
.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.text-center { text-align: center; }
.mt-auto { margin-top: auto; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1200px) {
    .promo-section { flex-direction: column; }
    .promo-image { min-height: 400px; }
    .solutions-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .responsive-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .hero-flex-wrap { padding: 0 40px !important; }
}

@media (max-width: 900px) {
    .responsive-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero-flex-wrap { flex-wrap: wrap; text-align: center; justify-content: center; padding-top: 100px !important; gap: 40px !important;}
    .hero-flex-wrap > div > div { justify-content: center; }
    .reveal-right { display: none !important; }
}

@media (max-width: 768px) {
    .page-header { padding: 0 30px !important; }
    .hero-content { padding: 140px 30px 50px; }
    .hero-title { font-size: 2.8rem; }
    .tracking-widget-container { bottom: -100px !important; }
    .tracking-widget-wrapper { padding: 0 15px !important; box-sizing: border-box; }
    .widget-body { padding: 20px 15px !important; }
    .tracking-form { flex-direction: column; width: 100%; }
    .tracking-form input { width: 100%; box-sizing: border-box; flex: none !important; }
    .btn-track-submit { width: 100%; justify-content: center; }
    .quote-form-flex { flex-direction: column; width: 100%; }
    .quote-input { width: 100%; box-sizing: border-box; flex: none !important; }
    .btn-quote-submit { width: 100%; justify-content: center; }
    .spacer-for-widget { height: 160px; }
    .solutions-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .promo-content { padding: 50px 30px; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .container { padding: 0 20px; }
    .responsive-grid-3 { grid-template-columns: 1fr; }
    .responsive-grid-4 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.2rem; }
    .btn-large { padding: 14px 28px; font-size: 1rem; }
    .stats-bar { grid-template-columns: 1fr 1fr; }
    .stat-item { padding: 35px 20px; }
    .stat-number { font-size: 2.2rem; }
}
