/* --- Great Slab Productions Master Design System --- */
:root {
    --bg-main: #0a0a0b;
    --bg-card: #121214;
    --border-color: #222226;
    --text-primary: #ffffff;
    --text-secondary: #8e8e93;
    --accent: #4a5568;
    --accent-hover: #a0aec0;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    padding: 0 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 0;
}

/* --- Navigation --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding: 25px 0;
    margin-bottom: 60px;
}

nav .logo-container img {
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* --- Typography & Layout --- */
h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
    line-height: 1.1;
}

p.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
}

h2 {
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 4px;
}

.card h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- CTA Buttons & Submits --- */
.btn {
    display: inline-block;
    background: var(--text-primary);
    color: var(--bg-main);
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.2s ease;
}

.btn:hover {
    background: var(--accent-hover);
}

/* --- Pro Intake Form Styling --- */
form {
    margin-top: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 4px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 600;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-hover);
}

form .btn {
    border: none;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

footer {
    margin-top: 100px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Mobile Safety Patch (Fixes Horizontal Scroll) --- */
@media (max-width: 768px) {
    body {
        padding: 0 15px; /* Slightly tighter padding to maximize screen space */
        overflow-x: hidden; /* Hard block against unexpected side scrolling */
    }

    .container {
        padding: 40px 0; /* Brings the huge 80px top/bottom padding down to a sensible size on phones */
        width: 100%;
    }

    h1 {
        font-size: 2rem; /* Drops the massive 2.8rem text down so words don't clip and force the screen wide */
    }

    nav {
        flex-direction: column; /* Stacks the logo above the links instead of crushing them sideways */
        gap: 15px;
        padding: 15px 0;
        margin-bottom: 30px;
    }

    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center; /* Centers navigation links on mobile */
    }

    .grid {
        grid-template-columns: 1fr; /* Forces cards to stack vertically in a clean single column */
        gap: 20px;
        margin-top: 20px;
    }

    form {
        padding: 20px; /* Gives you more internal space inside the forms on narrow displays */
    }
}
