/* ============================================
   Frank's Auto Service — Classic & Elegant
   Deep Navy + Warm Gold Palette
   ============================================ */

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1a2744;
    background: #faf9f7;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500;
    line-height: 1.2;
}

/* --- Skip Link --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: #0d1b33;
    color: #f5e6c8;
    padding: 8px 16px;
    border-radius: 4px;
    z-index: 9999;
    font-size: 0.875rem;
}
.skip-link:focus {
    top: 16px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn--gold {
    background: #c8a45e;
    color: #0d1b33;
    border: 2px solid #c8a45e;
}
.btn--gold:hover {
    background: #b8934d;
    border-color: #b8934d;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(200, 164, 94, 0.35);
}

.btn--navy {
    background: #0d1b33;
    color: #f5e6c8;
    border: 2px solid #0d1b33;
}
.btn--navy:hover {
    background: #162a4a;
    border-color: #162a4a;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(13, 27, 51, 0.3);
}

.btn--outline-light {
    background: transparent;
    color: #f5e6c8;
    border: 2px solid rgba(245, 230, 200, 0.5);
}
.btn--outline-light:hover {
    background: rgba(245, 230, 200, 0.1);
    border-color: #f5e6c8;
}

.btn--lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn--full {
    width: 100%;
    justify-content: center;
    padding: 16px 28px;
}

/* --- Section Header --- */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}
.section-header--centered {
    margin-bottom: 64px;
}
.section-header__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #c8a45e;
    margin-bottom: 16px;
}
.section-header__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: #0d1b33;
    margin-bottom: 16px;
}
.section-header__lead {
    font-size: 1.0625rem;
    color: #4a5568;
    line-height: 1.7;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 27, 51, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(200, 164, 94, 0.15);
    transition: background 0.3s ease;
}
.navbar.scrolled {
    background: rgba(13, 27, 51, 0.98);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f5e6c8;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 500;
}
.nav-brand__icon {
    width: 32px;
    height: 32px;
    color: #c8a45e;
}
.nav-brand__text {
    letter-spacing: 0.02em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(245, 230, 200, 0.75);
    letter-spacing: 0.03em;
    transition: color 0.2s ease;
}
.nav-link:hover {
    color: #f5e6c8;
}

.nav-cta {
    padding: 10px 22px;
    font-size: 0.875rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.nav-toggle__bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #f5e6c8;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(13, 27, 51, 0.92) 0%,
        rgba(13, 27, 51, 0.82) 50%,
        rgba(22, 42, 74, 0.75) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    padding-top: 72px;
    flex: 1;
    display: flex;
    align-items: center;
}

.hero-card {
    max-width: 640px;
    padding: 48px 56px;
    background: rgba(13, 27, 51, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(200, 164, 94, 0.2);
    border-radius: 8px;
}

.hero-card__eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #c8a45e;
    margin-bottom: 20px;
}

.hero-card__headline {
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    color: #f5e6c8;
    line-height: 1.15;
    margin-bottom: 20px;
}
.hero-card__headline em {
    color: #c8a45e;
    font-style: italic;
}

.hero-card__sub {
    font-size: 1.0625rem;
    color: rgba(245, 230, 200, 0.75);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-card__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- Floating Stats --- */
.hero-stats {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-bottom: 48px;
}

.hero-stats__grid {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    background: rgba(250, 249, 247, 0.95);
    border-radius: 6px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    min-width: 220px;
}
.stat-card__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d1b33;
    border-radius: 50%;
    flex-shrink: 0;
}
.stat-card__icon svg {
    width: 20px;
    height: 20px;
    color: #c8a45e;
}
.stat-card__label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #0d1b33;
}

/* --- Services --- */
.services {
    padding: 100px 0;
    background: #faf9f7;
}

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

.service-card {
    padding: 36px 32px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid rgba(13, 27, 51, 0.06);
    transition: all 0.3s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(13, 27, 51, 0.08);
    border-color: rgba(200, 164, 94, 0.3);
}

.service-card__icon-wrap {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d1b33;
    border-radius: 50%;
    margin-bottom: 20px;
}
.service-card__icon-wrap svg {
    width: 24px;
    height: 24px;
    color: #c8a45e;
}

.service-card__title {
    font-size: 1.25rem;
    color: #0d1b33;
    margin-bottom: 12px;
}

.service-card__desc {
    font-size: 0.9375rem;
    color: #4a5568;
    line-height: 1.7;
}

/* --- About --- */
.about {
    padding: 100px 0;
    background: #0d1b33;
}

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

.about__image-wrap {
    position: relative;
}
.about__image-accent {
    position: absolute;
    top: -16px;
    left: -16px;
    width: 100%;
    height: 100%;
    border: 2px solid #c8a45e;
    border-radius: 6px;
    z-index: 0;
}
.about__image-wrap img {
    position: relative;
    z-index: 1;
    border-radius: 6px;
    width: 100%;
    height: 700px;
    object-fit: cover;
}

.about__content {
    color: #f5e6c8;
}
.about__content .section-header__eyebrow {
    text-align: left;
}
.about__title {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    color: #f5e6c8;
    margin-bottom: 24px;
}
.about__text {
    font-size: 1rem;
    color: rgba(245, 230, 200, 0.7);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about__values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 32px 0;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    color: rgba(245, 230, 200, 0.85);
}
.value-item svg {
    width: 18px;
    height: 18px;
    color: #c8a45e;
    flex-shrink: 0;
}

.about__content .btn--navy {
    margin-top: 8px;
}

/* --- Why Us --- */
.why-us {
    padding: 100px 0;
    background: #faf9f7;
}

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

