/* ==========================================================================
   PIX DELIVERY - DESIGN SYSTEM & STYLES (MATCHING PIXLOGISTICS.COM)
   ========================================================================== */

:root {
    --color-primary: #1E3D2F;         /* Dark Forest Green */
    --color-primary-dark: #12251D;
    --color-olive: #1E3D2F;           /* Green accent */
    --color-accent: #6B8E23;          /* Secondary green */
    --color-gray-50: #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-gray-600: #4B5563;
    --color-text: #1F2937;
    --color-white: #FFFFFF;
    --color-success: #22C55E;
    --color-error: #EF4444;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --navbar-height: 80px;
}

[data-theme="dark"] {
    --color-gray-50: #181A1B;
    --color-gray-100: #222426;
    --color-gray-200: #35393B;
    --color-gray-600: #A8A8A8;
    --color-text: #E8E6E3;
    --color-white: #121212;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--color-white);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    padding: 12px 24px;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn--primary {
    background-color: var(--color-primary);
    color: #fff !important;
    border-radius: 8px;
}

.btn--primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
}

.btn--outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
    border-radius: 8px;
}

.btn--outline:hover {
    background-color: var(--color-primary);
    color: #fff !important;
}

.btn--white {
    background-color: #fff;
    color: var(--color-primary);
    border: 1px solid var(--color-gray-200);
}

.btn--white:hover {
    background-color: var(--color-gray-50);
}

.btn-icon {
    margin-left: 8px;
}

/* Header & Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background-color: var(--color-white);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--color-gray-100);
}

.navbar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar__logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar__logo-img {
    height: 40px;
    width: auto;
}

.navbar__logo-text {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--color-primary);
}

.navbar__links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.navbar__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-gray-600);
    padding: 8px 16px;
    border-radius: 6px;
}

.navbar__link:hover, .navbar__link.active {
    color: var(--color-primary);
    background-color: var(--color-gray-50);
}

.navbar__link--rider {
    color: var(--color-primary);
    font-weight: 600;
}

.navbar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar__theme-btn, .navbar__globe {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-primary);
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar__theme-btn:hover, .navbar__globe:hover {
    background-color: var(--color-gray-50);
}

.navbar__hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
}

.navbar__hamburger span {
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    transition: all 0.3s ease;
}

.navbar__mobile {
    display: none;
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background-color: var(--color-white);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--color-gray-100);
    z-index: 999;
}

.navbar__mobile.open {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.navbar__mobile-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    padding: 8px 0;
}

/* Hero Section */
.hero-section {
    padding-top: calc(var(--navbar-height) + 60px);
    padding-bottom: 80px;
    background-color: var(--color-white);
}

