/* ============================================================
   Yutive Brummell — Author Website  |  Green Theme
   ============================================================ */

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

:root {
    --dark:        #041009;
    --navy:        #0b2618;
    --gold:        #14a565;
    --gold-light:  #1ec97d;
    --cream:       #edf8f3;
    --white:       #ffffff;
    --text:        #1a2b20;
    --text-muted:  #527060;
    --border:      #b5dfc8;
    --serif:       'Playfair Display', Georgia, serif;
    --sans:        'Lato', 'Helvetica Neue', sans-serif;
    --ease:        0.3s ease;
    --shadow:      0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg:   0 8px 40px rgba(0,0,0,0.22);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    color: var(--text);
    background: var(--cream);
    line-height: 1.7;
    font-size: 16px;
}

/* ── UTILITIES ──────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }

.label {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 0.8rem;
}

.section-title {
    font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700; line-height: 1.2; color: var(--navy); margin-bottom: 1.2rem;
}
.section-title.light { color: var(--white); }

.divider { width: 55px; height: 2px; background: var(--gold); margin: 1.2rem 0; }
.divider.center { margin: 1.2rem auto; }

.btn {
    display: inline-block; padding: 0.85rem 2rem;
    font-family: var(--sans); font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
    border: 2px solid transparent; cursor: pointer; transition: all var(--ease);
    white-space: nowrap;
}
.btn-gold {
    background: linear-gradient(135deg, #14a565, #0d8a52);
    color: var(--white); border-color: #14a565;
}
.btn-gold:hover { background: transparent; color: var(--gold); border-color: var(--gold); }

.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

.btn-outline-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }

/* ── HEADER ─────────────────────────────────────────── */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    background: rgba(4, 16, 9, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(20, 165, 101, 0.22);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.logo a { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.logo-name {
    font-family: var(--serif); font-size: 1.25rem; font-weight: 700;
    color: var(--white); letter-spacing: 0.02em;
}
.logo-tag {
    font-size: 0.6rem; font-weight: 400; letter-spacing: 0.28em;
    text-transform: uppercase; color: var(--gold); margin-top: 3px;
}
.main-nav ul { list-style: none; display: flex; gap: 0.2rem; }
.main-nav a {
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: rgba(255,255,255,0.65);
    text-decoration: none; padding: 0.5rem 0.85rem;
    position: relative; transition: color var(--ease);
}
.main-nav a::after {
    content: ''; position: absolute; bottom: 0;
    left: 0.85rem; right: 0.85rem; height: 1px; background: var(--gold);
    transform: scaleX(0); transition: transform var(--ease);
}
.main-nav a:hover, .main-nav a.active { color: var(--white); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); transition: all var(--ease); }

/* ── HERO ────────────────────────────────────────────── */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #020d06 0%, #0b2618 55%, #031008 100%);
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 70% 40%, rgba(20,165,101,0.14) 0%, transparent 55%),
        radial-gradient(ellipse at 15% 75%, rgba(11,38,24,0.7) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 90%, rgba(20,165,101,0.06) 0%, transparent 40%);
}
.hero-lines {
    position: absolute; inset: 0; opacity: 0.025;
    background-image: repeating-linear-gradient(
        0deg, rgba(255,255,255,0.8) 0px, rgba(255,255,255,0.8) 1px,
        transparent 1px, transparent 60px
    ),
    repeating-linear-gradient(
        90deg, rgba(255,255,255,0.8) 0px, rgba(255,255,255,0.8) 1px,
        transparent 1px, transparent 60px
    );
}
.hero-content { position: relative; z-index: 1; max-width: 680px; padding: 10rem 0 6rem; }
.hero-eyebrow {
    display: flex; align-items: center; gap: 1rem;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.3em;
    text-transform: uppercase; color: var(--gold); margin-bottom: 2rem;
}
.hero-eyebrow::before { content: ''; width: 36px; height: 1px; background: var(--gold); }
.hero-name {
    font-family: var(--serif); font-size: clamp(3.2rem, 7vw, 5.8rem);
    font-weight: 700; line-height: 1.0; color: var(--white); margin-bottom: 0.4rem;
}
.hero-name em { font-style: italic; color: var(--gold-light); }
.hero-tagline {
    font-family: var(--serif); font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-style: italic; color: rgba(255,255,255,0.45); margin-bottom: 2.5rem;
}
.hero-desc {
    color: rgba(255,255,255,0.65); font-size: 1.05rem;
    max-width: 500px; line-height: 1.85; margin-bottom: 3rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-scroll {
    position: absolute; bottom: 2.5rem; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    color: rgba(255,255,255,0.3); font-size: 0.65rem; letter-spacing: 0.2em;
    text-transform: uppercase; text-decoration: none; z-index: 1;
    animation: scrollBounce 2.2s ease-in-out infinite;
}
.hero-scroll svg { width: 18px; height: 18px; }
@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(7px); }
}

