/* ============================================
   FACTORY POWERSPORTS — BRAND SYSTEM
   Burgundy (#7B2D3B) + Blush (#F5E6E0)
   Playfair Display + Inter
   ============================================ */

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

:root {
    --burgundy: #7B2D3B;
    --burgundy-dark: #5A1F2B;
    --burgundy-light: #9A3D4E;
    --blush: #F5E6E0;
    --blush-light: #FBF5F3;
    --blush-mid: #E8D0C8;
    --cream: #FDF8F6;
    --charcoal: #1A1A1A;
    --text-dark: #2A2020;
    --text-mid: #5C4A4A;
    --text-light: #8A7070;
    --white: #FFFFFF;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
    --radius: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(123,45,59,0.08);
    --shadow-md: 0 4px 20px rgba(123,45,59,0.10);
    --shadow-lg: 0 8px 40px rgba(123,45,59,0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

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

/* ============================================
   TYPOGRAPHY
   ============================================ */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 0.75rem;
}

.section-headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--charcoal);
    margin-bottom: 1.25rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn--burgundy {
    background: var(--burgundy);
    color: var(--white);
    border-color: var(--burgundy);
}
.btn--burgundy:hover {
    background: var(--burgundy-dark);
    border-color: var(--burgundy-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--light {
    background: var(--white);
    color: var(--burgundy);
    border-color: var(--white);
}
.btn--light:hover {
    background: var(--blush);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.6);
}
.btn--outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
}

.btn--sm {
    padding: 0.5rem 1.1rem;
    font-size: 0.8125rem;
}

.btn--full {
    width: 100%;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253,248,246,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(123,45,59,0.08);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--charcoal);
}

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

.logo-text {
    letter-spacing: -0.01em;
}

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

.logo--light {
    color: var(--white);
}
.logo--light .logo-accent {
    color: var(--blush);
}

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

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

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

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

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

/* MOBILE TOGGLE */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    transition: var(--transition);
    transform-origin: center;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* MOBILE MENU */
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(123,45,59,0.1);
    padding: 1.5rem;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 999;
    box-shadow: var(--shadow-md);
}

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

.mobile-menu a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.75rem 0.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.mobile-menu a:hover {
    background: var(--blush);
    color: var(--burgundy);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--charcoal);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26,26,26,0.4) 0%,
        rgba(123,45,59,0.3) 50%,
        rgba(26,26,26,0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 8rem 1.5rem 4rem;
    max-width: 800px;
}

.hero-eyebrow {
    color: var(--blush);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

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

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

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

@keyframes scrollLine {
    0%, 100% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
    background: var(--burgundy);
    padding: 1.25rem 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 500;
}

.trust-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--blush);
}

/* ============================================
   INVENTORY
   ============================================ */
.inventory {
    padding: 6rem 0;
    background: var(--cream);
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.inv-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.inv-card-img {
    overflow: hidden;
    aspect-ratio: 3/2;
}

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

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

.inv-card-body {
    padding: 1.75rem;
}

.inv-card-body h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
}

.inv-card-body p {
    font-size: 0.9375rem;
    color: var(--text-mid);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--burgundy);
    transition: gap var(--transition);
}

.link-arrow:hover {
    gap: 0.6rem;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    padding: 6rem 0;
    background: var(--blush-light);
}

.services-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.services-intro {
    font-size: 1.0625rem;
    color: var(--text-mid);
    line-height: 1.7;
    margin-top: 1rem;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.svc-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.svc-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.svc-num {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blush-mid);
    line-height: 1;
    flex-shrink: 0;
    min-width: 2.5rem;
}

.svc-item h4 {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.25rem;
}

.svc-item p {
    font-size: 0.875rem;
    color: var(--text-mid);
    line-height: 1.6;
}

/* ============================================
   EDITORIAL BREAK
   ============================================ */
.editorial-break {
    padding: 6rem 0;
    background: var(--burgundy);
}

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

.editorial-quote {
    position: relative;
}

.quote-mark {
    width: 48px;
    height: 48px;
    color: var(--blush);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.editorial-quote blockquote {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 400;
    font-style: italic;
    color: var(--white);
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.editorial-quote cite {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-style: normal;
    font-weight: 500;
    color: var(--blush);
    letter-spacing: 0.05em;
}

.editorial-stat {
    text-align: center;
    padding: 2.5rem;
    border: 1px solid rgba(245,230,224,0.2);
    border-radius: var(--radius-lg);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blush-mid);
    margin-bottom: 0.5rem;
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
}

.stat-sub {
    display: block;
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    margin-top: 0.25rem;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: 6rem 0;
    background: var(--cream);
}

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

.about-img-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content .section-headline {
    margin-bottom: 1.25rem;
}

.about-content p {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.about-cta {
    margin-top: 2rem;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    padding: 6rem 0;
    background: var(--white);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-detail {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--burgundy);
    margin-top: 2px;
}

.contact-detail strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--charcoal);
    margin-bottom: 0.25rem;
}

.contact-detail span,
.contact-detail a {
    font-size: 0.9375rem;
    color: var(--text-mid);
    line-height: 1.6;
}

.contact-detail a:hover {
    color: var(--burgundy);
    text-decoration: underline;
}

.map-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-top: 1rem;
}

/* FORM */
.contact-form-wrap {
    background: var(--blush-light);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
}

.contact-form-wrap h3 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--blush-mid);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--text-dark);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--burgundy);
    box-shadow: 0 0 0 3px rgba(123,45,59,0.1);
}

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

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

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
    gap: 0.75rem;
}

.form-success.show {
    display: flex;
}

.form-success svg {
    color: var(--burgundy);
}

.form-success p {
    font-size: 1rem;
    color: var(--text-mid);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--charcoal);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 2rem;
}

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

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-top: 1rem;
    max-width: 280px;
}

.footer-nav,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav strong,
.footer-contact strong {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--blush);
    margin-bottom: 0.5rem;
}

.footer-nav a,
.footer-contact a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
}

.footer-nav a:hover,
.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 2rem;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.4);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .services-layout,
    .editorial-break-inner,
    .about-layout,
    .contact-layout {
        gap: 2.5rem;
    }
}

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

    .mobile-toggle {
        display: flex;
    }

    .hero-content {
        padding: 7rem 1.5rem 3rem;
    }

    .hero-headline {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }

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

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

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

    .editorial-break-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .about-img-wrap {
        order: -1;
        aspect-ratio: 4/3;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

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

    .contact-form-wrap {
        padding: 1.5rem;
    }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
