/* ==========================================================================
   BLACKHAWK PROTECTIVE COATINGS - MASTER STYLESHEET
   Dark Industrial High-Performance Theme
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Oswald:wght@500;600;700&display=swap');

/* --- CSS VARIABLES & TOKENS --- */
:root {
    --bg-dark: #0d0f12;
    --bg-card: #161920;
    --bg-card-hover: #1e232e;
    --bg-glass: rgba(13, 15, 18, 0.88);
    
    --accent: #ff9f1c;
    --accent-hover: #e0880b;
    --accent-glow: rgba(255, 159, 28, 0.25);
    
    --text-primary: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #0d0f12;
    
    --border-subtle: rgba(255, 159, 28, 0.15);
    --border-dark: #232733;
    --border-radius: 12px;
    
    --font-heading: 'Oswald', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    
    --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET & BASICS --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, .brand-logo {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.15;
    color: #ffffff;
}

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

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

/* --- LAYOUT UTILITIES --- */
.container {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

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

.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 50px auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- BUTTONS & CTAs --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
}

.btn-primary {
    background: var(--accent);
    color: var(--text-dark);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 159, 28, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255, 159, 28, 0.05);
    transform: translateY(-2px);
}

.btn-phone {
    background: rgba(255, 159, 28, 0.12);
    color: var(--accent);
    border: 1px solid var(--border-subtle);
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-phone:hover {
    background: var(--accent);
    color: var(--text-dark);
    border-color: var(--accent);
}

/* --- HEADER & NAVIGATION --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-dark);
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.35rem;
    font-weight: 700;
}

.brand-logo svg {
    fill: var(--accent);
    width: 32px;
    height: 32px;
}

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

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.8rem;
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    padding-top: 170px;
    padding-bottom: 100px;
    background: radial-gradient(circle at 50% 20%, rgba(255, 159, 28, 0.08) 0%, transparent 60%),
                linear-gradient(180deg, var(--bg-dark) 0%, #12151c 100%);
    overflow: hidden;
}

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

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 159, 28, 0.1);
    border: 1px solid var(--border-subtle);
    padding: 6px 14px;
    border-radius: 20px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 540px;
}

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

.hero-image-wrap {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.hero-image-wrap img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* --- STATS BAR --- */
.stats-bar {
    background: var(--bg-card);
    border-y: 1px solid var(--border-dark);
    padding: 40px 0;
}

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

.stat-item {
    text-align: center;
    padding: 20px;
    border-right: 1px solid var(--border-dark);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- INTERACTIVE BEFORE/AFTER SLIDER --- */
.ba-section {
    background: var(--bg-dark);
}

.ba-slider-container {
    position: relative;
    width: 100%;
    max-width: 960px;
    height: 480px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    user-select: none;
}

.ba-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.ba-img.before {
    background-image: url('../assets/bedliner_before.jpg');
}

.ba-img.after {
    background-image: url('../assets/bedliner_after.jpg');
    width: var(--slider-pos, 50%);
    border-right: 3px solid var(--accent);
    box-shadow: 5px 0 15px rgba(0,0,0,0.5);
}

.ba-badge {
    position: absolute;
    top: 20px;
    padding: 8px 16px;
    background: rgba(13, 15, 18, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: #ffffff;
    z-index: 10;
}

.ba-badge.before-badge { left: 20px; color: #ff6b6b; }
.ba-badge.after-badge { right: 20px; color: var(--accent); }

.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--slider-pos, 50%);
    width: 4px;
    background: var(--accent);
    transform: translateX(-50%);
    z-index: 20;
    pointer-events: none;
}

.ba-handle-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(255, 159, 28, 0.6);
    font-size: 1.1rem;
    font-weight: 700;
}

.ba-input-range {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 30;
}

/* --- SERVICES CARDS GRID --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: var(--border-radius);
    padding: 32px;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-subtle);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.card-icon {
    width: 54px;
    height: 54px;
    background: rgba(255, 159, 28, 0.1);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.card-link {
    font-family: var(--font-heading);
    color: var(--accent);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    font-weight: 600;
}

.card-link:hover {
    gap: 10px;
}

/* --- DETAILED SERVICES PAGE STYLES --- */
.page-hero {
    padding-top: 150px;
    padding-bottom: 60px;
    background: radial-gradient(circle at 50% 0%, rgba(255, 159, 28, 0.1) 0%, transparent 70%), var(--bg-dark);
    border-bottom: 1px solid var(--border-dark);
    text-align: center;
}

.service-detail-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: var(--border-radius);
    padding: 40px;
    margin-bottom: 40px;
    align-items: center;
}

