/* ============================================
   Arkansas Asphalt Man — Custom Styles
   ============================================ */

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

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: #B8573D;
    color: #fff;
}

/* ============================================
   Navigation
   ============================================ */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-fixed.scrolled {
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-link {
    position: relative;
}

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

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

/* Mobile menu */
.nav-mobile {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(253, 252, 250, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    animation: slideDown 0.3s ease forwards;
}

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

.mobile-nav-link {
    display: block;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: #B8573D;
}

/* Hamburger */
.nav-toggle[aria-expanded="true"] .nav-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle[aria-expanded="true"] .nav-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ============================================
   Hero
   ============================================ */
.hero {
    background: linear-gradient(135deg, #fdfcfa 0%, #faf5ed 50%, #f5eade 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 140%;
    background: radial-gradient(ellipse, rgba(184, 87, 61, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent);
}

/* Hero entrance animations */
.hero-eyebrow {
    animation: heroSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-title {
    animation: heroSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-subtitle {
    animation: heroSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

.hero-img-stack {
    animation: heroFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.hero-accent-card {
    animation: heroCardFloat 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

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

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Scroll line animation */
.animate-scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    box-shadow: 0 4px 20px rgba(184, 87, 61, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(184, 87, 61, 0.35);
    transform: translateY(-2px);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* ============================================
   Process Steps
   ============================================ */
.process-step {
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 32px;
    right: -50%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4d4d4);
    z-index: -1;
}

@media (max-width: 767px) {
    .process-step::after {
        display: none;
    }
}

/* ============================================
   Reveal Animations (progressive enhancement)
   ============================================ */
.reveal {
    /* Default: always visible — JS adds .revealed for animation */
}

@media (prefers-reduced-motion: no-preference) {
    .js .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .js .reveal:not(.revealed) {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* ============================================
   Smooth Image Hover
   ============================================ */
img {
    transition: filter 0.3s ease;
}

/* ============================================
   Custom Scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #faf5ed;
}

::-webkit-scrollbar-thumb {
    background: #d4d4d4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a3a3a3;
}

/* ============================================
   Utility: Thin borders and lines
   ============================================ */
.divider-thin {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent);
}

/* ============================================
   Focus Styles
   ============================================ */
*:focus-visible {
    outline: 2px solid #B8573D;
    outline-offset: 2px;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .nav-fixed, .hero, #gallery {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
