* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --yellow: #FFC300;
    --yellow-dark: #e2ac00;
    --blue: #1168d8;
    --text: #111111;
    --muted: #666666;
    --white: #ffffff;
    --soft: #f5f5f5;
    --soft-2: #f7f7f7;
    --border: #e7e7e7;
    --shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    --radius: 18px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.5;
}

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

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

/* HEADER */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand img {
    height: 42px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--yellow-dark);
}

/* HERO */
.hero {
    min-height: 620px;
    position: relative;
    background:
        linear-gradient(rgba(0,0,0,0.42), rgba(0,0,0,0.42)),
        url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1800&q=80') center center / cover no-repeat;
    display: flex;
    align-items: center;
}

.hero .container {
    width: min(1120px, 88%);
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 620px) minmax(360px, 460px);
    justify-content: space-between;
    gap: 56px;
    align-items: center;
    width: 100%;
    padding: 70px 0;
}

.hero-text {
    color: #fff;
    max-width: 560px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.24);
    font-size: 13px;
    font-weight: 700;
}

.hero h1 {
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.05;
    margin-bottom: 16px;
    font-weight: 800;
}

.hero p {
    font-size: 18px;
    color: rgba(255,255,255,0.92);
    max-width: 560px;
}

/* SEARCH CARD */
.tracking-search-card {
    background: rgba(255,255,255,0.97);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    max-width: 460px;
    width: 100%;
    margin-left: auto;
}

.search-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.tracking-form {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.tracking-form input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 17px 16px;
    font-size: 15px;
    min-width: 0;
}

.tracking-form button {
    border: 0;
    background: var(--yellow);
    color: var(--text);
    font-weight: 800;
    padding: 0 26px;
    cursor: pointer;
    font-size: 15px;
}

.tracking-form button:hover {
    background: var(--yellow-dark);
}

.search-note {
    font-size: 14px;
    color: #4f4f4f;
    margin-top: 12px;
}

/* INFO CARDS */
.quick-info {
    background: var(--soft);
    padding: 70px 0;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.info-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px 26px;
    box-shadow: var(--shadow);
}

.info-card h3 {
    font-size: 28px;
    line-height: 1.05;
    margin-bottom: 14px;
}

.info-card p {
    color: var(--muted);
    font-size: 16px;
}

/* CONTENT */
.content-section {
    padding: 80px 0;
}

.alt-section {
    background: var(--soft);
}

.two-col {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 42px;
    align-items: start;
}

.section-tag {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.section-intro h2 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
}

.section-copy p {
    color: var(--muted);
    font-size: 17px;
    margin-bottom: 18px;
}

/* FOOTER */
.site-footer {
    background: #f1f1f1;
    color: var(--text);
    border-top: 1px solid #dddddd;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.7fr 0.7fr;
    gap: 36px;
    padding: 52px 0 34px;
    align-items: start;
}

.footer-logo-wrap {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.footer-brand img {
    height: 36px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.footer-brand p {
    font-size: 15px;
    max-width: 420px;
    color: #505050;
}

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 14px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
    font-size: 15px;
    color: #505050;
}

.footer-column a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #dddddd;
    background: #ebebeb;
}

.footer-bottom-inner {
    min-height: 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #505050;
}

/* TRACKING PAGE */
.tracking-hero {
    background: linear-gradient(180deg, #fafafa 0%, #f3f3f3 100%);
    padding: 64px 0 46px;
    border-bottom: 1px solid var(--border);
}

.tracking-code-label {
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}

.tracking-hero h1 {
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.06;
    margin-bottom: 10px;
    word-break: break-word;
}

.tracking-subtitle {
    color: var(--muted);
    font-size: 18px;
    margin-bottom: 24px;
}

.tracking-search-inline {
    max-width: 720px;
}

.tracking-overview-section,
.timeline-section {
    padding: 76px 0;
}

.tracking-overview-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 28px;
}

.status-card,
.route-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
}

.route-card {
    overflow: hidden;
}

.status-badge {
    display: inline-block;
    background: rgba(17, 104, 216, 0.08);
    color: var(--blue);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 14px;
}

.status-card h2 {
    font-size: 34px;
    line-height: 1.08;
    margin-bottom: 14px;
}

.status-card p {
    color: var(--muted);
}

.delivery-note {
    margin-top: 20px;
    background: var(--soft);
    border-left: 4px solid var(--yellow);
    padding: 16px 18px;
    border-radius: 12px;
    font-weight: 700;
}

.destination-meta {
    margin-top: 18px;
    color: #666;
}

/* ROUTE / JOURNEY */
.route-head {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
    align-items: end;
    margin-bottom: 22px;
}

.route-head strong,
.route-destination strong {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
}

.route-head span,
.route-destination span {
    color: var(--muted);
    font-size: 14px;
}

.route-progress-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--blue);
    white-space: nowrap;
}

