/* ============================================
   Jobe Trucking — Brand Styles
   Palette: Plum (#4A2C5E) + Amber (#D4A843)
   Fonts: Playfair Display + Inter
   ============================================ */

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

:root {
    --plum-50: #F5F0F7;
    --plum-100: #E8DDEA;
    --plum-200: #D4BFD6;
    --plum-300: #BD9EC2;
    --plum-400: #A67DAE;
    --plum-500: #8B5C98;
    --plum-600: #4A2C5E;
    --plum-700: #3D254F;
    --plum-800: #301D40;
    --plum-900: #231531;
    --plum-950: #170E22;
    
    --amber-50: #FDF8EE;
    --amber-100: #F9ECCE;
    --amber-200: #F4DB9E;
    --amber-300: #EFCB6E;
    --amber-400: #D4A843;
    --amber-500: #B8922E;
    --amber-600: #9C7A25;
    --amber-700: #80631D;
    --amber-800: #644F16;
    --amber-900: #48390F;
    
    --neutral-50: #FAFAFA;
    --neutral-100: #F5F5F5;
    --neutral-200: #E5E5E5;
    --neutral-300: #D4D4D4;
    --neutral-400: #A3A3A3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;
    --neutral-950: #0A0A0A;
    
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(74,44,94,0.08);
    --shadow-md: 0 4px 16px rgba(74,44,94,0.10);
    --shadow-lg: 0 8px 32px rgba(74,44,94,0.14);
    --shadow-xl: 0 16px 48px rgba(74,44,94,0.18);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--neutral-800);
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(74, 44, 94, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 168, 67, 0.15);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: rgba(35, 21, 49, 0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.logo-icon {
    color: var(--amber-400);
    flex-shrink: 0;
}

.logo--light {
    color: #fff;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--plum-100);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
    position: relative;
}

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

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--amber-400);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    width: 100%;
}

.nav-cta {
    background: var(--amber-400);
    color: var(--plum-950) !important;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover,
.nav-cta:focus-visible {
    background: var(--amber-300);
    color: var(--plum-950) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212,168,67,0.4);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    position: relative;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: transform 0.3s ease;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(90deg);
    top: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    opacity: 0;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(23, 14, 34, 0.92) 0%,
        rgba(74, 44, 94, 0.82) 50%,
        rgba(48, 29, 64, 0.78) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 72px;
    max-width: 720px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--amber-400);
    margin-bottom: 20px;
    padding: 6px 14px;
    border: 1px solid rgba(212, 168, 67, 0.4);
    border-radius: 50px;
    background: rgba(212, 168, 67, 0.08);
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.08;
    color: #fff;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-headline br {
    display: none;
}

.hero-sub {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--plum-200);
    margin-bottom: 40px;
    max-width: 560px;
}

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

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--plum-200);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.7;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--amber-400), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(0.7); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--amber-400);
    color: var(--plum-950);
    border-color: var(--amber-400);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--amber-300);
    border-color: var(--amber-300);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212,168,67,0.4);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-outline-plum {
    background: transparent;
    color: var(--plum-600);
    border-color: var(--plum-600);
}

.btn-outline-plum:hover,
.btn-outline-plum:focus-visible {
    background: var(--plum-600);
    color: #fff;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* ============================================
   STRIP
   ============================================ */
.strip {
    background: var(--plum-600);
    padding: 0;
}

.strip-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.strip-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 24px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--amber-400);
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--plum-200);
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.strip-divider {
    width: 1px;
    background: rgba(212, 168, 67, 0.2);
    align-self: stretch;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    margin-bottom: 56px;
}

.section-header--center {
    text-align: center;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--amber-600);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--plum-900);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--neutral-500);
    max-width: 600px;
}

.section-header--center .section-subtitle {
    margin: 0 auto;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    padding: 100px 0;
    background: var(--neutral-50);
}

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

.service-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    border: 1px solid var(--neutral-200);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--plum-600), var(--amber-400));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    color: var(--plum-600);
    margin-bottom: 20px;
}

