/* Yosemite High Country Map — yosemitemap.app
   Shared stylesheet for the public site (Phase 1).
   Palette: granite + alpine forest. */

:root {
    --forest: #2c5f3f;
    --forest-deep: #1e4530;
    --meadow: #7fae74;
    --granite: #4a5259;
    --ink: #24303a;
    --muted: #5c6b76;
    --paper: #ffffff;
    --mist: #f4f6f3;
    --line: #e2e7e0;
    --warn: #b02a2a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
        Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Header ---------- */

header {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
}

header nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
}

.logo .logo-mark {
    font-size: 1.5rem;
    line-height: 1;
}

.logo .logo-text {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.header-nav {
    display: flex;
    gap: 22px;
}

.header-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.header-nav a:hover,
.header-nav a.current {
    color: var(--forest);
}

/* ---------- Hero (landing) ---------- */

.hero {
    background: linear-gradient(170deg, var(--forest-deep) 0%, var(--forest) 60%, #3c7350 100%);
    color: #fff;
    text-align: center;
    padding: 90px 20px 80px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.1rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    max-width: 760px;
    margin: 0 auto 18px;
}

.hero .tagline {
    font-size: clamp(1.05rem, 2.5vw, 1.3rem);
    color: rgba(255, 255, 255, 0.88);
    max-width: 640px;
    margin: 0 auto 34px;
}

.badge-soon {
    display: inline-block;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

/* ---------- Sections ---------- */

section { padding: 70px 0; }

section.alt { background: var(--mist); }

.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.section-intro {
    text-align: center;
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto 44px;
}

/* Feature grid */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.feature-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
}

.feature-card .icon {
    font-size: 1.6rem;
    margin-bottom: 12px;
    display: block;
}

.feature-card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.feature-card p {
    color: var(--muted);
    font-size: 0.95rem;
}

/* Data sources strip */

.sources-list {
    max-width: 720px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.source-row {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px 20px;
}

.source-row strong { display: block; }

.source-row span { color: var(--muted); font-size: 0.93rem; }

/* FAQ accordion (landing) — Hawaii-site style, scoped to #faq so the
   support page's static .faq-item boxes are unaffected */

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 15px;
}

#faq .faq-item {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

#faq .faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.faq-question {
    width: 100%;
    padding: 15px 20px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
}

.faq-question:hover {
    background-color: var(--mist);
}

.faq-icon {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--forest);
    transition: transform 0.3s;
}

#faq .faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

#faq .faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 20px 15px 20px;
}

.faq-answer p {
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.faq-answer a {
    color: var(--forest);
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

.creator-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.creator-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 30% 50%;
    flex-shrink: 0;
}

/* Disclaimer band */

.disclaimer-band {
    max-width: 720px;
    margin: 0 auto;
    border: 1px solid #e7c9c9;
    background: #fdf6f6;
    border-radius: 12px;
    padding: 24px 28px;
}

.disclaimer-band h3 {
    color: var(--warn);
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.disclaimer-band p {
    color: var(--muted);
    font-size: 0.93rem;
    margin-bottom: 8px;
}

.disclaimer-band p:last-child { margin-bottom: 0; }

/* ---------- Document pages (privacy / terms / support) ---------- */

.doc-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 50px 20px 90px;
}

.doc-content h1 {
    font-size: 2.2rem;
    text-align: center;
    color: var(--forest);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.doc-content .last-updated {
    text-align: center;
    font-style: italic;
    color: #9aa5ad;
    font-size: 0.92rem;
    margin-bottom: 44px;
}

.doc-content .intro-text {
    text-align: center;
    color: var(--muted);
    margin-bottom: 44px;
}

.doc-content h2 {
    font-size: 1.35rem;
    margin: 40px 0 14px;
}

.doc-content h2.warn { color: var(--warn); }

.doc-content p { margin-bottom: 14px; color: var(--muted); }

.doc-content p.warn { color: var(--warn); font-weight: 600; }

.doc-content strong { color: var(--ink); }

.doc-content ul { margin: 14px 0; padding-left: 28px; }

.doc-content li { margin-bottom: 8px; color: var(--muted); }

.doc-content a { color: var(--forest); text-decoration: none; }

.doc-content a:hover { text-decoration: underline; }

/* Support FAQ */

.faq-item {
    background: var(--mist);
    border-radius: 10px;
    padding: 20px 22px;
    margin-bottom: 14px;
}

.faq-item h3 { margin-bottom: 8px; font-size: 1.02rem; }

.faq-item p:last-child, .faq-item ul:last-child { margin-bottom: 0; }

.contact-box {
    background: linear-gradient(135deg, var(--forest) 0%, var(--forest-deep) 100%);
    border-radius: 12px;
    padding: 34px;
    text-align: center;
    margin-top: 50px;
}

.contact-box h2 { color: #fff; margin: 0 0 10px; }

.contact-box p { color: rgba(255, 255, 255, 0.9); }

.contact-box a { color: #fff; font-weight: 600; font-size: 1.1rem; }

/* ---------- Footer ---------- */

footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.75);
    padding: 36px 0;
    font-size: 0.9rem;
}

footer .container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; }

.footer-nav a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.footer-nav a:hover, .footer-nav a.current { color: #fff; }

@media (max-width: 640px) {
    .header-nav { gap: 14px; }
    section { padding: 50px 0; }
    footer .container { flex-direction: column; }

    .creator-info {
        flex-direction: column;
        text-align: center;
    }

    .creator-photo {
        width: 110px;
        height: 110px;
    }
}
