/* Grey Cloak Consulting LLC - Global Styles
   Accessibility Standard: WCAG 2.1 AA Compliant 
*/

:root {
    --bg: #16181a;
    --surface: #24272b;
    --accent: #8ba4b9;
    --text-primary: #f0f0f0;
    --text-muted: #d5d5d5;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3 {
    margin: 0;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

h2 {
    border-left: 4px solid var(--accent);
    padding-left: 20px;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

p {
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.1px;
}

/* Sections */
section, .container {
    max-width: 900px;
    margin: 80px auto;
    padding: 0 40px;
}

/* Links & Buttons */
a {
    color: var(--accent);
    transition: 0.3s ease;
    text-decoration: underline; /* Standard for accessibility */
}

    a:hover, a:focus {
        color: var(--white);
        outline: 2px solid var(--accent);
        outline-offset: 4px;
    }

.btn {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

    .btn:hover, .btn:focus {
        background: var(--accent);
        color: var(--bg);
        text-decoration: none;
    }

/* Layout Specifics */
/* --- REFINED FOOTER --- */

.site-footer {
    padding: 60px 20px;
    background-color: #0f1112; /* Slightly darker than the main BG */
    border-top: 1px solid var(--surface);
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Essential for mobile stacking */
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 300;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

    .footer-link:hover, .footer-link:focus {
        color: var(--accent);
        text-decoration: underline;
    }

.footer-separator {
    color: #3d4146; /* Dimmer than the text */
}

/* Mobile Footer Fix */
@media (max-width: 600px) {
    .footer-container {
        flex-direction: column; /* Stacks vertically */
        gap: 8px;
    }

    .footer-separator {
        display: none; /* Hides the pipe on phones for a cleaner look */
    }
}

header {
    /* Removed min-height: 80vh to eliminate the huge empty gaps */
    background: linear-gradient(rgba(22, 24, 26, 0.9), rgba(22, 24, 26, 0.95)), url('banner-background.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Uses padding instead of height for a tighter fit */
    padding: 80px 20px;
    border-bottom: 1px solid #25282c;
}

.hero-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
}

.hero-logo {
    width: 160px; /* Slightly smaller for better balance */
    height: auto;
    flex-shrink: 0;
}

.hero-text {
    text-align: left;
}

.brand-name {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 2px; /* Reduced for a tighter, more modern look */
    margin: 0;
    line-height: 0.9;
    white-space: nowrap;
    color: var(--white);
}

.brand-suffix {
    font-size: 1.05rem; /* Slightly smaller font */
    font-weight: 400;
    color: var(--accent);
    margin-top: 5px;
    text-transform: uppercase;
    /* Recalculated spacing to match GREY CLOAK width */
    letter-spacing: 0.8em;
    display: block;
    width: 100%;
}

.tagline {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid var(--surface);
    max-width: 450px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
}

/* --- MOBILE SPECIFIC FIXES --- */
@media (max-width: 600px) {
    header {
        padding: 40px 15px; /* Even tighter padding for phones */
    }

    .hero-container {
        gap: 20px;
    }

    .hero-logo {
        width: 70px; /* Smaller logo for the side-by-side mobile view */
    }

    .brand-name {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .brand-suffix {
        font-size: 0.58rem;
        letter-spacing: 0.75em; /* Adjusted for mobile scale */
        margin-top: 4px;
    }

    .tagline {
        font-size: 0.7rem;
        margin-top: 15px;
        padding-top: 10px;
    }
}

/* --- SERVICES GRID REFINEMENT --- */

.services-grid {
    display: grid;
    /* Default: 1 column for mobile */
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .services-grid {
        /* Force exactly two columns of equal width */
        grid-template-columns: 1fr 1fr;
        /* Max width ensures the grid doesn't get too wide on ultra-wide monitors */
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }
}

.service-card {
    background: var(--surface);
    padding: 40px;
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    /* Ensures all cards in a row have the same height */
    height: 100%;
}

    .service-card h3 {
        color: var(--accent);
        font-size: 1.1rem;
        margin-bottom: 15px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .service-card p {
        margin: 0;
        font-size: 0.95rem;
        line-height: 1.6;
    }
