/* ============================================
   CHADS AUTO — Classic & Elegant Auto Repair Site
   Palette: Deep Navy (#0F1F3C) + Warm Gold (#C9A84C)
   Fonts: Playfair Display + Inter
   ============================================ */

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

:root {
    --navy: #0F1F3C;
    --navy-light: #1A2D4A;
    --navy-dark: #0A1628;
    --gold: #C9A84C;
    --gold-light: #D4B96A;
    --gold-muted: rgba(201, 168, 76, 0.12);
    --cream: #F7F4EE;
    --cream-dark: #EDE8DD;
    --white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-body: #3D3D3D;
    --text-muted: #6B6B6B;
    --text-light: #949494;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(15, 31, 60, 0.06);
    --shadow-md: 0 4px 20px rgba(15, 31, 60, 0.08);
    --shadow-lg: 0 8px 40px rgba(15, 31, 60, 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-body);
    background: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

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

/* ---- Section Shared ---- */
.section__eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

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

.section__subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 540px;
    line-height: 1.8;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

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

.btn--outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn--outline:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-1px);
}

.btn--gold {
    background: var(--gold);
    color: var(--navy-dark);
    border-color: var(--gold);
    font-weight: 600;
}

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

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

.btn--outline-light:hover {
    background: var(--white);
    color: var(--navy);
    transform: translateY(-1px);
}

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

/* ---- Navigation ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(247, 244, 238, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 31, 60, 0.06);
    transition: all var(--transition);
}

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

.nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    height: 72px;
    gap: 40px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--navy);
}

.nav__logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--navy);
    color: var(--gold);
    font-family: var(--font-serif);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
}

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

.nav__links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 8px;
    margin-left: auto;
}

.nav__link {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-body);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav__link:hover {
    color: var(--navy);
    background: var(--gold-muted);
}

.nav__link--cta {
    background: var(--navy);
    color: var(--white) !important;
    margin-left: 8px;
}

.nav__link--cta:hover {
    background: var(--navy-light);
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--navy);
}

.nav__overlay {
    display: none;
}

/* ---- Hero ---- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--cream);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero__bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.6;
    pointer-events: none;
}

.hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__left {
    max-width: 520px;
}

.hero__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
    padding-left: 48px;
    position: relative;
}

.hero__eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 36px;
    height: 1.5px;
    background: var(--gold);
}

.hero__title {
    font-family: var(--font-serif);
    font-size: clamp(2.75rem, 5.5vw, 4.25rem);
    font-weight: 600;
    color: var(--navy);
    line-height: 1.1;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.hero__title-accent {
    color: var(--gold);
    font-style: italic;
    font-weight: 500;
}

.hero__subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 40px;
    max-width: 440px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero__trust {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.hero__trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--navy);
}

.hero__trust-item svg {
    color: var(--gold);
    flex-shrink: 0;
}

.hero__right {
    position: relative;
}

.hero__image-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero__image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__image-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border: 2px solid var(--gold);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.4;
}

/* ---- Services ---- */
.services {
    padding: 120px 0;
    background: var(--white);
}

.services__header {
    text-align: center;
    margin-bottom: 64px;
}

.services__header .section__subtitle {
    margin: 0 auto;
}

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

.service-card {
    padding: 40px 32px;
    background: var(--cream);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(15, 31, 60, 0.05);
    transition: all var(--transition);
}

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

.service-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    border-radius: var(--radius-md);
    color: var(--gold);
    margin-bottom: 24px;
}

.service-card__title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
}

.service-card__desc {
    font-size: 0.925rem;
    color: var(--text-muted);
    line-height: 1.75;
}

/* ---- About ---- */
.about {
    padding: 120px 0;
    background: var(--cream);
}

.about__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about__image-col {
    position: relative;
}

.about__image-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.about__image-secondary {
    position: absolute;
    bottom: -40px;
    right: -40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--cream);
}

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

.about__content {
    padding-top: 40px;
}

.about__body {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.85;
    margin-bottom: 20px;
}

