/* ============================================
   Gallery FineCar Automotive — Stylesheet
   Bold Editorial | Forest Green + Off-White
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a2e23;
    background-color: #f7f4ee;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

/* ── Typography ── */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.15;
    color: #0f1f17;
}

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

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: #1a3a2a;
    color: #f7f4ee;
    padding: 8px 16px;
    border-radius: 4px;
    z-index: 1000;
    font-weight: 500;
}

.skip-link:focus {
    top: 16px;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 14px 32px;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn--primary {
    background: #1a3a2a;
    color: #f7f4ee;
    border-color: #1a3a2a;
}

.btn--primary:hover {
    background: #244d38;
    border-color: #244d38;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 58, 42, 0.3);
}

.btn--ghost {
    background: rgba(247, 244, 238, 0.12);
    color: #f7f4ee;
    border-color: rgba(247, 244, 238, 0.5);
    backdrop-filter: blur(4px);
}

.btn--ghost:hover {
    background: rgba(247, 244, 238, 0.22);
    border-color: #f7f4ee;
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    color: #1a3a2a;
    border-color: #1a3a2a;
}

.btn--outline:hover {
    background: #1a3a2a;
    color: #f7f4ee;
    transform: translateY(-1px);
}

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

.btn--small {
    padding: 10px 20px;
    font-size: 0.875rem;
}

/* ── Section Shared ── */
.section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

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

.section-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4a7c5c;
    margin-bottom: 12px;
}

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

.section-subtitle {
    font-size: 1.125rem;
    color: #4a5e52;
    max-width: 560px;
}

/* ── Reveal Animations (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(247, 244, 238, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26, 58, 42, 0.08);
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(26, 58, 42, 0.1);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: #1a3a2a;
}

.nav-logo-icon {
    color: #4a7c5c;
}

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

.nav-link {
    font-size: 0.9375rem;
    font-weight: 400;
    color: #2d4a3a;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #4a7c5c;
    transition: width 0.25s ease;
}

.nav-link:hover {
    color: #1a3a2a;
}

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

.nav-link--cta {
    background: #1a3a2a;
    color: #f7f4ee;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-link--cta::after {
    display: none;
}

.nav-link--cta:hover {
    background: #244d38;
    color: #f7f4ee;
    transform: translateY(-1px);
}

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

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #1a3a2a;
    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;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        #0a1f14 0%,
        #1a3a2a 25%,
        #2d5a3f 50%,
        #1a3a2a 75%,
        #0a1f14 100%
    );
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(74, 124, 92, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(45, 90, 63, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(26, 58, 42, 0.4) 0%, transparent 70%);
    pointer-events: none;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f7f4ee' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 120px 24px 80px;
    max-width: 860px;
}

.hero-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #7fb088;
    margin-bottom: 24px;
}

.hero-headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.75rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    color: #f7f4ee;
    margin-bottom: 28px;
}

.hero-headline--accent {
    font-style: italic;
    font-weight: 600;
    color: #a8d5b2;
}

.hero-subheadline {
    font-size: clamp(1.0625rem, 2vw, 1.3125rem);
    color: #c8dcc8;
    line-height: 1.65;
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #f7f4ee;
}

.hero-stat-label {
    font-size: 0.8125rem;
    color: #8fb596;
    letter-spacing: 0.04em;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(168, 213, 178, 0.25);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 40px;
    border: 2px solid rgba(247, 244, 238, 0.3);
    border-radius: 12px;
}

.hero-scroll-indicator span {
    display: block;
    width: 4px;
    height: 8px;
    background: rgba(247, 244, 238, 0.5);
    border-radius: 2px;
    margin: 6px auto 0;
    animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.4; }
}

/* ── Inventory ── */
.inventory {
    background: #f7f4ee;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 56px;
}

.car-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(26, 58, 42, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.car-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(26, 58, 42, 0.12);
}

.car-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/2;
}

.car-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.car-card:hover .car-card-image img {
    transform: scale(1.04);
}

.car-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #1a3a2a;
    color: #f7f4ee;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 6px 12px;
    border-radius: 4px;
    text-transform: uppercase;
}

.car-card-body {
    padding: 24px;
}

.car-card-title {
    font-size: 1.375rem;
    margin-bottom: 8px;
}

.car-card-desc {
    font-size: 0.9375rem;
    color: #4a5e52;
    line-height: 1.6;
    margin-bottom: 16px;
}

.car-card-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a7c5c;
    transition: color 0.2s ease;
}

.car-card-link:hover {
    color: #1a3a2a;
}

.inventory-cta {
    text-align: center;
    padding: 48px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(26, 58, 42, 0.06);
}

.inventory-cta p {
    font-family: 'Playfair Display', serif;
    font-size: 1.375rem;
    color: #1a2e23;
    margin-bottom: 20px;
}

/* ── About ── */
.about {
    background: #fff;
}

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

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 12px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: #4a7c5c;
    border-radius: 12px;
    z-index: -1;
    opacity: 0.2;
}

.about-content {
    padding: 16px 0;
}

