/* ============================================================
   ELLEN LOUDON — PROJECT / BOOK DETAIL PAGE STYLES
   Used by: kindness.html, 12.html, phd.html (and any future
   book/project page duplicated from the template).

   This file holds the styling shared by every project detail
   page: the on-white nav variant, project hero, breadcrumb,
   book detail layout, extract/content sections, gallery,
   testimonials, impact stats, CTA section, and this template's
   responsive rules.

   Site-wide chrome (variables, typography, buttons, nav base,
   scroll-reveal, footer) lives in site-base.css — load that
   first, then this file, then any truly page-unique <style>
   block for one-off content.
   ============================================================ */

/* ============================================
   NAVIGATION (page-specific: always on a white
   surface here, unlike index.html's transparent
   hero nav)
============================================ */
.navbar {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 30px rgba(0, 51, 153, 0.06);
}

/* ============================================
   PROJECT HERO
============================================ */
.project-hero {
    position: relative;
    overflow: hidden;
    background: #0d0d14;
}

.project-hero-inner {
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
}

.project-hero-bg {
    /* IMAGE: Full-width hero banner for this project
       Recommended size: 1920 × 800px (wide landscape)
       For a BOOK: could be a moody/atmospheric shot related to the book
       For BE KIND: a community group photo or event shot */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--warm-stone);
}

/* Mostly clear image — just enough dark wash on the left for the
   text to sit on, fading out to the right so the photo reads. */
.project-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(5, 8, 20, 0.78) 0%, rgba(5, 8, 20, 0.45) 38%, rgba(5, 8, 20, 0.08) 65%, rgba(5, 8, 20, 0) 85%),
                linear-gradient(0deg, rgba(5, 8, 20, 0.55) 0%, rgba(5, 8, 20, 0) 30%);
}

.project-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 640px;
}

.project-hero-label {
    font-family: 'Public Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 1.25rem;
}

.project-hero-title {
    font-family: 'Newsreader', serif;
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    font-weight: 500;
    color: #fff;
    line-height: 0.98;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}

.project-hero-title .gold {
    color: var(--accent-gold);
}

/* Dot-separated tagline strip, à la the Juliet Russell hero */
.project-hero-tagline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    font-family: 'Public Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.75rem;
}

.project-hero-tagline .sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-gold);
    flex: 0 0 auto;
}

.project-hero-subtitle {
    font-family: 'Newsreader', serif;
    font-style: italic;
    font-size: 1.35rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    max-width: 520px;
    line-height: 1.6;
    margin-bottom: 2.25rem;
}

.btn-hero-gold {
    display: inline-block;
    font-family: 'Public Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.95rem 2.25rem;
    background: var(--accent-gold);
    color: #1a1a2e;
    text-decoration: none;
    border: 2px solid var(--accent-gold);
    transition: all 0.3s ease;
}

.btn-hero-gold:hover {
    background: transparent;
    color: var(--accent-gold);
}

.project-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.project-meta-item {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.project-meta-item strong {
    display: block;
    color: #fff;
    font-weight: 500;
    margin-bottom: 0.15rem;
}

/* ============================================
   BREADCRUMB
============================================ */
.breadcrumb-wrap {
    padding: 1.5rem 0;
    background: var(--everton-wash);
}

.breadcrumb-wrap .breadcrumb {
    margin: 0;
    font-size: 0.8rem;
}

.breadcrumb-wrap .breadcrumb-item a {
    color: var(--everton-blue);
    text-decoration: none;
}

.breadcrumb-wrap .breadcrumb-item.active {
    color: var(--text-muted);
}

/* ============================================
   BOOK DETAIL SECTION
   (Used when this page is for a single book)
============================================ */
.book-detail {
    padding: 5rem 0;
}

.book-detail-cover {
    /* IMAGE: Large book cover for detail page
       Recommended size: 500 × 750px (2:3 ratio)
       High resolution, sharp edges */
    width: 100%;
    max-width: 400px;
    aspect-ratio: 2/3;
    object-fit: cover;
    background: var(--warm-stone);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.book-detail-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.book-detail-info .genre-badge {
    display: inline-block;
    font-family: 'Public Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--everton-blue);
    background: var(--everton-light);
    padding: 0.35rem 1rem;
    margin-bottom: 1.5rem;
}

.book-detail-info p {
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

.book-purchase-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ============================================
   EXTRACT / CONTENT SECTION
============================================ */
.content-section {
    padding: 5rem 0;
}

.content-section.alt-bg {
    background: var(--everton-wash);
}

.content-section.cream-bg {
    background: var(--warm-cream);
}

.extract-block {
    max-width: 700px;
    margin: 0 auto;
}

.extract-block blockquote {
    font-family: 'Newsreader', serif;
    font-size: 1.4rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--text-dark);
    border-left: 3px solid var(--everton-blue);
    padding-left: 2rem;
    margin: 2.5rem 0;
}

.extract-block p {
    font-size: 1.05rem;
    line-height: 2;
    margin-bottom: 1.5rem;
}

.extract-block .chapter-label {
    font-family: 'Public Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--everton-blue);
    margin-bottom: 1rem;
}

/* ============================================
   GALLERY SECTION
============================================ */
.gallery-section {
    padding: 5rem 0;
    background: var(--warm-white);
}

.gallery-item {
    /* IMAGE: Gallery photos
       Recommended size: 600 × 400px (3:2 ratio)
       For BOOK: author events, readings, signings
       For BE KIND: community photos, events, impact shots */
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    background: var(--warm-stone);
    transition: all 0.4s ease;
    margin-bottom: 1.5rem;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* ============================================
   TESTIMONIALS
============================================ */
.project-testimonials {
    padding: 5rem 0;
    background: var(--everton-wash);
}

.testimonial-card {
    padding: 2.5rem;
    background: #fff;
    position: relative;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.testimonial-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.testimonial-quote-icon {
    font-family: 'Newsreader', serif;
    font-size: 4rem;
    color: var(--everton-blue);
    opacity: 0.15;
    line-height: 1;
    position: absolute;
    top: 1rem;
    left: 1.5rem;
}

.testimonial-text {
    font-family: 'Newsreader', serif;
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-family: 'Public Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
}

.testimonial-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Star rating */
.star-rating {
    color: var(--accent-gold);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ============================================
   IMPACT / STATS (for Be Kind project)
============================================ */
.impact-section {
    padding: 5rem 0;
    background: var(--everton-deep);
    color: #fff;
    position: relative;
}

.impact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(26, 74, 179, 0.3) 0%, transparent 50%);
}

.impact-stat {
    text-align: center;
    position: relative;
    z-index: 1;
}

.impact-stat .stat-number {
    font-family: 'Newsreader', serif;
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--accent-gold);
    line-height: 1;
}

.impact-stat .stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
}

/* ============================================
   CTA SECTION
============================================ */
.cta-section {
    padding: 5rem 0;
    background: var(--warm-cream);
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section p {
    max-width: 500px;
    margin: 0 auto 2rem;
    color: var(--text-muted);
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 991px) {
    .project-hero-inner { min-height: 50vh; }
}

@media (max-width: 767px) {
    .project-hero-inner {
        min-height: auto;
        padding: 5rem 0 3rem;
    }
    .project-meta { gap: 1rem; }
    .book-detail-cover {
        max-width: 280px;
        margin: 0 auto 2rem;
    }
    .impact-stat { margin-bottom: 2rem; }
}