.about__highlights {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about__highlight {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.about__highlight-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}

.about__highlight-value {
    font-size: 1rem;
    color: var(--navy);
    font-weight: 500;
}

.about__highlight-value a {
    color: var(--navy);
    transition: color var(--transition);
}

.about__highlight-value a:hover {
    color: var(--gold);
}

/* ---- Why Us ---- */
.why-us {
    padding: 120px 0;
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

.why-us::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(201, 168, 76, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.why-us .container {
    position: relative;
    z-index: 1;
}

.why-us__header {
    text-align: center;
    margin-bottom: 64px;
}

.why-us__header .section__title {
    color: var(--white);
}

.why-us__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.why-card {
    padding: 48px 40px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--gold);
    transform: translateY(-2px);
}

.why-card__number {
    display: block;
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 20px;
}

.why-card__title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 14px;
}

.why-card__desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

/* ---- CTA Banner ---- */
.cta-banner {
    padding: 100px 0;
    background: var(--gold);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 31, 60, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.cta-banner .container {
    position: relative;
    z-index: 1;
}

.cta-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.cta-banner__eyebrow {
    color: var(--navy);
    opacity: 0.7;
}

.cta-banner__title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 16px;
}

.cta-banner__desc {
    font-size: 1.05rem;
    color: rgba(15, 31, 60, 0.7);
    max-width: 400px;
    line-height: 1.75;
}

.cta-banner__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ---- Contact ---- */
.contact {
    padding: 120px 0;
    background: var(--white);
}

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

.contact__info {
    padding-top: 20px;
}

.contact__desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 40px;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact__detail {
    display: flex;
    gap: 16px;
}

.contact__detail-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    border-radius: var(--radius-md);
    color: var(--gold);
    flex-shrink: 0;
}

.contact__detail-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 4px;
}

.contact__detail-value {
    font-size: 1rem;
    color: var(--navy);
    font-weight: 500;
    line-height: 1.6;
}

.contact__detail-value a {
    color: var(--navy);
    transition: color var(--transition);
}

.contact__detail-value a:hover {
    color: var(--gold);
}

/* ---- Contact Form ---- */
.contact__form {
    background: var(--cream);
    padding: 48px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(15, 31, 60, 0.06);
}

.contact__form-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 32px;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form__input {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--white);
    border: 1.5px solid rgba(15, 31, 60, 0.1);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    outline: none;
}

.form__input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-muted);
}

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

.form__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

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

.form__success {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 16px 20px;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: var(--radius-sm);
    color: var(--navy);
    font-size: 0.925rem;
    font-weight: 500;
}

.form__success svg {
    color: var(--gold);
    flex-shrink: 0;
}

/* ---- Footer ---- */
.footer {
    background: var(--navy-dark);
    padding: 80px 0 0;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__brand .nav__logo-mark {
    width: 44px;
    height: 44px;
    font-size: 0.9rem;
}

.footer__name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
}

.footer__tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
    max-width: 260px;
}

.footer__nav-label,
.footer__contact .footer__nav-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

.footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    transition: color var(--transition);
}

.footer__links a:hover {
    color: var(--gold);
}

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__contact p,
.footer__contact a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    transition: color var(--transition);
}

.footer__contact a:hover {
    color: var(--gold);
}

.footer__bottom {
    padding: 28px 0;
    text-align: center;
}

.footer__bottom p {
    font-size: 0.825rem;
    color: rgba(255, 255, 255, 0.3);
}

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

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

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .hero__inner {
        gap: 40px;
    }

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

    .about__layout {
        gap: 60px;
    }

    .why-us__grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .nav__toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav__links {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        height: 100dvh;
        background: var(--cream);
        flex-direction: column;
        align-items: stretch;
        padding: 100px 32px 40px;
        gap: 4px;
        transform: translateX(100%);
        transition: transform var(--transition);
        box-shadow: -8px 0 40px rgba(15, 31, 60, 0.15);
        z-index: 999;
    }

    .nav__links.open {
        transform: translateX(0);
    }

    .nav__link {
        padding: 14px 16px;
        font-size: 1rem;
    }

    .nav__link--cta {
        margin-left: 0;
        margin-top: 16px;
        text-align: center;
    }

    .nav__overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 31, 60, 0.4);
        z-index: 998;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition);
    }

    .nav__overlay.active {
        opacity: 1;
        pointer-events: all;
    }

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

    .hero__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero__left {
        max-width: 100%;
    }

    .hero__eyebrow {
        padding-left: 0;
    }

    .hero__eyebrow::before {
        display: none;
    }

    .hero__right {
        max-width: 480px;
    }

    .hero__image-accent {
        display: none;
    }

    .services {
        padding: 80px 0;
    }

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

    .about {
        padding: 80px 0;
    }

    .about__layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about__image-secondary {
        right: 0;
        bottom: -24px;
    }

    .about__content {
        padding-top: 0;
    }

    .why-us {
        padding: 80px 0;
    }

    .why-us__grid {
        grid-template-columns: 1fr;
    }

    .cta-banner {
        padding: 80px 0;
    }

    .cta-banner__inner {
        flex-direction: column;
        text-align: center;
        align-items: flex-start;
    }

    .cta-banner__desc {
        max-width: 100%;
    }

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

    .contact {
        padding: 80px 0;
    }

    .contact__layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact__form {
        padding: 32px 24px;
    }

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

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
    }

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

    .hero__trust {
        flex-direction: column;
        gap: 16px;
    }

    .service-card {
        padding: 32px 24px;
    }

    .why-card {
        padding: 36px 28px;
    }
}
