/* =========================================
   THE COMMONS AGENCY - PRODUCTION CSS
========================================= */

:root {
    /* --- Dark Mode Variables --- */
    --bg-color: #050505;       /* Void Black */
    --card-bg: #111111;        /* Dark Charcoal */
    --card-hover: #161616;     /* Slightly lighter on hover */
    --text-main: #FFFFFF;      /* Pure White */
    --text-muted: #9CA3AF;     /* Cool grey */
    --accent-green: #27AE60;   /* Vibrant Tech Green */
    --accent-blue: #3B82F6;    /* Vibrant Tech Blue */
    --red-tape: #EF4444;       /* Glowing Red */
    --font-primary: 'DM Sans', sans-serif;
    --watermark-opacity: 0.05; /* Subtle watermark */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* The "Matrix" Gradient: Black to Forest Green */
    background: linear-gradient(to bottom, #050505 10%, #142920 100%);
    background-attachment: fixed; 
    color: var(--text-main);
    font-family: var(--font-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-weight: 700; 
    letter-spacing: -0.04em; 
    color: var(--text-main);
}

a { text-decoration: none; color: inherit; }

/* --- Navigation --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img { height: 42px; width: auto; }
.dot { color: var(--text-muted); }

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover { color: var(--text-main); }

.btn-nav {
    padding: 0.6rem 1.2rem;
    background-color: var(--card-bg);
    border: 1px solid #333;
    border-radius: 8px; 
    color: var(--text-main) !important;
    transition: all 0.3s ease;
}

.btn-nav:hover { background-color: var(--text-main); color: var(--bg-color) !important; }

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 10rem 1rem 8rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero::after {
    content: "";
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 600px;
    height: 100%;
    background-image: url('commons-logo-white.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: var(--watermark-opacity);
    z-index: -1;
    pointer-events: none;
}

/* === THE FIX: SPECIFIC HERO TEXT STYLING === */

/* 1. Base Headline is White & Thin */
.hero h1 {
    font-size: 4.5rem; 
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 300 !important; /* Forces thin font */
    color: #ffffff !important;    /* Forces white text */
}

/* 2. Specific Override for Red Word */
.hero h1 .red-text {
    color: #ff4d4d !important; /* Bright Red */
    font-weight: 400; /* Slightly bolder */
}

/* 3. Specific Override for Green Word */
.hero h1 .green-text {
    color: #4ade80 !important; /* Bright Green */
    font-weight: 400;
}

.hero-sub {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300; 
}

.btn-primary {
    display: inline-block;
    background-color: var(--text-main);
    color: var(--bg-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600; 
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255,255,255,0.2);
}

/* --- Split Section --- */
.split-section { padding: 4rem 1rem 8rem; }
.container { max-width: 1100px; margin: 0 auto; }

.split-header { text-align: center; margin-bottom: 4rem; }
.split-header h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.split-header p { color: var(--text-muted); font-size: 1.1rem; }

.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 24px; 
    border: 1px solid #222;
    transition: all 0.3s ease;
}

.service-card:hover {
    background: var(--card-hover);
    border-color: #333;
    transform: translateY(-5px);
}

.card-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.green-badge { background: rgba(39, 174, 96, 0.15); color: var(--accent-green); }
.blue-badge { background: rgba(59, 130, 246, 0.15); color: var(--accent-blue); }

.service-card h3 { font-size: 2.2rem; margin-bottom: 0.5rem; }

.role-title {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.card-desc { margin-bottom: 2rem; color: var(--text-muted); font-size: 1.05rem; }

.feature-list { list-style: none; margin-bottom: 2.5rem; }

.feature-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.8rem; 
    position: relative;
    color: var(--text-muted);
    font-size: 1rem;
}

.feature-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    font-weight: bold;
}
.green-list li::before { color: var(--accent-green); }
.blue-list li::before { color: var(--accent-blue); }

.btn-link {
    font-weight: 700;
    font-size: 1rem;
}
.green-link { color: var(--accent-green); }
.blue-link { color: var(--accent-blue); }

/* --- Philosophy Section --- */
.philosophy-section {
    padding: 10rem 1rem; 
    border-top: 1px solid #222;
    text-align: center;
    position: relative; 
    overflow: hidden;   
    z-index: 1;         
}

.philosophy-section::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 700px; 
    height: 100%; 
    background-image: url('commons-logo-white.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain; 
    opacity: var(--watermark-opacity); 
    z-index: -1; 
    pointer-events: none; 
}

.philosophy-content { 
    max-width: 700px; 
    margin: 0 auto; 
    position: relative; 
}

blockquote {
    font-size: 1.8rem; 
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-main);
    margin-bottom: 2rem;
    font-style: italic;
    letter-spacing: -0.02em;
}

cite { display: block; margin-top: 1rem; color: var(--text-muted); font-size: 0.9rem; font-style: normal; }
.philosophy-content p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 1.1rem; }

/* --- Footer --- */
footer {
    padding: 6rem 1rem;
    border-top: 1px solid #222;
    text-align: center;
}
.footer-logo { justify-content: center; margin-bottom: 1.5rem; }
.email-link { color: var(--text-main); border-bottom: 1px solid #333; padding-bottom: 2px; }
.email-link:hover { border-bottom-color: var(--text-main); }
.copyright { margin-top: 4rem; font-size: 0.8rem; color: #444; }

/* --- Mobile --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .card-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}