/* ==========================================================================
   1. Design Token System & Global Variables
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-color: #0d0f12;         /* Immersive off-black background */
    --surface-color: #14171c;    /* Warm dark container variant */
    --text-primary: #f8fafc;     /* Crisp ivory foreground text */
    --text-secondary: #94a3b8;   /* Low-contrast readability text */
    --accent-color: #f59e0b;     /* High-fidelity warm gold accent (Amber) */
    --border-color: #1e293b;     /* Tight structural layout grid lines */
    
    /* Interactive States & Component System Colors */
    --btn-bg: #f8fafc;
    --btn-text: #0d0f12;
    --btn-hover: #f59e0b;

    /* Legacy cross-compatibility aliases */
    --background: var(--bg-color);
    --surface: var(--surface-color);
    --foreground: var(--text-primary);
    --muted-foreground: var(--text-secondary);
    --amber: var(--accent-color);
    --border: var(--border-color);

    /* Typography Definitions */
    --font-sans: 'Plus Jakarta Sans', 'San Francisco', -apple-system, sans-serif;
    --font-display: 'Playfair Display', 'Georgia', serif;

    /* Micro-interactions & Physics */
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   2. Document Resets & Base Mechanics
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ==========================================================================
   3. Universal Structural Typography & Taglines
   ========================================================================== */
h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.15;
    font-weight: 400;
}

h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.2;
    color: var(--text-primary);
    font-weight: 400;
}

h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--text-primary);
}

em.accent-text, em {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--accent-color);
}

.section-tagline, .accent-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: block;
}

/* ==========================================================================
   4. Reusable Primitives & Utility Layout Containers
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-divider, .divider {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 0 auto;
    width: 100%;
    max-width: 1136px;
}

.image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
}

.aspect-4-3 {
    aspect-ratio: 4 / 3;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-shade-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 15, 18, 0.4), transparent);
    pointer-events: none;
}

.bullet {
    color: var(--accent-color);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Links and Action Primitives */
.arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-color);
    text-decoration: none;
}

.arrow-link .arrow {
    transition: transform 0.3s ease;
}

.arrow-link:hover .arrow {
    transform: translateX(5px);
}

/* ==========================================================================
   5. Buttons System Architectural Engine
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.95rem 2rem;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--btn-bg);
    color: var(--btn-text);
}

.btn-primary:hover {
    background-color: var(--btn-hover);
    color: var(--bg-color);
}

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

.btn-accent:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-outline {
    border: 1px solid rgba(248, 250, 252, 0.3);
    color: var(--text-primary);
    background-color: transparent;
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background-color: rgba(248, 250, 252, 0.05);
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ==========================================================================
   6. Global Navbar & Navigation Shell (CSS-State Driven Mobile Layer)
   ========================================================================== */
