/*
Theme Name: Jutt and Sons Logistics
Theme URI: https://juttandsonscrossdock.com
Author: Antigravity AI
Description: A custom, ultra-premium logistics and crossdocking theme with blog support.
Version: 1.0.0
*/
/* =========================================
   Jutt & Sons Crossdock - Core Stylesheet
   ========================================= */

/* --- Variables & Themes --- */
:root {
    /* Color Palette */
    --clr-bg: #0d0f12;          /* Deep Charcoal */
    --clr-bg-alt: #16191f;      /* Lighter Charcoal */
    --clr-primary: #FF6B00;     /* Electric Orange */
    --clr-primary-glow: rgba(255, 107, 0, 0.4);
    --clr-secondary: #FFB800;   /* Warning Yellow */
    --clr-text: #b0b5c0;        /* Light Grey Body */
    --clr-text-bright: #ffffff; /* White Headings */
    
    /* UI Elements */
    --glass-bg: rgba(22, 25, 31, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-blur: blur(12px);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Setup */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--clr-bg);
    color: var(--clr-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--clr-text-bright);
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; }

a {
    color: var(--clr-text-bright);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--clr-primary);
}

span {
    color: var(--clr-primary);
}

/* --- Layout Utilities --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header p {
    font-size: 1.1rem;
    margin-top: 15px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: #fff;
    border: 1px solid var(--clr-primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--clr-primary);
    box-shadow: 0 0 20px var(--clr-primary-glow);
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: var(--clr-primary);
    color: var(--clr-primary);
}

.btn-block {
    width: 100%;
}

.glow {
    box-shadow: 0 0 25px var(--clr-primary-glow);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 var(--clr-primary-glow); }
    70% { box-shadow: 0 0 0 15px rgba(255,107,0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255,107,0, 0); }
}

/* --- Navbar (Glassmorphism) --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background var(--transition-fast), padding var(--transition-fast);
    padding: 20px 0;
}

header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}

.logo-text small {
    color: var(--clr-primary);
    font-size: 0.7rem;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--clr-primary);
    transition: width var(--transition-fast);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    background: url('assets/images/hero_bg.png') center/cover no-repeat;
    /* Use pseudo element for overlay to allow image underneath */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 15, 18, 0.95) 0%, rgba(13, 15, 18, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-top: 80px; /* added space to clear the fixed header */
}

.hero p {
    font-size: 1.2rem;
    margin: 20px 0 40px 0;
    color: #d1d5db;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: #fff;
}

.stat i {
    color: var(--clr-primary);
    font-size: 1.2rem;
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--clr-bg-alt);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 40px 30px;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--clr-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px var(--clr-primary-glow), inset 0 0 20px rgba(255,107,0,0.1);
    background: rgba(22, 25, 31, 0.9);
    border-color: var(--clr-primary);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--clr-primary);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}

/* --- Urgent CTA Banner --- */
.urgent-cta {
    background: linear-gradient(90deg, var(--clr-bg-alt) 0%, rgba(255, 107, 0, 0.1) 100%);
    border-top: 1px solid var(--clr-primary);
    border-bottom: 1px solid var(--clr-primary);
    padding: 60px 0;
    text-align: center;
}

.urgent-cta h2 {
    margin-bottom: 10px;
}

.urgent-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* --- Why Us Section (Split Layout) --- */
.dark-alt {
    background-color: var(--clr-bg-alt);
    position: relative;
    overflow: hidden;
}

.dark-alt::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background-image: 
        linear-gradient(rgba(255,107,0,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,107,0,0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: panGrid 40s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes panGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.dark-alt > .container {
    position: relative;
    z-index: 1;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-list {
    list-style: none;
    margin-top: 30px;
}

.feature-list li {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feature-list i {
    color: var(--clr-primary);
    margin-top: 5px;
}

.feature-list strong {
    color: #fff;
    font-family: var(--font-heading);
}

.glass-mockup {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    position: relative;
}

/* Glowing orb behind glass mockup */
.glass-mockup::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--clr-primary);
    filter: blur(100px);
    opacity: 0.3;
    z-index: -1;
}

.stat-circle {
    text-align: center;
    position: relative;
}

.stat-circle::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 60px; height: 60px;
    border-radius: 50%;
    border: 2px solid var(--clr-primary);
    opacity: 0;
    animation: sonarPulse 2s infinite;
    z-index: -1;
}

@keyframes sonarPulse {
    0% { width: 60px; height: 60px; opacity: 0.8; border-width: 2px; }
    100% { width: 140px; height: 140px; opacity: 0; border-width: 0px; }
}

.stat-circle .number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: #fff;
    line-height: 1;
}

.stat-circle .label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: var(--clr-primary);
}

