/* ============================================
   TRD Freight — Main Stylesheet
   TRD North Trucking Ltd
   ============================================ */

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

:root {
    --color-navy: #0f2b46;
    --color-navy-light: #1a3f62;
    --color-orange: #e87722;
    --color-orange-dark: #c45d16;
    --color-orange-light: #f4994a;
    --color-teal: #0d7c66;
    --color-teal-dark: #0a5c4d;
    --color-gray-50: #f7f8fa;
    --color-gray-100: #eef0f3;
    --color-gray-200: #dde1e7;
    --color-gray-300: #bcc3ce;
    --color-gray-400: #8f99a8;
    --color-gray-500: #6b7685;
    --color-gray-600: #4a5463;
    --color-gray-700: #353d4a;
    --color-gray-800: #222831;
    --color-gray-900: #14181f;
    --color-white: #ffffff;
    --color-black: #0a0c10;
    --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);
    --shadow-xl: 0 20px 48px rgba(0,0,0,0.16), 0 8px 16px rgba(0,0,0,0.08);
    --max-width: 1200px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-base);
    color: var(--color-gray-800);
    background-color: var(--color-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a {
    color: var(--color-orange);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-orange-dark);
}

ul {
    list-style: none;
}

address {
    font-style: normal;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-navy);
    font-weight: 700;
    line-height: 1.25;
}

h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.4rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.2rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-orange);
    background-color: rgba(232, 119, 34, 0.08);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.section-tag-light {
    color: var(--color-orange-light);
    background-color: rgba(244, 153, 74, 0.15);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 56px;
}

.section-header h2 {
    margin-bottom: 12px;
}

.section-header p {
    color: var(--color-gray-500);
    font-size: 1.05rem;
}

/* --- Header --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-navy);
    border-bottom: 3px solid var(--color-orange);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-white);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
}

.logo:hover {
    color: var(--color-white);
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-accent {
    color: var(--color-orange);
}

.main-nav ul {
    display: flex;
    gap: 32px;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 6px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-orange);
    transition: width 0.25s ease;
}

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

.main-nav a:hover::after {
    width: 100%;
}

/* --- Hero --- */
.hero {
    background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-light) 40%, #173356 100%);
    color: var(--color-white);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(232, 119, 34, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13, 124, 102, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-orange-light);
    background-color: rgba(244, 153, 74, 0.12);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
    border: 1px solid rgba(244, 153, 74, 0.2);
}

.hero-content h1 {
    color: var(--color-white);
    margin-bottom: 20px;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-orange);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
}

/* Hero Visual Card */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    background-color: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(0px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
}

.hero-card-header {
    background-color: rgba(0, 0, 0, 0.25);
    padding: 12px 16px;
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red {
    background-color: #ff5f57;
}

.dot-amber {
    background-color: #ffbd2e;
}

.dot-green {
    background-color: #28ca41;
}

.hero-card-body {
    padding: 40px 32px;
    position: relative;
    min-height: 240px;
}

.tracking-line {
    position: absolute;
    top: 50%;
    left: 40px;
    right: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-orange), var(--color-teal));
    border-radius: 2px;
}

.tracking-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    margin-left: -9px;
    background-color: var(--color-orange);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(232, 119, 34, 0.6);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(232, 119, 34, 0.6); }
    70% { box-shadow: 0 0 0 20px rgba(232, 119, 34, 0); }
    100% { box-shadow: 0 0 0 0 rgba(232, 119, 34, 0); }
}

.route-points {
    position: absolute;
    left: 40px;
    right: 40px;
    top: 50%;
}

.route-point {
    position: absolute;
    transform: translateY(-50%);
}

.route-point::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background-color: var(--color-white);
    border-radius: 50%;
    border: 2px solid var(--color-orange);
    margin-bottom: 28px;
}

.route-point span {
    position: absolute;
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
}

.route-point.origin { left: 0; }
.route-point.waypoint { left: 45%; }
.route-point.destination { left: 90%; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    line-height: 1.2;
}

