/* ========================================
   Gordons Auto Salon — Styles
   Emerald Green + Cream Palette
   ======================================== */

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

:root {
    --emerald-950: #022c22;
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --emerald-100: #d1fae5;
    --emerald-50:  #ecfdf5;
    
    --cream-50:  #fefdf8;
    --cream-100: #fefce8;
    --cream-200: #fef9c3;
    --cream-300: #fef08a;
    
    --stone-950: #0c0a09;
    --stone-900: #1c1917;
    --stone-800: #292524;
    --stone-700: #44403c;
    --stone-600: #57534e;
    --stone-500: #78716c;
    --stone-400: #a8a29e;
    --stone-300: #d6d3d1;
    --stone-200: #e7e5e4;
    --stone-100: #f5f5f4;
    --stone-50:  #fafaf9;
    
    --white: #ffffff;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--stone-800);
    background-color: var(--cream-50);
    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 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(6, 95, 70, 0.08);
    transition: var(--transition);
}

.nav.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo-mark {
    width: 36px;
    height: 36px;
    background: var(--emerald-800);
    color: var(--white);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.nav-logo-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--stone-900);
    letter-spacing: -0.01em;
}

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

.nav-links a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--stone-600);
    transition: var(--transition);
    letter-spacing: 0.01em;
}

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

.nav-cta {
    background: var(--emerald-800);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--emerald-700);
    color: var(--white) !important;
    transform: translateY(-1px);
}

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

.nav-toggle span {
    width: 22px;
    height: 1.5px;
    background: var(--stone-700);
    transition: var(--transition);
    display: block;
}

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(2, 44, 34, 0.97);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

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

.mobile-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--cream-100);
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
}

.mobile-close:hover {
    color: var(--white);
    transform: rotate(90deg);
}

.mobile-menu-content {
    text-align: center;
}

.mobile-link {
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--cream-100);
    padding: 16px 0;
    transition: var(--transition);
}

.mobile-link:hover {
    color: var(--emerald-400);
}

.mobile-divider {
    width: 48px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 24px auto;
}

.mobile-phone {
    display: block;
    font-size: 1.25rem;
    color: var(--emerald-400);
    padding: 8px 0;
    font-weight: 500;
}

.mobile-email {
    display: block;
    font-size: 0.95rem;
    color: var(--stone-400);
    padding: 8px 0;
}

.mobile-address {
    margin-top: 24px;
    font-size: 0.875rem;
    color: var(--stone-500);
    line-height: 1.8;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: 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(2, 44, 34, 0.92) 0%,
        rgba(6, 78, 59, 0.85) 40%,
        rgba(4, 120, 87, 0.75) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    width: 100%;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--emerald-300);
    margin-bottom: 24px;
}

.hero-label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--emerald-400);
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--white);
    max-width: 720px;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

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

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.7);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 40px;
    font-weight: 300;
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-sans);
    letter-spacing: 0.01em;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--emerald-600);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--emerald-500);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(5, 150, 105, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-dark {
    background: var(--stone-900);
    color: var(--white);
}

.btn-dark:hover {
    background: var(--stone-800);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: var(--stone-700);
    border: 1px solid var(--stone-300);
}

.btn-outline-light:hover {
    border-color: var(--emerald-600);
    color: var(--emerald-700);
}

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

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

/* --- Floating Stat Cards --- */
.hero-stats {
    position: absolute;
    bottom: 60px;
    right: 24px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 200px;
    color: var(--white);
}

.stat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.stat-value {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--white);
}

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

/* --- Section Common --- */
.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--emerald-700);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--stone-900);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--stone-500);
    max-width: 540px;
    line-height: 1.7;
}

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

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

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

.service-card {
    background: var(--white);
    border: 1px solid var(--stone-200);
    border-radius: 16px;
    padding: 40px 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--emerald-600);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    border-color: var(--emerald-200);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(6, 95, 70, 0.08);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 400;
    color: var(--emerald-100);
    line-height: 1;
    margin-bottom: 20px;
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--emerald-50);
    color: var(--emerald-700);
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--emerald-700);
    color: var(--white);
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--stone-900);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--stone-500);
    line-height: 1.7;
}

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

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

.about-image {
    position: relative;
}

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

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: var(--emerald-100);
    border-radius: 20px;
    z-index: -1;
}

.about-content {
    max-width: 480px;
}

.about-text {
    font-size: 1rem;
    color: var(--stone-600);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 32px 0 40px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--stone-700);
    font-weight: 400;
}

.about-feature svg {
    color: var(--emerald-600);
    flex-shrink: 0;
}

/* --- Gallery --- */
.gallery {
    padding: 120px 0;
    background: var(--cream-50);
}

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

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 3/2;
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 44, 34, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* --- CTA --- */
.cta {
    padding: 120px 0;
    background: var(--emerald-900);
}

.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.cta-content {
    max-width: 480px;
}

.cta .section-tag {
    color: var(--emerald-400);
}

.cta-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--white);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

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

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

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

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-desc {
    font-size: 1rem;
    color: var(--stone-500);
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--emerald-50);
    color: var(--emerald-700);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--stone-400);
    margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
    font-size: 0.95rem;
    color: var(--stone-700);
    line-height: 1.6;
}

.contact-item a:hover {
    color: var(--emerald-700);
}

.contact-map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* --- Contact Form --- */
.contact-form-wrap {
    background: var(--stone-50);
    border: 1px solid var(--stone-200);
    border-radius: 20px;
    padding: 48px;
}

.form-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--stone-900);
    margin-bottom: 32px;
    letter-spacing: -0.01em;
}

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

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--stone-500);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--stone-200);
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--stone-900);
    background: var(--white);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--emerald-600);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

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

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

.form-success {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--emerald-50);
    border: 1px solid var(--emerald-200);
    border-radius: 10px;
    color: var(--emerald-800);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 16px;
}

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

.form-success svg {
    color: var(--emerald-600);
    flex-shrink: 0;
}

/* --- Footer --- */
.footer {
    background: var(--stone-900);
    color: var(--stone-400);
    padding: 80px 0 0;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo-mark {
    width: 36px;
    height: 36px;
    background: var(--emerald-700);
    color: var(--white);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.footer-logo-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--white);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--stone-500);
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--stone-400);
    margin-bottom: 20px;
}

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

.footer-links a {
    font-size: 0.9rem;
    color: var(--stone-500);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--emerald-400);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-contact a {
    font-size: 0.9rem;
    color: var(--stone-500);
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--emerald-400);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--stone-600);
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        gap: 48px;
    }
    
    .hero-stats {
        position: relative;
        bottom: auto;
        right: auto;
        justify-content: flex-start;
        margin-top: 48px;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .stat-card {
        min-width: 160px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }
    
    .hero-content {
        padding: 120px 24px 60px;
    }
    
    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-stats {
        flex-direction: column;
    }
    
    .stat-card {
        min-width: auto;
        width: 100%;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image img {
        height: 400px;
    }
    
    .about-image-accent {
        display: none;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-card {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }
    
    .cta-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-actions .btn {
        justify-content: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-form-wrap {
        padding: 32px 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        justify-content: center;
        width: 100%;
    }
    
    .section-header {
        margin-bottom: 48px;
    }
    
    .services,
    .about,
    .gallery,
    .cta,
    .contact {
        padding: 80px 0;
    }
}

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