/* =============================================
   HOME PAGE STYLES — matches TWN reference layout
   ============================================= */

/* --- Nav --- */
#site-header {
    background: var(--dark);
    padding: 0.9rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover { color: #fff; }

.btn-join {
    background: var(--primary);
    color: #fff;
    padding: 0.5rem 1.4rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background 0.2s;
}

.btn-join:hover { background: #a82c70; }

/* --- Hero --- */
.home-hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.home-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.home-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(8,18,28,0.78) 42%, rgba(8,18,28,0.18));
}

.home-hero__content {
    position: relative;
    z-index: 2;
    max-width: 560px;
    padding: 4rem 2rem 4rem 6vw;
    color: #fff;
}

.home-hero__content h1 {
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    font-weight: 800;
    line-height: 1.08;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.home-hero__content p {
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 2.5rem;
    color: rgba(255,255,255,0.88);
    max-width: 420px;
}

/* --- Shared Buttons --- */
.btn-cta {
    display: inline-block;
    background: rgba(255,255,255,0.92);
    color: var(--dark);
    border: 2px solid rgba(255,255,255,0.92);
    padding: 0.8rem 2.2rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: all 0.2s;
}

.btn-cta:hover {
    background: #fff;
    transform: translateY(-2px);
}

.btn-outline-primary {
    display: inline-block;
    border: 2px solid var(--dark);
    color: var(--dark);
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.2s;
}

.btn-outline-primary:hover {
    background: var(--dark);
    color: #fff;
}

/* --- About / Redefining Ambition --- */
.home-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: #f7f4f0;
    padding: 5rem 6vw;
    align-items: start;
}

.home-about__left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-right: 3.5rem;
}

.home-about__media {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0,0,0,0.18);
    cursor: pointer;
}

.home-about__img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

/* Play button overlay */
.home-about__media::after {
    content: '▶';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
    background: rgba(0,0,0,0.25);
    transition: background 0.2s;
}

.home-about__media:hover::after {
    background: rgba(0,0,0,0.4);
}

.home-about__play-label {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    z-index: 2;
}

.home-about__factoid {
    text-align: center;
    padding: 1rem 0;
}

.factoid-label {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.factoid-number {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.factoid-sub {
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.5;
}

.home-about__right {
    padding-left: 1rem;
    background: #f0ebe4;
    padding: 3.5rem;
    border-radius: 6px;
}

.home-about__right h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    text-align: left;
}

.home-about__right p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 2rem;
}

/* --- Stats --- */
.home-stats {
    background: #fff;
    padding: 4rem 2rem;
}

.home-stats__inner {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.stat-num {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -1px;
}

.stat-lbl {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: #ccc;
    flex-shrink: 0;
}

/* --- Chapters + Events --- */
.home-chapters {
    display: grid;
    grid-template-columns: 360px 1fr;
    min-height: 540px;
    background: var(--dark);
}

.home-chapters__card {
    background: #b8e8e8;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.home-chapters__card h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
}

.chapters-free {
    font-size: 1rem;
    color: var(--dark);
    font-weight: 500;
}

.chapters-rule {
    border: none;
    border-top: 2px solid var(--primary);
    width: 36px;
    margin: 0;
}

.home-chapters__card p {
    font-size: 0.88rem;
    color: var(--dark);
    line-height: 1.7;
}

.chapters-link {
    color: var(--dark);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.chapters-link:hover { text-decoration: underline; }

.chapters-img {
    width: 100%;
    border-radius: 6px;
    object-fit: cover;
    height: 170px;
    margin-top: auto;
}

.home-events {
    padding: 3.5rem 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    position: relative;
}

/* Decorative dots pattern on events panel */
.home-events::before {
    content: '';
    position: absolute;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    width: 180px;
    height: 180px;
    background-image: radial-gradient(circle, rgba(255,255,255,0.15) 2px, transparent 2px);
    background-size: 20px 20px;
    pointer-events: none;
}

.home-events h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    max-width: 420px;
}

.home-events .btn-cta {
    align-self: flex-start;
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.7);
}

.home-events .btn-cta:hover {
    background: rgba(255,255,255,0.12);
    border-color: #fff;
}

