/* ===================================
   Allen Trucking — Custom Styles
   =================================== */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* ===================================
   Navigation
   =================================== */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-fixed.scrolled {
    background: rgba(254, 252, 246, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(130, 33, 33, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #b93030;
    transition: width 0.3s ease;
    border-radius: 1px;
}

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

/* Mobile Menu */
.mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-link {
    display: block;
}

/* ===================================
   Buttons
   =================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #822121;
    color: #fff;
    padding: 14px 28px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid #822121;
    cursor: pointer;
}

.btn-primary:hover {
    background: #9c2626;
    border-color: #9c2626;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(130, 33, 33, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #822121;
    padding: 14px 28px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid #d44848;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #fdf2f2;
    transform: translateY(-2px);
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #822121;
    padding: 14px 28px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid #fff;
}

.btn-cta:hover {
    background: #fefcf6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #fff;
    padding: 14px 28px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

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

/* ===================================
   Eyebrow Labels
   =================================== */
.label-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b93030;
    background: #fce7e7;
    padding: 6px 16px;
    border-radius: 100px;
}

.label-eyebrow-inverse {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f5b8b8;
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 16px;
    border-radius: 100px;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(252, 231, 231, 0.5) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(253, 245, 236, 0.8) 0%, transparent 70%);
    pointer-events: none;
}

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

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 40px;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    animation: fadeInUp 0.8s ease both;
}

.hero h1 {
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero p {
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero .flex-wrap:first-of-type {
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-stat {
    animation: fadeInUp 0.8s ease 0.4s both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-images {
    position: relative;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-img-main {
    animation: floatSlow 6s ease-in-out infinite;
}

.hero-img-float {
    animation: floatSlow 6s ease-in-out 1s infinite;
}

.hero-card {
    animation: floatSlow 6s ease-in-out 2s infinite;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid #d44848;
    border-radius: 13px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: #d44848;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 24px; }
}

/* ===================================
   Sections
   =================================== */
.section {
    padding: 100px 0;
}

/* ===================================
   Service Cards
   =================================== */
.service-card {
    background: #fff;
    border-radius: 24px;
    padding: 8px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(130, 33, 33, 0.06);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(130, 33, 33, 0.12);
}

.service-card-img {
    border-radius: 18px;
    overflow: hidden;
}

.service-card-icon {
    transition: all 0.3s ease;
}

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

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}

.about-images {
    position: relative;
}

.about-img-primary {
    animation: fadeInUp 0.8s ease both;
}

.about-img-secondary {
    animation: fadeInUp 0.8s ease 0.2s both;
}

.about-experience-badge {
    animation: fadeInUp 0.8s ease 0.4s both;
}

.about-content {
    animation: fadeInUp 0.8s ease 0.2s both;
}

.about-feature {
    animation: fadeInUp 0.6s ease both;
}

.about-feature:nth-child(1) { animation-delay: 0.3s; }
.about-feature:nth-child(2) { animation-delay: 0.4s; }
.about-feature:nth-child(3) { animation-delay: 0.5s; }
.about-feature:nth-child(4) { animation-delay: 0.6s; }

/* ===================================
   Why Us Cards
   =================================== */
.why-card {
    padding: 32px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

.why-card-number {
    line-height: 1;
}

/* ===================================
   Testimonials
   =================================== */
.testimonial-card {
    background: #fff;
    border-radius: 24px;
    padding: 36px;
    transition: all 0.4s ease;
    border: 1px solid rgba(130, 33, 33, 0.06);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(130, 33, 33, 0.1);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* ===================================
   CTA Section
   =================================== */
.cta-box {
    position: relative;
}

.cta-decor {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.cta-decor-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    top: -150px;
    right: -100px;
}

.cta-decor-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    bottom: -100px;
    left: -50px;
}

/* ===================================
   Contact Section
   =================================== */
.contact-info-card {
    padding: 28px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(130, 33, 33, 0.06);
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    box-shadow: 0 10px 40px rgba(130, 33, 33, 0.08);
}

.contact-form-card {
    border: 1px solid rgba(130, 33, 33, 0.06);
}

.input-field {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #fce7e7;
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #6e1f1f;
    background: #fefcf6;
    transition: all 0.3s ease;
    outline: none;
}

.input-field::placeholder {
    color: #d44848;
    opacity: 0.5;
}

.input-field:focus {
    border-color: #b93030;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(185, 48, 48, 0.08);
}

.input-field:hover:not(:focus) {
    border-color: #f5b8b8;
}

/* ===================================
   Scroll Animations
   =================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.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; }

/* ===================================
   Mobile Responsive
   =================================== */
@media (max-width: 767px) {
    .section {
        padding: 70px 0;
    }
    
    .font-serif.text-4xl {
        font-size: 2.5rem;
    }
    
    .font-serif.text-5xl {
        font-size: 2.75rem;
    }
    
    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 60px;
    }
    
    .scroll-indicator {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .section {
        padding: 80px 0;
    }
}
