/* ========================================
   Livelys RV and Campers — Custom Styles
   Palette: Deep Navy + Warm Gold
======================================== */

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

:root {
    --navy-900: #0a1628;
    --navy-800: #0f2140;
    --navy-700: #152d56;
    --navy-600: #1a3665;
    --navy-500: #1e4080;
    --navy-400: #2b5a9e;
    --gold-500: #D4A843;
    --gold-400: #e0b855;
    --gold-300: #f0cc6e;
    --gold-200: #f7dfa8;
    --gold-100: #fdf3d6;
    --cream: #FAF8F5;
    --warm-gray-50: #f9f8f6;
    --warm-gray-100: #f2f0ec;
    --warm-gray-200: #e8e5de;
    --warm-gray-300: #d4d0c8;
    --warm-gray-600: #6b6560;
    --warm-gray-700: #4a4540;
    --warm-gray-800: #2d2a27;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.06), 0 1px 2px rgba(10, 22, 40, 0.04);
    --shadow-md: 0 4px 16px rgba(10, 22, 40, 0.08), 0 2px 6px rgba(10, 22, 40, 0.04);
    --shadow-lg: 0 12px 40px rgba(10, 22, 40, 0.12), 0 4px 12px rgba(10, 22, 40, 0.06);
    --shadow-xl: 0 20px 60px rgba(10, 22, 40, 0.15), 0 8px 20px rgba(10, 22, 40, 0.08);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--cream);
    color: var(--warm-gray-800);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'DM Serif Display', Georgia, serif;
    line-height: 1.2;
    color: var(--navy-800);
}

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

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gold-500);
    color: var(--navy-900);
    box-shadow: 0 4px 14px rgba(212, 168, 67, 0.35);
}

.btn-primary:hover {
    background: var(--gold-400);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 168, 67, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(10, 22, 40, 0.06);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.3125rem;
    color: var(--navy-800);
    font-weight: 400;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--navy-800);
    border-radius: var(--radius-sm);
    color: var(--gold-500);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--warm-gray-700);
    transition: var(--transition);
    position: relative;
}

.nav-links a:not(.btn):hover {
    color: var(--navy-800);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-500);
    border-radius: 1px;
    transition: var(--transition);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    color: var(--navy-800);
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--warm-gray-100);
}

/* --- Hero --- */
.hero {
    padding: 8rem 0 5rem;
    background: linear-gradient(135deg, var(--cream) 0%, var(--warm-gray-50) 100%);
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

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

.hero-content {
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gold-100);
    color: var(--navy-700);
    border-radius: var(--radius-xl);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(212, 168, 67, 0.3);
}

.hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    color: var(--navy-800);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.125rem;
    color: var(--warm-gray-600);
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.75rem;
    color: var(--navy-800);
    line-height: 1;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--warm-gray-600);
    margin-top: 0.25rem;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--warm-gray-200);
}

.hero-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.image-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.image-accent {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    background: var(--gold-500);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.3;
}

/* --- Section Shared --- */
.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.5rem;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--warm-gray-600);
    line-height: 1.7;
}

/* --- Inventory --- */
.inventory {
    background: var(--white);
}

.inventory-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.category-btn {
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--warm-gray-600);
    background: var(--warm-gray-100);
    border: 1px solid transparent;
    transition: var(--transition);
}

.category-btn:hover {
    color: var(--navy-800);
    background: var(--warm-gray-200);
}

.category-btn.active {
    color: var(--navy-900);
    background: var(--navy-800);
    border-color: var(--navy-800);
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.inventory-card {
    background: var(--cream);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(10, 22, 40, 0.04);
}

.inventory-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.inventory-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.inventory-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.inventory-card:hover .inventory-card-image img {
    transform: scale(1.05);
}

.inventory-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.875rem;
    background: var(--navy-800);
    color: var(--gold-300);
    border-radius: var(--radius-xl);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.inventory-card-body {
    padding: 1.25rem;
}

.inventory-card-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.1875rem;
    color: var(--navy-800);
    margin-bottom: 0.5rem;
}

.inventory-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.spec-tag {
    font-size: 0.75rem;
    color: var(--warm-gray-600);
    background: var(--white);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--warm-gray-200);
}

.inventory-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.inventory-card-price {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.25rem;
    color: var(--navy-800);
}

.inventory-card-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gold-500);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition);
}

.inventory-card-link:hover {
    color: var(--navy-800);
    gap: 0.5rem;
}

.inventory-cta {
    text-align: center;
    padding: 2.5rem;
    background: var(--navy-800);
    border-radius: var(--radius-lg);
}

.inventory-cta p {
    color: var(--warm-gray-300);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.inventory-cta .btn-primary {
    background: var(--gold-500);
}

/* --- Services --- */
.services {
    background: var(--cream);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid rgba(10, 22, 40, 0.04);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 168, 67, 0.2);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-800);
    border-radius: var(--radius-md);
    color: var(--gold-400);
    margin-bottom: 1.25rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--navy-800);
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--warm-gray-600);
    line-height: 1.7;
}

/* --- About --- */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.image-stack {
    position: relative;
}

.image-stack img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-badge {
    position: absolute;
    bottom: -1.5rem;
    right: -1rem;
    background: var(--gold-500);
    color: var(--navy-900);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.about-badge-number {
    display: block;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.5rem;
    line-height: 1;
}

.about-badge-text {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.about-content .section-label {
    text-align: left;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 1.25rem;
}

.about-content > p {
    color: var(--warm-gray-600);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.0625rem;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 1.5rem 0 2rem;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--warm-gray-700);
}

.about-content .btn {
    margin-top: 0.5rem;
}

/* --- Location --- */
.location {
    background: var(--cream);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: stretch;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid rgba(10, 22, 40, 0.04);
    transition: var(--transition);
}

.contact-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: rgba(212, 168, 67, 0.2);
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-800);
    border-radius: var(--radius-sm);
    color: var(--gold-400);
    flex-shrink: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--warm-gray-600);
}

.contact-value {
    font-size: 1rem;
    color: var(--navy-800);
    font-weight: 500;
    line-height: 1.5;
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 320px;
}

/* --- Footer --- */
.footer {
    background: var(--navy-900);
    color: var(--warm-gray-300);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--warm-gray-600);
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 1.25rem;
}

.footer-links a {
    display: block;
    padding: 0.375rem 0;
    font-size: 0.9375rem;
    color: var(--warm-gray-300);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 0.5rem;
}

.footer-contact a {
    display: block;
    padding: 0.375rem 0;
    font-size: 0.9375rem;
    color: var(--warm-gray-300);
    transition: var(--transition);
}

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

.footer-contact span {
    display: block;
    padding: 0.375rem 0;
    font-size: 0.9375rem;
    color: var(--warm-gray-600);
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--warm-gray-600);
}

/* --- Mobile Menu --- */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.5);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-grid,
    .about-grid {
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--cream);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        gap: 0.5rem;
        box-shadow: var(--shadow-xl);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

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

    .nav-links a {
        font-size: 1.0625rem;
        width: 100%;
        padding: 0.75rem 0;
    }

    .nav-links a:not(.btn)::after {
        display: none;
    }

    .nav-links .btn {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }

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

    .hero {
        padding: 7rem 0 4rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-image {
        order: -1;
    }

    .image-wrapper img {
        height: 320px;
    }

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

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .section {
        padding: 4rem 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-content .section-label,
    .about-content .section-title {
        text-align: center;
    }

    .about-content > p {
        text-align: center;
    }

    .about-content .btn {
        width: 100%;
        justify-content: center;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .location-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

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

    .inventory-grid {
        grid-template-columns: 1fr;
    }
}
