/* ============================================
   Schultz Auto Body & Frame — Custom Styles
   Plum + Amber Editorial Palette
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --plum-900: #1a0a1e;
    --plum-800: #2d1033;
    --plum-700: #4a1c4d;
    --plum-600: #5c2460;
    --plum-500: #7a307e;
    --plum-400: #9b4d9e;
    --plum-100: #f3e5f5;
    --plum-50:  #faf0fc;

    --amber-600: #b8860b;
    --amber-500: #d4a017;
    --amber-400: #e6b830;
    --amber-300: #f0cc5c;
    --amber-100: #fef9e8;

    --neutral-900: #111111;
    --neutral-700: #333333;
    --neutral-500: #666666;
    --neutral-300: #999999;
    --neutral-100: #f0f0f0;
    --neutral-50:  #f8f8f8;
    --white: #ffffff;

    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --space-xs:  0.5rem;
    --space-sm:  0.75rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

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

    --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);
    color: var(--neutral-700);
    background-color: var(--white);
    line-height: 1.65;
    -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;
}

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

ul, ol {
    list-style: none;
}

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

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

/* --- Section Title --- */
.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--plum-800);
    line-height: 1.15;
    margin-bottom: var(--space-lg);
}

.section-header--center {
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--neutral-500);
    max-width: 600px;
    line-height: 1.7;
}

.section-header {
    margin-bottom: var(--space-3xl);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.8125rem 1.75rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--amber-500);
    color: var(--plum-900);
}

.btn-primary:hover {
    background-color: var(--amber-400);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 160, 23, 0.35);
}

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

.btn-outline:hover {
    background-color: var(--plum-700);
    color: var(--white);
    transform: translateY(-2px);
}

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

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--plum-800);
    transform: translateY(-2px);
}

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

.btn-full {
    width: 100%;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(74, 28, 77, 0.08);
    transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(74, 28, 77, 0.1);
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-mark {
    width: 36px;
    height: 36px;
    background-color: var(--plum-700);
    border-radius: var(--radius-sm);
    position: relative;
    flex-shrink: 0;
}

.logo-mark::before,
.logo-mark::after {
    content: '';
    position: absolute;
    background-color: var(--amber-500);
}

.logo-mark::before {
    width: 16px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.logo-mark::after {
    width: 2px;
    height: 16px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--plum-800);
    line-height: 1.2;
}

.logo-accent {
    color: var(--amber-600);
}

/* Navigation */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.main-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-700);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.main-nav a:hover {
    color: var(--plum-700);
    background-color: var(--plum-50);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
}

.nav-toggle:hover {
    background-color: var(--plum-50);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-toggle-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--plum-700);
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 72px;
    background: linear-gradient(135deg, var(--plum-50) 0%, var(--white) 50%, var(--amber-100) 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: 
        radial-gradient(circle at 20% 50%, var(--plum-700) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, var(--plum-700) 1px, transparent 1px),
        radial-gradient(circle at 60% 80%, var(--plum-700) 1px, transparent 1px);
    background-size: 60px 60px, 80px 80px, 40px 40px;
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    padding: var(--space-2xl) 0;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber-600);
    margin-bottom: var(--space-lg);
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5.5vw, 4.25rem);
    font-weight: 700;
    color: var(--plum-800);
    line-height: 1.08;
    margin-bottom: var(--space-xl);
    letter-spacing: -0.01em;
}

.hero-headline em {
    font-style: italic;
    color: var(--plum-500);
}

.hero-subheadline {
    font-size: 1.125rem;
    color: var(--neutral-500);
    line-height: 1.75;
    margin-bottom: var(--space-2xl);
    max-width: 480px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 64px rgba(74, 28, 77, 0.15);
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -16px;
    right: -16px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--amber-500);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.4;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 40px;
    border: 2px solid var(--plum-400);
    border-radius: 12px;
    opacity: 0.5;
}

.hero-scroll-indicator span {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--plum-500);
    border-radius: 2px;
    animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { top: 6px; opacity: 1; }
    50% { top: 18px; opacity: 0.3; }
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    padding: var(--space-4xl) 0;
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.service-card {
    padding: var(--space-2xl);
    background-color: var(--white);
    border: 1px solid var(--neutral-100);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.service-card:hover {
    border-color: var(--plum-100);
    box-shadow: 0 12px 40px rgba(74, 28, 77, 0.08);
    transform: translateY(-4px);
}

.service-icon {
    width: 52px;
    height: 52px;
    color: var(--amber-600);
    margin-bottom: var(--space-lg);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-title {
    font-family: var(--font-serif);
    font-size: 1.3125rem;
    font-weight: 700;
    color: var(--plum-800);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.service-description {
    font-size: 0.9375rem;
    color: var(--neutral-500);
    line-height: 1.7;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: var(--space-4xl) 0;
    background-color: var(--plum-50);
}

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

.about-image-group {
    position: relative;
}

.about-image-main img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 16px 48px rgba(74, 28, 77, 0.12);
}

.about-image-accent {
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 55%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(74, 28, 77, 0.15);
    border: 4px solid var(--white);
}

.about-image-accent img {
    width: 100%;
    height: auto;
}

.about-stats {
    position: absolute;
    top: -20px;
    left: -20px;
    background-color: var(--plum-700);
    color: var(--white);
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(74, 28, 77, 0.25);
}

.about-stats .stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--amber-400);
}