/* ── FEATURED BOOK ───────────────────────────────────── */
.featured-book { padding: 7rem 0; background: var(--white); }
.featured-book .inner {
    display: grid; grid-template-columns: 1fr 1.5fr;
    gap: 5rem; align-items: center;
}
.book-visual { position: relative; display: flex; justify-content: center; }
.book-cover {
    width: 280px; aspect-ratio: 2/3;
    background: linear-gradient(160deg, #062012 0%, #0f3d22 45%, #041510 100%);
    border-radius: 3px 6px 6px 3px;
    box-shadow: -6px 6px 0 rgba(0,0,0,0.15), 0 20px 60px rgba(0,0,0,0.3),
                0 0 60px rgba(20,165,101,0.08);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 2.5rem 2rem; text-align: center;
    position: relative; overflow: hidden;
    transform: perspective(900px) rotateY(-6deg);
}
.book-cover::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 10px; height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.4), rgba(0,0,0,0.1));
}
.book-cover::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(20,165,101,0.15) 0%, transparent 60%);
}
.bc-ornament {
    width: 52px; height: 52px; border: 1px solid rgba(20,165,101,0.55); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem; position: relative; z-index: 1;
}
.bc-ornament::before, .bc-ornament::after { content: ''; position: absolute; background: var(--gold); }
.bc-ornament::before { width: 32px; height: 1px; }
.bc-ornament::after  { width: 1px; height: 32px; }
.bc-title {
    font-family: var(--serif); font-size: 1.5rem; font-style: italic;
    color: var(--white); line-height: 1.3; margin-bottom: 1rem;
    position: relative; z-index: 1;
}
.bc-rule { width: 36px; height: 1px; background: var(--gold); margin: 0 auto 1rem; position: relative; z-index: 1; }
.bc-author {
    font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
    color: rgba(255,255,255,0.5); position: relative; z-index: 1;
}
.book-badge {
    position: absolute; top: -1rem; right: -1.2rem;
    width: 76px; height: 76px;
    background: linear-gradient(135deg, #14a565, #0d8a52);
    border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-size: 0.58rem; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--white);
    box-shadow: 0 4px 18px rgba(20,165,101,0.5);
    line-height: 1.35; text-align: center; padding: 0.5rem;
}
.book-info { }
.book-desc { color: var(--text-muted); font-size: 1.05rem; line-height: 1.9; margin-bottom: 2rem; }
.book-meta {
    display: flex; gap: 2.5rem; padding: 1.5rem 0;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    margin-bottom: 2.5rem;
}
.bm-item { display: flex; flex-direction: column; gap: 0.2rem; }
.bm-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.bm-value { font-family: var(--serif); font-size: 0.92rem; color: var(--text); }
.book-actions { display: flex; gap: 1rem; }

/* ── QUOTE BAND ──────────────────────────────────────── */
.quote-band {
    padding: 6rem 0; background: var(--navy);
    text-align: center; position: relative; overflow: hidden;
}
.quote-band::before {
    content: '\201C'; position: absolute; top: -3rem; left: 50%; transform: translateX(-50%);
    font-family: var(--serif); font-size: 18rem; color: rgba(20,165,101,0.07);
    line-height: 1; pointer-events: none;
}
.quote-text {
    font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 2rem);
    font-style: italic; color: var(--white);
    max-width: 760px; margin: 0 auto 1.5rem; line-height: 1.65; position: relative; z-index: 1;
}
.quote-attr {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--gold);
    position: relative; z-index: 1;
}

