/*
 * Public website only. Loaded from the home page and the public tracking page.
 * Every rule is scoped to body.pub-site, which public-site.js adds on those pages.
 */

body.pub-site {
    --pub-navy: #0c2342;
    --pub-blue: #1d4e89;
    --pub-gold: #e8a317;
    --pub-ink: #14233a;
    --pub-muted: #5d6d80;
    --pub-line: #e3ebf3;
    --pub-paper: #f3f6fb;
    --pub-card: #ffffff;
    --pub-green: #0f9f6e;
    --pub-red: #c62828;
    background: var(--pub-paper);
    color: var(--pub-ink);
}

html[dir="rtl"] body.pub-site {
    font-family: "Noto Naskh Arabic", "Plus Jakarta Sans", Tahoma, sans-serif;
}

body.pub-site header {
    background: rgba(8, 18, 36, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

body.pub-site .header-scrolled {
    background: rgba(8, 18, 36, 0.94);
}

body.pub-site .logo {
    letter-spacing: -0.03em;
}

body.pub-site .hero.hero-v2 {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 18%, rgba(232, 163, 23, 0.22), transparent 28%),
        radial-gradient(circle at 88% 8%, rgba(96, 165, 250, 0.22), transparent 26%),
        linear-gradient(155deg, #071525 0%, #12325c 48%, #1d4e89 100%);
    padding-top: 108px;
    padding-bottom: 72px;
}

body.pub-site .hero::before {
    background:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 78%);
}

body.pub-site .hero-grid {
    align-items: center;
}

body.pub-site .hero-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #f8d48a;
    letter-spacing: 0.01em;
}

body.pub-site .hero h1 {
    background: none;
    -webkit-text-fill-color: #fff;
    color: #fff;
    font-size: clamp(2.3rem, 4.8vw, 4.35rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.05;
    max-width: 18em;
}

body.pub-site .hero-content p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.08rem;
    max-width: 38rem;
}

body.pub-site .hero-track-box {
    max-width: 640px;
}

body.pub-site .hero-track-input {
    gap: 0.65rem;
    padding: 0.45rem;
    padding-inline-start: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 24px 60px rgba(3, 10, 24, 0.28);
}

body.pub-site .hero-track-input input {
    color: var(--pub-ink);
    font-size: 1rem;
    min-height: 48px;
}

body.pub-site .hero-track-input button {
    border-radius: 14px;
    background: linear-gradient(135deg, var(--pub-gold), #f6c453);
    color: #1a1406;
    min-height: 48px;
    box-shadow: none;
}

body.pub-site .hero-track-input button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(232, 163, 23, 0.35);
}

body.pub-site .hero-btns {
    flex-wrap: wrap;
    gap: 0.75rem;
}

body.pub-site .hero-btns .btn {
    border-radius: 999px;
    min-height: 46px;
}

body.pub-site .hero-btns .btn-primary {
    background: #fff;
    color: var(--pub-navy);
    box-shadow: none;
}

body.pub-site .hero-btns .btn-secondary,
body.pub-site .hero-btns .btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: none;
}

body.pub-site .hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.75rem;
    max-width: 640px;
}

body.pub-site .hero-stats .stat-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0.85rem 0.7rem;
    text-align: center;
}

body.pub-site .hero-stats .stat-number {
    color: #fff;
    font-weight: 800;
    font-size: 1.35rem;
}

body.pub-site .hero-stats .stat-label {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.75rem;
}

body.pub-site .hero-visual-card.main {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

body.pub-site .hero-visual-status {
    background: rgba(232, 163, 23, 0.18);
    color: #f8d48a;
    border-radius: 999px;
}

body.pub-site .section {
    padding: 88px 0;
}

body.pub-site .section-title {
    margin-bottom: 42px;
}

body.pub-site .section-title h2 {
    letter-spacing: -0.035em;
    font-weight: 800;
}

body.pub-site .section-title p {
    color: var(--pub-muted);
    max-width: 42rem;
    margin-inline: auto;
}

body.pub-site #features,
body.pub-site #testimonials {
    background: #fff;
}

body.pub-site .feature-card,
body.pub-site .service-card,
body.pub-site .testimonial-card,
body.pub-site .web-shipment-card,
body.pub-site .web-branch-card,
body.pub-site .web-news-card,
body.pub-site .web-quick-action-card {
    background: var(--pub-card);
    color: var(--pub-ink);
    border: 1px solid var(--pub-line);
    border-radius: 22px;
    box-shadow: 0 12px 32px rgba(16, 36, 64, 0.05);
}

