/* ======================================================================
|
|   STRANGE HART INC. - FINAL STYLESHEET (app.css)
|   DESIGN: "Coastal Command Line" with Sidebar Navigation (Corrected)
|
====================================================================== */

/* --- 1. CSS Variables & Root Styles --- */
:root {
    --dark-bg: #111827;
    --sidebar-bg: #1f2937;
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --accent-teal: #2dd4bf;
    --border-color: #374151;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Roboto Mono', monospace;
}

/* --- 2. Global Styles & Typography --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--text-secondary);
    background-color: var(--dark-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; color: var(--text-primary); line-height: 1.3; }
h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1.5rem; }
a { color: var(--accent-teal); text-decoration: none; transition: color 0.3s ease, background-color 0.3s ease; }
a:hover { color: var(--dark-bg); background-color: var(--accent-teal); }

/* --- 3. Main Site Layout --- */
.site-wrapper { display: flex; }
.sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    -webkit-transform: translateX(0);
    transform: translateX(0);
    -webkit-transition: -webkit-transform 0.3s ease-in-out;
    transition: transform 0.3s ease-in-out;
}
.main-content {
    margin-left: 280px;
    width: calc(100% - 280px);
    padding: 0;
}

/* --- 4. Sidebar Content --- */
.sidebar-logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--text-primary); margin-bottom: 3rem; display: block; }
.sidebar-logo span { color: var(--accent-teal); }
.sidebar-nav ul { list-style: none; }
.sidebar-nav li { margin-bottom: 1rem; }
.sidebar-nav a { display: block; padding: 0.5rem 1rem; border-radius: 6px; font-weight: 500; }
.sidebar-footer { margin-top: auto; font-size: 0.8rem; }

/* --- 5. Main Content Sections --- */
.page-section { padding: 4rem; }
.page-section h1::after, .page-section h2::after { content: '_'; color: var(--accent-teal); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Hero Section */
.hero-section { min-height: 90vh; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; overflow: hidden; }
.video-background-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-section::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(17, 24, 39, 0.7); z-index: -1; }
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-section h1 { margin-bottom: 1.5rem; }
.hero-section .lead { font-size: 1.25rem; max-width: 700px; margin-bottom: 2.5rem; color: var(--text-primary); }

/* Button */
.button { display: inline-block; padding: 14px 32px; border-radius: 8px; font-family: var(--font-heading); font-weight: 700; text-align: center; cursor: pointer; border: 2px solid var(--accent-teal); background-color: transparent; color: var(--accent-teal); transition: all 0.3s ease; }
.button:hover { background-color: var(--accent-teal); color: var(--dark-bg); box-shadow: 0 0 15px rgba(45, 212, 191, 0.5); }

/* Grid Layout */
.content-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-card { background-color: var(--sidebar-bg); border: 1px solid var(--border-color); padding: 2rem; border-radius: 12px; transition: border-color 0.3s ease, transform 0.3s ease; }
.grid-card:hover { border-color: var(--accent-teal); -webkit-transform: translateY(-5px); transform: translateY(-5px); }
.grid-card h3 { color: var(--text-primary); margin-bottom: 1rem; }
.grid-card img { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; margin-bottom: 1.5rem; }

/* --- 6. Mobile Navigation Styles --- */
.mobile-header {
    display: none; /* Hidden on desktop */
    padding: 1rem;
    background-color: var(--sidebar-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 999;
    align-items: center;
    justify-content: space-between;
}

.mobile-nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav-toggle .hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* --- 7. Responsive Styles --- */
@media (max-width: 1024px) {
    .sidebar {
        -webkit-transform: translateX(-100%);
        transform: translateX(-100%);
    }
    .sidebar.is-open {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    .page-section {
        padding: 4rem 2rem;
    }
    .mobile-header {
        display: flex;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    .page-section { padding: 3rem 1rem; }
}
