/* ========================================
   Dave's Sports Card Shop — Styles
   Classic & Elegant Design System
======================================== */

/* --- CSS Custom Properties --- */
:root {
    --color-forest: #1A4D2E;
    --color-forest-light: #2A6B42;
    --color-forest-dark: #0F3520;
    --color-forest-muted: #3D8B5C;
    --color-off-white: #F5F5F0;
    --color-cream: #EDEDE8;
    --color-warm-gray: #6B6B66;
    --color-dark: #1A1A18;
    --color-text: #2C2C28;
    --color-text-light: #5C5C56;
    --color-border: #D4D4CE;
    --color-accent-gold: #C8A961;
    --color-accent-gold-light: #E8D5A0;

    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Lato', 'Segoe UI', system-ui, sans-serif;

    --shadow-sm: 0 1px 3px rgba(26, 77, 46, 0.06);
    --shadow-md: 0 4px 16px rgba(26, 77, 46, 0.08);
    --shadow-lg: 0 8px 32px rgba(26, 77, 46, 0.12);
    --shadow-xl: 0 16px 48px rgba(26, 77, 46, 0.15);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-off-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

/* --- Typography --- */
.section-label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-forest-muted);
    margin-bottom: 12px;
    position: relative;
    padding-left: 32px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 2px;
    background: var(--color-forest-muted);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 560px;
    line-height: 1.7;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--color-forest);
    color: var(--color-off-white);
    box-shadow: 0 4px 12px rgba(26, 77, 46, 0.25);
}

.btn-primary:hover {
    background: var(--color-forest-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 77, 46, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--color-forest);
    border: 2px solid var(--color-forest);
}

.btn-secondary:hover {
    background: var(--color-forest);
    color: var(--color-off-white);
}

.btn-map {
    margin-top: 24px;
    background: var(--color-forest);
    color: var(--color-off-white);
}

.btn-map:hover {
    background: var(--color-forest-light);
    transform: translateY(-2px);
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(245, 245, 240, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(26, 77, 46, 0.08);
    transition: all var(--transition-base);
}

.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: 10px;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-forest);
}

.logo-icon {
    color: var(--color-forest);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-light);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-forest);
    transition: width var(--transition-base);
}

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

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

.nav-cta {
    background: var(--color-forest) !important;
    color: var(--color-off-white) !important;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600 !important;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--color-forest-light) !important;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--color-forest);
    transition: all var(--transition-base);
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: var(--color-off-white);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-overlay ul {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-menu-overlay a {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-dark);
    transition: color var(--transition-fast);
}

.mobile-menu-overlay a:hover {
    color: var(--color-forest);
}

.close-menu-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-forest);
    padding: 8px;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    background: var(--color-off-white);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(26, 77, 46, 0.08);
    border: 1px solid rgba(26, 77, 46, 0.15);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-forest);
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-forest-muted);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-dark);
    margin-bottom: 24px;
}

.text-accent {
    color: var(--color-forest);
    font-style: italic;
}

.hero-subheadline {
    font-size: 1.15rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Cards */
.hero-cards {
    position: relative;
    height: 560px;
}

.hero-card {
    position: absolute;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-slow);
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-card-main {
    width: 280px;
    height: 400px;
    top: 20px;
    right: 40px;
    z-index: 2;
}

.hero-card-main:hover {
    transform: translateY(-8px);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.card-tag {
    display: inline-block;
    background: var(--color-accent-gold);
    color: var(--color-dark);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-card-float {
    padding: 0;
    z-index: 3;
    background: var(--color-off-white);
    border: 1px solid rgba(26, 77, 46, 0.1);
}

.float-1 {
    width: 160px;
    height: 90px;
    bottom: 200px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 4s ease-in-out infinite;
}

.float-2 {
    width: 140px;
    height: 80px;
    bottom: 80px;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 4s ease-in-out infinite 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.stat-content {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-forest);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
    font-weight: 600;
}

.hero-card-secondary {
    width: 240px;
    height: 150px;
    top: 0;
    left: 20px;
    z-index: 1;
}

.hero-card-secondary:hover {
    transform: translateY(-4px);
}

.card-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    color: var(--color-off-white);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Hero Decorations */
.hero-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(26, 77, 46, 0.08);
}

.deco-circle-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
}

.deco-circle-2 {
    width: 250px;
    height: 250px;
    bottom: 50px;
    left: -80px;
    border-color: rgba(26, 77, 46, 0.05);
}

.deco-dots {
    position: absolute;
    bottom: 100px;
    right: 320px;
    width: 60px;
    height: 60px;
    background-image: radial-gradient(circle, var(--color-forest-muted) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    opacity: 0.3;
}

/* --- About Section --- */
.about {
    padding: 100px 0;
    background: var(--color-cream);
    position: relative;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content {
    max-width: 520px;
}

.about-text {
    font-size: 1.05rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--color-text);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--color-forest);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-off-white);
    flex-shrink: 0;
}

