/* ===================================
   DMC Pontiacs - Custom Styles
   =================================== */

/* CSS Variables */
:root {
    --emerald-900: #022c22;
    --emerald-800: #064e3b;
    --emerald-700: #065f46;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --cream-50: #fafaf9;
    --cream-100: #f5f5f4;
    --cream-200: #e7e5e4;
    --cream-300: #d6d3d1;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-400: #a8a29e;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 8rem;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

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

body {
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.6;
    color: var(--stone-800);
    background-color: var(--cream-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    color: var(--stone-900);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1rem;
    font-family: var(--font-sans);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

p {
    color: var(--stone-600);
}

/* Eyebrow */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--emerald-600);
    margin-bottom: var(--space-sm);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.btn-primary {
    background-color: var(--emerald-700);
    color: white;
    border: 1px solid var(--emerald-700);
}

.btn-primary:hover {
    background-color: var(--emerald-800);
    border-color: var(--emerald-800);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-outline {
    background-color: transparent;
    color: var(--emerald-700);
    border: 1px solid var(--emerald-700);
}

.btn-outline:hover {
    background-color: var(--emerald-700);
    color: white;
}

.btn-outline-light {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--emerald-900);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1rem;
}

/* Sections */
.section {
    padding: var(--space-2xl) 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--stone-500);
    margin-top: var(--space-sm);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(250, 250, 249, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--cream-200);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--stone-900);
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--emerald-700);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-links a {
    font-size: 0.875rem;
    color: var(--stone-600);
    transition: color var(--transition-fast);
}

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

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 1.5px;
    background-color: var(--stone-800);
    transition: all var(--transition-base);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--cream-50);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

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

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.mobile-link {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--stone-800);
}

.mobile-link:hover {
    color: var(--emerald-700);
}

.mobile-cta {
    margin-top: var(--space-md);
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #022c22 0%, #065f46 35%, #059669 65%, #10b981 100%);
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(16, 185, 129, 0.3) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 80%, rgba(6, 78, 59, 0.4) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: var(--space-lg) var(--space-md);
}

.hero-eyebrow {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    color: white;
    margin-bottom: var(--space-md);
    line-height: 1.1;
}

.hero-title em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-indicator span {
    display: block;
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.8); }
}

/* Stats Bar */
.stats-bar {
    background-color: white;
    border-bottom: 1px solid var(--cream-200);
    padding: var(--space-lg) 0;
}

.stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
}

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

.stat-label {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--stone-800);
    margin-bottom: 0.25rem;
}

.stat-desc {
    font-size: 0.875rem;
    color: var(--stone-500);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background-color: var(--cream-300);
}

/* Inventory */
.inventory {
    background-color: var(--cream-50);
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.inventory-card {
    background-color: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--cream-200);
    transition: all var(--transition-base);
}

.inventory-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

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

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

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

.card-tag {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    background-color: var(--emerald-700);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-content {
    padding: var(--space-md);
}

.card-content h3 {
    margin-bottom: 0.5rem;
}

.card-content p {
    font-size: 0.9375rem;
    margin-bottom: var(--space-sm);
}

.card-link {
    font-size: 0.875rem;
    color: var(--emerald-700);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.card-link:hover {
    gap: 0.5rem;
}

.inventory-cta {
    text-align: center;
    padding: var(--space-lg);
    background-color: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--cream-200);
}

.inventory-cta p {
    margin-bottom: var(--space-sm);
    font-size: 1.125rem;
}

/* Services */
.services {
    background-color: white;
}

.services-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.services-text {
    padding-top: var(--space-md);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.service-card {
    padding: var(--space-md);
    border: 1px solid var(--cream-200);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.service-card:hover {
    border-color: var(--emerald-300);
    background-color: var(--cream-50);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--cream-300);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
    color: var(--emerald-700);
}

.service-card h3 {
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--stone-800);
}

.service-card p {
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* About */
.about {
    background-color: var(--cream-50);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--emerald-600), var(--emerald-800));
    border-radius: var(--radius-md);
    z-index: -1;
}

.about-content {
    padding: var(--space-md) 0;
}

.about-text {
    margin-bottom: var(--space-md);
    font-size: 1.0625rem;
    line-height: 1.7;
}

.about-values {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--cream-200);
}

.value-item {
    flex: 1;
}

.value-label {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--emerald-700);
    margin-bottom: 0.25rem;
}

.value-desc {
    font-size: 0.875rem;
    color: var(--stone-500);
}

/* Location */
.location {
    background-color: white;
}

.location-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-lg);
    align-items: stretch;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.info-card {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md);
    background-color: var(--cream-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--cream-200);
}

.info-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-700);
    flex-shrink: 0;
}

.info-card h4 {
    margin-bottom: 0.25rem;
}

.info-card p,
.info-card a {
    font-size: 0.9375rem;
    color: var(--stone-600);
    line-height: 1.6;
}

.info-card a:hover {
    color: var(--emerald-700);
}

.location-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--cream-200);
    min-height: 400px;
}

/* CTA */
.cta {
    background: linear-gradient(135deg, var(--emerald-900) 0%, var(--emerald-700) 100%);
    padding: var(--space-2xl) 0;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content .section-eyebrow {
    color: rgba(255, 255, 255, 0.6);
}

.cta-content h2 {
    color: white;
    margin-bottom: var(--space-md);
}

.cta-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    margin-bottom: var(--space-lg);
}

.cta-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background-color: var(--stone-900);
    color: white;
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-brand .logo {
    color: white;
    margin-bottom: var(--space-sm);
    display: inline-block;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    margin-bottom: var(--space-sm);
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    padding: 0.375rem 0;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    display: block;
}

.footer-contact a:hover {
    color: white;
}

.footer-bottom {
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
}

/* Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .services-layout,
    .about-layout {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .location-grid {
        grid-template-columns: 1fr;
    }
    
    .location-map {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    :root {
        --space-lg: 3rem;
        --space-xl: 4rem;
        --space-2xl: 5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .stats-grid {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .stat-divider {
        width: 40px;
        height: 1px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .about-values {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .inventory-grid {
        grid-template-columns: 1fr;
    }
}