.about-stats .stat-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
}

.about-content .section-title {
    margin-bottom: var(--space-xl);
}

.about-body-text {
    font-size: 1rem;
    color: var(--neutral-500);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.about-values {
    margin-top: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.about-values li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    font-size: 0.9375rem;
    color: var(--neutral-700);
}

.value-icon {
    width: 22px;
    height: 22px;
    color: var(--amber-500);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
    padding: var(--space-4xl) 0;
    background-color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(74, 28, 77, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 5/4;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
    padding: var(--space-4xl) 0;
    background: linear-gradient(135deg, var(--plum-800) 0%, var(--plum-700) 60%, var(--plum-600) 100%);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: 
        radial-gradient(circle at 30% 40%, var(--amber-400) 1px, transparent 1px),
        radial-gradient(circle at 70% 60%, var(--amber-400) 1px, transparent 1px);
    background-size: 48px 48px, 72px 72px;
    pointer-events: none;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-headline {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: var(--space-lg);
}

.cta-subheadline {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.75;
    margin-bottom: var(--space-2xl);
}

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

/* ============================================
   CONTACT
   ============================================ */
.contact {
    padding: var(--space-4xl) 0;
    background-color: var(--neutral-50);
}

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

.contact-intro {
    font-size: 1rem;
    color: var(--neutral-500);
    line-height: 1.75;
    margin-bottom: var(--space-2xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
}

.contact-icon {
    width: 44px;
    height: 44px;
    background-color: var(--plum-700);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--amber-400);
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--neutral-300);
    margin-bottom: 2px;
}

.contact-value {
    display: block;
    font-size: 1rem;
    color: var(--neutral-700);
    line-height: 1.6;
}

.contact-link {
    color: var(--plum-600);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.contact-link:hover {
    color: var(--amber-600);
}

.contact-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Contact Form */
.contact-form-wrapper {
    background-color: var(--white);
    padding: var(--space-2xl);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 24px rgba(74, 28, 77, 0.06);
    border: 1px solid var(--neutral-100);
}

.form-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--plum-800);
    margin-bottom: var(--space-xl);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--neutral-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--neutral-700);
    background-color: var(--neutral-50);
    border: 1.5px solid var(--neutral-100);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--plum-500);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(122, 48, 126, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--neutral-300);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-note {
    font-size: 0.8125rem;
    color: var(--neutral-300);
    margin-top: var(--space-md);
    text-align: center;
}

.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-2xl);
    text-align: center;
}

.form-success svg {
    width: 48px;
    height: 48px;
    color: var(--amber-500);
}

.form-success p {
    font-size: 1rem;
    color: var(--neutral-700);
    line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background-color: var(--plum-900);
    color: rgba(255, 255, 255, 0.6);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--white);
    display: block;
    margin-bottom: var(--space-sm);
}

.footer-tagline {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.footer-links a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--amber-400);
    background-color: rgba(255, 255, 255, 0.05);
}

.footer-contact {
    font-size: 0.875rem;
    line-height: 1.8;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .hero-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-content {
        text-align: center;
        padding: var(--space-2xl) 0 var(--space-3xl);
    }

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

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

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

    .about-layout {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }

    .about-image-group {
        max-width: 560px;
    }

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

    .contact-layout {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
}

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

    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(74, 28, 77, 0.08);
        padding: var(--space-lg);
        transform: translateY(-120%);
        opacity: 0;
        transition: all var(--transition-base);
        pointer-events: none;
        z-index: 999;
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .main-nav ul {
        flex-direction: column;
        gap: var(--space-xs);
    }

    .main-nav a {
        display: block;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: var(--space-3xl);
    }

    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-image::before {
        top: -10px;
        right: -10px;
    }

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

    .service-card {
        padding: var(--space-xl);
    }

    .about-image-accent {
        right: 0;
        bottom: -16px;
    }

    .about-stats {
        left: 0;
        top: -16px;
    }

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

    .cta-headline {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .contact-form-wrapper {
        padding: var(--space-xl);
    }
}

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

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .cta-actions .btn {
        width: 100%;
    }
}