.site-header, .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(13, 15, 18, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.header-container, .nav-container {
    max-width: 1200px;
    height: 70px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.site-logo {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-menu, .nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-menu a, .nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

.header-actions {
    justify-self: end;
}

/* Default Mobile State Clipping Elements */
.nav-toggle, .nav-toggle-label, .mobile-cta-only {
    display: none;
}

/* ==========================================================================
   7. Immersive Hero Structure Engine (Full-screen & Shared Elements)
   ========================================================================== */
.hero-section, .hero {
    position: relative;
    width: 100%;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-image: url("/img/home-hero-turntable-room.jpg");
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay-gradients, .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: 
        linear-gradient(to right, rgba(13, 15, 18, 0.95) 0%, rgba(13, 15, 18, 0.7) 50%, rgba(13, 15, 18, 0.2) 100%),
        linear-gradient(to top, rgba(13, 15, 18, 0.9) 0%, transparent 60%);
}

.hero-container, .hero-content-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 6rem 2rem;
}

.hero-content {
    max-width: 640px;
}

.hero-description {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 1.5rem 0 2.5rem 0;
}

/* Subpage Structural Hero Variation */
.inner-page-hero {
    position: relative;
    width: 100%;
    height: 55vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.inner-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.inner-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: 
        linear-gradient(to top, var(--bg-color) 0%, rgba(13, 15, 18, 0.5) 70%, transparent 100%),
        linear-gradient(to right, rgba(13, 15, 18, 0.6) 0%, transparent 100%);
}

.inner-hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 3.5rem 2rem;
}

/* ==========================================================================
   8. Asymmetrical Split Grids & Layout Containers
   ========================================================================== */
.split-feature-section, .details-section, .contact-section {
    width: 100%;
    padding: 7rem 0;
}

.feature-container, .content-editorial-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.content-editorial-container {
    max-width: 900px;
    padding: 5rem 2rem 7rem 2rem;
}

.split-layout, .feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.feature-text {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.editorial-lead-text {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

/* ==========================================================================
   9. Page 2 Architecture Elements (The Setup Components)
   ========================================================================== */
.signal-chain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--border-color);
    margin-bottom: 5rem;
    background-color: var(--surface-color);
    border-radius: 4px;
    overflow: hidden;
}

.chain-step-card {
    padding: 2.5rem;
    border-right: 1px solid var(--border-color);
}

.chain-step-card:last-child {
    border-right: none;
}

.step-number {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
}

.chain-step-card h3 {
    margin-bottom: 1rem;
}

.step-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Custom Component Data Tables Block */
.table-content-section {
    margin-bottom: 5rem;
}

.table-content-section h2 {
    margin-bottom: 0.5rem;
}

.section-context-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
}

.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.specs-data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.specs-data-table th {
    background-color: #161a22;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.specs-data-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
    line-height: 1.6;
}

.specs-data-table tr:last-child td {
    border-bottom: none;
}

.specs-data-table tr:hover {
    background-color: rgba(255, 255, 255, 0.01);
}

.highlight-cell {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.accent-cell {
    color: var(--accent-color);
    font-weight: 500;
    white-space: nowrap;
}

.desc-cell {
    color: var(--text-secondary);
    font-weight: 300;
}

/* ==========================================================================
   10. Page 3 Architecture Elements (The Wax Layouts)
   ========================================================================== */
.editorial-segment {
    margin-bottom: 5rem;
}

.editorial-segment h2 {
    margin-bottom: 1.5rem;
}

.highlight-margin {
    margin: 4rem 0;
}

/* Care Guides Modular Grid Component Stack */
.care-steps-stack {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.care-step-row {
    display: flex;
    gap: 2rem;
    padding: 2.5rem;
    border-bottom: 1px solid var(--border-color);
}

.care-step-row:last-child {
    border-bottom: none;
}

.care-step-row.bg-surface {
    background-color: var(--surface-color);
}

.care-step-row.bg-body {
    background-color: var(--bg-color);
}

.step-num-index {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.75rem;
    color: var(--accent-color);
    line-height: 1;
    margin-top: 0.2rem;
}

.step-text-content h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.step-text-content p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Asymmetrical Album Row Block Layouts */
.album-curation-stack {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-color);
}

.album-item-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    border-bottom: 1px solid var(--border-color);
}

.album-meta-aside {
    background-color: var(--surface-color);
    padding: 2rem 2.5rem;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.album-meta-aside h3 {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.artist-sub {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.release-year-tag {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--accent-color);
}

.album-analysis-body {
    padding: 2.5rem;
    display: flex;
    align-items: center;
}

.album-analysis-body p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-weight: 300;
}

/* ==========================================================================
   11. Page 4 Architecture Elements (The Space Layouts)
   ========================================================================== */
.placement-split-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 4rem;
}

.placement-narrative .feature-text {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Premium Side-Bar Cards Components */
.checklist-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 4px;
}