/* --- Resources --- */
.home-resources {
    background: #fff;
    padding: 5rem 6vw;
}

.home-resources__inner {
    max-width: 680px;
}

.home-resources__inner h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.8rem;
    text-align: left;
}

.res-rule {
    border: none;
    border-top: 1px solid #ddd;
    margin: 1rem 0 1.5rem;
    max-width: 100%;
}

.home-resources__inner p {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.75;
}

/* --- Podcast --- */
.home-podcast {
    background: #f5c842;
    padding: 4rem 6vw;
}

.home-podcast__card {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    padding: 3rem;
    align-items: center;
}

.podcast-text h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.podcast-text p {
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.podcast-links {
    display: flex;
    gap: 2rem;
}

.podcast-link {
    color: var(--dark);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.podcast-link:hover { text-decoration: underline; }

.podcast-art {
    width: 220px;
    flex-shrink: 0;
}

.podcast-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* --- Full-width community photo --- */
.home-fullphoto {
    width: 100%;
    height: 420px;
    overflow: hidden;
}

.home-fullphoto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

/* --- Collaborate + Press --- */
.home-collab {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 0;
    padding: 5rem 6vw;
    background: #fff;
    align-items: start;
}

.home-collab__left h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.2rem;
    text-align: left;
}

.home-collab__left > p {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 520px;
}

.collab-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.collab-options h4 {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.collab-options p {
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.65;
}

.home-collab__left .btn-cta {
    background: transparent;
    color: var(--dark);
    border-color: var(--dark);
}

.home-collab__left .btn-cta:hover {
    background: var(--dark);
    color: #fff;
}

.home-collab__press {
    background: #f5c4b0;
    padding: 3rem 2.5rem;
    border-radius: 6px;
    margin-left: 3rem;
}

.home-collab__press h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.home-collab__press blockquote {
    font-size: 1rem;
    color: var(--dark);
    line-height: 1.75;
    font-style: normal;
    text-align: center;
    margin-bottom: 1.5rem;
    quotes: "\201C" "\201D";
}

.home-collab__press blockquote::before {
    content: open-quote;
}

.home-collab__press blockquote::after {
    content: close-quote;
}

.home-collab__press cite {
    display: block;
    text-align: center;
    font-style: normal;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--dark);
}

/* --- Social Feed --- */
.home-social {
    background: #d6f0f0;
    padding: 3.5rem 6vw;
}

.home-social__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.social-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.social-follow {
    color: var(--dark);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}

.social-follow:hover { text-decoration: underline; }

.home-social__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.social-tile {
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 1;
}

.social-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.social-tile:hover img { transform: scale(1.04); }

/* --- Footer --- */
.home-footer {
    background: var(--dark);
    color: #fff;
    padding: 4rem 6vw 0;
}

.home-footer__inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-logo {
    height: 44px;
    width: 44px;
    border-radius: 50%;
}

.footer-brand p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.5;
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.footer-socials a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-socials a:hover { color: #fff; }

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 0.3px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-col a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
}

.footer-bottom div {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom a:hover { color: #fff; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .home-about {
        grid-template-columns: 1fr;
        padding: 4rem 5vw;
    }

    .home-about__left { padding-right: 0; }

    .home-about__right { padding: 2.5rem; }

    .home-chapters {
        grid-template-columns: 1fr;
    }

    .home-events {
        padding: 3rem 2.5rem;
        min-height: 300px;
    }

    .home-collab {
        grid-template-columns: 1fr;
    }

    .home-collab__press {
        margin-left: 0;
        margin-top: 2rem;
    }

    .home-footer__inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .home-hero__content {
        padding: 3rem 1.5rem;
    }

    .home-hero__content h1 {
        font-size: 2.6rem;
    }

    .home-stats__inner {
        flex-direction: column;
        gap: 2rem;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

    .home-podcast__card {
        grid-template-columns: 1fr;
    }

    .podcast-art {
        width: 100%;
    }

    .home-social__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .collab-options {
        grid-template-columns: 1fr;
    }

    .home-footer__inner {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .nav-links {
        display: none;
    }
}
