/* ========================================================================
   VAGRANT PRESS — Main Stylesheet
   Version: 1.0.2
   Light editorial theme for an indie book publisher.
   ======================================================================== */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }

/* ---- Root Variables ---- */
:root {
    /* Light palette */
    --bg: #ffffff;
    --bg-alt: #f8f7f4;
    --bg-warm: #f3f1ec;
    --card-bg: #ffffff;
    --card-border: #e8e6e1;
    --border: #e0ded8;
    --border-light: #eceae5;

    /* Text */
    --text: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #7a7a7a;
    --text-faint: #a0a0a0;

    /* Accent: deep crimson */
    --accent: #b83232;
    --accent-hover: #a02828;
    --accent-light: rgba(184, 50, 50, 0.06);
    --accent-border: rgba(184, 50, 50, 0.15);

    /* Secondary: warm charcoal for footer/nav */
    --dark: #1c1c1c;
    --dark-text: #e8e6e1;
    --dark-muted: #9a9890;
    --dark-border: #333330;
    --dark-card: #262624;

    /* Layout */
    --section-pad: 100px 0;
    --container: 1100px;
    --radius: 8px;
    --radius-lg: 16px;
}

/* ---- Typography ---- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--text);
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
h4 { font-size: 1rem; font-weight: 600; }

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

strong { font-weight: 600; color: var(--text); }

/* ---- Utility ---- */
.accent { color: var(--accent); }
.muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* ---- Container ---- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Sections ---- */
.section { padding: var(--section-pad); }
.section-alt { background: var(--bg-alt); }
.section-warm { background: var(--bg-warm); }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-outline {
    border: 1.5px solid var(--border);
    color: var(--text);
    background: transparent;
}
.btn-outline:hover {
    border-color: var(--text-muted);
    background: var(--bg-alt);
}

.btn-amazon {
    background: #FF9900;
    color: #111;
    font-weight: 700;
}
.btn-amazon:hover {
    background: #e68a00;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 9px 18px;
    font-size: 0.85rem;
}

/* ========================================================================
   NAVIGATION
   ======================================================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
}

.nav-scrolled {
    border-bottom-color: var(--border-light);
    padding: 12px 0;
}

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}
.nav-logo span {
    color: var(--accent);
}
.nav-logo img {
    height: 34px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links > li > a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links > li > a:hover {
    color: var(--text);
}

.nav-cta {
    padding: 9px 18px !important;
    font-size: 0.85rem !important;
}

/* Dropdown */
.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown-arrow {
    transition: transform 0.2s;
}

.nav-links > li:hover .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.nav-links > li {
    position: relative;
}

.nav-links > li:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown li a {
    display: block;
    padding: 8px 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.15s;
}
.nav-dropdown li a:hover {
    color: var(--text);
    background: var(--bg-alt);
}

/* Mobile Toggle */
.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}
.nav-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
}
.nav-toggle-active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle-active span:nth-child(2) { opacity: 0; }
.nav-toggle-active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========================================================================
   HERO SECTIONS
   ======================================================================== */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    background: var(--bg-alt);
}

.hero-headline {
    max-width: 700px;
    margin: 0 auto 20px;
}

.hero-sub {
    max-width: 560px;
    margin: 0 auto 36px;
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Page hero (archives, about) */
.page-hero {
    padding: 130px 0 50px;
    text-align: center;
    background: var(--bg-alt);
}

.page-hero h1 {
    margin-bottom: 12px;
}

.page-hero p {
    max-width: 560px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ========================================================================
   BOOK COMPONENTS
   ======================================================================== */

/* Book cover */
.book-cover {
    aspect-ratio: 2/3;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.book-cover:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
}

.book-cover-placeholder {
    aspect-ratio: 2/3;
    background: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: center;
    padding: 20px;
}

/* Book card */
.book-card {
    display: block;
    transition: transform 0.2s;
}
.book-card:hover {
    transform: translateY(-3px);
}

.book-card .book-cover,
.book-card .book-cover-placeholder {
    margin-bottom: 14px;
}

.book-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 3px;
}

.book-card-author {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.book-card-author a {
    color: var(--text-muted);
    transition: color 0.2s;
}
.book-card-author a:hover {
    color: var(--accent);
}

.book-card-tagline {
    font-size: 0.8rem;
    color: var(--text-faint);
    font-style: italic;
}

/* Book grid */
.book-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
}

/* Book hero (single book page) */
.book-hero {
    padding: 130px 0 60px;
    background: var(--bg-alt);
}

.book-hero-inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 52px;
    align-items: start;
}

