/* ===== Custom Styles for Tennant Collision Repair ===== */

/* --- Base & Scroll --- */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #f0c040;
}

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

::-webkit-scrollbar-track {
    background: #1a0a2e;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d4a017, #b8860b);
    border-radius: 4px;
}

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

/* --- Section Labels --- */
.section-label {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #d4a017;
    font-weight: 600;
    position: relative;
    padding-left: 2rem;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1px;
    background: linear-gradient(90deg, #d4a017, transparent);
}

.section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
}

/* --- CTA Buttons --- */
.cta-primary {
    display: inline-flex;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #b8860b, #d4a017, #f0c040);
    color: #1a0a2e;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(212, 160, 23, 0.25);
}

.cta-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f0c040, #d4a017, #b8860b);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cta-primary:hover::before {
    opacity: 1;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 160, 23, 0.4);
}

.cta-primary span {
    position: relative;
    z-index: 1;
}

.cta-secondary {
    display: inline-flex;
    padding: 1rem 2rem;
    background: transparent;
    color: #f0c040;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid rgba(212, 160, 23, 0.5);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(212, 160, 23, 0.1);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cta-secondary:hover::before {
    opacity: 1;
}

.cta-secondary:hover {
    border-color: #f0c040;
    transform: translateY(-2px);
}

.cta-secondary span {
    position: relative;
    z-index: 1;
}

/* --- Service Cards --- */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover .border-plum-600/50 {
    border-color: rgba(212, 160, 23, 0.3);
}

/* --- Gallery Items --- */
.gallery-item {
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    border-radius: inherit;
    transition: border-color 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    border-color: rgba(212, 160, 23, 0.4);
}

/* --- Navigation --- */
.nav-link {
    position: relative;
}

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

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

/* --- Mobile Menu --- */
.mobile-link {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

/* --- Hero Animations --- */
.hero-badge {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-title {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero-subtitle {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-ctas {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.8s;
}

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

/* --- Navbar Scrolled State --- */
nav.scrolled {
    background: rgba(26, 10, 46, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(212, 160, 23, 0.1);
}

nav.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

/* --- Form Styles --- */
input:focus,
textarea:focus {
    border-color: rgba(212, 160, 23, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.1) !important;
}

input::placeholder,
textarea::placeholder {
    color: rgba(92, 58, 142, 0.8);
}

/* --- Decorative Lines --- */
.gold-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4a017, transparent);
}

/* --- Responsive Tweaks --- */
@media (max-width: 768px) {
    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .cta-primary,
    .cta-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 12px;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
