/* =========================================
   REGALROUTE LOGISTICS - PREMIUM STYLES
   ========================================= */

/* --- CSS Variables --- */
:root {
    /* Color Palette */
    --clr-bg-main: #0B0F19; /* Deep space navy */
    --clr-bg-darker: #06090F;
    --clr-surface: rgba(30, 41, 59, 0.6);
    --clr-surface-hover: rgba(30, 41, 59, 0.8);
    
    --clr-accent: #f59e0b; /* Vibrant gold/orange */
    --clr-accent-hover: #d97706;
    --clr-accent-glow: rgba(245, 158, 11, 0.4);
    
    --clr-text-main: #f8fafc;
    --clr-text-muted: #cbd5e1;
    
    --clr-border: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --container-max: 1200px;
    --section-padding: 100px 0;
    
    /* Transitions & Shadows */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-accent: 0 0 20px var(--clr-accent-glow);
}

/* --- Resets & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--clr-bg-main);
    color: var(--clr-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

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

/* --- Utility Classes --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: var(--section-padding);
}

.bg-darker {
    background-color: var(--clr-bg-darker);
}

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

.text-accent {
    color: var(--clr-accent);
}

.section-subtitle {
    color: var(--clr-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--clr-accent);
    color: #fff;
    box-shadow: 0 4px 15px var(--clr-accent-glow);
}

.btn-primary:hover {
    background: var(--clr-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

.btn-outline {
    background: transparent;
    border-color: var(--clr-text-main);
    color: var(--clr-text-main);
}

.btn-outline:hover {
    background: var(--clr-text-main);
    color: var(--clr-bg-main);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* --- Navigation Header --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-smooth);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--clr-border);
    padding: 12px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 40px;
    object-fit: contain;
}

.logo span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

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

.nav-links a:not(.btn) {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--clr-accent);
    transition: var(--transition-smooth);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

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

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(11,15,25,0.9) 0%, rgba(11,15,25,0.5) 100%);
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--clr-text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

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

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    color: var(--clr-text-muted);
    margin-bottom: 16px;
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--clr-accent);
    margin-bottom: 4px;
}

.stat-item span {
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    pointer-events: none;
}

.image-wrapper img {
    transition: transform 0.8s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.absolute-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--clr-border);
    padding: 24px;
    border-radius: 8px;
    box-shadow: var(--shadow-glass);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.absolute-card i {
    font-size: 2rem;
    color: var(--clr-accent);
    margin-bottom: 8px;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--clr-accent);
    box-shadow: var(--shadow-accent);
    background: var(--clr-surface-hover);
}

.service-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.service-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, var(--clr-surface) 0%, transparent 100%);
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-content {
    padding: 30px;
    position: relative;
}

.icon-box {
    position: absolute;
    top: -30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--clr-accent);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: var(--shadow-accent);
    transition: var(--transition-smooth);
}

.service-card:hover .icon-box {
    transform: rotateY(180deg);
}

.service-card:hover .icon-box i {
    transform: rotateY(180deg);
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.service-content p {
    color: var(--clr-text-muted);
    margin-bottom: 24px;
}

.link-arrow {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--clr-accent);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.link-arrow i {
    transition: transform 0.3s ease;
}

.link-arrow:hover i {
    transform: translateX(5px);
}

/* --- CTA Section --- */
.cta {
    background: linear-gradient(135deg, rgba(245,158,11,0.1) 0%, rgba(11,15,25,1) 100%);
    border-top: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
}

.cta h2 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.cta p {
    font-size: 1.2rem;
    color: var(--clr-text-muted);
    margin-bottom: 32px;
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info p {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
}

.glass-form {
    background: var(--clr-surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--clr-border);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-glass);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--clr-text-main);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    background: rgba(11, 15, 25, 0.5);
    border: 1px solid var(--clr-border);
    border-radius: 4px;
    color: var(--clr-text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-accent);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.w-100 {
    width: 100%;
}

.form-success {
    margin-top: 20px;
    padding: 20px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    border-radius: 8px;
    color: #10b981;
    text-align: center;
}

.form-success i {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* --- Footer --- */
.footer {
    background: #04060A;
    padding: 80px 0 20px;
    border-top: 1px solid var(--clr-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--clr-text-muted);
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--clr-surface);
    color: var(--clr-text-main);
    border: 1px solid var(--clr-border);
}

.social-links a:hover {
    background: var(--clr-accent);
    border-color: var(--clr-accent);
    transform: translateY(-3px);
}

.footer h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--clr-text-main);
}

.footer-links ul, .footer-contact ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--clr-text-muted);
}

.footer-links a:hover {
    color: var(--clr-accent);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--clr-text-muted);
}

.footer-contact i {
    margin-top: 4px;
}

.contact-link {
    transition: var(--transition-smooth);
}

.contact-link:hover {
    color: var(--clr-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

/* --- Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.is-visible {
    opacity: 1;
    transform: translate(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .absolute-card {
        right: 20px;
        bottom: 20px;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile menu override logic could go to JS */
    }
    
    .hamburger {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
