/* =============================================================
   shared.css — ORCA Roads common styles
   Used by all pages. Page-specific <style> blocks override as needed.
   S3-compatible: all asset refs are relative.
   ============================================================= */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --deep-navy: #0b2636;
    --midnight: #112f43;
    --slate: #1c4f6e;
    --steel: #3a7da0;
    --ice: #7ab8d6;
    --glacier: #d4edf8;
    --signal-orange: #47a550;
    --signal-amber: #6cc975;
    --white: #ffffff;
    --text-primary: #e4eff5;
    --text-secondary: #8aacbe;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--deep-navy);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── Containers ─────────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Narrow container for long-form text (legal pages) */
.container--narrow {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Navigation ─────────────────────────────────────────────── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(11, 38, 54, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(122, 184, 214, 0.1);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 28px;
    font-weight: 400;
    color: var(--glacier);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 42px;
    width: auto;
}

.logo span,
.logo-fallback span {
    color: var(--signal-orange);
}

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a:hover { color: var(--glacier); }

.nav-cta {
    background: var(--signal-orange) !important;
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: 6px;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: 600 !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(71, 165, 80, 0.3);
    color: var(--white) !important;
}

/* Hamburger button — hidden by default */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--glacier);
    margin: 6px 0;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ── Footer ─────────────────────────────────────────────────── */
footer {
    background: var(--midnight);
    border-top: 1px solid rgba(122, 184, 214, 0.1);
    padding: 52px 0 40px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.footer-logo {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 22px;
    color: var(--glacier);
    letter-spacing: -0.5px;
}

.footer-tagline {
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--glacier); }

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    padding-top: 4px;
    border-top: 1px solid rgba(122, 184, 214, 0.08);
}

.footer-legal a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    opacity: 0.65;
    transition: opacity 0.2s ease;
}

.footer-legal a:hover { opacity: 1; }

.footer-copy {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.55;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
    background: var(--signal-orange);
    color: var(--white);
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(71, 165, 80, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--glacier);
    padding: 16px 32px;
    border: 1px solid var(--steel);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: rgba(122, 184, 214, 0.08);
    border-color: var(--ice);
}

/* ── Typography helpers ─────────────────────────────────────── */
.section-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--signal-orange);
    margin-bottom: 16px;
    display: block;
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive — nav ───────────────────────────────────────── */
@media (max-width: 900px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(11, 38, 54, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid rgba(122, 184, 214, 0.1);
        align-items: flex-start;
    }

    .nav-links.mobile-open { display: flex; }
    .mobile-menu-btn { display: block; }

    .nav-links a {
        font-size: 16px;
        padding: 4px 0;
    }

    .nav-cta {
        margin-top: 4px;
    }
}