.route-head-journey {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

.journey-wrap {
    position: relative;
    height: 150px;
    margin-top: 10px;
    padding: 0 8px;
}

.journey-line,
.journey-line-active {
    position: absolute;
    top: 36px;
    left: 28px;
    height: 8px;
    border-radius: 999px;
}

.journey-line {
    width: calc(100% - 56px);
    background: #dbe7f8;
}

.journey-line-active {
    background: linear-gradient(90deg, #43b1ff, var(--blue));
    transition: width 0.5s ease;
    max-width: calc(100% - 56px);
}

.journey-stop {
    position: absolute;
    top: 22px;
    width: 28px;
    margin-left: -14px;
}

.journey-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #c9d5e8;
    transition: all 0.3s ease;
}

.journey-stop.done .journey-dot {
    border-color: var(--blue);
    background: #fff;
}

.journey-stop.active .journey-dot {
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 8px rgba(17, 104, 216, 0.12);
}

.journey-label {
    display: block;
    position: absolute;
    top: 42px;
    left: 50%;
    transform: translateX(-50%);
    width: 88px;
    max-width: 88px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}

.journey-stop:first-child .journey-label {
    left: 0;
    transform: none;
    text-align: left;
}

.journey-stop:last-child .journey-label {
    left: auto;
    right: 0;
    transform: none;
    text-align: right;
}

.journey-stop.done .journey-label,
.journey-stop.active .journey-label {
    color: var(--text);
    font-weight: 700;
}

.route-truck {
    position: absolute;
    top: 2px;
    font-size: 30px;
    z-index: 3;
    transition: left 0.5s ease;
    transform: translateX(-50%);
    white-space: nowrap;
}

/* TIMELINE */
.section-heading {
    margin-bottom: 30px;
}

.section-heading h2 {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 34px;
}

.timeline-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    box-shadow: var(--shadow);
}

.timeline-marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
    background: #d8d8d8;
}

.timeline-item.done .timeline-marker {
    background: var(--yellow);
}

.timeline-item.active .timeline-marker {
    background: var(--blue);
    box-shadow: 0 0 0 8px rgba(17, 104, 216, 0.12);
}

.timeline-content {
    width: 100%;
    min-width: 0;
}

.timeline-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: start;
    margin-bottom: 8px;
}

.timeline-top h3 {
    font-size: 22px;
    line-height: 1.08;
}

.timeline-state {
    font-size: 13px;
    font-weight: 800;
    color: var(--blue);
    white-space: nowrap;
}

.timeline-item p {
    color: var(--muted);
    margin-bottom: 10px;
}

.timeline-date {
    font-size: 14px;
    font-weight: 700;
    color: #444;
}

/* TABLE */
.tracking-table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.tracking-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
}

.tracking-table th,
.tracking-table td {
    text-align: left;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}

.tracking-table thead th {
    background: #fafafa;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.4px;
}

.tracking-table tbody tr:last-child td {
    border-bottom: 0;
}

/* ADDRESS VERIFY */
.address-verify-card {
    margin-top: 28px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 26px;
    max-width: 760px;
    margin-left: auto;
}

.address-verify-top h3 {
    font-size: 28px;
    line-height: 1.1;
    margin-bottom: 10px;
}

.address-verify-top p {
    color: var(--muted);
    margin-bottom: 18px;
    max-width: 560px;
}

.address-result-card {
    margin-top: 18px;
    background: var(--soft-2);
    border: 1px solid #ececec;
    border-left: 4px solid var(--yellow);
    border-radius: 14px;
    padding: 18px 20px;
    line-height: 1.7;
    font-size: 16px;
}

.address-result-card strong {
    display: inline-block;
    margin-bottom: 6px;
}

.postcode-error {
    margin-top: 14px;
    color: #c62828;
    font-weight: 600;
}

/* ADMIN CREATE */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.admin-full {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 15px;
    outline: none;
    background: #fff;
}

.form-group input:focus {
    border-color: var(--blue);
}

.admin-submit-btn {
    border: 0;
    background: var(--yellow);
    color: var(--text);
    font-weight: 800;
    font-size: 15px;
    padding: 14px 24px;
    border-radius: 14px;
    cursor: pointer;
}

.admin-submit-btn:hover {
    background: var(--yellow-dark);
}

/* RESPONSIVE */
@media (max-width: 980px) {
    .hero-content,
    .cards-grid,
    .two-col,
    .footer-inner,
    .tracking-overview-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        gap: 28px;
    }

    .tracking-search-card,
    .address-verify-card {
        margin-left: 0;
        max-width: 100%;
    }

    .route-head {
        grid-template-columns: 1fr;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 0;
    }

    .journey-wrap {
        height: 165px;
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }

    .admin-full {
        grid-column: auto;
    }
}

@media (max-width: 700px) {
    .header-inner {
        height: auto;
        padding: 18px 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        gap: 16px;
        flex-wrap: wrap;
    }

    .brand img {
        height: 34px;
        max-width: 180px;
    }

    .footer-brand img {
        height: 34px;
        max-width: 180px;
    }

    .hero {
        min-height: auto;
    }

    .hero .container {
        width: min(1180px, 92%);
    }

    .hero-content {
        padding: 54px 0;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p,
    .tracking-subtitle {
        font-size: 16px;
    }

    .tracking-form {
        flex-direction: column;
        border: 0;
        background: transparent;
        gap: 12px;
        overflow: visible;
    }

    .tracking-form input {
        border: 1px solid var(--border);
        border-radius: 14px;
        background: #fff;
    }

    .tracking-form button {
        border-radius: 14px;
        min-height: 54px;
    }

    .timeline-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .journey-wrap {
        height: 185px;
        overflow-x: hidden;
    }

    .journey-label {
        width: 64px;
        max-width: 64px;
        font-size: 11px;
    }

    .route-truck {
        font-size: 24px;
    }

    .status-card h2,
    .address-verify-top h3 {
        font-size: 28px;
    }
}