.btn-primary {
    background-color: var(--color-orange);
    color: var(--color-white);
    border-color: var(--color-orange);
}

.btn-primary:hover {
    background-color: var(--color-orange-dark);
    border-color: var(--color-orange-dark);
    color: var(--color-white);
}

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

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

.btn-full {
    width: 100%;
}

/* --- Services --- */
.services {
    padding: 100px 0;
    background-color: var(--color-gray-50);
}

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

.service-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-orange);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(232, 119, 34, 0.08);
    color: var(--color-orange);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--color-navy);
}

.service-card > p {
    color: var(--color-gray-500);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.service-card ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-card li {
    font-size: 0.85rem;
    color: var(--color-gray-600);
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.service-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background-color: var(--color-orange);
}

/* --- About --- */
.about {
    padding: 100px 0;
    background-color: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: start;
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-content > p {
    color: var(--color-gray-600);
    margin-bottom: 16px;
    font-size: 0.98rem;
}

.about-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--color-gray-200);
}

.detail strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-orange);
    margin-bottom: 10px;
}

.detail address,
.detail span {
    display: block;
    font-size: 0.9rem;
    color: var(--color-gray-600);
    line-height: 1.6;
}

.about-stats-card {
    background-color: var(--color-navy);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-stat {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.about-stat:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.about-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-orange);
    line-height: 1.1;
    margin-bottom: 6px;
}

.about-stat-desc {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.5;
}

/* --- Process --- */
.process {
    padding: 100px 0;
    background-color: var(--color-gray-50);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.process-step {
    text-align: center;
    padding: 28px 16px;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 36px;
    right: -10px;
    width: 20px;
    height: 2px;
    background-color: var(--color-gray-300);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--color-navy);
    color: var(--color-orange);
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 50%;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.process-step h3 {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.process-step p {
    font-size: 0.82rem;
    color: var(--color-gray-500);
    line-height: 1.6;
}

/* --- CTA / Contact --- */
.cta {
    padding: 100px 0;
    background: linear-gradient(160deg, var(--color-navy) 0%, #132e4f 100%);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(232, 119, 34, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: var(--color-white);
    margin-bottom: 16px;
}

.cta-content > p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    margin-bottom: 32px;
}

.cta-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-item strong {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-orange-light);
    margin-bottom: 6px;
}

.contact-item a,
.contact-item address {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    line-height: 1.6;
}

.contact-item a:hover {
    color: var(--color-white);
}

/* --- Form --- */
.cta-form {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow-xl);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-gray-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.9rem;
    font-family: var(--font-base);
    color: var(--color-gray-800);
    background-color: var(--color-gray-50);
    border: 1.5px solid var(--color-gray-200);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-orange);
    box-shadow: 0 0 0 3px rgba(232, 119, 34, 0.1);
    background-color: var(--color-white);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-gray-400);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--color-gray-900);
    color: rgba(255, 255, 255, 0.65);
    padding: 72px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    color: var(--color-white);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--color-white);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-orange);
}

.footer-contact ul {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
    line-height: 1.6;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.55);
}

.footer-contact a:hover {
    color: var(--color-orange);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .about-stats-card {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .about-stat {
        flex: 1 1 45%;
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        padding-right: 16px;
        padding-bottom: 0;
    }

    .about-stat:nth-child(even) {
        border-right: none;
    }

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

    .process-step:nth-child(3)::after {
        display: none;
    }

    .cta-inner {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .header-inner {
        height: 60px;
    }

    .main-nav {
        display: none;
    }

    .hero {
        padding: 48px 0 60px;
    }

    .hero-stats {
        gap: 24px;
    }

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

    .about-details {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .process-step:not(:last-child)::after {
        top: auto;
        bottom: -10px;
        left: 50%;
        right: auto;
        width: 2px;
        height: 20px;
        margin-left: -1px;
    }

    .cta-contact {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .services,
    .about,
    .process,
    .cta {
        padding: 60px 0;
    }
}
