/* 
 * Koality Auto - "Top Notch" Auto Body Sytlesheet
 * Palette: Red (Primary), Black (Secondary), White/Light Grey (Neutral)
 */

:root {
    --primary-red: #bb1818;
    /* Derived from poster */
    --hover-red: #9e1212;
    --text-dark: #1a1a1a;
    --text-light: #f5f5f5;
    --bg-light: #ffffff;
    --bg-off-white: #f8f9fa;
    --accent-grey: #e0e0e0;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.15);

    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-red);
    margin: 10px auto 0;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #444;
    /* Darker and solid for better readability */
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--primary-red);
    color: white;
    border: 2px solid var(--primary-red);
}

.btn-primary:hover {
    background-color: var(--hover-red);
    border-color: var(--hover-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(187, 24, 24, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--text-dark);
    transform: translateY(-2px);
}

/* --- Header --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 60px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-dark);
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    color: #444;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--primary-red);
}

.cta-phone {
    display: flex;
    align-items: center;
    gap: 15px;
}

.phone-number {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
}

.phone-icon {
    color: var(--primary-red);
    font-size: 1.2rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: 0.3s;
}

/* --- Hero Section --- */
.hero {
    /* Using a dark gradient overlay on a placeholder car image */
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.75)), url('https://images.unsplash.com/photo-1548611716-adbc487f65d2?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

/* Koala Watermark */
/* Koala Watermark */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: url('assets/images/logo_no_text.png') no-repeat center center;
    background-size: 90%;
    /* Zoom adjusted per user request */
    opacity: 0.15;
    /* Adjust for blend mode */
    z-index: 1;
    pointer-events: none;

    /* 
     * Strategy to remove grey background box:
     * 1. High brightness (3) turns light grey bg -> pure white (0 lines stay 0)
     * 2. High contrast helps separate any noise
     * 3. Invert turns pure white bg -> pure black
     * 4. Screen blend mode makes pure black transparent
     */
    filter: grayscale(100%) brightness(3) contrast(300%) invert(1);
    mix-blend-mode: screen;
}

.hero-content {
    max-width: 800px;
    animation: fadeIn 1s ease-out;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* --- Services Section --- */
.services {
    padding: 60px 5%;
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding-top: 20px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: 0.3s;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-bottom-color: var(--primary-red);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
}

/* --- About / Why Choose Us --- */
.about {
    padding: 80px 5%;
    background-color: var(--bg-off-white);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1 1 400px;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
}

.about-text {
    flex: 1 1 400px;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.feature-list {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.check-icon {
    color: var(--primary-red);
    font-weight: bold;
    font-size: 1.2rem;
}

/* --- Image Gallery Callout (Poster) --- */
.poster-showcase {
    padding: 80px 5%;
    text-align: center;
}

.poster-img {
    max-width: 100%;
    max-height: 600px;
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    margin-top: 30px;
}

/* --- Contact/Footer --- */
footer {
    background-color: #111;
    color: white;
    padding: 60px 5% 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--primary-red);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #ccc;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #777;
}

.contact-highlight {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Add JS toggle later */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .cta-phone {
        display: none;
        /* Hide phone in header on mobile to save space, rely on hero CTA */
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Utility Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}