/* ==========================================================================
   PSI Auto Detailing - Custom Stylesheet
   Color Palette: Charcoal, vibrant Orange, White & Silver accents
   ========================================================================== */

/* Modern CSS Reset & Variable Definitions */
:root {
    --bg-darker: #121416;
    --bg-dark: #1a1d20;
    --bg-card: #212529;
    --primary: #ff6a00;         /* High-energy automotive orange */
    --primary-hover: #e05d00;
    --text-light: #ffffff;
    --text-muted: #a0aec0;
    --text-silver: #cbd5e0;
    --border-color: #2d3748;
    --success: #2f855a;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

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

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-light);
    letter-spacing: -0.025em;
}

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

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

button, .btn {
    font-family: var(--font-sans);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    padding: 0.75rem 1.75rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.35);
}

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

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* ==========================================================================
   Navigation Bar (Header)
   ========================================================================== */
header {
    background-color: rgba(18, 20, 22, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.logo span.highlight {
    color: var(--primary);
}

.logo span.sub {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--text-silver);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.25rem;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-silver);
    position: relative;
    padding: 0.25rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-light);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-light);
    transition: var(--transition);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding: 6rem 1.5rem;
    position: relative;
    background: radial-gradient(circle at 80% 20%, #251e18 0%, var(--bg-dark) 60%);
    border-bottom: 1px solid var(--border-color);
}

.hero-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-silver);
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255,106,0,0.15) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
}

.hero-image {
    position: relative;
    z-index: 1;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.hero-image:hover {
    transform: scale(1.02);
}

/* ==========================================================================
   Features / Stats Section
   ========================================================================== */
.features-strip {
    background-color: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
    padding: 2.5rem 1.5rem;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.feature-item {
    padding: 1rem;
}

.feature-item h3 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   About / Description Section
   ========================================================================== */
.about {
    padding: 5rem 1.5rem;
    background-color: var(--bg-dark);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.about-content h2 span {
    color: var(--primary);
}

.about-content p {
    color: var(--text-silver);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.about-highlights {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.highlight-card {
    background-color: var(--bg-card);
    padding: 1.25rem;
    border-radius: 6px;
    border-left: 3px solid var(--primary);
}

.highlight-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.highlight-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.about-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.about-img-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.05);
}

.about-img {
    display: block;
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: var(--transition);
}

.about-img-container:hover .about-img {
    transform: scale(1.02);
}

.about-label {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    padding: 0.35rem 0.75rem;
    background: rgba(0, 0, 0, 0.75);
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 2;
}

.about-label.before {
    border-left: 3px solid #ff6a00;
}

.about-label.after {
    border-left: 3px solid #00ff6a;
}

/* ==========================================================================
   Services Section (Details of what business does)
   ========================================================================== */
.services {
    padding: 5rem 1.5rem;
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header h2 span {
    color: var(--primary);
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

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

.service-pricing-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem 1.25rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
}

.pricing-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pricing-row .vehicle-type {
    color: var(--text-silver);
    font-weight: 500;
}

.pricing-row .vehicle-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.service-card {
    background-color: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.02);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 106, 0, 0.2);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.service-img-wrapper {
    height: 200px;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

.service-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.service-desc {
    color: var(--text-silver);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.service-price span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.service-bullets {
    list-style: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.service-bullets li {
    font-size: 0.9rem;
    color: var(--text-silver);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-bullets li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
}

/* ==========================================================================
   Portfolio Showcase (Shared Styles and Portfolio Grid)
   ========================================================================== */
.portfolio-intro {
    padding: 5rem 1.5rem 2rem 1.5rem;
    background-color: var(--bg-dark);
}

.portfolio-grid-section {
    padding: 0 1.5rem 5rem 1.5rem;
    background-color: var(--bg-dark);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--bg-card);
    color: var(--text-silver);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary);
    color: var(--text-light);
    border-color: var(--primary);
}

.portfolio-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.portfolio-card {
    background-color: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.02);
    transition: var(--transition);
    position: relative;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.portfolio-img-container {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.05);
}

.portfolio-details {
    padding: 1.5rem;
}

.portfolio-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.portfolio-tag {
    background-color: rgba(255, 106, 0, 0.15);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.portfolio-car-badge {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.portfolio-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.portfolio-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Before and After slider in Portfolio Card */
.before-after-container {
    position: relative;
    height: 250px;
    width: 100%;
    overflow: hidden;
}

/* Responsive video wrapper inside Portfolio Card */
.portfolio-video-container {
    position: relative;
    height: 250px;
    width: 100%;
    overflow: hidden;
    background-color: #000;
}

.portfolio-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ba-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.ba-before {
    z-index: 1;
}

.ba-after {
    z-index: 2;
    width: 50%; /* Default cut-off point */
    border-right: 2px solid var(--primary);
}

.ba-label {
    position: absolute;
    bottom: 10px;
    padding: 0.25rem 0.5rem;
    background-color: rgba(0,0,0,0.7);
    color: white;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 2px;
    z-index: 3;
    pointer-events: none;
}

.ba-label.before {
    left: 10px;
}

.ba-label.after {
    right: 10px;
}

/* Standard HTML slider overlay for Before/After */
.ba-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 4;
    cursor: ew-resize;
}

.ba-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background-color: var(--primary);
    transform: translateX(-50%);
    z-index: 3;
    pointer-events: none;
}

.ba-handle::after {
    content: '↔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background-color: var(--primary);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    border: 2px solid white;
}


/* ==========================================================================
   Contact / Booking Section
   ========================================================================== */
.contact {
    padding: 5rem 1.5rem;
    background-color: var(--bg-darker);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.contact-info h2 span {
    color: var(--primary);
}

.contact-info p {
    color: var(--text-silver);
    margin-bottom: 2.5rem;
}

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-icon {
    background-color: rgba(255, 106, 0, 0.1);
    color: var(--primary);
    width: 42px;
    height: 42px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 106, 0, 0.2);
}

.info-text h4 {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.info-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Contact Form */
.contact-form-wrapper {
    background-color: var(--bg-card);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.02);
}

.contact-form-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-silver);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    padding: 0.85rem 1rem;
    border-radius: 4px;
    color: var(--text-light);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,106,0,0.15);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

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

.form-submit {
    width: 100%;
    margin-top: 1rem;
}

.form-success-msg {
    display: none;
    background-color: rgba(47, 133, 90, 0.15);
    border: 1px solid var(--success);
    color: #85e8b4;
    padding: 1.25rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
footer {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 4rem 1.5rem 2rem 1.5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr repeat(2, 0.75fr);
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.footer-brand h3 span {
    color: var(--primary);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    max-width: 320px;
}

.footer-brand .socials {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-silver);
    font-size: 0.9rem;
    font-weight: 700;
}

.social-link:hover {
    background-color: var(--primary);
    color: var(--text-light);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom-links a:hover {
    color: var(--text-light);
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-grid,
    .about-container,
    .contact-container {
        gap: 2.5rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .services-grid,
    .portfolio-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Navigation Menu Toggle */
    .mobile-toggle {
        display: flex;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-darker);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.25rem;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 15px rgba(0,0,0,0.3);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links .btn {
        width: 100%;
    }
    
    /* Layout Unstacking */
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content p {
        margin: 0 auto 2rem auto;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .about-images {
        order: -1; /* image on top for mobile */
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-ctas .btn {
        width: 100%;
    }
    
    .services-grid,
    .portfolio-container {
        grid-template-columns: 1fr;
    }
    
    .about-images {
        grid-template-columns: 1fr;
    }
    
    .about-img {
        height: 250px;
    }
}