.why-card {
    padding: 40px 36px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid rgba(13, 27, 51, 0.06);
    transition: all 0.3s ease;
}
.why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(13, 27, 51, 0.08);
}

.why-card__number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3rem;
    font-weight: 400;
    color: rgba(200, 164, 94, 0.25);
    line-height: 1;
    margin-bottom: 16px;
}

.why-card__title {
    font-size: 1.25rem;
    color: #0d1b33;
    margin-bottom: 12px;
}

.why-card__text {
    font-size: 0.9375rem;
    color: #4a5568;
    line-height: 1.7;
}

/* --- CTA Banner --- */
.cta-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, #0d1b33 0%, #162a4a 100%);
}

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

.cta-banner__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #f5e6c8;
    margin-bottom: 8px;
}

.cta-banner__text {
    font-size: 1.0625rem;
    color: rgba(245, 230, 200, 0.65);
}

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

/* --- Contact --- */
.contact {
    padding: 100px 0;
    background: #faf9f7;
}

.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact__title {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    color: #0d1b33;
    margin-bottom: 40px;
}
.contact__info .section-header__eyebrow {
    text-align: left;
    display: block;
    margin-bottom: 12px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.contact-detail {
    display: flex;
    gap: 16px;
}
.contact-detail__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d1b33;
    border-radius: 50%;
    flex-shrink: 0;
}
.contact-detail__icon svg {
    width: 20px;
    height: 20px;
    color: #c8a45e;
}
.contact-detail strong {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    color: #0d1b33;
    margin-bottom: 4px;
}
.contact-detail p {
    font-size: 0.9375rem;
    color: #4a5568;
    line-height: 1.6;
}
.contact-detail a {
    color: #c8a45e;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}
.contact-detail a:hover {
    color: #b8934d;
}

.contact__map {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(13, 27, 51, 0.08);
}

/* --- Contact Form --- */
.contact__form-wrap {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    border: 1px solid rgba(13, 27, 51, 0.06);
    box-shadow: 0 4px 24px rgba(13, 27, 51, 0.04);
}

.contact__form-title {
    font-size: 1.5rem;
    color: #0d1b33;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #0d1b33;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.9375rem;
    font-family: 'Inter', sans-serif;
    color: #0d1b33;
    background: #faf9f7;
    border: 1px solid rgba(13, 27, 51, 0.12);
    border-radius: 4px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
}
.form-input:focus {
    outline: none;
    border-color: #c8a45e;
    box-shadow: 0 0 0 3px rgba(200, 164, 94, 0.15);
}
.form-input::placeholder {
    color: #a0aec0;
}

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

.form-success {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 18px;
    background: #f0fdf4;
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 4px;
    color: #166534;
    font-size: 0.9375rem;
}
.form-success svg {
    width: 20px;
    height: 20px;
    color: #22c55e;
    flex-shrink: 0;
}

/* --- Footer --- */
.footer {
    background: #0a1526;
    padding: 64px 0 32px;
    color: rgba(245, 230, 200, 0.6);
}

.footer__inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer__tagline {
    font-size: 0.9375rem;
    margin-top: 12px;
    color: rgba(245, 230, 200, 0.5);
}

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

.footer__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    color: rgba(245, 230, 200, 0.6);
    transition: color 0.2s ease;
}
.footer__link:hover {
    color: #c8a45e;
}
.footer__link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.footer__nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.footer__nav a {
    font-size: 0.875rem;
    color: rgba(245, 230, 200, 0.6);
    transition: color 0.2s ease;
}
.footer__nav a:hover {
    color: #c8a45e;
}

.footer__bottom {
    border-top: 1px solid rgba(245, 230, 200, 0.08);
    padding-top: 24px;
    text-align: center;
    font-size: 0.8125rem;
    color: rgba(245, 230, 200, 0.35);
}

/* --- Scroll Reveal --- */
[data-reveal] {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .about__image-wrap img {
        height: 480px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(13, 27, 51, 0.98);
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        gap: 20px;
        transform: translateY(-120%);
        transition: transform 0.3s ease;
        border-bottom: 1px solid rgba(200, 164, 94, 0.15);
    }
    .nav-menu.open {
        transform: translateY(0);
    }
    .nav-link {
        font-size: 1rem;
    }
    .nav-cta {
        margin-left: 0;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 120px;
    }
    .hero-card {
        padding: 32px 28px;
    }
    .hero-card__actions {
        flex-direction: column;
    }
    .hero-card__actions .btn {
        justify-content: center;
    }
    .hero-stats {
        padding-bottom: 32px;
    }
    .stat-card {
        flex: 1;
        min-width: 0;
    }

    .services {
        padding: 72px 0;
    }
    .services__grid {
        grid-template-columns: 1fr;
    }

    .about {
        padding: 72px 0;
    }
    .about__values {
        grid-template-columns: 1fr;
    }

    .why-us {
        padding: 72px 0;
    }
    .why-grid {
        grid-template-columns: 1fr;
    }

    .cta-banner {
        padding: 64px 0;
    }
    .cta-banner__inner {
        flex-direction: column;
        text-align: center;
    }
    .cta-banner__actions {
        justify-content: center;
    }

    .contact {
        padding: 72px 0;
    }
    .contact__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .contact__form-wrap {
        padding: 28px;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .hero-card {
        padding: 24px 20px;
    }
    .hero-stats__grid {
        flex-direction: column;
    }
    .stat-card {
        min-width: 0;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    [data-reveal] {
        transition: none;
    }
    .btn, .service-card, .why-card {
        transition: none;
    }
}