/* ── AUTHOR PREVIEW ──────────────────────────────────── */
.author-preview { padding: 7rem 0; background: var(--cream); }
.author-preview .inner {
    display: grid; grid-template-columns: 1fr 1.3fr;
    gap: 5rem; align-items: center;
}
.photo-wrap { position: relative; }
.photo-placeholder {
    width: 100%; aspect-ratio: 3/4; max-width: 400px;
    background: linear-gradient(160deg, #c5b99a 0%, #a89472 55%, #8b7355 100%);
    border-radius: 2px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.35); font-family: var(--serif);
    font-size: 0.9rem; font-style: italic;
}
.photo-wrap::after {
    content: ''; position: absolute; top: 1.5rem; left: 1.5rem;
    right: -1.5rem; bottom: -1.5rem;
    border: 2px solid var(--gold); z-index: -1;
}
.author-text p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.9; margin-bottom: 1.4rem; }

/* ── NEWS / EVENTS ───────────────────────────────────── */
.news-section { padding: 7rem 0; background: var(--white); }
.section-header {
    display: flex; justify-content: space-between;
    align-items: flex-end; margin-bottom: 3.5rem;
}
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.news-card { border-top: 3px solid var(--border); padding-top: 1.8rem; transition: border-color var(--ease); }
.news-card:hover { border-color: var(--gold); }
.news-date { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem; }
.news-title { font-family: var(--serif); font-size: 1.15rem; color: var(--navy); margin-bottom: 0.6rem; line-height: 1.4; }
.news-excerpt { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 0.9rem; }
.news-link {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--gold); text-decoration: none;
    display: inline-flex; align-items: center; gap: 0.4rem; transition: gap var(--ease);
}
.news-link:hover { gap: 0.7rem; }
.news-link::after { content: '→'; }

/* ── NEWSLETTER ──────────────────────────────────────── */
.newsletter {
    padding: 5rem 0;
    background: linear-gradient(135deg, #020d06 0%, #0b2618 100%);
    text-align: center;
}
.newsletter-form { display: flex; max-width: 460px; margin: 2.5rem auto 0; }
.newsletter-form input {
    flex: 1; padding: 0.9rem 1.4rem;
    font-family: var(--sans); font-size: 0.9rem;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(20,165,101,0.25); border-right: none;
    color: var(--white); outline: none; transition: border-color var(--ease);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-form input:focus { border-color: var(--gold); }
.newsletter-form button {
    padding: 0.9rem 1.6rem;
    background: linear-gradient(135deg, #14a565, #0d8a52);
    color: var(--white); border: none;
    font-family: var(--sans); font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer;
    transition: opacity var(--ease); white-space: nowrap;
}
.newsletter-form button:hover { opacity: 0.85; }

/* ── FOOTER ──────────────────────────────────────────── */
.site-footer { background: var(--dark); padding: 5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.foot-brand-name { font-family: var(--serif); font-size: 1.4rem; color: var(--white); display: block; margin-bottom: 0.3rem; }
.foot-brand-tag  { font-size: 0.6rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 1.5rem; }
.foot-brand-desc { color: rgba(255,255,255,0.4); font-size: 0.88rem; line-height: 1.8; max-width: 270px; margin-bottom: 1.5rem; }
.socials { display: flex; gap: 0.6rem; }
.social-btn {
    width: 34px; height: 34px; border: 1px solid rgba(20,165,101,0.25); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.45); text-decoration: none;
    font-size: 0.78rem; font-weight: 700; transition: all var(--ease);
}
.social-btn:hover { border-color: var(--gold); color: var(--gold); }
.foot-col-title { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.4rem; }
.foot-links { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.foot-links a { text-decoration: none; color: rgba(255,255,255,0.4); font-size: 0.86rem; transition: color var(--ease); }
.foot-links a:hover { color: var(--white); }
.foot-contact-item { margin-bottom: 1rem; }
.foot-contact-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.28); }
.foot-contact-value { color: rgba(255,255,255,0.55); font-size: 0.86rem; }
.footer-bottom {
    padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.07);
    display: flex; justify-content: space-between; align-items: center;
    color: rgba(255,255,255,0.22); font-size: 0.76rem;
}

/* ── PAGE HERO ───────────────────────────────────────── */
.page-hero {
    padding: 10rem 0 5rem;
    background: linear-gradient(135deg, #020d06 0%, #0b2618 100%);
    position: relative; overflow: hidden;
}
.page-hero::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(20,165,101,0.1) 0%, transparent 55%);
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero-title {
    font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700; color: var(--white); line-height: 1.15;
}

/* ── ABOUT AUTHOR PAGE ───────────────────────────────── */
.author-main { padding: 7rem 0; background: var(--white); }
.author-main .inner { display: grid; grid-template-columns: 1fr 2fr; gap: 5rem; }
.author-sidebar-photo {
    width: 100%; aspect-ratio: 3/4;
    background: linear-gradient(160deg, #c5b99a 0%, #a89472 55%, #8b7355 100%);
    border-radius: 2px; margin-bottom: 2rem;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.35); font-family: var(--serif); font-style: italic; font-size: 0.9rem;
}
.pullquote {
    border-left: 3px solid var(--gold); padding: 1.2rem 1.5rem;
    background: var(--cream);
}
.pullquote p { font-family: var(--serif); font-style: italic; color: var(--navy); font-size: 1rem; line-height: 1.7; }
.author-body h2 {
    font-family: var(--serif); font-size: 1.85rem; color: var(--navy);
    margin: 3rem 0 1.2rem;
}
.author-body h2:first-child { margin-top: 0; }
.author-body p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.9; margin-bottom: 1.3rem; }
.awards { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; margin-top: 1.2rem; }
.awards li { display: flex; gap: 1rem; align-items: flex-start; padding-bottom: 0.9rem; border-bottom: 1px solid var(--border); }
.award-yr { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; color: var(--gold); white-space: nowrap; padding-top: 0.2rem; }
.award-text { font-size: 0.93rem; color: var(--text); line-height: 1.5; }