/* --- Contact & Location --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 2rem;
    color: var(--clr-primary);
}

.info-item h4 {
    margin-bottom: 5px;
}

.hours-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 25px;
    border-radius: 8px;
}

.hours-list {
    list-style: none;
    margin-top: 15px;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.highlight {
    color: var(--clr-primary);
    font-weight: bold;
}

.small-text {
    font-size: 0.8rem;
    color: #888;
}

.mt-4 { margin-top: 2rem; }
.mt-2 { margin-top: 1rem; }

/* Contact Form */
.contact-form {
    background: var(--clr-bg-alt);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

.contact-form h3 {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

input, select, textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--clr-primary);
}

/* --- Footer --- */
footer {
    background: #000;
    padding: 80px 0 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-links h4, .footer-legal h4 {
    margin-bottom: 20px;
    color: #fff;
}

.footer-links a, .footer-legal a {
    display: block;
    margin-bottom: 10px;
    color: #888;
}

.footer-links a:hover, .footer-legal a:hover {
    color: var(--clr-primary);
    padding-left: 5px;
}

/* --- Process Steps --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.process-step {
    text-align: center;
    position: relative;
    padding: 30px 20px;
    background: var(--clr-bg-alt);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
}
.process-step .step-number {
    width: 50px;
    height: 50px;
    background: var(--clr-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px auto;
    box-shadow: 0 0 15px var(--clr-primary-glow);
}

/* --- Testimonials --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.testimonial-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 8px;
    position: relative;
}
.testimonial-card i.fa-quote-left {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.05);
}
.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.testimonial-author strong {
    color: #fff;
    display: block;
}
.testimonial-author span {
    font-size: 0.85rem;
    color: var(--clr-primary);
}

/* --- FAQ Accordion Layout --- */
.faq-grid {
    display: grid;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: var(--clr-bg-alt);
    border: 1px solid var(--glass-border);
    padding: 25px;
    border-left: 4px solid var(--clr-primary);
    border-radius: 0 8px 8px 0;
}
.faq-item h4 {
    margin-bottom: 10px;
    color: #fff;
}

/* --- Animations (Scroll Reveal) --- */
.fade-in-up {
    /* opacity: 0; */
    /* transform: translateY(30px); */
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal {
    /* opacity: 0; */
    /* transform: translateY(50px); */
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- Hero Text Animation --- */
.hero-text-animate {
    animation: clipReveal 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
    clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
    opacity: 0;
}

@keyframes clipReveal {
    0% { clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%); transform: translateX(-30px); opacity: 0; }
    100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); transform: translateX(0); opacity: 1; }
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .split-layout, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .hero {
        align-items: flex-start;
        padding-top: 140px;
        height: auto;
        min-height: 100vh;
        padding-bottom: 60px;
    }
    
    .hero-content {
        margin-top: 0;
    }

    .hero h1 { 
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .nav-links {
        display: none; /* Hide for mobile by default */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--clr-bg-alt);
        flex-direction: column;
        padding: 30px;
        text-align: center;
        border-bottom: 1px solid var(--clr-primary);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* --- WordPress Specific & Blog Styles --- */
.blog-header { padding: 150px 0 40px; text-align: center; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; margin-top: 40px; }
.post-card { background: var(--clr-bg-alt); border: 1px solid var(--glass-border); border-radius: 8px; overflow: hidden; transition: transform 0.3s; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-5px); border-color: var(--clr-primary); box-shadow: 0 10px 20px rgba(0,0,0,0.4); }
.post-card img { width: 100%; height: 220px; object-fit: cover; }
.post-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.post-meta { font-size: 0.8rem; color: var(--clr-primary); margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.post-title { margin-bottom: 15px; }
.post-title a { color: #fff; text-decoration: none; font-size: 1.35rem; font-family: var(--font-heading); transition: color 0.3s; }
.post-title a:hover { color: var(--clr-primary); }
.post-excerpt { margin-top: 10px; color: #aaa; font-size: 0.95rem; margin-bottom: 20px; flex-grow: 1; }
.read-more { display: inline-block; color: #fff; text-decoration: none; font-weight: bold; border-bottom: 2px solid var(--clr-primary); padding-bottom: 2px; align-self: flex-start; }

/* Single Post */
.single-post-container { max-width: 800px; margin: 0 auto; padding: 150px 20px 80px; }
.single-post-title { font-size: 3rem; margin-bottom: 15px; color: #fff; font-family: var(--font-heading); }
.single-post-meta { color: #888; font-weight: 600; margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid var(--glass-border); }
.single-post-content { line-height: 1.8; color: #ccc; font-size: 1.1rem; }
.single-post-content h2, .single-post-content h3 { color: #fff; margin-top: 40px; margin-bottom: 20px; font-family: var(--font-heading); }
.single-post-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 30px 0; border: 1px solid var(--glass-border); }
.single-post-content p { margin-bottom: 20px; }
.single-post-content ul { margin: 0 0 20px 20px; color: #ccc; }
.single-post-content li { margin-bottom: 10px; }
.back-to-blog { display: inline-block; margin-bottom: 30px; color: var(--clr-primary); text-decoration: none; font-weight: bold; }
.back-to-blog i { margin-right: 8px; }

/* Global WP classes */
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
