/* ==========================================================================
   1. CORE SYSTEM THEME & VARIABLES
   ========================================================================== */
:root {
    --bg-dark: #0f172a;
    --panel-bg: #1e293b;
    --accent-blue: #38bdf8;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --alert-amber: #f59e0b;
    --success-green: #10b981;
    --border-slate: #334155;
    --emerald-green: #34d399;
}

body {
    font-family: system-ui, sans-serif;
    margin: 0;
    background: var(--bg-dark);
    color: var(--text-light);
    padding-top: 60px;
}

.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.95)), url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?q=80&w=1200') center/cover;
    color: var(--text-light);
    padding: 4rem 2rem;
    text-align: center;
}

.btn {
    background: var(--accent-blue);
    color: #0f172a;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.6);
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    margin: 0.5rem;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.grid {
    display: flex;
    max-width: 1200px;
    margin: 2rem auto;
    gap: 1.5rem;
    padding: 0 1rem;
}

.card {
    background: var(--panel-bg);
    padding: 1.5rem;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.6);
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-content {
    text-align: left;
    margin-top: 1.5rem;
    background: rgba(15, 23, 42, 0.4);
    padding: 12px;
    border-radius: 6px;
    border: 1px solid var(--border-slate);
}

label {
    font-weight: bold;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    margin-top: 8px;
}

select, input, textarea {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    margin-bottom: 4px;
    box-sizing: border-box;
    background: var(--bg-dark);
    color: var(--text-light);
    border: 1px solid var(--border-slate);
    border-radius: 4px;
}

/* ==========================================================================
   2. RESPONSIVE APP NAVIGATION STYLES
   ========================================================================== */
.app-navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #0f172a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    z-index: 1000;
    box-sizing: border-box;
    border-bottom: 1px solid var(--border-slate);
}

.nav-branding {
    font-weight: bold;
    color: white;
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    gap: 15px;
}

.nav-item {
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 12px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

    .nav-item:hover {
        color: white;
    }

    .nav-item .nav-icon {
        display: none;
    }

    .nav-item.active {
        color: white;
        font-weight: bold;
        background: rgba(255, 255, 255, 0.1);
    }

/* ==========================================================================
   3. DYNAMIC SERVICES TABS STYLES
   ========================================================================== */
.services-container {
    max-width: 1100px;
    margin: 2rem auto 0 auto;
    padding: 0 1rem;
}

.tabs-nav {
    display: flex;
    flex-direction: column; /* Mobile stack first */
    gap: 0.5rem;
    background: var(--panel-bg);
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-slate);
}

.tab-btn {
    background: transparent;
    color: var(--text-muted);
    border: none;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    text-align: left;
    transition: all 0.2s ease;
}

    .tab-btn:hover {
        color: var(--text-light);
        background: rgba(56, 189, 248, 0.1);
    }

    .tab-btn.active {
        color: var(--bg-dark);
        background: var(--accent-blue);
    }

.tab-content {
    display: none;
    background: var(--panel-bg);
    border: 1px solid var(--border-slate);
    border-radius: 6px;
    padding: 1.5rem;
    margin-top: 0.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

    .tab-content.active {
        display: block;
    }

/* Split Page Main Workspace Layout Area */
.workspace-grid {
    display: flex;
    flex-direction: column;
    max-width: 1100px;
    margin: 0 auto 3rem auto;
    gap: 1.5rem;
    padding: 0 1rem;
}

.column-left {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.column-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Contact Sizing Adjustments */
.submit-btn {
    background: var(--emerald-green);
    color: var(--bg-dark);
    border: none;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

/* ==========================================================================
   4. MOBILE BREAKPOINT LAYOUT RULES
   ========================================================================== */
@media (max-width: 767px) {
    body {
        padding-top: 0;
        padding-bottom: 75px;
    }

    .app-navigation {
        top: auto;
        bottom: 0;
        height: 65px;
        padding: 0;
    }

    .nav-branding {
        display: none;
    }

    .nav-links {
        width: 100%;
        justify-content: space-around;
        gap: 0;
    }

    .nav-item {
        flex-direction: column;
        font-size: 0.75rem;
        padding: 8px 0;
        width: 33.33%;
        border-radius: 0;
        justify-content: center;
    }

        .nav-item .nav-icon {
            display: block;
            font-size: 1.3rem;
        }

    .grid {
        flex-direction: column;
    }
}

/* Desktop Grid Transformation Adjustments */
@media (min-width: 768px) {
    .tabs-nav {
        flex-direction: row; /* Horizontal row alignment */
        justify-content: space-around;
    }

    .tab-btn {
        flex: 1;
        text-align: center;
        padding: 0.75rem 1rem;
    }

    .workspace-grid {
        flex-direction: row; /* Split master columns side-by-side */
    }
}
/* ==========================================================================
   5. APP FOOTER & INTAKE AREA STYLES
   ========================================================================== */
.app-footer {
    background: var(--panel-bg);
    border-top: 1px solid var(--border-slate);
    margin-top: 4rem;
    padding: 3rem 0;
}

.footer-grid {
    display: flex;
    flex-direction: column;
    max-width: 1100px;
    margin: 0 auto;
    gap: 2.5rem;
    padding: 0 1rem;
}

.footer-column {
    flex: 1;
}

/* Adjustments for the footer layout transformation */
@media (min-width: 768px) {
    .footer-grid {
        flex-direction: row;
    }
}

@media (max-width: 767px) {
    .app-footer {
        margin-bottom: 65px; /* Prevents mobile bottom navbar overlay */
    }
}