.about-text {
    font-size: 1.0625rem;
    color: #4a5e52;
    line-height: 1.75;
    margin-bottom: 20px;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.about-value {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1rem;
    color: #2d4a3a;
    font-weight: 500;
}

.about-value-icon {
    color: #4a7c5c;
    flex-shrink: 0;
}

/* ── Services ── */
.services {
    background: #f7f4ee;
}

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

.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 36px 28px;
    box-shadow: 0 2px 12px rgba(26, 58, 42, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(26, 58, 42, 0.1);
}

.service-card-icon {
    color: #4a7c5c;
    margin-bottom: 20px;
}

.service-card-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.service-card-desc {
    font-size: 0.9375rem;
    color: #4a5e52;
    line-height: 1.7;
}

/* ── Trust ── */
.trust {
    background: #1a3a2a;
    padding: 80px 0;
}

.trust-content {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
    position: relative;
}

.trust-quote-mark {
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: 'Playfair Display', serif;
    font-size: 8rem;
    line-height: 1;
    color: rgba(74, 124, 92, 0.3);
    pointer-events: none;
}

.trust-quote {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-style: italic;
    color: #f7f4ee;
    line-height: 1.55;
    position: relative;
    z-index: 1;
}

.trust-attribution {
    margin-top: 20px;
    font-size: 0.9375rem;
    color: #7fb088;
    font-weight: 500;
}

.trust-divider {
    width: 60px;
    height: 2px;
    background: rgba(74, 124, 92, 0.5);
    margin: 0 auto 40px;
}

.trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #c8dcc8;
    font-size: 0.9375rem;
    font-weight: 500;
}

.trust-badge-icon {
    color: #7fb088;
}

/* ── Location ── */
.location {
    background: #fff;
}

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

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

.location-detail {
    display: flex;
    gap: 16px;
}

.location-detail-icon {
    color: #4a7c5c;
    flex-shrink: 0;
    margin-top: 2px;
}

.location-detail-label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4a7c5c;
    margin-bottom: 4px;
}

.location-detail-value {
    font-size: 1.0625rem;
    color: #1a2e23;
    line-height: 1.6;
}

.location-detail-note {
    font-size: 0.875rem;
    color: #7a8e82;
    margin-top: 4px;
    font-style: italic;
}

.location-phone:hover {
    color: #4a7c5c;
}

.location-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(26, 58, 42, 0.1);
}

.map-link {
    position: relative;
    display: block;
}

.map-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 58, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-link:hover .map-overlay {
    opacity: 1;
}

.map-overlay-text {
    color: #f7f4ee;
    font-weight: 500;
    font-size: 1rem;
    padding: 12px 24px;
    border: 2px solid rgba(247, 244, 238, 0.6);
    border-radius: 6px;
}

/* ── Contact ── */
.contact {
    background: #f7f4ee;
}

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

.contact-text {
    font-size: 1.0625rem;
    color: #4a5e52;
    line-height: 1.75;
    margin-bottom: 32px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.0625rem;
    color: #1a2e23;
    font-weight: 500;
    padding: 16px 20px;
    background: #fff;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-method:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(26, 58, 42, 0.08);
}

.contact-method-icon {
    color: #4a7c5c;
}

/* ── Form ── */
.contact-form-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(26, 58, 42, 0.06);
}

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

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #2d4a3a;
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #d4ddd6;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #1a2e23;
    background: #f7f4ee;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: #4a7c5c;
    box-shadow: 0 0 0 3px rgba(74, 124, 92, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #9aaa9e;
}

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

.form-note {
    text-align: center;
    font-size: 0.8125rem;
    color: #7a8e82;
    margin-top: 12px;
}

.form-success {
    text-align: center;
    padding: 20px;
}

.form-success-icon {
    color: #4a7c5c;
    margin-bottom: 16px;
}

.form-success-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.form-success p {
    color: #4a5e52;
    margin-bottom: 24px;
}

/* ── Footer ── */
.footer {
    background: #0f1f17;
    color: #c8dcc8;
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: #f7f4ee;
    margin-bottom: 16px;
}

.footer-logo-icon {
    color: #7fb088;
}

.footer-tagline {
    font-size: 0.9375rem;
    color: #8fb596;
    line-height: 1.65;
    max-width: 280px;
}

.footer-heading {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7fb088;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9375rem;
    color: #8fb596;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #f7f4ee;
}

.footer-address {
    font-style: normal;
    font-size: 0.9375rem;
    line-height: 1.8;
    color: #8fb596;
}

.footer-address a {
    color: #a8d5b2;
    transition: color 0.2s ease;
}

.footer-address a:hover {
    color: #f7f4ee;
}

.footer-bottom {
    border-top: 1px solid rgba(168, 213, 178, 0.12);
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: #6a8a72;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .inventory-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(247, 244, 238, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid rgba(26, 58, 42, 0.08);
        transform: translateY(-120%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        pointer-events: none;
    }

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

    .nav-toggle {
        display: flex;
    }

    .hero-content {
        padding: 100px 24px 60px;
    }

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

    .hero-stat-divider {
        width: 40px;
        height: 1px;
    }

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

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

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

    .about-grid,
    .location-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-accent {
        display: none;
    }

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

    .trust-badges {
        flex-direction: column;
        gap: 20px;
    }

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

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

    .contact-form-wrapper {
        padding: 28px;
    }
}

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

    .section {
        padding: 56px 0;
    }

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

    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
}
