/* 
  Catalytic Auto Detail - Design System
  Theme: Premium Dark, High Contrast, Sleek
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --surface: #0a0a0a;
    --section-bg: #121212;
    --accent: #0dcaf0;
    --accent-glow: rgba(13, 202, 240, 0.4);
    --text-high: #ffffff;
    --text-med: #a0a0a0;
    --text-low: #666666;
    --border: #1f1f1f;
    --card-bg: #181818;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-s: 1rem;
    --space-m: 2rem;
    --space-l: 4rem;
    --space-xl: 6rem;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-main: 0 10px 30px rgba(0, 0, 0, 0.5);
    
    /* Border Radius */
    --radius-s: 8px;
    --radius-m: 16px;
    --radius-l: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--surface);
    color: var(--text-high);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* --- Layout Utils --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-s); /* Smaller padding for mobile */
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-m);
    }
}

.section {
    padding: var(--space-xl) 0;
}

.section-alt {
    padding: var(--space-xl) 0;
    background: var(--section-bg);
}

/* --- Page Header --- */
.page-header {
    background: linear-gradient(rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 0.8)), url('images/hero.png') center/cover no-repeat;
    padding: var(--space-xl) 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
    margin-top: 80px; /* Offset for nav */
}

.page-header h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: var(--space-s);
}

.page-header h1 span {
    color: var(--accent);
}

.page-header p {
    color: var(--text-med);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-l);
}

.section-title h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--space-s);
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title .divider {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 0 auto;
    border-radius: 2px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: var(--radius-s);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-high);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(13, 202, 240, 0.05);
}

/* --- Glassmorphism --- */
.glass {
    background: rgba(24, 24, 24, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: fadeInUp 0.8s ease forwards;
}

/* --- Navigation --- */
/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    height: 70px; /* Slimmer for mobile */
    transition: var(--transition);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.25rem;
    letter-spacing: 1px;
    z-index: 1001; /* Stay above menu */
}

.logo span {
    color: var(--accent);
    font-weight: 800;
}

/* Hamburger Toggle */
.nav-toggle {
    display: flex;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.hamburger {
    position: relative;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: #fff;
    left: 0;
    transition: var(--transition);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Toggle Active State */
.nav.menu-open .hamburger {
    background: transparent;
}

.nav.menu-open .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav.menu-open .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Nav Links - Mobile Drawer */
.nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-m);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: var(--space-xl) var(--space-m);
}

.nav.menu-open .nav-links {
    right: 0;
}

.nav-links a {
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-links .btn {
    width: 100%;
    max-width: 250px;
}

/* Navigation - Desktop */
@media (min-width: 768px) {
    .nav {
        height: 80px;
    }

    .logo {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .nav-toggle {
        display: none;
    }

    .nav-links {
        position: static;
        flex-direction: row;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
        gap: var(--space-m);
    }

    .nav-links a {
        font-size: 1rem;
    }

    .nav-links .btn {
        width: auto;
    }
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: url('images/hero.png') center/cover no-repeat;
    padding: var(--space-xl) 0;
    text-align: center; /* Center for mobile */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0.6));
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero h1 {
    font-size: clamp(2.5rem, 10vw, 5rem);
    line-height: 1.1;
    margin-bottom: var(--space-s);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-med);
    margin: 0 auto var(--space-m);
    max-width: 600px;
}

.hero-btns {
    display: flex;
    flex-direction: column; /* Stack for mobile */
    gap: var(--space-s);
    align-items: center;
}

.hero-btns .btn {
    width: 100%;
    max-width: 280px;
}

@media (min-width: 768px) {
    .hero {
        text-align: left;
        padding: 0;
    }

    .hero-overlay {
        background: linear-gradient(to right, rgba(0,0,0,0.9) 20%, rgba(0,0,0,0.4));
    }

    .hero-content {
        max-width: 800px;
    }

    .hero p {
        font-size: 1.25rem;
        margin-left: 0;
    }

    .hero-btns {
        flex-direction: row;
    }

    .hero-btns .btn {
        width: auto;
    }
}

/* --- Services --- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-m);
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

.service-card {
    padding: var(--space-m);
    border-radius: var(--radius-m);
    text-align: left;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.service-card.popular {
    border: 2px solid var(--accent);
}

.popular-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: #000;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    text-transform: uppercase;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: var(--space-s);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-s);
}

.service-list li i {
    color: var(--accent);
    margin-right: 8px;
}

/* --- Detailed Services --- */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-l);
}

.package-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-m);
    margin-top: var(--space-m);
}

@media (min-width: 768px) {
    .package-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

.package-card {
    padding: var(--space-m);
    border-radius: var(--radius-m);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.package-card h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.package-card .price {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.package-card .time {
    display: block;
    font-size: 0.875rem;
    color: var(--text-low);
    margin-bottom: var(--space-m);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.package-card ul li {
    margin-bottom: 0.5rem;
    color: var(--text-med);
    padding-left: 1.5rem;
    position: relative;
}

.package-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.package-card.highlight {
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}

/* --- Ceramic Grid --- */
.ceramic-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-m);
    margin-top: var(--space-l);
}

@media (min-width: 768px) {
    .ceramic-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.ceramic-card {
    padding: var(--space-l);
    text-align: center;
    border-radius: var(--radius-m);
}

.ceramic-card h4 {
    font-size: 1.75rem;
    margin-bottom: var(--space-m);
    color: var(--accent);
}

.ceramic-card p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.ceramic-card p span {
    font-weight: 800;
    font-size: 1.25rem;
}

.active-glow {
    border-color: var(--accent) !important;
    box-shadow: 0 0 50px var(--accent-glow);
}

/* --- Addons Grid --- */
.addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-m);
    margin-top: var(--space-m);
}

.addon-item {
    padding: var(--space-m);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-s);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.addon-item i {
    font-size: 1.5rem;
    color: var(--accent);
}

.addon-item:hover {
    background: rgba(13, 202, 240, 0.1);
    border-color: var(--accent);
}

/* --- Infinite Gallery --- */
.gallery-section {
    padding: var(--space-xl) 0;
    background: var(--surface);
    overflow: hidden;
}

.gallery-container {
    width: 100%;
    position: relative;
    cursor: grab;
}

.gallery-container:active {
    cursor: grabbing;
}

.gallery-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: marquee 60s linear infinite;
    padding: 20px 0;
}

