/* ========== HORIZONS MARKETING SITE — MIRROR STRUCTURE ========== */
/* Visually indistinguishable from app.tryhorizons.com */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --sage: #5C6654;
    --sage-light: #6d7a63;
    --sage-subtle: rgba(92, 102, 84, 0.08);
    --sage-border: rgba(92, 102, 84, 0.2);
    --dark: #1D1B18;
    --dark-soft: #2a2724;
    --warm-white: #FAF9F7;
    --warm-gray: #F2F1EF;
    --text-primary: #1D1B18;
    --text-secondary: #6B6560;
    --text-tertiary: #9B9590;
    --border: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.12);
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overscroll-behavior: none;
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background: var(--warm-white);
    line-height: 1.6;
    height: 100%;
    overflow: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: 'Source Serif 4', 'Georgia', serif;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

h1 { font-size: 2rem; margin-bottom: 1.25rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }

p {
    color: var(--text-secondary);
    max-width: 38em;
    margin-bottom: 0.75rem;
}

p:last-child { margin-bottom: 0; }

.lead {
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

blockquote {
    margin: 1.25rem 0;
    padding-left: 1.25rem;
    border-left: 2px solid var(--sage-border);
    font-family: 'Source Serif 4', 'Georgia', serif;
    font-style: italic;
    font-size: 1rem;
    color: var(--text-secondary);
}

/* ---------- Mobile Top Bar (hidden on desktop) ---------- */
.mobile-top-bar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #1D1B18;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    align-items: center;
    padding: 0 16px;
    z-index: 100;
}

.mobile-top-bar__logo {
    font-family: 'Source Serif 4', 'Georgia', serif;
    font-size: 19px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: white;
}

/* ---------- Layout ---------- */
.site-layout {
    display: flex;
    height: 100vh;
}

/* ---------- Left Nav (dark — matches app mobile nav exactly) ---------- */
.left-nav {
    width: 240px;
    flex-shrink: 0;
    background: #1D1B18;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.left-nav__logo {
    font-family: 'Source Serif 4', 'Georgia', serif;
    font-size: 19px;
    font-weight: 400;
    color: white;
    padding: 16px 24px 24px;
    letter-spacing: 0.02em;
    display: block;
}

.left-nav__spacer {
    flex: 1;
}

.left-nav__signin {
    display: block;
    margin: 16px 24px;
    padding: 10px 0;
    text-align: center;
    background: #5C6654;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    transition: opacity 0.15s;
}

.left-nav__signin:hover {
    opacity: 0.85;
}

.left-nav__pillar,
.left-nav__meta {
    display: flex;
    flex-direction: column;
}

.left-nav__divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 8px 24px;
}

.left-nav__link {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255,255,255,0.6);
    padding: 14px 24px;
    transition: color 0.15s, background 0.15s;
    letter-spacing: 0.01em;
}

.left-nav__link:hover {
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.05);
}

.left-nav__link.active {
    color: white;
    background: rgba(255,255,255,0.08);
}

/* ---------- Content Area ---------- */
.content {
    flex: 1;
    overflow-y: auto;
    background: white;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px;
}

/* ---------- Home Hero (no-scroll) ---------- */
.home-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 56px - 96px - 64px);
}

.home-hero h1 {
    font-size: 2.2rem;
    max-width: 16em;
    margin-bottom: 1.5rem;
}

.home-hero__sub {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 34em;
}

.home-hero__questions {
    font-family: 'Source Serif 4', 'Georgia', serif;
    font-style: italic;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-tertiary);
    max-width: 34em;
    margin-top: 1.5rem;
}

/* ---------- Narrative Pages ---------- */
.narrative h1 {
    margin-bottom: 1.75rem;
}

.narrative > p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.narrative-shift {
    margin: 2.5rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.narrative-shift p {
    font-family: 'Source Serif 4', 'Georgia', serif;
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 34em;
}

.how-it-works {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.how-it-works h2 {
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--sage);
    font-family: 'Inter', sans-serif;
    margin-bottom: 1rem;
}

.how-it-works p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ---------- About Page ---------- */
.about-details {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.about-details h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.35rem;
}

.about-details h3:first-child {
    margin-top: 0;
}

/* ---------- Philosophy Page ---------- */
.philosophy-section {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}

.philosophy-section:last-child {
    border-bottom: none;
}

.concept-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 0.5rem;
}

.philosophy-section h2 {
    margin-bottom: 0.75rem;
}

.philosophy-section p {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #1D1B18;
    color: rgba(255, 255, 255, 0.5);
    height: 52px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    position: fixed;
    bottom: 0;
    left: 240px; /* offset by nav width */
    right: 0;
    z-index: 50;
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 800px;
    margin: 0 auto;
}

.site-footer__brand {
    font-family: 'Source Serif 4', 'Georgia', serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.04em;
}

.site-footer__copy {
    font-size: 0.75rem;
}

/* Adjust content area to not overlap footer */
.content {
    padding-bottom: 64px;
}

/* ---------- Mobile Nav Toggle ---------- */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    top: 14px;
    right: 16px;
    z-index: 200;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 150;
}

.mobile-nav-overlay.open {
    display: block;
}

/* ---------- Responsive (768px — matches app breakpoint) ---------- */
@media (max-width: 768px) {
    /* Show mobile top bar */
    .mobile-top-bar {
        display: flex;
    }

    /* Hamburger button — white on dark bar */
    .mobile-nav-toggle {
        display: block;
        color: rgba(255,255,255,0.7);
    }

    /* Slide-out nav — matches app mobile nav */
    .left-nav {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 260px;
        z-index: 160;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        padding-top: 24px;
    }

    .left-nav__logo {
        /* Show logo in slide-out — matches app mobile nav */
        display: block;
        font-size: 22px;
        padding: 16px 24px 24px;
    }

    .left-nav.open {
        transform: translateX(0);
    }

    /* Content layout — full width below top bar */
    .site-layout {
        flex-direction: column;
        margin-top: 56px;
        height: calc(100vh - 56px);
    }

    .content {
        width: 100%;
    }

    /* Footer — full width on mobile */
    .site-footer {
        left: 0;
        height: 52px;
        padding: 0 16px;
    }

    /* Content padding — matches app (16px horizontal) */
    .page-content {
        padding: 24px 16px;
        padding-bottom: 64px;
    }

    /* Typography — per taste constraints: 22px mobile page titles */
    h1 { font-size: 22px; }
    h2 { font-size: 18px; }

    .home-hero h1 {
        font-size: 24px;
    }

    .home-hero {
        min-height: calc(100vh - 56px - 52px - 48px);
    }

    .home-hero__sub {
        font-size: 0.95rem;
    }

    .narrative-shift p {
        font-size: 0.95rem;
    }

    .philosophy-section {
        padding: 1.5rem 0;
    }
}

@media (max-width: 430px) {
    /* iPhone Pro Max (430px) fine-tuning */
    .home-hero h1 {
        font-size: 22px;
    }
}