.checklist-card h3 {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.checklist-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checklist-items li {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
    font-weight: 300;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checklist-items .marker {
    color: var(--accent-color);
    font-size: 0.7rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

/* Blockquotes Primitive Styles */
.editorial-quote-block, .editorial-callout-box {
    border-left: 2px solid var(--accent-color);
    padding-left: 2rem;
    margin: 4rem 0;
}

.editorial-callout-box {
    border-width: 3px;
    margin: 5rem 0;
}

.editorial-callout-box h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.quote-title {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.quote-text, .editorial-callout-box p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.editorial-callout-box p:last-child {
    margin-bottom: 0;
}

.content-banner-frame {
    width: 100%;
    max-height: 420px;
    border-radius: 4px;
    overflow: hidden;
}

.content-banner-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Custom Troubleshooting Matrix Architecture */
.acoustic-matrix-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background-color: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.matrix-panel {
    background-color: var(--surface-color);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.matrix-panel h3 {
    margin-bottom: 1.5rem;
}

.matrix-panel p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-secondary);
    font-weight: 300;
}

.panel-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.panel-label.problem {
    color: var(--accent-color);
}

.panel-label.solution {
    color: var(--text-secondary);
    margin-top: 1.5rem;
}

/* ==========================================================================
   12. Page 5 Intake Engine (The Acquisition Forms)
   ========================================================================== */
.features-grid {
    display: flex;
    flex-direction: column;
}

.form-container {
    width: 100%;
}

.acquisition-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    border-radius: 4px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 1px var(--accent-color);
}

.form-group textarea {
    resize: none;
}

/* ==========================================================================
   13. Footer Layout Shell Systems
   ========================================================================== */
.site-footer, .footer {
    background-color: #111317;
    border-top: 1px solid var(--border-color);
    padding: 3.5rem 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand, .logo.italic {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--accent-color);
}

.footer-copyright, .copyright {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   14. Responsive Layout Breakpoints & Adaptive Updates
   ========================================================================== */
@media (max-width: 960px) {
    /* Navbar Transformation & Pure CSS Menu Trigger */
    .header-container {
        grid-template-columns: 1fr auto;
        padding: 0 1.5rem;
    }
    
    .header-actions {
        display: none;
    }

    .nav-toggle-label {
        display: flex;
        align-items: center;
        width: 24px;
        height: 24px;
        cursor: pointer;
        position: relative;
        z-index: 1010;
    }
    
    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        background-color: var(--text-primary);
        height: 2px;
        width: 100%;
        position: absolute;
        transition: transform 0.3s ease, top 0.3s ease;
    }
    
    .nav-toggle-label span::before { content: ''; top: -7px; }
    .nav-toggle-label span::after { content: ''; top: 7px; }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--surface-color);
        padding: 6rem 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        z-index: 1005;
    }
    
    .nav-menu, .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    
    .nav-menu a, .nav-links a {
        font-size: 1.1rem;
    }
    
    .mobile-cta-only {
        display: block;
        width: 100%;
        margin-top: 1.5rem;
    }
    
    .mobile-cta-only .btn {
        width: 100%;
    }

    /* Target State Engine Triggers */
    .nav-toggle:checked ~ .main-navigation {
        right: 0;
    }
    .nav-toggle:checked ~ .nav-toggle-label span { background-color: transparent; }
    .nav-toggle:checked ~ .nav-toggle-label span::before { transform: rotate(45deg); top: 0; }
    .nav-toggle:checked ~ .nav-toggle-label span::after { transform: rotate(-45deg); top: 0; }

    /* Column Folding Strategy */
    .split-layout, .feature-grid, .placement-split-layout, .acoustic-matrix-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .layout-reversed .feature-content-block,
    .layout-reversed .feature-image-block {
        order: initial;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .care-step-row {
        flex-direction: column;
        gap: 1rem;
        padding: 2rem;
    }
    
    .album-item-row {
        grid-template-columns: 1fr;
    }
    
    .album-meta-aside {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1.75rem 2rem;
    }
    
    .album-analysis-body, .matrix-panel, .chain-step-card {
        padding: 2rem;
    }

    .signal-chain-grid {
        grid-template-columns: 1fr;
    }
    
    .chain-step-card {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .chain-step-card:last-child {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .btn-group .btn, .btn {
        width: 100%;
    }
    
    .split-feature-section, .details-section, .contact-section {
        padding: 4.5rem 0;
    }

    .editorial-quote-block, .editorial-callout-box {
        padding-left: 1.25rem;
    }
}