body.pub-site .feature-card h3,
body.pub-site .service-content h3,
body.pub-site .web-shipment-card h3,
body.pub-site .web-branch-card h3,
body.pub-site .web-news-card h3,
body.pub-site .web-quick-action-card strong {
    color: #0c2342;
}

body.pub-site .feature-card p,
body.pub-site .service-card p,
body.pub-site .web-shipment-card p,
body.pub-site .web-branch-card p,
body.pub-site .web-news-card p,
body.pub-site .web-quick-action-card span:last-child {
    color: #3e4c5e;
}

body.pub-site .feature-card:hover,
body.pub-site .service-card:hover,
body.pub-site .web-quick-action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(16, 36, 64, 0.1);
}

body.pub-site .feature-icon,
body.pub-site .service-icon {
    width: 64px;
    height: 64px;
    margin-inline: auto;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(29, 78, 137, 0.1);
    color: var(--pub-blue);
    font-size: 1.4rem;
}

body.pub-site .how-it-works {
    background: linear-gradient(180deg, #f8fbff 0%, #eef3f9 100%);
}

body.pub-site .steps::before {
    height: 2px;
    top: 28px;
    background: linear-gradient(90deg, transparent, var(--pub-gold), transparent);
}

html[dir="rtl"] body.pub-site .steps::before {
    background: linear-gradient(270deg, transparent, var(--pub-gold), transparent);
}

body.pub-site .step-number {
    width: 58px;
    height: 58px;
    border: 2px solid var(--pub-gold);
    color: var(--pub-navy);
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(16, 36, 64, 0.06);
}

body.pub-site #services {
    background: #fff;
}

body.pub-site .service-content h3,
body.pub-site .feature-card h3 {
    letter-spacing: -0.02em;
}

body.pub-site #tracking {
    background:
        radial-gradient(circle at 0% 0%, rgba(232, 163, 23, 0.18), transparent 34%),
        linear-gradient(160deg, #0c2342 0%, #18497f 100%);
}

body.pub-site #tracking .section-title h2,
body.pub-site #tracking .section-title p,
body.pub-site #tracking .tracking-help {
    color: rgba(255, 255, 255, 0.88);
}

body.pub-site #tracking .section-title h2::after {
    background: var(--pub-gold);
}

