/* =====================================================================
   Third Orbit — Shared Inner Page Stylesheet
   Used by all pages except index.html (which is self-contained)
===================================================================== */

:root {
    --charcoal: #111827;
    --emerald: #059669;
    --mint: #6EE7B7;
    --white: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.55);
    --text-body: rgba(255, 255, 255, 0.82);
    --border-subtle: rgba(110, 231, 183, 0.12);
    --border-mid: rgba(110, 231, 183, 0.25);
    --green-tint: rgba(5, 150, 105, 0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Source Sans 3', sans-serif;
    background: var(--charcoal);
    color: var(--white);
    overflow-x: hidden;
    font-weight: 300;
    line-height: 1.75;
}

/* --- HEADER --- */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 1.25rem 2rem;
    background: rgba(17, 24, 39, 0.97);
    z-index: 100;
    border-bottom: 1px solid rgba(5, 150, 105, 0.2);
    backdrop-filter: blur(10px);
}
.header-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--mint);
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
}
.nav { display: flex; gap: 1.75rem; align-items: center; }
.nav a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.82rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'IBM Plex Mono', monospace;
    transition: color 0.2s;
}
.nav a:hover, .nav a.active { color: var(--mint); }
.nav-cta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    color: var(--charcoal) !important;
    background: var(--mint);
    padding: 0.5rem 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--emerald); color: var(--white) !important; }
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(17, 24, 39, 0.98);
    z-index: 99;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    backdrop-filter: blur(12px);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.4rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'IBM Plex Mono', monospace;
    transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--mint); }

/* --- PAGE HERO (breadcrumb-style) --- */
.page-hero {
    padding: 5rem 2rem 3.5rem;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(17, 24, 39, 0.98);
}
.page-hero-inner { max-width: 820px; margin: 0 auto; }
.page-eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--mint);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.page-eyebrow a {
    color: var(--mint);
    text-decoration: none;
    opacity: 0.65;
    transition: opacity 0.2s;
}
.page-eyebrow a:hover { opacity: 1; }
.page-eyebrow .sep { opacity: 0.4; }
.page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1rem;
}
.page-hero .lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.7;
}

/* --- MAIN CONTENT CONTAINER --- */
.content-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}
.content-wrap-wide {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

/* --- TYPOGRAPHY --- */
.content-wrap h2, .content-wrap-wide h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--white);
    margin: 2.5rem 0 1rem;
    line-height: 1.25;
}
.content-wrap h3, .content-wrap-wide h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--white);
    margin: 2rem 0 0.75rem;
}
.content-wrap p, .content-wrap-wide p {
    color: var(--text-body);
    margin-bottom: 1.25rem;
    font-size: 1rem;
}
.content-wrap ul, .content-wrap ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}
.content-wrap li {
    color: var(--text-body);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}
.content-wrap a {
    color: var(--mint);
    text-decoration: none;
    border-bottom: 1px solid rgba(110, 231, 183, 0.3);
    transition: border-color 0.2s;
}
.content-wrap a:hover { border-color: var(--mint); }
/* Reset link overrides for styled buttons inside content areas */
.content-wrap a.btn,
.content-wrap-wide a.btn { border-bottom: none; }
.content-wrap a.btn-primary,
.content-wrap-wide a.btn-primary { color: var(--white); }
.content-wrap a.btn-outline,
.content-wrap-wide a.btn-outline { color: var(--mint); }

/* --- UTILITY CLASSES --- */
.eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--mint);
    display: block;
    margin-bottom: 0.75rem;
}
.tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: var(--emerald);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid var(--emerald);
    padding: 0.2rem 0.55rem;
    display: inline-block;
}
.divider {
    border: none;
    border-top: 1px solid var(--border-subtle);
    margin: 2.5rem 0;
}
.mono {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.highlight { color: var(--mint); }
.text-center { text-align: center; }

/* --- CTA BOX --- */
.cta-box {
    background: var(--green-tint);
    border: 1px solid var(--border-mid);
    border-left: 3px solid var(--emerald);
    padding: 2rem 2rem;
    margin: 3rem 0;
}
.cta-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 0.75rem;
}
.cta-box p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    padding: 0.85rem 1.75rem;
    transition: all 0.25s;
}
.btn-primary {
    background: var(--emerald);
    color: var(--white);
    border: 1px solid var(--emerald);
}
.btn-primary:hover {
    background: transparent;
    box-shadow: 0 0 30px rgba(5,150,105,0.25);
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent;
    color: var(--mint);
    border: 1px solid var(--mint);
}
.btn-outline:hover {
    background: var(--mint);
    color: var(--charcoal);
}

/* --- CARD GRID --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.card {
    background: var(--green-tint);
    border: 1px solid var(--border-subtle);
    padding: 2rem 1.75rem;
    transition: border-color 0.25s, background 0.25s;
    text-decoration: none;
    display: block;
    color: var(--white);
}
.card:hover {
    border-color: var(--emerald);
    background: rgba(5,150,105,0.1);
}
.card .tag { margin-bottom: 1rem; }
.card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 0.75rem;
    border: none;
}
.card p {
    font-size: 0.93rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 0;
}
.card-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
    margin-top: 1.25rem;
    letter-spacing: 0.5px;
}

/* --- METRIC BLOCKS --- */
.metric-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}
.metric {
    border-left: 2px solid var(--emerald);
    padding-left: 1.25rem;
}
.metric-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--mint);
    line-height: 1;
}
.metric-lbl {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

/* --- QUOTE / BLOCKQUOTE --- */
blockquote {
    border-left: 2px solid var(--mint);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.65;
}
blockquote cite {
    display: block;
    font-style: normal;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
    margin-top: 0.75rem;
}

/* --- FAQ ACCORDION --- */
.faq-list { margin: 2rem 0; }
.faq-item {
    border-bottom: 1px solid var(--border-subtle);
}
.faq-item:first-child { border-top: 1px solid var(--border-subtle); }
.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    text-align: left;
    padding: 1.25rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    line-height: 1.4;
}
.faq-question:hover { color: var(--mint); }
.faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--emerald);
    transition: transform 0.3s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
    display: none;
    padding: 0 0 1.5rem;
    font-size: 0.97rem;
    color: var(--text-body);
    line-height: 1.75;
}
.faq-item.open .faq-answer { display: block; }
.faq-answer p { margin-bottom: 0.75rem; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul { padding-left: 1.25rem; }
.faq-answer li { margin-bottom: 0.4rem; color: var(--text-body); }

/* --- FOOTER --- */
.footer {
    background: rgba(10, 16, 26, 0.95);
    padding: 3.5rem 2rem 2rem;
    border-top: 1px solid rgba(5, 150, 105, 0.18);
    text-align: center;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 2rem;
    margin-bottom: 2rem;
}
.footer-links a {
    color: var(--emerald);
    text-decoration: none;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--mint); }
.footer-legal {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    color: rgba(255,255,255,0.3);
    line-height: 1.8;
}
.footer-legal a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-legal a:hover { color: var(--mint); }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .nav { display: none; }
    .hamburger { display: flex; }
    .header { padding: 1rem 1.5rem; }
    .logo { font-size: 1.2rem; }
    .page-hero { padding: 4rem 1.5rem 2.5rem; }
    .page-hero h1 { font-size: 2rem; }
    .content-wrap, .content-wrap-wide { padding: 2.5rem 1.5rem 4rem; }
    .metric-row { gap: 1.5rem; }
    .card-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .page-hero { padding: 3rem 1rem 2rem; }
    .content-wrap, .content-wrap-wide { padding: 2rem 1rem 3rem; }
}