/* ── ABOUT BOOK PAGE ─────────────────────────────────── */
.book-showcase {
    padding: 7rem 0;
    background: linear-gradient(160deg, #041209 0%, #0b2618 55%, #061a0e 100%);
    position: relative; overflow: hidden;
}
.book-showcase::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(20,165,101,0.1) 0%, transparent 60%);
}
.book-showcase .inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: 5rem; align-items: center; position: relative; z-index: 1; }
.book-synopsis { padding: 7rem 0; background: var(--white); }
.synopsis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.synopsis-grid h2 { font-family: var(--serif); font-size: 1.85rem; color: var(--navy); margin-bottom: 1.2rem; }
.synopsis-grid p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.9; margin-bottom: 1.2rem; }
.excerpt-block {
    background: var(--cream); border-left: 4px solid var(--gold);
    padding: 2.5rem 3rem; margin: 5rem 0; position: relative;
}
.excerpt-block::before {
    content: '\201C'; position: absolute; top: 0.5rem; left: 1.5rem;
    font-family: var(--serif); font-size: 5rem; color: var(--gold);
    opacity: 0.22; line-height: 1;
}
.excerpt-block p {
    font-family: var(--serif); font-style: italic;
    font-size: 1.12rem; color: var(--navy); line-height: 1.8; position: relative; z-index: 1;
}
.buy-section { padding: 6rem 0; background: var(--cream); text-align: center; }
.retailers { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; margin-top: 3rem; }
.retailer {
    display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
    padding: 1.2rem 2rem; background: var(--white); border: 2px solid var(--border);
    text-decoration: none; min-width: 130px; transition: all var(--ease);
}
.retailer:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow); }
.retailer-name { font-weight: 700; font-size: 0.88rem; color: var(--navy); }
.retailer-fmt { font-size: 0.68rem; color: var(--text-muted); letter-spacing: 0.1em; }

/* ── GALLERY PAGE ────────────────────────────────────── */
.gallery-section { padding: 6rem 0; background: var(--white); }
.gallery-filters { display: flex; gap: 0.4rem; margin-bottom: 3rem; flex-wrap: wrap; }
.filter-btn {
    padding: 0.45rem 1.1rem; background: none;
    border: 1px solid var(--border); font-family: var(--sans);
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--text-muted);
    cursor: pointer; transition: all var(--ease);
}
.filter-btn:hover, .filter-btn.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; }
.gallery-item { position: relative; overflow: hidden; cursor: pointer; }
.gallery-item.tall { grid-row: span 2; }
.g-thumb {
    width: 100%; aspect-ratio: 1; display: block;
    transition: transform 0.5s ease;
}
.gallery-item.tall .g-thumb { aspect-ratio: unset; height: 100%; min-height: 350px; }

