/*
 * Northscope Design System
 * Shared styles for all pages — imported via /static/northscope.css
 */

/* === Design Tokens === */
:root {
    --bg-primary: #0f172a;
    --bg-secondary: #f8f7f4;
    --bg-tertiary: #f0eeeb;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #756f66;
    --text-on-dark: #e8e6e1;
    --text-heading-on-dark: #f8f7f4;
    --accent: #B8955A;
    --gold: #B8955A;
    --accent-hover: #a07d45;
    --border-subtle: #e5e2dc;
    --footer-bg: #0a1120;
    --navy-800: #1e293b;
    --navy-700: #334155;
    --shadow-soft: 0 20px 40px -10px rgba(15, 23, 42, 0.1);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* === Base Typography === */
body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-primary);
    background: var(--bg-secondary);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: 'EB Garamond', serif;
    font-weight: 400;
    letter-spacing: 0.01em;
}

a { color: inherit; }

/* === Accent Bar === */
.accent-bar {
    height: 3px;
    background: var(--accent);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

/* === Site Header === */
.site-header {
    position: fixed;
    top: 3px;
    left: 0;
    right: 0;
    height: 64px;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wordmark {
    font-family: 'EB Garamond', serif;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--text-heading-on-dark);
    text-decoration: none;
}

.header-cta {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.03em;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
}

.header-cta::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.header-cta:hover::after { width: 100%; }

/* === CTA Button === */
.cta-btn {
    display: inline-block;
    background: transparent;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    padding: 16px 48px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 600;
}

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

.cta-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* === Sections === */
.section { padding: 6rem 0; }

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-prose { max-width: 680px; margin: 0 auto; }

/* === Eyebrow === */
.eyebrow {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

/* === Bridge Section === */
.bridge-section {
    background: linear-gradient(180deg, #f7f5f0 0%, #f0eeeb 100%);
}

.bridge-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3rem;
}

.bridge-header h2 {
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.bridge-header p {
    color: var(--text-secondary);
    line-height: 1.75;
}

.bridge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.bridge-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bridge-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.bridge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    border-top-left-radius: 11px;
    border-top-right-radius: 11px;
    opacity: 0.9;
}

.bridge-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.bridge-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* === Section Header (reusable — mirrors bridge-header) === */
.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    line-height: 1.75;
}

/* Dark variant */
.section-header--dark h2 {
    color: var(--text-heading-on-dark);
}

.section-header--dark p {
    color: var(--text-on-dark);
}

/* === Value Props === */
.value-section {
    background: linear-gradient(180deg, #f8f7f4 0%, #f0eeeb 100%);
}

.value-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    border-top-left-radius: 11px;
    border-top-right-radius: 11px;
    opacity: 0.9;
}

.value-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.value-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* === Analyze === */
.analyze-section {
    background: linear-gradient(180deg, #f0eeeb 0%, #e8e5df 100%);
}

.analyze-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    border-radius: 12px;
    padding: 2.5rem 2rem;
}

/* === Deliverables === */
.deliverables-section {
    background: linear-gradient(180deg, #f8f7f4 0%, #f0eeeb 100%);
}

.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.deliverable-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    border-radius: 12px;
    padding: 1.75rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.deliverable-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.deliverable-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    border-top-left-radius: 11px;
    border-top-right-radius: 11px;
    opacity: 0.9;
}

.deliverable-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.deliverable-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* === Sample Report === */
.sample-section {
    background: var(--bg-primary);
}

.sample-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.sample-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    padding: 0.875rem 2rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
}

.sample-link:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

.sample-note {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 1.5rem;
    text-align: center;
}

/* === Process === */
.process-section {
    background: linear-gradient(180deg, #f8f7f4 0%, #f0eeeb 100%);
}

.process-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.process-card .process-num {
    background: var(--bg-card);
    padding: 0;
    margin-bottom: 1rem;
}

.process-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* === Who Section === */
.who-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.who-grid .who-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 450px;
    margin: 0 auto;
}

.who-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(184, 149, 90, 0.15);
    border-radius: 12px;
    padding: 2rem;
    text-align: left;
    position: relative;
}

.who-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    border-top-left-radius: 11px;
    border-top-right-radius: 11px;
    opacity: 0.9;
}

.who-card h3 {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
    letter-spacing: 0.04em;
}

.who-card p {
    color: var(--text-on-dark);
    line-height: 1.75;
}

/* === FAQ === */
.faq-section {
    background: linear-gradient(180deg, #f8f7f4 0%, #f0eeeb 100%);
}

.faq-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    border-radius: 12px;
    padding: 0.5rem 2rem;
}

/* === CTA === */
.cta-section .eyebrow {
    color: rgba(184, 149, 90, 0.7);
}

/* === Site Footer === */
.site-footer {
    background: var(--footer-bg);
    border-top: 1px solid rgba(184, 149, 90, 0.2);
    padding: 3.5rem 0 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-wordmark {
    font-family: 'EB Garamond', serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--text-heading-on-dark);
    margin-bottom: 0.5rem;
}

.footer-grid p, .footer-grid li {
    font-size: 0.85rem;
    color: var(--text-on-dark);
    line-height: 1.8;
}

.footer-grid .footer-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-heading-on-dark);
    margin-bottom: 0.5rem;
}

.footer-grid a {
    color: var(--text-on-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-grid a:hover { color: var(--accent); }

.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 0.25rem; }

.footer-bottom {
    max-width: 1100px;
    margin: 2.5rem auto 0;
    padding: 1.5rem 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    font-size: 0.8rem;
    color: rgba(232, 230, 225, 0.45);
}

/* === Reveal Animation === */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

body.reveal-enabled .reveal {
    opacity: 0;
    transform: translateY(20px);
}

body.reveal-enabled .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Mobile === */
@media (max-width: 768px) {
    .section { padding: 3rem 0; }
    .section-inner { padding: 0 1.5rem; }
    .header-inner { padding: 0 1.5rem; }
    .wordmark { font-size: 0.9rem; }
    .cta-btn { width: 100%; text-align: center; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1.5rem;
    }

    .footer-bottom { padding: 1.5rem 1.5rem 0; }

    .bridge-grid,
    .deliverables-grid {
        grid-template-columns: 1fr;
    }

    .who-grid {
        grid-template-columns: 1fr;
    }

    .faq-card {
        padding: 0.5rem 1.5rem;
    }

    .sample-links {
        flex-direction: column;
        align-items: center;
    }

    .sample-link {
        width: 100%;
        justify-content: center;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }
}