.book-hero-cover {
    position: sticky;
    top: 100px;
}

.book-hero-info h1 {
    margin-bottom: 8px;
}

.book-hero-tagline {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 14px;
}

.book-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 24px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.book-hero-meta a {
    color: var(--text-secondary);
    transition: color 0.2s;
}
.book-hero-meta a:hover {
    color: var(--accent);
}

.book-hero-meta .separator {
    color: var(--border);
}

/* Buy links */
.buy-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

/* Book blurb */
.book-blurb {
    padding: 52px 0;
    border-top: 1px solid var(--border-light);
}

.book-blurb-content {
    max-width: 660px;
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--text-secondary);
}

.book-blurb-content p {
    margin-bottom: 1.2em;
}

/* Book excerpt */
.book-excerpt {
    padding: 52px 0;
    border-top: 1px solid var(--border-light);
}

.book-excerpt h2 {
    margin-bottom: 28px;
}

.book-excerpt-content {
    max-width: 660px;
    font-size: 1.02rem;
    line-height: 1.9;
    color: var(--text-secondary);
    white-space: pre-line;
}

/* Lead magnet CTA */
.lead-magnet-cta {
    background: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 44px;
    text-align: center;
    margin: 52px 0;
}

.lead-magnet-cta h3 {
    margin-bottom: 10px;
}

.lead-magnet-cta p {
    color: var(--text-muted);
    margin-bottom: 20px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* Series section */
.book-series {
    padding: 52px 0;
    border-top: 1px solid var(--border-light);
}

.book-series h2 {
    margin-bottom: 28px;
}

.book-series .book-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* ========================================================================
   AUTHOR COMPONENTS
   ======================================================================== */

/* Author card */
.author-card {
    display: block;
    text-align: center;
    transition: transform 0.2s;
}
.author-card:hover {
    transform: translateY(-3px);
}

.author-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    border: 2px solid var(--border-light);
}
.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-avatar-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--bg-warm);
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--text-faint);
}

.author-card-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 3px;
}

.author-card-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.author-card-count {
    font-size: 0.8rem;
    color: var(--text-faint);
}

/* Author grid */
.author-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 44px;
}

/* Author hero (single) */
.author-hero {
    padding: 130px 0 40px;
    text-align: center;
    background: var(--bg-alt);
}

.author-hero .author-avatar,
.author-hero .author-avatar-placeholder {
    width: 180px;
    height: 180px;
    margin-bottom: 20px;
}

.author-hero h1 {
    margin-bottom: 6px;
}

.author-hero-tagline {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Author social */
.author-social {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 32px;
}

.author-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all 0.2s;
}
.author-social a:hover {
    color: var(--text);
    border-color: var(--text-muted);
    background: var(--bg-alt);
}

/* Author bio */
.author-bio {
    max-width: 660px;
    margin: 0 auto;
    padding: 36px 0 52px;
    font-size: 1.02rem;
    line-height: 1.85;
}

/* Author books section */
.author-books {
    padding: 52px 0;
    border-top: 1px solid var(--border-light);
}

.author-books h2 {
    text-align: center;
    margin-bottom: 40px;
}

/* ========================================================================
   GENRE COMPONENTS
   ======================================================================== */

/* Genre badge */
.genre-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid var(--accent-border);
    transition: all 0.2s;
}
.genre-badge:hover {
    background: rgba(184, 50, 50, 0.1);
}

/* Genre filter bar */
.genre-filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 44px;
}