/* Gallery placeholders — varied gradients for visual interest */
.g1 { background: linear-gradient(135deg, #0b2618, #14a565, #0d7a45); }
.g2 { background: linear-gradient(135deg, #1a3a2a, #2a8a5a); }
.g3 { background: linear-gradient(135deg, #062012, #1ec97d); }
.g4 { background: linear-gradient(160deg, #0d2b1c, #14a565 60%, #0a1f14); }
.g5 { background: linear-gradient(135deg, #041009, #14a565 50%, #1ec97d); }
.g6 { background: linear-gradient(135deg, #0a2014, #1a6a40); }
.g7 { background: linear-gradient(145deg, #0b2618, #20c070); }
.g8 { background: linear-gradient(135deg, #071812, #14a565 70%, #0b4028); }
.g9 { background: linear-gradient(135deg, #062012, #0f5030, #1ec97d); }

.g-inner { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.g-overlay {
    position: absolute; inset: 0;
    background: rgba(4, 16, 9, 0.85);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 0.4rem;
    opacity: 0; transition: opacity var(--ease);
}
.gallery-item:hover .g-thumb { transform: scale(1.06); }
.gallery-item:hover .g-overlay { opacity: 1; }
.g-overlay-title { font-family: var(--serif); font-size: 1.05rem; color: var(--white); text-align: center; padding: 0 1rem; }
.g-overlay-cat { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; background: rgba(2, 10, 5, 0.94);
    z-index: 500; display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img {
    max-width: 90vw; max-height: 85vh;
    border-radius: 2px; box-shadow: var(--shadow-lg);
}
.lightbox-close {
    position: absolute; top: 1.5rem; right: 2rem;
    font-size: 2rem; color: rgba(255,255,255,0.6);
    cursor: pointer; background: none; border: none;
    transition: color var(--ease); line-height: 1;
}
.lightbox-close:hover { color: var(--white); }
.lightbox-caption {
    position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
    font-family: var(--serif); font-style: italic;
    font-size: 0.9rem; color: rgba(255,255,255,0.5); white-space: nowrap;
}

/* ── CONTACT PAGE ────────────────────────────────────── */
.contact-section { padding: 6rem 0; background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 5rem; }
.ci-item { margin-bottom: 1.8rem; }
.ci-label { font-size: 0.67rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.25rem; }
.ci-value { font-size: 0.93rem; color: var(--text); }
.ci-value a { color: var(--navy); text-decoration: none; transition: color var(--ease); }
.ci-value a:hover { color: var(--gold); }
.contact-note { padding: 1.8rem; background: var(--cream); border-left: 3px solid var(--gold); margin-top: 2rem; }
.contact-note p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }
.form-group { margin-bottom: 1.4rem; }
.form-group label { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text); margin-bottom: 0.55rem; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 0.88rem 1.1rem;
    font-family: var(--sans); font-size: 0.93rem; color: var(--text);
    background: var(--cream); border: 1px solid var(--border);
    outline: none; transition: border-color var(--ease);
    -webkit-appearance: none; border-radius: 0;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); background: var(--white); }
.form-group textarea { height: 155px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-footer { display: flex; align-items: center; gap: 1.5rem; }
.form-note { font-size: 0.78rem; color: var(--text-muted); }

/* ── SUCCESS / ALERT ─────────────────────────────────── */
.alert { padding: 1rem 1.4rem; margin-bottom: 1.5rem; font-size: 0.9rem; }
.alert-success { background: #e3f7ee; border-left: 3px solid #14a565; color: #0b5c38; }
.alert-error   { background: #fce8e8; border-left: 3px solid #e53935; color: #b71c1c; }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 960px) {
    .featured-book .inner,
    .author-preview .inner,
    .author-main .inner,
    .book-showcase .inner,
    .contact-grid,
    .synopsis-grid { grid-template-columns: 1fr; gap: 3rem; }
    .news-grid   { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .gallery-grid { grid-template-columns: repeat(2,1fr); }
    .gallery-item.tall { grid-row: span 1; }
    .gallery-item.tall .g-thumb { min-height: unset; }
    .book-cover { width: 230px; }
    /* card width handled by JS carousel update() */
    .other-titles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .main-nav {
        position: fixed; top: 72px; left: 0; right: 0;
        background: rgba(4, 16, 9, 0.98);
        padding: 1.5rem 2rem;
        transform: translateY(-110%); opacity: 0;
        transition: all var(--ease); pointer-events: none;
    }
    .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: all; }
    .main-nav ul   { flex-direction: column; gap: 0; }
    .main-nav a    { display: block; padding: 0.9rem 0; font-size: 0.92rem; border-bottom: 1px solid rgba(20,165,101,0.12); }
    .main-nav a::after { display: none; }
    .nav-toggle    { display: flex; }
    .news-grid     { grid-template-columns: 1fr; }
    .footer-grid   { grid-template-columns: 1fr; gap: 2rem; }
    .gallery-grid  { grid-template-columns: 1fr 1fr; }
    .form-row      { grid-template-columns: 1fr; }
    .section-header  { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .book-actions, .hero-cta { flex-direction: column; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form input { border-right: 1px solid rgba(20,165,101,0.25); }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
    .retailers { flex-direction: column; align-items: center; }
    .book-meta { gap: 1.2rem; flex-wrap: wrap; }
    .form-footer { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .excerpt-block { padding: 2rem 1.5rem; }
    .other-titles-grid { grid-template-columns: 1fr; }
    .carousel-nav { display: none; }
}

/* ── BOOKS CAROUSEL ──────────────────────────────────── */
.books-carousel-section { padding: 7rem 0; background: var(--cream); }

.carousel-nav { display: flex; gap: 0.6rem; }
.carousel-btn {
    width: 44px; height: 44px;
    background: none; border: 2px solid var(--navy);
    color: var(--navy); font-size: 1.2rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--ease); line-height: 1;
}
.carousel-btn:hover:not(:disabled) { background: var(--navy); color: var(--white); }
.carousel-btn:disabled { opacity: 0.3; cursor: default; }

.carousel-viewport { overflow: hidden; }
.carousel-track {
    display: flex; gap: 2rem;
    transition: transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
}

/* ── BOOK CARD (shared by carousel + other-titles) ───── */
.book-card {
    flex-shrink: 0;          /* JS sets the pixel width */
    background: var(--white);
    transition: box-shadow var(--ease);
}
.book-card:hover { box-shadow: 0 10px 36px rgba(0,0,0,0.14); }
.book-card-link { display: block; text-decoration: none; }

.book-card-cover {
    width: 100%; aspect-ratio: 2/3;
    background: linear-gradient(160deg, #062012 0%, #0f3d22 45%, #041510 100%);
    position: relative; overflow: hidden;
}
.book-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.book-card-placeholder {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 2rem; text-align: center;
}
.book-card-placeholder .bc-title { font-size: 1.05rem; }

.book-card-badge {
    position: absolute; top: 1rem; right: 1rem;
    background: linear-gradient(135deg, #14a565, #0d8a52);
    color: var(--white); font-size: 0.58rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    padding: 0.35rem 0.7rem;
}

.book-card-info { padding: 1.5rem; }
.book-card-year {
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em;
    text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem;
}
.book-card-title {
    font-family: var(--serif); font-size: 1.1rem; color: var(--navy);
    line-height: 1.3; margin-bottom: 0.6rem;
    transition: color var(--ease);
}
.book-card:hover .book-card-title { color: var(--gold); }
.book-card-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }

.carousel-dots { display: flex; gap: 0.5rem; justify-content: center; margin-top: 2.5rem; }
.dot {
    width: 8px; height: 8px; border-radius: 50%;
    border: none; padding: 0; cursor: pointer;
    background: var(--border); transition: background var(--ease);
}
.dot.active { background: var(--gold); }

/* ── OTHER TITLES (about-book page) ─────────────────── */
.other-titles { padding: 7rem 0; background: var(--cream); }
.other-titles-header { margin-bottom: 3.5rem; }
.other-titles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.other-titles-grid .book-card {
    flex: none;
    transition: transform var(--ease), box-shadow var(--ease);
}
.other-titles-grid .book-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* ── SCROLL FADE-IN ──────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
