/* ========================================
   All Brand Parts Distributing
   Classic & Elegant Auto Repair Website
   ======================================== */

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

:root {
    --charcoal: #2c2c2c;
    --charcoal-deep: #1a1a1a;
    --charcoal-light: #3a3a3a;
    --coral: #e8735a;
    --coral-soft: #f09080;
    --coral-muted: #d4614d;
    --cream: #f7f4f1;
    --cream-dark: #efe9e3;
    --warm-white: #faf8f6;
    --text-primary: #1a1a1a;
    --text-secondary: #5a5a5a;
    --text-light: #8a8a8a;
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

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

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.15;
    color: var(--charcoal);
}

.section-eyebrow {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 1.25rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.8;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 248, 246, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(44, 44, 44, 0.06);
    transition: var(--transition);
}

.nav.scrolled {
    box-shadow: 0 1px 30px rgba(44, 44, 44, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.nav-logo-mark {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--coral);
    width: 36px;
    height: 36px;
    border: 2px solid var(--coral);
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.02em;
}

.nav-logo-text {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--charcoal);
}

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

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--coral);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--charcoal);
}

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

.nav-cta {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--warm-white) !important;
    background: var(--charcoal);
    padding: 0.6rem 1.4rem;
    letter-spacing: 0.04em;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--coral);
    color: var(--warm-white) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle-line {
    width: 22px;
    height: 1.5px;
    background: var(--charcoal);
    transition: var(--transition);
    transform-origin: center;
}

.nav-toggle.active .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.active .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 72px 0 0;
    background: var(--warm-white);
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 6rem;
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    padding-right: 1rem;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-eyebrow-line {
    width: 40px;
    height: 1.5px;
    background: var(--coral);
    flex-shrink: 0;
}

.hero-eyebrow-text {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.hero-title {
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 1.75rem;
    color: var(--charcoal);
}

.hero-title em {
    font-style: italic;
    color: var(--coral);
    font-weight: 400;
}

.hero-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.85;
    max-width: 480px;
    margin-bottom: 2.5rem;
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.9rem 2rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--charcoal);
    color: var(--warm-white);
}

.btn-primary:hover {
    background: var(--coral);
    color: var(--warm-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 115, 90, 0.3);
}

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

.btn-secondary:hover {
    background: var(--charcoal);
    color: var(--warm-white);
    transform: translateY(-2px);
}

.btn-light {
    background: var(--warm-white);
    color: var(--charcoal);
}

.btn-light:hover {
    background: var(--coral);
    color: var(--warm-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 115, 90, 0.3);
}

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

/* --- Hero Image --- */
.hero-image {
    position: relative;
}

.hero-image-frame {
    position: relative;
    overflow: hidden;
}

.hero-image-frame::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: 12px;
    bottom: 12px;
    border: 1.5px solid var(--coral);
    z-index: 1;
    pointer-events: none;
}

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

.hero-image-frame:hover img {
    transform: scale(1.03);
}

.hero-accent-box {
    position: absolute;
    bottom: -1.5rem;
    left: -2rem;
    background: var(--charcoal);
    color: var(--warm-white);
    padding: 1.5rem 2rem;
    z-index: 2;
}

.accent-number {
    display: block;
    font-family: var(--serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--coral);
    margin-bottom: 0.25rem;
}

.accent-label {
    font-size: 0.8125rem;
    color: rgba(250, 248, 246, 0.7);
    line-height: 1.5;
}

/* --- Hero Scroll --- */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--coral), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

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

/* --- Services --- */
.services {
    padding: 8rem 0;
    background: var(--cream);
}

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

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

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

.service-card {
    background: var(--warm-white);
    padding: 2.5rem 2rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    border-color: rgba(232, 115, 90, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(44, 44, 44, 0.08);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--coral);
}

.service-title {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--charcoal);
}

.service-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* --- About --- */
.about {
    padding: 8rem 0;
    background: var(--warm-white);
}

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

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

.about-image-main {
    overflow: hidden;
}

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

.about-image-secondary {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    width: 55%;
    overflow: hidden;
    border: 6px solid var(--warm-white);
}

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

.about-stats {
    position: absolute;
    top: -1.5rem;
    right: -1.5rem;
    background: var(--charcoal);
    color: var(--warm-white);
    padding: 1.25rem 1.75rem;
}

.stat-number {
    display: block;
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--coral);
}

.stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(250, 248, 246, 0.6);
}

.about-content-col {
    padding-left: 1rem;
}

.about-body {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(44, 44, 44, 0.1);
}

.value-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.value-line {
    width: 20px;
    height: 1.5px;
    background: var(--coral);
    flex-shrink: 0;
}

.value-item span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--charcoal);
}