.service-detail-card:nth-child(even) {
    direction: rtl;
}

.service-detail-card:nth-child(even) .service-detail-content {
    direction: ltr;
}

.service-detail-content h3 {
    font-size: 2rem;
    margin-bottom: 16px;
}

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

.specs-list {
    list-style: none;
    margin-bottom: 24px;
}

.specs-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.specs-list svg {
    fill: var(--accent);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.service-detail-image img {
    border-radius: 8px;
    width: 100%;
    height: 320px;
    object-fit: cover;
    border: 1px solid var(--border-dark);
}

/* --- COLOR & TEXTURE SWATCH GRID --- */
.swatch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.swatch-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: var(--border-radius);
    padding: 16px;
    text-align: center;
    transition: var(--transition-fast);
}

.swatch-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.swatch-color {
    height: 100px;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.color-black { background: #121212; }
.color-gunmetal { background: #2c343e; }
.color-tan { background: #8c7653; }
.color-gray { background: #525a65; }
.color-olive { background: #3d4a37; }
.color-custom { background: linear-gradient(135deg, #121212 0%, #ff9f1c 50%, #2c343e 100%); }

.swatch-card h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.swatch-card span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- CTA BANNER --- */
.cta-banner {
    background: linear-gradient(135deg, #1a1e28 0%, #0d0f12 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius);
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.cta-banner p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- TESTIMONIALS --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: var(--border-radius);
    padding: 30px;
}

.stars {
    color: var(--accent);
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.client-info h4 {
    font-size: 1rem;
    color: #ffffff;
}

.client-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- QUOTE PAGE LAYOUT --- */
.quote-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.quote-form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: var(--border-radius);
    padding: 40px;
}

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

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

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

label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    background: #0d0f12;
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(255, 159, 28, 0.2);
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 8px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0d0f12;
    border: 1px solid var(--border-dark);
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.custom-checkbox:hover {
    border-color: var(--border-subtle);
}

.custom-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: var(--border-radius);
    padding: 32px;
    margin-bottom: 24px;
}

.sidebar-card h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-dark);
    padding-bottom: 12px;
}

.info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.info-icon {
    color: var(--accent);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.info-text h5 {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.info-text p {
    color: var(--text-primary);
    font-weight: 500;
}

.form-success-message {
    display: none;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-weight: 500;
}

/* --- FOOTER --- */
footer {
    background: #07080a;
    border-top: 1px solid var(--border-dark);
    padding: 60px 0 30px 0;
    margin-top: auto;
}

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

.footer-brand p {
    color: var(--text-muted);
    margin-top: 16px;
    max-width: 320px;
    font-size: 0.9rem;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-dark);
    padding-top: 25px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--border-dark);
    }
    .stat-item:nth-child(3), .stat-item:nth-child(4) {
        border-bottom: none;
    }
    .quote-layout {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .service-detail-card, .service-detail-card:nth-child(even) {
        grid-template-columns: 1fr;
        direction: ltr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        transition: 0.3s ease;
    }
    .nav-menu.active {
        left: 0;
    }
    .mobile-toggle {
        display: block;
    }
    .nav-cta .btn-phone {
        display: none;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .form-row, .form-row-3 {
        grid-template-columns: 1fr;
    }
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    .ba-slider-container {
        height: 320px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
