/*
Theme Name: Discount General RV
Theme URI: https://discountgeneralrv.com
Author: Discount General RV
Author URI: https://discountgeneralrv.com
Description: Patriotic WordPress theme for Discount General RV - Veteran Owned & Operated RV dealership in Dothan, Alabama. Features easy inventory management, before/after gallery, and service showcase.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: discount-general-rv
Tags: business, veteran-owned, patriotic, rv-dealership, custom
*/

:root {
    --patriot-red: #B22234;
    --patriot-blue: #3C3B6E;
    --patriot-white: #FFFFFF;
    --gold: #FFD700;
    --dark-navy: #1a1f3a;
    --light-gray: #F5F5F5;
    --forest-green: #2D5016;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background: var(--patriot-white);
    color: var(--dark-navy);
    overflow-x: hidden;
}

/* WordPress Admin Bar Adjustment */
body.admin-bar header {
    top: 40px;
}

@media screen and (max-width: 782px) {
    body.admin-bar header {
        top: 54px;
    }
}

/* Patriotic Header Stripe */
.patriotic-stripe {
    height: 8px;
    background: linear-gradient(to right, 
        var(--patriot-red) 0%, var(--patriot-red) 33%,
        var(--patriot-white) 33%, var(--patriot-white) 66%,
        var(--patriot-blue) 66%, var(--patriot-blue) 100%);
}

/* Header */
header {
    position: fixed;
    top: 8px;
    width: 100%;
    background: var(--dark-navy);
    padding: 1rem 2rem;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border-bottom: 3px solid var(--gold);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    flex-direction: column;
}

.logo {
    font-family: 'Alfa Slab One', cursive;
    font-size: 2rem;
    color: var(--patriot-white);
    letter-spacing: 1px;
    text-shadow: 2px 2px 0 var(--patriot-red);
    text-decoration: none;
}

.veteran-badge {
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 2px;
    margin-top: 0.25rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--patriot-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--gold);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--patriot-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    margin-top: 88px;
    min-height: 85vh;
    background: linear-gradient(rgba(60,59,110,0.8), rgba(26,31,58,0.85)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><linearGradient id="sky" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:%234A90E2;stop-opacity:1" /><stop offset="100%" style="stop-color:%2387CEEB;stop-opacity:1" /></linearGradient></defs><rect fill="url(%23sky)" width="1200" height="800"/><path d="M0,600 Q200,550 400,580 T800,560 T1200,580 L1200,800 L0,800 Z" fill="%2334623F"/><path d="M0,650 Q150,620 300,640 T600,630 T900,650 T1200,640 L1200,800 L0,800 Z" fill="%232D5016"/><circle cx="200" cy="500" r="80" fill="%23228B22" opacity="0.6"/><circle cx="900" cy="480" r="100" fill="%23228B22" opacity="0.5"/><ellipse cx="600" cy="400" rx="120" ry="80" fill="%23A0522D" opacity="0.8"/><rect x="550" y="420" width="100" height="60" fill="%23D2691E" opacity="0.9"/><rect x="560" y="430" width="35" height="40" fill="%234682B4" opacity="0.7"/><rect x="605" y="430" width="35" height="40" fill="%234682B4" opacity="0.7"/><path d="M 600,340 L 500,400 L 700,400 Z" fill="%23B22234" opacity="0.9"/></svg>');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.hero::after {
    content: '🇺🇸';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4rem;
    opacity: 0.3;
    animation: wave-flag 3s ease-in-out infinite;
}

@keyframes wave-flag {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

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

.hero h1 {
    font-family: 'Alfa Slab One', cursive;
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    color: var(--patriot-white);
    text-shadow: 3px 3px 0 var(--patriot-red),
                 6px 6px 20px rgba(0,0,0,0.7);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    color: var(--patriot-white);
    margin-bottom: 2rem;
    font-weight: 500;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: left 0.3s;
}

.btn:hover::before {
    left: 100%;
}

.btn-patriot {
    background: linear-gradient(135deg, var(--patriot-red) 0%, var(--patriot-blue) 100%);
    color: var(--patriot-white);
    box-shadow: 0 6px 20px rgba(178,34,52,0.4);
    border: 2px solid var(--gold);
}

.btn-patriot:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(178,34,52,0.6);
}

.btn-gold {
    background: var(--gold);
    color: var(--dark-navy);
    box-shadow: 0 6px 20px rgba(255,215,0,0.4);
}

.btn-gold:hover {
    background: var(--patriot-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,215,0,0.6);
}

/* Section Styles */
.section {
    padding: 5rem 2rem;
}

.section-title {
    font-family: 'Alfa Slab One', cursive;
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 3rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Before & After Section */
.before-after {
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--patriot-blue) 100%);
    position: relative;
}

.before-after::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, 
        var(--patriot-red) 0%, var(--patriot-red) 33%,
        var(--patriot-white) 33%, var(--patriot-white) 66%,
        var(--patriot-blue) 66%, var(--patriot-blue) 100%);
}

.before-after .section-title {
    color: var(--patriot-white);
    text-shadow: 3px 3px 0 var(--patriot-red);
}

.before-after .section-subtitle {
    color: var(--gold);
}

/* Inventory Section */
.inventory {
    background: linear-gradient(rgba(245,245,245,0.95), rgba(245,245,245,0.95)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%23E8F5E9" width="1200" height="800"/><circle cx="100" cy="100" r="40" fill="%23228B22" opacity="0.2"/></svg>');
    background-size: cover;
}

.inventory .section-title {
    color: var(--patriot-blue);
    text-shadow: 3px 3px 0 var(--patriot-red);
}

/* Services Section */
.services {
    background: var(--patriot-white);
}

.services .section-title {
    color: var(--patriot-blue);
    text-shadow: 3px 3px 0 var(--patriot-red);
}

/* Footer */
footer {
    background: linear-gradient(rgba(26,31,58,0.98), rgba(26,31,58,0.98));
    color: var(--patriot-white);
    padding: 3rem 2rem;
    border-top: 5px solid var(--gold);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    font-family: 'Oswald', sans-serif;
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-section p,
.footer-section a {
    color: var(--patriot-white);
    text-decoration: none;
    line-height: 1.8;
    display: block;
}

.footer-section a:hover {
    color: var(--gold);
}

.veteran-section {
    text-align: center;
    padding: 2rem;
    background: rgba(60,59,110,0.3);
    border-radius: 10px;
    border: 2px solid var(--gold);
}

.veteran-section h4 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 88px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 88px);
        background: var(--dark-navy);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s;
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .logo {
        font-size: 1.5rem;
    }

    .hero {
        min-height: 70vh;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}