.genre-filter-bar a {
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    border: 1px solid var(--border);
    transition: all 0.2s;
}
.genre-filter-bar a:hover {
    color: var(--text);
    border-color: var(--text-muted);
}
.genre-filter-bar a.active {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

/* Genre card (homepage) */
.genre-card {
    display: block;
    padding: 28px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.2s;
}
.genre-card:hover {
    border-color: var(--text-faint);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.genre-card-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 3px;
}

.genre-card-count {
    font-size: 0.8rem;
    color: var(--text-faint);
}

.genre-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ========================================================================
   KIT EMBED
   ======================================================================== */
.kit-embed-container {
    max-width: 400px;
}

/* ========================================================================
   HOMEPAGE SECTIONS
   ======================================================================== */
.home-featured {
    padding: 80px 0;
}

.home-featured h2,
.home-genres h2,
.home-about h2 {
    text-align: center;
    margin-bottom: 44px;
}

.home-genres {
    padding: 80px 0;
    background: var(--bg-alt);
}

.home-about {
    padding: 80px 0;
}

.home-about-text {
    max-width: 660px;
    margin: 0 auto 28px;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.home-newsletter {
    padding: 80px 0;
    background: var(--bg-warm);
    text-align: center;
}

.home-newsletter h2 {
    margin-bottom: 10px;
}

.home-newsletter p {
    color: var(--text-muted);
    margin-bottom: 28px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.home-newsletter .kit-embed-container {
    margin: 0 auto;
}

/* ========================================================================
   ABOUT PAGE
   ======================================================================== */
.about-content {
    max-width: 660px;
    margin: 0 auto;
    padding: 0 0 52px;
    font-size: 1.02rem;
    line-height: 1.85;
}

.about-content h3 {
    margin-top: 2em;
    margin-bottom: 0.5em;
}

.about-authors {
    padding: 52px 0;
    border-top: 1px solid var(--border-light);
}

.about-authors h2 {
    text-align: center;
    margin-bottom: 44px;
}

/* ========================================================================
   BONUS / LEAD MAGNET LANDING PAGE
   ======================================================================== */
.bonus-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: var(--bg);
}

.bonus-logo {
    margin-bottom: 44px;
}
.bonus-logo a {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}
.bonus-logo a span {
    color: var(--accent);
}

.bonus-content {
    max-width: 520px;
    width: 100%;
    text-align: center;
}

.bonus-content h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.25rem);
    margin-bottom: 14px;
}

.bonus-content .bonus-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 28px;
}

/* ========================================================================
   BLOG
   ======================================================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.blog-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s;
}
.blog-card:hover {
    border-color: var(--text-faint);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.blog-card-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
}
.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-body {
    padding: 20px;
}

.blog-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.3;
}

.blog-card-excerpt {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.blog-card-date {
    font-size: 0.75rem;
    color: var(--text-faint);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Single blog post */
.blog-single {
    padding: 130px 0 52px;
}

.blog-single-header {
    max-width: 660px;
    margin: 0 auto 36px;
    text-align: center;
}

.blog-single-header h1 {
    margin-bottom: 12px;
}

.blog-single-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.blog-single-content {
    max-width: 660px;
    margin: 0 auto;
    font-size: 1.02rem;
    line-height: 1.9;
}

.blog-single-content p { margin-bottom: 1.2em; }
.blog-single-content h2 { margin: 2em 0 0.75em; font-size: 1.6rem; }
.blog-single-content h3 { margin: 1.5em 0 0.5em; font-size: 1.25rem; }
.blog-single-content ul, .blog-single-content ol { padding-left: 1.5em; margin-bottom: 1.2em; list-style: disc; }
.blog-single-content ol { list-style: decimal; }
.blog-single-content li { margin-bottom: 0.4em; }
.blog-single-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 14px 20px;
    margin: 1.5em 0;
    color: var(--text-muted);
    font-style: italic;
}
.blog-single-content a { color: var(--accent); }
.blog-single-content a:hover { color: var(--accent-hover); }
.blog-single-content img { border-radius: var(--radius); margin: 1.5em 0; }

/* ========================================================================
   BACK LINK
   ======================================================================== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    transition: color 0.2s;
}
.back-link:hover {
    color: var(--text);
}

/* ========================================================================
   PAGE CONTENT (generic)
   ======================================================================== */
.page-content {
    padding: 130px 0 60px;
}

.page-content h1 {
    margin-bottom: 20px;
}

/* ========================================================================
   404 ERROR
   ======================================================================== */
.error-page {
    padding: 160px 0;
    text-align: center;
}

.error-code {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: clamp(5rem, 12vw, 10rem);
    font-weight: 800;
    color: var(--bg-warm);
    line-height: 1;
    margin-bottom: 12px;
}

