/* Base Styles & Typography */
:root {
    --bg-dark: #0a0a0a;
    --bg-card: #151515;
    --accent-blue: #007bff;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

body.modal-open {
    overflow: hidden;
}

/* Header & Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: rgba(10, 10, 10, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #222;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    font-style: italic;
}

.logo-gt { color: var(--text-main); }
.logo-pro { color: var(--accent-blue); }

nav a {
    color: var(--text-main);
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

nav a:hover { color: var(--accent-blue); }

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-block;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: #fff;
    border: 2px solid var(--accent-blue);
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0069d9;
}

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

.btn-secondary:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 140px 50px;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-dark);
    background-image: url('hero-bg.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero h2 {
    color: var(--accent-blue);
    margin-bottom: 20px;
}

.hero p {
    max-width: 600px;
    margin: 0 auto 30px auto;
    color: #ffffff;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Services */
.services, .maintenance {
    padding: 80px 50px;
    text-align: center;
}

.services h3, .maintenance h3 {
    font-size: 2rem;
    margin-bottom: 40px;
}

.service-grid, .plan-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.service-card, .plan-card {
    background-color: var(--bg-card);
    padding: 40px 30px;
    border-radius: 8px;
    width: 30%;
    min-width: 300px;
    border-top: 4px solid var(--bg-card);
    transition: 0.3s;
}

.service-card:hover, .plan-card.featured {
    border-top: 4px solid var(--accent-blue);
}

.service-card h4, .plan-card h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--accent-blue);
}

/* Maintenance Plans */
.plan-card ul {
    list-style: none;
    text-align: left;
    margin-top: 20px;
}

.plan-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid #333;
    font-size: 0.9rem;
}

.frequency {
    font-weight: bold;
    color: var(--text-main);
}

/* Footer */
footer {
    background-color: #050505;
    padding: 50px;
    border-top: 1px solid #222;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info p {
    color: var(--text-muted);
    margin: 5px 0;
}

.footer-book-btn {
    margin-top: 20px;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* =========================================
   BOOKING MODAL
   ========================================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.is-open {
    display: flex;
}

.modal {
    background-color: var(--bg-card);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 36px 32px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-main);
}

.modal h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.modal-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

#booking-form label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
    color: var(--text-muted);
}

#booking-form input,
#booking-form select,
#booking-form textarea {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 18px;
    background-color: #0f0f0f;
    border: 1px solid #333;
    border-radius: 4px;
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
}

#booking-form input:focus,
#booking-form select:focus,
#booking-form textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
}

#booking-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a0a0a0' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

#booking-form textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    width: 100%;
    text-align: center;
    margin-top: 4px;
}

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1f8f4e;
    color: #fff;
    padding: 14px 24px;
    border-radius: 4px;
    z-index: 1100;
    font-size: 0.95rem;
    text-align: center;
    max-width: 90%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.toast[hidden] {
    display: none;
}

/* =========================================
   MOBILE RESPONSIVENESS (MEDIA QUERIES)
   ========================================= */

@media screen and (max-width: 768px) {
    /* Header & Navigation */
    header {
        flex-direction: column;
        padding: 15px 20px;
        text-align: center;
    }

    nav {
        margin: 15px 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    nav a {
        margin: 0;
    }

    /* Hero Section */
    .hero {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .hero-buttons a,
    .hero-buttons button {
        width: 100%;
    }

    /* Layout Grids (Services & Maintenance) */
    .services, .maintenance {
        padding: 50px 20px;
    }

    .service-grid, .plan-grid {
        flex-direction: column;
        align-items: center;
    }

    .service-card, .plan-card {
        width: 100%;
        min-width: unset;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    footer {
        padding: 40px 20px;
    }

    .modal {
        padding: 28px 20px;
    }
}
