:root {
    /* Aero-Marine Stream Palette - Strict No Blue */
    --bg-espresso: #1e1612;
    --bg-mocha: #31241e;
    --text-cream: #f5ecdf;
    --accent-amber: #f59e0b;
    --accent-amber-dark: #d97706;

    /* Typography */
    --font-heading: system-ui, "Segoe UI", Roboto, sans-serif;
    --font-body: system-ui, "Segoe UI", Roboto, sans-serif;
    
    /* Layout */
    --max-width: 1100px;
    --radius-round: 9999px;
    --radius-square: 0px;
    
    /* Kinetic */
    --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-wrap: anywhere; hyphens: auto; }
body {
    background-color: var(--bg-espresso);
    color: var(--text-cream);
    font-family: var(--font-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1rem;
}
h1 { font-size: clamp(3rem, 8vw, 6rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
p { margin-bottom: 1.5rem; max-width: 72ch; }

/* Structural Bands */
.band-espresso { background-color: var(--bg-espresso); color: var(--text-cream); padding: 80px 0; }
.band-mocha { background-color: var(--bg-mocha); color: var(--text-cream); padding: 80px 0; }
.band-amber { background-color: var(--accent-amber); color: var(--bg-espresso); padding: 80px 0; }
.band-amber h2, .band-amber h3 { color: var(--bg-espresso); }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header - Floating Inset Box */
.header-wrapper {
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    z-index: 100;
    pointer-events: none; /* Let clicks pass through outside the box */
}
.header-box {
    background-color: var(--bg-mocha);
    border-radius: var(--radius-round);
    padding: 12px 32px;
    max-width: var(--max-width);
    margin: 0 auto;
    width: calc(100% - 48px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-cream);
    text-decoration: none;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}
.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}
.nav-links a {
    color: var(--text-cream);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--accent-amber); }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-cream);
    font-size: 1.5rem;
    cursor: pointer;
    font-weight: bold;
}

/* Hero Section */
.hero-band {
    background-color: var(--accent-amber);
    color: var(--bg-espresso);
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-top: 120px; /* Offset for header */
}
.hero-band .container { text-align: center; }

/* List Rows */
.list-container {
    display: flex;
    flex-direction: column;
}
.list-row {
    display: flex;
    align-items: stretch;
    padding: 32px 0;
    border-bottom: 1px solid rgba(245, 236, 223, 0.1);
    gap: 32px;
}
.band-espresso .list-row { border-bottom-color: rgba(245, 236, 223, 0.1); }
.band-amber .list-row { border-bottom-color: rgba(30, 22, 18, 0.2); }
.list-row:last-child { border-bottom: none; }

.row-icon {
    flex: 0 0 48px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 4px;
}
.row-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--accent-amber);
}
.band-amber .row-icon svg { fill: var(--bg-espresso); }

.row-content {
    flex: 1;
}
.row-content h3 { margin-bottom: 8px; font-size: 1.5rem; }
.row-content p { margin-bottom: 0; opacity: 0.9; }

.row-action {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

/* Links & Buttons */
.text-link {
    text-decoration: none;
    color: inherit;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.875rem;
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
}
.text-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-amber);
    transition: width 0.3s var(--ease-kinetic);
}
.band-amber .text-link::after { background-color: var(--bg-espresso); }
.text-link:hover::after { width: 100%; }

.btn-solid {
    background-color: var(--accent-amber);
    color: var(--bg-espresso);
    padding: 16px 32px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.95rem;
    display: inline-block;
    border-radius: var(--radius-square);
    border: none;
    cursor: pointer;
    transition: transform 0.2s var(--ease-kinetic), background-color 0.2s;
}
.btn-solid:hover {
    transform: translateY(-4px);
    background-color: var(--accent-amber-dark);
}
.band-amber .btn-solid { background-color: var(--bg-espresso); color: var(--text-cream); }
.band-amber .btn-solid:hover { background-color: var(--bg-mocha); }

/* Imagery */
.img-square {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--radius-square);
    margin-bottom: 24px;
    background-color: var(--bg-mocha);
}
.img-badge {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-round);
    object-fit: cover;
}

/* Tool Form */
.tool-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.form-group { margin-bottom: 24px; }
.form-group label {
    display: block;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-family: var(--font-heading);
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-espresso);
    border: 1px solid rgba(245,236,223,0.2);
    color: var(--text-cream);
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: var(--radius-square);
}
.form-control:focus { outline: none; border-color: var(--accent-amber); }
textarea.form-control { resize: vertical; min-height: 200px; }
.tool-actions { display: flex; gap: 16px; margin-top: 16px; }

/* Footer - Floating Inset Box */
.footer-wrapper {
    padding: 80px 0 40px 0;
    background-color: var(--bg-espresso);
}
.footer-box {
    background-color: var(--bg-mocha);
    border-radius: var(--radius-round);
    padding: 32px 48px;
    max-width: var(--max-width);
    margin: 0 auto;
    width: calc(100% - 48px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
    color: var(--text-cream);
    text-decoration: none;
    font-size: 0.85rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.footer-links a:hover { opacity: 1; }
.footer-meta { font-size: 0.85rem; opacity: 0.6; text-align: right; }
.footer-meta p { margin: 0; }

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-kinetic);
}
.reveal.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Content Columns for Inner pages */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}
th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(245,236,223,0.1);
}
th { font-family: var(--font-heading); font-weight: 800; text-transform: uppercase; }

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-mocha);
        flex-direction: column;
        padding: 24px;
        border-radius: 16px;
        margin-top: 12px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    }
    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: block; }
    .list-row { flex-direction: column; gap: 16px; padding: 40px 0; }
    .row-icon { flex: 0 0 auto; }
    .tool-grid { grid-template-columns: 1fr; }
    .footer-box { flex-direction: column; border-radius: 24px; text-align: center; }
    .footer-meta { text-align: center; }
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