.error-content h1 {
    margin-bottom: 10px;
}

.error-content p {
    color: var(--text-muted);
    margin-bottom: 28px;
}

.error-links {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================================================
   CONTACT FORM
   ======================================================================== */
.contact-inner {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.contact-form-field {
    margin-bottom: 18px;
}

.contact-form-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 5px;
}

.contact-form-field input,
.contact-form-field select,
.contact-form-field textarea {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.contact-form-field input:focus,
.contact-form-field select:focus,
.contact-form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.contact-form-field input::placeholder,
.contact-form-field textarea::placeholder {
    color: var(--text-faint);
}

.contact-form-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237a7a7a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.contact-success {
    text-align: center;
    padding: 52px 0;
}

.contact-success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(46, 160, 67, 0.08);
    color: #2ea043;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 16px;
}

.contact-error {
    background: rgba(184, 50, 50, 0.05);
    border: 1px solid var(--accent-border);
    border-radius: 6px;
    padding: 11px 14px;
    margin-bottom: 20px;
    color: var(--accent);
    font-size: 0.875rem;
}

/* ========================================================================
   FOOTER (dark, contrasts with light body)
   ======================================================================== */
.footer {
    padding: 72px 0 36px;
    border-top: 1px solid var(--border-light);
    background: var(--dark);
    color: var(--dark-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 44px;
    margin-bottom: 44px;
}

.footer-logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-text);
    display: inline-block;
    margin-bottom: 10px;
}
.footer-logo span {
    color: var(--accent);
}
.footer-logo img {
    height: 30px;
    width: auto;
}

.footer-tagline {
    color: var(--dark-muted);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 18px;
}

.footer-social {
    display: flex;
    gap: 10px;
}
.footer-social a {
    color: var(--dark-muted);
    transition: color 0.2s;
}
.footer-social a:hover {
    color: var(--dark-text);
}

.footer-col-heading {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--dark-text);
    margin-bottom: 16px;
}

.footer-links li {
    margin-bottom: 8px;
}
.footer-links a {
    color: var(--dark-muted);
    font-size: 0.875rem;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--dark-text);
}

.footer-newsletter-text {
    color: var(--dark-muted);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 14px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--dark-border);
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--dark-muted);
}

.footer-legal-links {
    display: flex;
    gap: 20px;
}
.footer-legal-links a {
    font-size: 0.75rem;
    color: var(--dark-muted);
    transition: color 0.2s;
}
.footer-legal-links a:hover {
    color: var(--dark-text);
}

/* ========================================================================
   REVEAL ANIMATIONS
   ======================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================================================
   RESPONSIVE
   ======================================================================== */

@media (max-width: 1024px) {
    .book-grid { grid-template-columns: repeat(3, 1fr); }
    .author-grid { grid-template-columns: repeat(3, 1fr); }
    .book-hero-inner { grid-template-columns: 240px 1fr; gap: 36px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        z-index: 999;
    }
    .nav-links.nav-open {
        display: flex;
    }
    .nav-links > li > a {
        font-size: 1.2rem;
        color: var(--text);
    }
    .nav-mobile-toggle {
        display: flex;
        z-index: 1001;
    }
    .nav-dropdown {
        position: static;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        opacity: 1;
        visibility: visible;
        display: none;
    }
    .dropdown-open .nav-dropdown {
        display: block;
    }

    .hero { padding: 130px 0 70px; }
    .page-hero { padding: 110px 0 36px; }

    .book-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .book-hero-inner { grid-template-columns: 1fr; text-align: center; }
    .book-hero-cover { position: static; max-width: 220px; margin: 0 auto; }
    .buy-links { justify-content: center; }
    .book-series .book-grid { grid-template-columns: repeat(2, 1fr); }

    .author-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }

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

    .blog-grid { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

    .lead-magnet-cta { padding: 28px 20px; }
    .contact-form-row { grid-template-columns: 1fr; }

    :root { --section-pad: 72px 0; }
}

@media (max-width: 640px) {
    .book-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .author-grid { grid-template-columns: 1fr; }
    .genre-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: center; }
    .error-links { flex-direction: column; align-items: center; }
}