body.pub-site .tracking-box {
    max-width: 720px;
    border-radius: 28px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

body.pub-site .tracking-box::before {
    height: 0;
}

body.pub-site .tracking-input {
    display: flex;
    gap: 0.65rem;
    align-items: center;
}

body.pub-site .tracking-input input {
    flex: 1;
    min-width: 0;
    min-height: 54px;
    border-radius: 14px;
    border: 1px solid var(--pub-line);
    padding-inline: 16px;
    font-size: 1rem;
}

body.pub-site .tracking-input button,
body.pub-site #trackBtn {
    min-height: 54px;
    border: none;
    border-radius: 14px;
    padding-inline: 18px;
    background: linear-gradient(135deg, var(--pub-navy), var(--pub-blue));
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

body.pub-site .cta {
    background: linear-gradient(135deg, #12325c, #1d4e89);
}

body.pub-site footer#contact {
    background: linear-gradient(180deg, #0c2342 0%, #081628 100%);
    border-top: 4px solid var(--pub-gold);
    padding-top: 72px;
}

body.pub-site .footer-col h3 {
    letter-spacing: -0.02em;
}

body.pub-site .footer-col h3::after {
    background: var(--pub-gold);
}

html[dir="rtl"] body.pub-site .footer-col h3::after,
html[dir="rtl"] body.pub-site .nav-links a::after {
    left: auto;
    right: 0;
}

body.pub-site .footer-links a:hover {
    color: #fff;
}

body.pub-site .social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

body.pub-site .copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 18px;
}

/* Tracking page */
body.pub-site .tracking-details-page {
    background:
        radial-gradient(circle at 100% 0%, rgba(29, 78, 137, 0.08), transparent 28%),
        var(--pub-paper);
    padding-top: 112px;
}

body.pub-site .tracking-header {
    background: linear-gradient(145deg, #0c2342 0%, #1d4e89 70%);
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(12, 35, 66, 0.18);
}

body.pub-site .status-container {
    text-align: end;
}

body.pub-site .status-badge-lg {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
}

body.pub-site .city-value {
    margin-left: 0;
    margin-inline-start: 4px;
}

body.pub-site .pub-progress {
    background: #fff;
    border: 1px solid var(--pub-line);
    border-radius: 28px;
    padding: 28px 22px 8px;
    margin: 0 0 22px;
    box-shadow: 0 16px 40px rgba(16, 36, 64, 0.06);
}

body.pub-site .pub-progress-head {
    text-align: center;
    margin-bottom: 22px;
}

body.pub-site .pub-progress-head h2 {
    margin: 0 0 6px;
    font-size: 1.45rem;
    letter-spacing: -0.03em;
    color: var(--pub-navy);
}

body.pub-site .pub-progress-head p {
    margin: 0;
    color: var(--pub-muted);
}

body.pub-site .pub-timeline {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 8px 0 18px;
    position: relative;
}

body.pub-site .pub-timeline::before {
    content: "";
    position: absolute;
    top: 30px;
    inset-inline: 10%;
    height: 3px;
    background: #e2e8f0;
    border-radius: 999px;
}

body.pub-site .pub-timeline-step {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 8px;
}

body.pub-site .pub-timeline-marker {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid #d5dee8;
    color: #94a3b8;
    font-size: 0.95rem;
}

body.pub-site .pub-timeline-step.is-completed .pub-timeline-marker,
body.pub-site .pub-timeline-step.is-current .pub-timeline-marker {
    background: var(--pub-green);
    border-color: var(--pub-green);
    color: #fff;
}

body.pub-site .pub-timeline-step.is-current .pub-timeline-marker {
    box-shadow: 0 0 0 7px rgba(15, 159, 110, 0.16);
}

body.pub-site .pub-timeline-step.is-cancelled .pub-timeline-marker {
    background: var(--pub-red);
    border-color: var(--pub-red);
    color: #fff;
    box-shadow: 0 0 0 7px rgba(198, 40, 40, 0.16);
}

body.pub-site .pub-timeline-step.is-pending .pub-timeline-body strong,
body.pub-site .pub-timeline-step.is-pending .pub-timeline-body p,
body.pub-site .pub-timeline-step.is-pending .pub-timeline-index {
    color: #8ea0b3;
}

body.pub-site .pub-timeline-body strong {
    display: block;
    color: var(--pub-navy);
    font-size: 1rem;
}

body.pub-site .pub-timeline-step.is-cancelled .pub-timeline-body strong {
    color: var(--pub-red);
}

body.pub-site .pub-timeline-index {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--pub-gold);
    margin-bottom: 2px;
}

body.pub-site .pub-timeline-body p {
    margin: 4px 0 0;
    color: var(--pub-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

body.pub-site .pub-timeline-body time {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--pub-blue);
    background: rgba(29, 78, 137, 0.08);
    border-radius: 999px;
    padding: 4px 8px;
}

body.pub-site .pub-timeline-step.is-cancelled .pub-timeline-body time {
    color: var(--pub-red);
    background: rgba(198, 40, 40, 0.08);
}

body.pub-site .dropdown-card {
    border: 1px solid var(--pub-line);
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(16, 36, 64, 0.05);
}

body.pub-site .action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body.pub-site .action-btn {
    border-radius: 999px;
}

body.pub-site .not-found-container {
    background: #fff;
    border-radius: 28px;
    margin-top: 120px;
    padding: 64px 24px;
    box-shadow: 0 16px 40px rgba(16, 36, 64, 0.06);
}

@media (max-width: 1100px) {
    body.pub-site .hero-grid {
        grid-template-columns: 1fr;
    }

    body.pub-site .hero-visual {
        min-height: 0;
        margin-top: 1.5rem;
    }

    body.pub-site .hero h1 {
        max-width: none;
    }
}

@media (max-width: 800px) {
    body.pub-site {
        padding-bottom: 76px;
    }

    body.pub-site .hero.hero-v2 {
        padding-top: 96px;
        min-height: auto;
    }

    body.pub-site .hero-stats,
    body.pub-site .hero-btns {
        grid-template-columns: 1fr 1fr;
    }

    body.pub-site .hero-btns {
        display: grid;
    }

    body.pub-site .hero-btns .btn,
    body.pub-site .hero-track-input button {
        width: 100%;
    }

    body.pub-site .hero-track-input {
        flex-wrap: wrap;
    }

    body.pub-site .hero-track-input input {
        flex: 1 1 160px;
    }

    body.pub-site .steps {
        flex-direction: column;
        gap: 28px;
    }

    body.pub-site .steps::before {
        display: none;
    }

    body.pub-site .tracking-input {
        flex-direction: column;
        align-items: stretch;
    }

    body.pub-site .tracking-input button,
    body.pub-site #trackBtn {
        width: 100%;
    }

    body.pub-site .header-content {
        align-items: flex-start;
    }

    body.pub-site .pub-timeline {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding-inline-start: 4px;
    }

    body.pub-site .pub-timeline::before {
        top: 16px;
        bottom: 16px;
        height: auto;
        width: 3px;
        inset-inline-start: 27px;
        inset-inline-end: auto;
    }

    body.pub-site .pub-timeline-step {
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 14px;
        text-align: start;
        padding: 0 0 22px;
    }

    body.pub-site .pub-timeline-marker {
        margin: 0;
    }

    body.pub-site .tracking-details-page {
        padding-top: 96px;
    }
}

@media (max-width: 520px) {
    body.pub-site .hero-stats {
        grid-template-columns: 1fr 1fr;
    }

    body.pub-site .container {
        padding-inline: 16px;
    }
}

/* Brand names, tracking numbers, phones, and emails stay left-to-right in Dari/Pashto. */
html[dir="rtl"] body.pub-site .logo,
html[dir="rtl"] body.pub-site .web-phone-header,
body.pub-site bdi.pub-ltr,
body.pub-site .pub-ltr {
    direction: ltr;
    unicode-bidi: isolate;
}

html[dir="rtl"] body.pub-site input[type="email"],
html[dir="rtl"] body.pub-site input[type="tel"],
html[dir="rtl"] body.pub-site input[type="url"],
html[dir="rtl"] body.pub-site #heroTrackInput,
html[dir="rtl"] body.pub-site #trackingInput,
html[dir="rtl"] body.pub-site .tracking-number strong {
    direction: ltr;
    unicode-bidi: isolate;
    text-align: start;
}

/* Four live counters sit on the band after the newsletter. Keep ink on white. */
body.pub-site .web-stats-bar {
    background: linear-gradient(135deg, #0c2342 0%, #163e73 100%);
}

body.pub-site .web-stat-card {
    background: #ffffff;
    color: #14233a;
    border: 1px solid #d5e0ec;
}

body.pub-site .web-stat-number {
    color: #0c2342;
}

body.pub-site .web-stat-label {
    color: #334155;
    opacity: 1;
}

body.pub-site .web-stat-icon,
body.pub-site .web-stat-icon.secondary {
    color: #0c2342;
    background: #e7eef6;
}

body.pub-site .web-stat-icon.accent {
    color: #7a4e00;
    background: #fdecc8;
}

body.pub-site .web-stat-icon.success {
    color: #0b6b48;
    background: #d8f3e8;
}

body.pub-site .web-shipment-card.featured {
    background: linear-gradient(145deg, #0c2342 0%, #1d4e89 100%);
    color: #ffffff;
    border: none;
}

body.pub-site .web-shipment-card.featured h3,
body.pub-site .web-shipment-card.featured .web-shipment-icon {
    color: #ffffff;
}

body.pub-site .web-shipment-card.featured p {
    color: rgba(255, 255, 255, 0.92);
}

body.pub-site .web-shipment-card.featured .web-shipment-icon {
    background: rgba(255, 255, 255, 0.16);
}

body.pub-site .floating-element.element-2 {
    color: #0c2342;
}

@media (prefers-color-scheme: dark) {
    body.pub-site .web-stat-card {
        background: #13283f;
        color: #f8fafc;
        border-color: #2c4a6e;
    }

    body.pub-site .web-stat-number {
        color: #ffffff;
    }

    body.pub-site .web-stat-label {
        color: #e2e8f0;
    }

    body.pub-site .web-stat-icon,
    body.pub-site .web-stat-icon.secondary,
    body.pub-site .web-stat-icon.accent,
    body.pub-site .web-stat-icon.success {
        color: #f8d48a;
        background: rgba(248, 212, 138, 0.16);
    }
}