.about-image {
    position: relative;
}

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

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

.image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--color-forest);
    border-radius: var(--radius-lg);
    z-index: 0;
    opacity: 0.15;
}

/* --- Services Section --- */
.services {
    padding: 100px 0;
    background: var(--color-off-white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-label {
    padding-left: 0;
}

.section-header .section-label::before {
    display: none;
}

.section-header .section-description {
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--color-off-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-forest);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.service-card:hover {
    border-color: var(--color-forest-muted);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(26, 77, 46, 0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-forest);
    margin-bottom: 20px;
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    background: var(--color-forest);
    color: var(--color-off-white);
}

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* --- Collection Section --- */
.collection {
    padding: 100px 0;
    background: var(--color-dark);
    position: relative;
    overflow: hidden;
}

.collection .section-label {
    color: var(--color-accent-gold);
}

.collection .section-label::before {
    background: var(--color-accent-gold);
}

.collection .section-title {
    color: var(--color-off-white);
}

.collection .section-description {
    color: rgba(245, 245, 240, 0.6);
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.collection-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.collection-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.collection-item:hover img {
    transform: scale(1.08);
}

.collection-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 77, 46, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.collection-item:hover .collection-overlay {
    opacity: 1;
}

.collection-overlay span {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-off-white);
    letter-spacing: 0.05em;
}

/* --- Visit Section --- */
.visit {
    padding: 100px 0;
    background: var(--color-off-white);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.visit-info {
    max-width: 500px;
}

.visit-description {
    font-size: 1.05rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 36px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(26, 77, 46, 0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-forest);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-forest);
    margin-bottom: 4px;
    font-weight: 700;
}

.contact-item p,
.contact-item a {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.contact-item a:hover {
    color: var(--color-forest);
}

.visit-map {
    height: 420px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* --- Footer --- */
.footer {
    background: var(--color-dark);
    color: var(--color-off-white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(245, 245, 240, 0.1);
}

.footer-brand p {
    color: rgba(245, 245, 240, 0.5);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 16px;
    max-width: 280px;
}

.footer-logo {
    color: var(--color-off-white);
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-off-white);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(245, 245, 240, 0.5);
    transition: color var(--transition-fast);
}

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

.footer-contact p {
    font-size: 0.9rem;
    color: rgba(245, 245, 240, 0.5);
    line-height: 1.7;
}

.footer-contact a {
    color: var(--color-accent-gold);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(245, 245, 240, 0.3);
}

/* --- Scroll Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subheadline {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-cards {
        height: 400px;
        margin: 0 auto;
        max-width: 400px;
    }

    .hero-card-main {
        right: 0;
    }

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

    .about-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .collection-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .visit-map {
        height: 300px;
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-cards {
        height: 320px;
    }

    .hero-card-main {
        width: 220px;
        height: 300px;
        right: 0;
    }

    .hero-card-float.float-1 {
        width: 130px;
        height: 75px;
        bottom: 140px;
    }

    .hero-card-float.float-2 {
        width: 120px;
        height: 70px;
        bottom: 40px;
    }

    .hero-card-secondary {
        width: 180px;
        height: 120px;
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .image-frame img {
        height: 350px;
    }
}

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

    .hero-cards {
        height: 280px;
    }

    .hero-card-main {
        width: 180px;
        height: 250px;
    }

    .hero-card-float.float-1 {
        width: 110px;
        height: 65px;
        bottom: 100px;
    }

    .hero-card-float.float-2 {
        width: 105px;
        height: 60px;
        bottom: 20px;
    }

    .hero-card-secondary {
        width: 150px;
        height: 100px;
    }

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

    .btn {
        padding: 12px 22px;
        font-size: 0.85rem;
    }
}
