/* =====================================================
   AUTO SHINE - Premium Minimalistic Design System
   Colors: Black #0D0D0D | White #FFFFFF | Gold #B8860B
   ===================================================== */

:root {
    --black: #0D0D0D;
    --dark: #1A1A1A;
    --gray: #6B6B6B;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --gold: #8B6914;
    --gold-dark: #8B6914;
    --gold-light: #E8D48B;
    --border: #E5E5E5;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    /* Only animate GPU-friendly properties (fixes CLS) */
    --transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                  box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                  opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--black);
}

a {
    text-decoration: none;
    color: inherit;
    /* No transition here - prevents layout shifts */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--shadow);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.2rem;
}

.logo span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--dark);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--black);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}

.btn-primary {
    background: var(--black);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-gold {
    background: var(--gold);
    color: var(--black);
}

.btn-gold:hover {
    background: var(--gold-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--black);
    color: var(--black);
}

.btn-outline:hover {
    background: var(--black);
    color: var(--white);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--black);
    margin: 5px 0;
    transition: transform 0.3s ease;
}

/* ========== HERO ========== */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #FAFAFA 0%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-content h1 span {
    color: var(--gold);
}

.hero-content .tagline {
    font-size: 1.15rem;
    color: var(--gray);
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    aspect-ratio: 16 / 10;
    min-height: 280px;
    background-color: #f5f5f5;
}
.hero-image img {
    border-radius: 16px;
    box-shadow: var(--shadow-hover);
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 10;
    display: block;
}

.hero-badge {
    position: absolute;
    bottom: -20px;
    left: 20px;
    background: var(--black);
    color: var(--white);
    padding: 16px 24px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    min-height: 72px;
    min-width: 160px;
    box-sizing: border-box;
}

.hero-badge span {
    color: var(--gold);
    display: block;
    font-size: 1.4rem;
    font-family: 'Playfair Display', Georgia, serif;
}

/* ========== SECTIONS ========== */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header .label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #6B4F0A;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 16px;
}

.section-header p {
    color: var(--gray);
    font-size: 1.05rem;
}

/* ========== SERVICES ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-hover);
    transform: translateY(-6px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--light-gray);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.service-price {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--black);
}

.service-price small {
    font-size: 0.9rem;
    color: var(--gray);
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 400;
}

/* ========== WHY US ========== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.why-item {
    text-align: center;
    padding: 32px 20px;
}

.why-item .num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    color: #6B4F0A;
    margin-bottom: 12px;
}

.why-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.why-item p {
    font-size: 0.9rem;
    color: var(--gray);
}

/* ========== GALLERY ========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,13,13,0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
}

/* ========== ABOUT ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.about-image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.about-content h2 {
    font-size: 2.4rem;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--gray);
    margin-bottom: 16px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 36px;
}

.stat h3 {
    font-size: 2.2rem;
    color: var(--gold);
}

.stat p {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0;
}

/* ========== PRICING ========== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.price-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.price-card.featured {
    border-color: var(--gold);
    box-shadow: var(--shadow-hover);
    transform: scale(1.03);
}

.price-card.featured::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--black);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 6px 16px;
    border-radius: 20px;
}

.price-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.price-card.featured:hover {
    transform: scale(1.03) translateY(-6px);
}

.price-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.price-card .price {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--black);
    margin: 20px 0;
}

.price-card .price small {
    font-size: 1rem;
    color: var(--gray);
    font-family: 'Inter', system-ui, sans-serif;
}

.price-card ul {
    list-style: none;
    margin: 28px 0;
    text-align: left;
}

.price-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-card ul li::before {
    content: '✓';
    color: var(--gold);
    font-weight: 700;
}

/* ========== BOOKING FORM ========== */
.form-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--white);
    color: var(--dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.alert-success {
    background: #F0FDF4;
    color: #166534;
    border: 1px solid #BBF7D0;
}

.alert-error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* ========== CONTACT ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
}

.contact-info h3 {
    font-size: 1.6rem;
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.contact-item .icon {
    width: 48px;
    height: 48px;
    background: var(--light-gray);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    max-width: 280px;
}

.footer h4 {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 20px;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul a {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.footer ul a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* ========== PAGE HERO ========== */
.page-hero {
    padding: 140px 0 60px;
    background: var(--light-gray);
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin-bottom: 12px;
}

.page-hero p {
    color: var(--gray);
    font-size: 1.1rem;
}

/* ========== ADMIN ========== */
.admin-body {
    background: #F8F8F8;
    min-height: 100vh;
}

.admin-login {
    max-width: 400px;
    margin: 100px auto;
    background: white;
    padding: 48px 40px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.admin-header {
    background: var(--black);
    color: white;
    padding: 16px 0;
}

.admin-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.admin-table th {
    background: var(--light-gray);
    font-weight: 600;
    color: var(--dark);
}

.status-pending { color: #D97706; font-weight: 600; }
.status-confirmed { color: #059669; font-weight: 600; }
.status-completed { color: #2563EB; font-weight: 600; }
.status-cancelled { color: #DC2626; font-weight: 600; }

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .hero-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .why-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .price-card.featured {
        transform: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-image {
        aspect-ratio: 16 / 10;
        min-height: 280px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}