.hero-section__inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-section__title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-section__subtitle {
    font-size: 1.15rem;
    color: var(--color-gray-600);
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-section__buttons {
    display: flex;
    gap: 16px;
}

.hero-section__image-container {
    display: flex;
    justify-content: flex-end;
}

.hero-section__img {
    width: 100%;
    max-width: 520px;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

/* Custom Green Headings */
.section-title-green {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.section-subtitle-dark {
    font-size: 1.1rem;
    color: var(--color-gray-600);
    max-width: 600px;
}

/* About Brief Section */
.about-brief {
    padding: 80px 0;
    background-color: var(--color-gray-50);
}

.about-brief__header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 48px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    background-color: var(--color-white);
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--color-gray-100);
    box-shadow: var(--shadow-sm);
}

.stat-card__icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background-color: rgba(30, 61, 47, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.stat-card__number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.stat-card__label {
    font-size: 0.9rem;
    color: var(--color-gray-500);
}

/* Services Brief Section */
.services-brief {
    padding: 80px 0;
    background-color: var(--color-white);
}

.services-brief__header {
    text-align: center;
    margin-bottom: 48px;
}

.services-grid-green {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card-green {
    background-color: #2D5A3D; /* Deep Rich Green */
    color: #fff;
    padding: 40px 32px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.service-card-green:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(45, 90, 61, 0.2);
}

.service-card-green__icon {
    color: #fff;
    margin-bottom: 24px;
}

.service-card-green__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card-green__desc {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 24px;
    line-height: 1.6;
}

.service-card-green__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.services-brief__footer {
    text-align: center;
    margin-top: 48px;
}

/* How It Works (Timeline) */
.how-it-works {
    padding: 80px 0;
    background-color: var(--color-gray-50);
}

.how-it-works__header {
    text-align: center;
    margin-bottom: 56px;
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 20px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background-color: var(--color-gray-200);
}

.timeline-item {
    display: flex;
    gap: 32px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-badge {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #2D5A3D;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    border: 4px solid var(--color-gray-50);
}

.timeline-content {
    background-color: var(--color-white);
    padding: 24px 32px;
    border-radius: 16px;
    border: 1px solid var(--color-gray-100);
    box-shadow: var(--shadow-sm);
    flex: 1;
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.timeline-text {
    font-size: 0.95rem;
    color: var(--color-gray-500);
}

/* Track On Go (App Info) */
.track-go {
    padding: 100px 0;
    background-color: var(--color-white);
}

.track-go__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.track-go__title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.track-go__text {
    font-size: 1.1rem;
    color: var(--color-gray-600);
    margin-bottom: 32px;
    line-height: 1.7;
}

.track-go__app-buttons {
    display: flex;
    gap: 16px;
}

.app-btn {
    display: inline-flex;
    align-items: center;
    background-color: var(--color-gray-100);
    color: var(--color-primary-dark);
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
}

.app-btn:hover {
    background-color: var(--color-gray-200);
}

.track-go__mockup {
    display: flex;
    justify-content: center;
}

.mockup-phone {
    width: 290px;
    height: 560px;
    background-color: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
    border: 4px solid #333;
}

.mockup-phone__screen {
    background: linear-gradient(135deg, #1E3D2F 0%, #2D5A3D 100%);
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
}

.mock-timeline {
    position: relative;
    padding-left: 20px;
}

.mock-timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background-color: rgba(255,255,255,0.2);
}

.mock-timeline__item {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 16px;
    position: relative;
}

.mock-timeline__item::before {
    content: '';
    position: absolute;
    left: -19px;
    top: 3px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.3);
}

.mock-timeline__item.active {
    color: #fff;
    font-weight: 700;
}

.mock-timeline__item.active::before {
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.2);
}

/* Footer Section */
.footer {
    background-color: #12251D;
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
    font-size: 0.9rem;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr) 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.footer__desc {
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer__social {
    display: flex;
    gap: 12px;
}

.footer__social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.footer__social-link:hover {
    background-color: var(--color-primary);
}

.footer__heading {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 24px;
}

.footer__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__list a:hover {
    color: #fff;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px 0;
    text-align: center;
}

.footer__bottom .container {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background-color: #25D366;
    color: #fff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37,211,102,0.3);
    z-index: 999;
}

.whatsapp-float:hover {
    transform: scale(1.05);
}

/* Track Shipment Page Styles */
.track-hero-section {
    padding: 120px 0 80px;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.track-hero-container {
    max-width: 600px;
    text-align: center;
    margin: 0 auto;
}

.track-hero-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.track-hero-desc {
    color: var(--color-gray-600);
    margin-bottom: 32px;
}

.track-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.track-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--color-gray-200);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--color-text);
    outline: none;
    transition: border-color 0.2s;
    min-width: 0;
    box-sizing: border-box;
}

.track-input:focus {
    border-color: var(--color-primary);
}

.track-btn {
    padding: 14px 28px;
    border-radius: 8px;
    white-space: nowrap;
    box-sizing: border-box;
}

.track-result-section {
    padding: 60px 0 100px;
    background: var(--color-gray-50);
}

.track-result-container {
    max-width: 600px;
    margin: 0 auto;
}

.track-result-card {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray-100);
    box-sizing: border-box;
}

.track-timeline-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-gray-100);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .hero-section__title {
        font-size: 2.75rem;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-grid-green {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer__inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar__links {
        display: none;
    }
    .navbar__hamburger {
        display: flex;
    }
    .hero-section__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    .hero-section {
        padding-top: calc(var(--navbar-height) + 30px);
        padding-bottom: 50px;
    }
    .hero-section__title {
        font-size: 2.2rem !important;
        line-height: 1.25;
    }
    .hero-section__subtitle {
        font-size: 1rem !important;
        margin-bottom: 24px;
    }
    .hero-section__buttons {
        justify-content: center;
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        gap: 12px;
    }
    .hero-section__buttons .btn {
        width: 100%;
    }
    .hero-section__image-container {
        justify-content: center;
        margin-top: 16px;
    }
    .hero-section__img {
        max-width: 100%;
        border-radius: 16px;
    }

    /* Stats on mobile */
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    .stat-card {
        padding: 24px 16px;
    }

    /* Track section on mobile */
    .track-go__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    .track-go {
        padding: 60px 0;
    }
    .track-go__title {
        font-size: 2rem !important;
    }
    .track-go__app-buttons {
        justify-content: center;
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        gap: 12px;
    }
    .track-go__app-buttons .app-btn {
        width: 100%;
        justify-content: center;
    }

    /* Services cards columns collapse */
    .service-row-card {
        grid-template-columns: 1fr !important;
        padding: 24px !important;
        gap: 24px !important;
    }
    .service-row-card div:last-child {
        order: -1; /* Show photo first on mobile */
    }
    .service-row-card[style*="direction: rtl"] div:last-child {
        order: -1;
    }
    .services-hero h1 {
        font-size: 2.25rem !important;
    }
    .services-hero p {
        font-size: 1rem !important;
    }

    /* Track page on mobile */
    .track-hero-title {
        font-size: 2rem !important;
    }
    .track-form {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 12px !important;
    }
    .track-input {
        width: 100% !important;
        flex: none !important;
    }
    .track-btn {
        width: 100% !important;
    }
    .track-result-card {
        padding: 24px !important;
    }
    .track-timeline-header {
        flex-direction: column !important;
        gap: 16px !important;
        text-align: left !important;
    }
    .track-timeline-header div {
        text-align: left !important;
    }
    .track-timeline-header div:last-child {
        text-align: left !important;
    }

    /* Global layout & inline style overrides on mobile */
    form[style*="padding: 40px"] {
        padding: 24px !important;
        border-radius: 16px !important;
    }
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    section[style*="padding: 120px"] {
        padding: 80px 0 50px !important;
    }

    /* Footer layouts */
    .footer {
        padding: 60px 0 0;
    }
    .footer__inner {
        grid-template-columns: 1fr !important;
        gap: 32px;
        text-align: center;
    }
    .footer__logo {
        justify-content: center;
    }
    .footer__social {
        justify-content: center;
    }
    .footer__bottom .container {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .navbar__logo-text {
        font-size: 1.1rem;
    }
    .navbar__actions {
        gap: 8px;
    }
    .navbar__theme-btn, .navbar__globe {
        padding: 6px;
    }
}

@media (max-width: 360px) {
    .navbar__logo-text {
        display: none;
    }
}