.gallery-track:hover {
    animation-play-state: paused;
}

.gallery-item {
    width: 350px;
    height: 450px;
    flex-shrink: 0;
    border-radius: var(--radius-m);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-350px * 20 - 20px * 20)); }
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
}

.lightbox-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-s);
    box-shadow: 0 0 50px rgba(0,0,0,1);
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    z-index: 2001;
    transition: var(--transition);
}

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

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    pointer-events: none;
}

.lightbox-nav button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    pointer-events: auto;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav button:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

/* --- Testimonials --- */
.reviews-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-bottom: var(--space-m);
}

.reviews-track {
    display: flex;
    gap: var(--space-m);
    width: max-content;
    animation: marquee-reviews 40s linear infinite;
    padding: 20px;
}

.reviews-track:hover {
    animation-play-state: paused;
}

.review-card {
    width: 300px; /* Smaller for mobile */
    padding: var(--space-m);
    border-radius: var(--radius-m);
    flex-shrink: 0;
    transition: var(--transition);
}

@media (min-width: 768px) {
    .review-card {
        width: 450px;
    }
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.stars {
    color: #ffc107;
    margin-bottom: var(--space-s);
}

.review-card p {
    font-style: italic;
    color: var(--text-med);
    margin-bottom: var(--space-s);
}

.reviewer {
    font-weight: 700;
    color: var(--accent);
}

.border-accent {
    border-color: var(--accent);
}

@keyframes marquee-reviews {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-450px * 4 - var(--space-m) * 4)); }
}

/* --- Footer --- */
.footer {
    background: var(--section-bg);
    padding: var(--space-xl) 0 var(--space-m);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-m);
    margin-bottom: var(--space-l);
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-xl);
    }
}

.logo-small span {
    color: var(--accent);
}

.footer-contact h4, .footer-links h4 {
    margin-bottom: var(--space-s);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
    color: #fff;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    color: var(--text-med);
    font-size: 0.95rem;
}

.footer-contact i {
    width: 24px;
    color: var(--accent);
}

.footer-hours li {
    display: flex;
    justify-content: space-between;
    color: var(--text-med);
    margin-bottom: 0.5rem;
}

.copy {
    text-align: center;
    padding-top: var(--space-m);
    border-top: 1px solid var(--border);
    color: var(--text-low);
    font-size: 0.875rem;
}

.attribution {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    opacity: 0.8;
}

.attribution a {
    color: var(--accent);
    text-decoration: underline;
}

.attribution a:hover {
    color: #fff;
}

/* --- Responsive --- */
/* --- Booking Modal --- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.modal-container {
    position: relative;
    width: 95%; /* Slightly wider on mobile */
    max-width: 1000px;
    max-height: 90vh;
    border-radius: var(--radius-m); /* Slightly smaller radius for mobile */
    overflow-y: auto; /* Allow scrolling for long content */
    z-index: 1;
    box-shadow: 0 0 100px rgba(0, 10, 20, 0.8);
}

@media (min-width: 768px) {
    .modal-container {
        width: 90%;
        border-radius: var(--radius-l);
        overflow: hidden; /* Desktop can handle fixed height better */
    }
}

.close-modal {
    position: absolute;
    top: 15px; /* Tighter for mobile */
    right: 15px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    z-index: 100; /* Ensure it stays on top of scrolled content */
    transition: var(--transition);
    background: rgba(0,0,0,0.5); /* Semi-transparent bg for visibility over map/images */
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

@media (min-width: 768px) {
    .close-modal {
        top: 20px;
        right: 25px;
        font-size: 2.5rem;
        background: transparent;
    }
}

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

.modal-grid {
    display: grid;
    grid-template-columns: 1fr; /* Stack on mobile */
}

@media (min-width: 768px) {
    .modal-grid {
        grid-template-columns: 1fr 1.2fr;
        min-height: 500px;
    }
}

.modal-info {
    padding: var(--space-s); /* Smaller padding for mobile-first */
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-s); /* Consistent spacing */
}

@media (min-width: 768px) {
    .modal-info {
        padding: var(--space-l);
        gap: var(--space-m);
    }
}

.modal-info h2 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    margin-bottom: var(--space-s);
}

.modal-info h2 span {
    color: var(--accent);
}

.modal-address {
    font-size: 1rem;
    color: var(--text-med);
    margin-bottom: var(--space-xs);
}

.modal-hours {
    margin-bottom: var(--space-m);
    background: rgba(255, 255, 255, 0.05);
    padding: 12px; /* Tighter for mobile */
    border-radius: var(--radius-m);
}

.modal-hours h4 {
    margin-bottom: 0.5rem;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
}

.modal-hours ul li {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
}

.modal-actions {
    margin-top: var(--space-s);
}

.btn-large {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
}

.modal-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-low);
    text-align: center;
}

.modal-map {
    height: 250px; /* Slightly shorter default for mobile */
    background: #000;
}

@media (min-width: 768px) {
    .modal-map {
        height: auto;
        min-height: 500px;
    }
}
