/*
Theme Name: Colby's Towing
Theme URI: https://colbystowing.com/
Author: Colby's Towing
Description: Custom responsive WordPress theme for Colby's Towing.
Version: 1.0.1
Text Domain: colbys-towing
*/

/* CSS Variables */
:root {
    --accent-green: #A8D800;
    --accent-green-dark: #8BB000;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    background: #000;
    color: #fff;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
}

/* Logo */
.logo-img {
    height: 84px;
    width: auto;
    max-width: 320px;
    object-fit: contain;
    animation: logoGlow 3.5s ease-in-out infinite;
    transition: transform 0.3s;
}

.logo-img:hover {
    transform: scale(1.03);
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 3px rgba(168, 216, 0, 0.25));
    }
    50% {
        filter: drop-shadow(0 0 12px rgba(168, 216, 0, 0.55));
    }
}

/* Icons */
.service-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-green);
    margin-bottom: 16px;
}

.badge-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-green);
    display: inline-block;
    vertical-align: -4px;
    margin-right: 10px;
}

.contact-icon {
    width: 16px;
    height: 16px;
    color: var(--accent-green);
    display: inline-block;
    vertical-align: -3px;
    margin-right: 8px;
}

/* Navigation */
nav {
    background: rgba(0, 0, 0, 0.98) !important;
    border-bottom: 1px solid rgba(168, 216, 0, 0.2);
}

.nav-link {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

/* Buttons */
.btn-cta {
    background: var(--accent-green);
    color: #000;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-cta:hover {
    background: var(--accent-green-dark);
}

.btn-primary {
    background: var(--accent-green);
    color: #000;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--accent-green-dark);
    transform: translateY(-2px);
}

.btn-primary-lg {
    background: #000;
    color: var(--accent-green);
    padding: 10px 40px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
    border: 2px solid var(--accent-green);
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary-lg:hover {
    background: var(--accent-green);
    color: #000;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.5rem;
    color: #ccc;
}

/* Service Cards */
.service-card {
    background: #111827;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid rgba(168, 216, 0, 0.1);
    transition: all 0.3s;
}

.service-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-8px);
    background: #1a1f3a;
}

.service-card h3 {
    color: #fff;
    margin-bottom: 12px;
}

.service-card p {
    color: #999;
    line-height: 1.6;
}

/* Service Areas */
.service-area {
    background: #111827;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(168, 216, 0, 0.2);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.service-area:hover {
    border-color: var(--accent-green);
    background: #1a1f3a;
}

/* Review Cards */
.review-card {
    background: #111827;
    padding: 28px;
    border-radius: 12px;
    border: 1px solid rgba(168, 216, 0, 0.1);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

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

/* Payment Badges */
.payment-badge {
    background: #111827;
    padding: 16px 24px;
    border-radius: 8px;
    border: 1px solid rgba(168, 216, 0, 0.2);
    font-weight: 600;
    transition: all 0.3s;
}

.payment-badge:hover {
    border-color: var(--accent-green);
}

/* Form Inputs */
.form-input {
    width: 100%;
    padding: 14px 16px;
    background: #111827;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(168, 216, 0, 0.1);
}

.form-input::placeholder {
    color: #666;
}

/* Carousel */
.carousel-container {
    position: relative;
    margin-top: 2rem;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.carousel-slide {
    display: none;
    width: 100%;
    animation: fadeIn 0.5s ease-in-out;
}

.carousel-slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.carousel-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(168, 216, 0, 0.85);
    color: #1a1a1a;
    border: none;
    font-size: 28px;
    cursor: pointer;
    padding: 12px 18px;
    border-radius: 4px;
    transition: all 0.3s;
    z-index: 20;
    font-weight: bold;
}

.carousel-btn:hover {
    background: var(--accent-green);
    padding: 12px 22px;
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .logo-img {
        height: 56px;
        max-width: 220px;
    }

    .carousel-btn {
        font-size: 20px;
        padding: 10px 14px;
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }

    .carousel-slide img {
        aspect-ratio: 4 / 3;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }
}

/* Text Colors */
.text-accent-green {
    color: var(--accent-green);
}

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

/* Map */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(168, 216, 0, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: border-color 0.3s;
}

.map-container:hover {
    border-color: var(--accent-green);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    filter: grayscale(20%) contrast(1.05);
}

/* Sections */
section {
    scroll-margin-top: 80px;
}


/* WordPress compatibility */
html { scroll-behavior: smooth; }
body.admin-bar nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar nav { top: 46px; } }

/* Mobile navigation */
.mobile-menu-btn {
    width: 44px; height: 44px; border: 1px solid rgba(168,216,0,.35);
    border-radius: 8px; background: transparent; display:flex; flex-direction:column;
    justify-content:center; align-items:center; gap:5px; cursor:pointer;
}
.mobile-menu-btn span { width:22px; height:2px; background:var(--accent-green); display:block; }
.mobile-menu {
    position:absolute; top:100%; left:0; right:0; background:rgba(0,0,0,.98);
    border-bottom:1px solid rgba(168,216,0,.2); padding:16px 24px 22px;
    flex-direction:column; gap:14px;
}
.mobile-menu:not(.hidden) { display:flex; }
.mobile-nav-link { padding:8px 0; }
.mobile-cta { text-align:center; margin-top:4px; }

/* Prevent theme/plugin styles from collapsing form and media */
.site-content img, .hero img, .carousel-slide img { max-width:100%; }
.form-input { width:100%; }
