/* ========================================
   Buddy Boys Auto Painting and Body Shop
   Custom Styles
   ======================================== */

:root {
    --bg-primary: #1C2631;
    --bg-secondary: #243040;
    --bg-card: #2A3848;
    --accent: #C08050;
    --accent-light: #D4996A;
    --accent-dark: #A06838;
    --text-primary: #F0EDE8;
    --text-secondary: #A8B4C0;
    --text-muted: #7A8B9C;
    --glass-bg: rgba(28, 38, 49, 0.85);
    --glass-border: rgba(192, 128, 80, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* ---- Glassmorphism Nav ---- */
.nav-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.nav-glass.scrolled {
    background: rgba(28, 38, 49, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

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

/* ---- Buttons ---- */
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 20px rgba(192, 128, 80, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(192, 128, 80, 0.4);
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
}

.btn-outline {
    border: 2px solid var(--accent);
    color: var(--accent-light);
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    background: transparent;
}

.btn-outline:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

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

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(192, 128, 80, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(192, 128, 80, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    z-index: 0;
}

.hero-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(192, 128, 80, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(192, 128, 80, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(192, 128, 80, 0.12);
    border: 1px solid rgba(192, 128, 80, 0.25);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-light);
    letter-spacing: 0.03em;
}

/* ---- Star Rating ---- */
.star-rating {
    display: inline-flex;
    gap: 2px;
}

.star-rating svg {
    width: 20px;
    height: 20px;
    fill: var(--accent);
}

.star-rating svg.half-star {
    fill: url(#half-star-gradient);
}

/* ---- Service Cards ---- */
.service-card {
    background: var(--bg-card);
    border: 1px solid rgba(192, 128, 80, 0.1);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(192, 128, 80, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(192, 128, 80, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background: rgba(192, 128, 80, 0.2);
    transform: scale(1.05);
}

.service-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---- Review Cards ---- */
.review-card {
    background: var(--bg-card);
    border: 1px solid rgba(192, 128, 80, 0.08);
    border-radius: 12px;
    padding: 28px;
    transition: all 0.3s ease;
    position: relative;
}

.review-card::before {
    content: '\201C';
    font-family: 'Archivo', sans-serif;
    font-size: 4rem;
    color: rgba(192, 128, 80, 0.15);
    position: absolute;
    top: 8px;
    left: 20px;
    line-height: 1;
}

.review-card:hover {
    border-color: rgba(192, 128, 80, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ---- Section Styling ---- */
.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 2px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid rgba(192, 128, 80, 0.1);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(192, 128, 80, 0.25);
    transform: translateY(-3px);
}

/* ---- Contact Section ---- */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(192, 128, 80, 0.08);
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(192, 128, 80, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---- Map Container ---- */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(192, 128, 80, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 350px;
    border: none;
    filter: brightness(0.85) contrast(1.1) saturate(0.8);
}

/* ---- Mobile CTA Bar ---- */
.mobile-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    padding: 12px 20px;
    z-index: 50;
    display: none;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .mobile-cta-bar {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

    body {
        padding-bottom: 64px;
    }
}

.mobile-cta-bar a {
    color: #fff;
    text-decoration: none;
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---- Scroll Reveal ---- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    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; }

/* ---- Hamburger Menu ---- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    z-index: 60;
}

.hamburger span {
    width: 26px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 100px 40px 40px;
        gap: 24px;
        transition: right 0.3s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
        z-index: 55;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 50;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .nav-overlay.open {
        opacity: 1;
        pointer-events: auto;
    }
}

/* ---- Accessible Badge Styles ---- */
.badge-accessible {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(192, 128, 80, 0.08);
    border: 1px solid rgba(192, 128, 80, 0.15);
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---- Footer ---- */
footer {
    border-top: 1px solid rgba(192, 128, 80, 0.1);
}

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

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-dark);
}

/* ---- Pulse animation for CTA ---- */
@keyframes subtle-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(192, 128, 80, 0.25); }
    50% { box-shadow: 0 4px 30px rgba(192, 128, 80, 0.45); }
}

.cta-pulse {
    animation: subtle-pulse 3s ease-in-out infinite;
}

/* ---- Counter animation ---- */
.counter-value {
    font-family: 'Archivo', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-light);
    line-height: 1;
}