/* --- Parts Banner --- */
.parts-banner {
    padding: 8rem 0;
    background: var(--charcoal-deep);
}

.parts-banner-inner {
    display: grid;
    grid-template-columns: 1fr 0.7fr;
    gap: 4rem;
    align-items: center;
}

.parts-title {
    color: var(--warm-white);
}

.parts-desc {
    font-size: 1.0625rem;
    color: rgba(250, 248, 246, 0.65);
    line-height: 1.85;
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.parts-banner-image {
    overflow: hidden;
}

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

.parts-banner-image:hover img {
    transform: scale(1.03);
}

/* --- Quote Section --- */
.quote-section {
    padding: 6rem 0;
    background: var(--cream);
}

.quote-layout {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.quote-mark {
    margin-bottom: 1.5rem;
}

.quote-text {
    font-family: var(--serif);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.6;
    color: var(--charcoal);
    margin-bottom: 2rem;
}

.quote-attribution {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.quote-author {
    font-family: var(--sans);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--coral);
    letter-spacing: 0.04em;
}

.quote-location {
    font-size: 0.8125rem;
    color: var(--text-light);
}

/* --- Contact --- */
.contact {
    padding: 8rem 0;
    background: var(--warm-white);
}

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

.contact-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

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

.contact-detail-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(44, 44, 44, 0.12);
    color: var(--coral);
    flex-shrink: 0;
}

.contact-detail-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.contact-detail-value {
    font-size: 0.9375rem;
    color: var(--charcoal);
    line-height: 1.6;
}

.contact-detail-value a:hover {
    color: var(--coral);
}

/* --- Form --- */
.contact-form {
    background: var(--cream);
    padding: 2.5rem;
}

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

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

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--sans);
    font-size: 0.9375rem;
    color: var(--charcoal);
    background: var(--warm-white);
    border: 1.5px solid rgba(44, 44, 44, 0.12);
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(232, 115, 90, 0.1);
}

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

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

.form-success {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 1rem;
}

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

.form-success svg {
    color: #22c55e;
    flex-shrink: 0;
}

/* --- Map --- */
.map-section {
    background: var(--cream-dark);
}

.map-container {
    height: 350px;
    overflow: hidden;
}

.map-container iframe {
    filter: grayscale(0.6) contrast(1.05);
    transition: filter var(--transition);
}

.map-container:hover iframe {
    filter: grayscale(0) contrast(1);
}

/* --- Footer --- */
.footer {
    background: var(--charcoal-deep);
    color: var(--warm-white);
    padding: 4rem 0 0;
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo-mark {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--coral);
    width: 40px;
    height: 40px;
    border: 2px solid var(--coral);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-text {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-tagline {
    font-size: 0.875rem;
    color: rgba(250, 248, 246, 0.5);
    line-height: 1.7;
    max-width: 280px;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-col-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 0.5rem;
}

.footer-links-col a,
.footer-links-col span {
    font-size: 0.875rem;
    color: rgba(250, 248, 246, 0.6);
    transition: var(--transition);
}

.footer-links-col a:hover {
    color: var(--warm-white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    font-size: 0.8125rem;
    color: rgba(250, 248, 246, 0.35);
}

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

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

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }
.fade-in-delay-6 { transition-delay: 0.6s; }

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

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

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

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

    .about-image-col {
        max-width: 500px;
    }

    .parts-banner-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .parts-banner-image {
        max-width: 400px;
    }

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

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250, 248, 246, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.25rem;
        transform: translateY(-120%);
        transition: var(--transition);
        border-bottom: 1px solid rgba(44, 44, 44, 0.06);
    }

    .nav-links.open {
        transform: translateY(0);
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding-top: 72px;
    }

    .hero-container {
        padding: 2rem 2rem 4rem;
    }

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

    .hero-accent-box {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
        display: inline-block;
    }

    .hero-scroll {
        display: none;
    }

    .services {
        padding: 5rem 0;
    }

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

    .about {
        padding: 5rem 0;
    }

    .about-image-secondary {
        position: relative;
        bottom: auto;
        right: auto;
        width: 100%;
        margin-top: 1rem;
        border: none;
    }

    .about-stats {
        position: relative;
        top: auto;
        right: auto;
        display: inline-block;
        margin-top: 1rem;
    }

    .about-content-col {
        padding-left: 0;
    }

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

    .parts-banner {
        padding: 5rem 0;
    }

    .parts-banner-image {
        max-width: 100%;
    }

    .quote-section {
        padding: 4rem 0;
    }

    .contact {
        padding: 5rem 0;
    }

    .contact-form {
        padding: 1.75rem;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

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

    .nav-container {
        padding: 0 1.25rem;
    }

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

    .btn {
        justify-content: center;
    }

    .services-grid {
        gap: 1rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }
}