.service-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--plum-900);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.service-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--neutral-600);
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: 100px 0;
    background: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image-wrap {
    position: relative;
}

.about-image {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: var(--plum-600);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.12;
}

.about-content .section-eyebrow {
    margin-bottom: 12px;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--neutral-600);
    margin-bottom: 16px;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--plum-800);
}

.value-icon {
    color: var(--amber-500);
    flex-shrink: 0;
}

/* ============================================
   WHY US
   ============================================ */
.why-us {
    padding: 100px 0;
    background: var(--plum-900);
}

.why-us .section-eyebrow {
    color: var(--amber-400);
}

.why-us .section-title {
    color: #fff;
}

.why-us .section-subtitle {
    color: var(--plum-300);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.why-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    transition: all 0.3s ease;
}

.why-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(212,168,67,0.3);
    transform: translateY(-2px);
}

.why-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--amber-400);
    opacity: 0.35;
    line-height: 1;
    margin-bottom: 16px;
}

.why-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.why-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--plum-200);
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(23, 14, 34, 0.93) 0%,
        rgba(74, 44, 94, 0.88) 100%
    );
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--plum-200);
    margin-bottom: 36px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    padding: 100px 0;
    background: var(--neutral-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--neutral-500);
    margin-bottom: 36px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    color: var(--plum-600);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--neutral-400);
    margin-bottom: 4px;
}

.contact-link {
    font-size: 1rem;
    color: var(--plum-700);
    text-decoration: none;
    font-weight: 500;
    line-height: 1.6;
    transition: color 0.2s ease;
}

.contact-link:hover,
.contact-link:focus-visible {
    color: var(--amber-600);
}

/* Form */
.contact-form-wrap {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
}

.form-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--plum-900);
    margin-bottom: 28px;
    letter-spacing: -0.01em;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--plum-500);
    box-shadow: 0 0 0 3px rgba(74,44,94,0.1);
    background: #fff;
}

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

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

.form-success {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 18px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-sm);
    color: #166534;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-success svg {
    color: #22c55e;
    flex-shrink: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--plum-950);
    color: var(--plum-200);
}

.footer-inner {
    padding: 64px 0 40px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
}

.footer-brand p {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--plum-400);
    line-height: 1.6;
    max-width: 280px;
}

.logo--light .logo-text {
    color: #fff;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--plum-300);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--amber-400);
}

.footer-address {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--plum-400);
}

.footer-email {
    color: var(--amber-400);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-email:hover,
.footer-email:focus-visible {
    color: var(--amber-300);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 24px 0;
}

.footer-bottom p {
    text-align: center;
    font-size: 0.82rem;
    color: var(--plum-500);
}

/* ============================================
   MOBILE MENU
   ============================================ */
@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(320px, 85vw);
        background: var(--plum-900);
        flex-direction: column;
        align-items: stretch;
        padding: 96px 32px 40px;
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -8px 0 32px rgba(0,0,0,0.3);
        overflow-y: auto;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links li {
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .nav-links li:last-child {
        border-bottom: none;
        margin-top: 16px;
    }

    .nav-links a {
        display: block;
        padding: 16px 0;
        font-size: 1.05rem;
        color: var(--plum-100);
    }

    .nav-links a::after {
        display: none;
    }

    .nav-cta {
        text-align: center;
        margin-top: 8px;
        padding: 14px 20px;
    }

    .mobile-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }

    .mobile-overlay.active {
        display: block;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-headline br {
        display: block;
    }

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

    .strip-divider {
        display: none;
    }

    .strip-stat {
        padding: 28px 20px;
    }

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

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

    .about-image {
        height: 360px;
    }

    .about-image-accent {
        width: 120px;
        height: 120px;
        bottom: -12px;
        right: -12px;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form-wrap {
        padding: 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

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

    .hero-scroll {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }

    .hero-content {
        padding-top: 64px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}
