:root {
    --primary-bg: #1a1612;
    --secondary-bg: #2d241f;
    --accent: #c9a882;
    --accent-dark: #a6896a;
    --button-bg: #d4c4a8;
    --button-text: #1a1612;
    --text: #e8e0d4;
    --text-light: #f5f1eb;
    --dark: #0f0d0a;
    --border: rgba(201, 168, 130, 0.15);
    --shadow: rgba(0, 0, 0, 0.4);
    --shadow-hover: rgba(0, 0, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--primary-bg);
    background-image:
        radial-gradient(circle at 20% 30%, rgba(201, 168, 130, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(201, 168, 130, 0.02) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.75;
    font-size: 17px;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.01em;
}

/* HEADER */
header {
    position: sticky;
    top: 0;
    background-color: rgba(26, 22, 18, 0.95);
    padding: 20px 0;
    box-shadow: 0 4px 24px var(--shadow);
    z-index: 1000;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

nav {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.logo {
    font-size: 24px;
    font-family: 'Urbanist', Georgia, serif;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.logo:hover {
    color: var(--accent);
    transform: translateY(-1px);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    flex: 1;
    align-items: center;
    justify-content: center;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text);
    transition: 0.3s;
}

/* Buy Now button in header */
.buy-now {
    margin-left: 20px;
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--accent);
    color: var(--dark);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 16px var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    border: 1px solid transparent;
}

.buy-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--shadow-hover);
    background-color: var(--accent-dark);
    color: var(--text-light);
}

.buy-now:active {
    transform: translateY(0);
}

.header-ctas {
    display: flex;
    gap: 12px;
    align-items: center;
}

.sample-button {
    display: inline-block;
    padding: 12px 20px;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.sample-button:hover,
.sample-button:focus {
    background-color: var(--accent);
    color: var(--dark);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* HERO */
.hero {
    /* hero image with dark brown overlay */
    background-image: linear-gradient(rgba(42,36,32,0.55), rgba(42,36,32,0.55)), url("../images/hero-background-image.webp");
    background-size: cover;
    background-position: center center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* subtle decorative layers */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(157,134,109,0.12), transparent 12%),
                radial-gradient(circle at 90% 80%, rgba(0,0,0,0.08), transparent 18%);
    pointer-events: none;
    mix-blend-mode: overlay;
}

.hero h1 {
    font-size: 64px;
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--text-light);
}

/* Headings color: keep H1/H2 light; H3-H5 use accent */
h1, h2, .section-heading, .author-headline {
    color: var(--text-light) !important;
}

/* Highlight color for smaller headings and icons */
h3, h4, h5 {
    color: var(--accent) !important;
}

/* Use Urbanist for all headings */
h1, h2, h3, h4, h5, h6, .section-heading, .author-headline {
    font-family: 'Urbanist', Poppins, Inter, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Underline and link decoration color */
a, a:link, a:visited, a:hover, a:active {
    text-decoration-color: var(--accent);
}

/* Global icon color (font icons and SVGs) */
.reveal-icon, .reveal-icon i, .reveal-icon svg,
.social-icons i, .social-icons svg,
i[class^="fa-"], i.fa, svg.icon, .icon {
    color: var(--accent) !important;
    fill: var(--accent) !important;
    stroke: var(--accent) !important;
}

.author-headline {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.author-lead {
    font-size: 19px;
    opacity: 0.9;
    margin-bottom: 24px;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
    font-weight: 400;
    letter-spacing: 0.2px;
}

.qualities-box {
    display: block;
    max-width: 900px;
    margin: 24px auto;
    background: linear-gradient(135deg, rgba(45, 36, 31, 0.4) 0%, rgba(26, 22, 18, 0.6) 100%);
    border: 1px solid var(--border);
    padding: 20px 28px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 16px var(--shadow);
    backdrop-filter: blur(8px);
}

.qualities {
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 1px;
    font-size: 15px;
    text-transform: uppercase;
}

.hero-cta {
    margin-top: 20px;
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
}

.scroll-cue {
    display: inline-block;
    margin-top: 18px;
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    font-size: 15px;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    padding: 16px 36px;
    background-color: var(--accent);
    color: var(--dark);
    text-decoration: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--accent);
    box-shadow: 0 4px 16px var(--shadow);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover,
.cta-button:focus {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px var(--shadow-hover);
    background-color: var(--accent-dark);
    color: var(--text-light);
    outline: none;
}

.cta-button:active {
    transform: translateY(-1px);
}

/* smaller, secondary CTA variant */
.cta-button.secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    box-shadow: none;
}

.cta-button.secondary:hover,
.cta-button.secondary:focus {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--shadow);
}

/* SECTIONS */
/* Make section backgrounds full-bleed while constraining inner content */
section {
    padding: 40px 30px;
    max-width: none;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

/* Constrain each direct child of a section so text doesn't span full viewport */
section > * {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.section-heading {
    font-size: 48px;
    margin-bottom: 0;
    text-align: center;
    color: var(--text-light);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-heading::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: var(--accent);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* Left-aligned variant for section headings */
.section-heading.left {
    text-align: left;
}

.section-heading.left::after {
    margin: 12px 0 0 0;
}

/* ABOUT BOOK - buy-now button already styled above in header section */
/* Book showcase layout: two equal columns (50/50) */
.book-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 80px;
    align-items: center;
}

.book-cover {
    background: transparent;
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.38);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    margin: 0 auto;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.book-cover-img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 6px;
    background: transparent;
}

/* Book title, tagline and text sizing (reduced for compact layout) */
.book-info h2 {
    font-size: 48px;
    margin-bottom: 12px;
    color: var(--text-light);
    line-height: 1.1;
    letter-spacing: -0.5px;
    font-weight: 700;
}

.book-tagline {
    font-size: 17px;
    font-style: italic;
    margin-bottom: 20px;
    opacity: 0.9;
    color: var(--text);
    font-weight: 400;
}

.book-tagline.hero-tagline {
    margin-top: 8px;
}

/* Specific blurb size requested */
.book-blurb {
    font-size: 16px;
    margin-top: 12px;
    color: var(--text);
    line-height: 1.8;
}

/* Genre/meta pill below details */
.meta-box {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(45, 36, 31, 0.6) 0%, rgba(26, 22, 18, 0.8) 100%);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 2px 12px var(--shadow);
}

/* Larger description and nicer card look */
.book-description {
    background: rgba(0,0,0,0.03);
    padding: 28px;
    border-radius: 10px;
    margin-top: 30px;
    color: rgba(255,255,255,0.95);
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
    align-items: start;
}

/* Make the About text a clear boxed panel and span full width of this section */
.about-text {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(45, 36, 31, 0.6) 0%, rgba(26, 22, 18, 0.8) 100%);
    padding: 36px;
    border-radius: 8px;
    box-shadow: 0 4px 24px var(--shadow);
    width: 100%;
    color: var(--text);
    border: 1px solid var(--border);
}

/* When features are placed inside the about box, make them visually part of the same panel */
.about-text .book-features {
    background: transparent;
    padding: 0;
    margin-top: 22px;
    box-shadow: none;
    border-radius: 0;
}

.about-text .book-features h4 {
    color: var(--accent);
    margin-bottom: 12px;
}

.about-text .book-features ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px 18px;
    padding: 0;
    margin: 0;
}

.about-text .book-features li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 20px;
}

/* New separate features box that visually matches the About panel */
.features-box {
    grid-column: 1 / -1;
    background: transparent;
    padding: 28px;
    border-radius: 12px;
    box-shadow: none;
    border: none;
    margin-top: 0;
    color: rgba(255,255,255,0.95);
}

.features-box .book-features {
    background: transparent;
    padding: 0;
    margin: 0;
    box-shadow: none;
}

.features-box .book-features ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px 18px;
    padding: 0;
    margin: 0;
}

.book-description h3 {
    grid-column: 1 / -1;
    margin: 0 0 6px 0;
    padding-bottom: 6px;
    color: #ffffff;
}

.book-description h3::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: var(--accent);
    margin-top: 12px;
    border-radius: 2px;
}

.about-text p {
    font-size: 17px;
    line-height: 1.85;
    margin-bottom: 18px;
    color: var(--text);
}

.book-description h3 {
    font-size: 30px;
    margin-bottom: 18px;
    color: #ffffff;
}

.book-description p {
    font-size: 17px;
    line-height: 1.85;
    margin-bottom: 20px;
    color: var(--text);
}

/* Improve features list layout */
.book-features {
    margin-top: 20px;
    background: rgba(255,255,255,0.02);
    padding: 20px;
    border-radius: 10px;
}

.book-features h4 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-light);
    font-weight: 600;
}

.book-features ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px 18px;
    padding: 0;
    margin: 0;
}

/* Reveals grid (4 boxed cards) */
.reveals-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 18px;
    margin-top: 12px;
}

.reveal-box {
    background: linear-gradient(135deg, rgba(45, 36, 31, 0.6) 0%, rgba(26, 22, 18, 0.8) 100%);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 20px var(--shadow);
    color: var(--text);
    min-height: 160px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px var(--shadow-hover);
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(45, 36, 31, 0.8) 0%, rgba(26, 22, 18, 0.9) 100%);
}

.reveal-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.reveal-box:hover .reveal-icon {
    transform: scale(1.1) rotate(5deg);
}

.reveal-icon i {
    font-size: 35px;
    line-height: 1;
}

.reveal-box h5 {
    margin: 0;
    color: var(--accent);
    font-size: 22px;
    line-height: 1.2;
    font-weight: 600;
}

.reveal-box p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.95;
}

@media (max-width: 992px) {
    .reveals-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 767px) {
    .reveals-grid {
        grid-template-columns: 1fr;
    }
}

.book-features li {
    list-style: none;
    padding-left: 24px;
    position: relative;
    font-size: 16px;
    color: var(--text);
    line-height: 1.75;
}

.book-features li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.book-features li:hover:before {
    width: 10px;
    height: 10px;
    box-shadow: 0 0 8px var(--accent);
}

.book-info h2 {
    font-size: 60px;
    margin-bottom: 12px;
    color: var(--accent);
}

.book-tagline {
    font-size: 16px;
    font-style: italic;
    margin-bottom: 20px;
    opacity: 0.9;
}

.excerpt {
    background: linear-gradient(135deg, rgba(45, 36, 31, 0.6) 0%, rgba(26, 22, 18, 0.8) 100%);
    border-left: 4px solid var(--accent);
    padding: 24px;
    margin: 28px 0;
    font-style: italic;
    font-size: 17px;
    border-radius: 6px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 16px var(--shadow);
    color: var(--text);
    line-height: 1.8;
}

.book-details {
    background: linear-gradient(135deg, rgba(45, 36, 31, 0.4) 0%, rgba(26, 22, 18, 0.6) 100%);
    padding: 20px;
    border-radius: 8px;
    margin: 24px 0;
    font-size: 13px;
    border: 1px solid var(--border);
    color: var(--text);
}

.book-details p {
    margin: 6px 0;
    font-size: 12px;
    line-height: 1.6;
}

.book-details strong {
    color: var(--accent) !important;
    font-weight: 600 !important;
    font-size: 12px;
}

.book-details ul {
    margin-top: 6px;
    margin-left: 18px;
    padding-left: 0;
}

.book-details ul li {
    font-size: 12px;
    line-height: 1.6;
    margin: 4px 0;
    color: var(--text);
}

.book-themes-list {
    margin-top: 6px;
    margin-left: 18px;
    color: rgba(255, 255, 255, 0.95);
}

.book-description h3 {
    font-size: 30px;
    color: var(--text-light);
    margin-bottom: 24px;
    font-weight: 600;
}

.book-description p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.book-features {
    margin-top: 40px;
}

.book-features h4 {
    font-size: 26px;
    color: var(--accent);
    margin-bottom: 20px;
    font-weight: 600;
}

.book-features ul {
    list-style: none;
}

.book-features li {
    margin: 15px 0;
    padding-left: 30px;
    position: relative;
}

.book-features li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 20px;
}

/* PURCHASE */
.purchase {
    background-color: var(--primary-bg);
}
.purchase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 50px;
    align-items: stretch;
}

.purchase-card {
    background: linear-gradient(135deg, rgba(45, 36, 31, 0.8) 0%, rgba(26, 22, 18, 0.9) 100%);
    padding: 32px 28px;
    border-radius: 8px;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px var(--shadow);
}

.purchase-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px var(--shadow-hover);
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(45, 36, 31, 0.95) 0%, rgba(26, 22, 18, 0.95) 100%);
}

.purchase-card h3 {
    font-size: 24px;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 600;
}

.purchase-card .format {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: 0.6px;
}

.purchase-card .price {
    font-size: 32px;
    font-weight: 700;
    margin: 12px 0 20px 0;
    color: var(--accent);
}

.purchase-card p {
    font-size: 15px;
    margin-bottom: 20px;
    color: var(--text);
    line-height: 1.7;
}

.purchase-card .card-footer {
    margin-top: 12px;
}

.purchase-card .cta-button {
    font-size: 16px;
    padding: 12px 18px;
    width: 100%;
    display: inline-block;
}

.purchase-card .secondary-link {
    display: block;
    margin-top: 10px;
    text-align: center;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 600;
}

/* Book info CTAs (Buy + Sample) */
.book-ctas {
    display: flex;
    gap: 14px;
    margin-top: 22px;
    align-items: center;
    justify-content: flex-start;
}

@media (max-width: 767px) {
    .book-ctas {
        flex-direction: column;
    }
}

/* Ensure book info aligns left on wider screens but centers on small screens */
.book-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

@media (max-width: 767px) {
    .book-info {
        align-items: center;
        text-align: center;
    }
}

/* Tweak CTA buttons inside the book section for a cleaner look */
.book-ctas .cta-button {
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    box-shadow: 0 4px 16px var(--shadow);
}

.book-ctas .cta-button.secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.book-ctas .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--shadow-hover);
}

/* CTA BANNER */
.cta-banner {
    background: linear-gradient(135deg, rgba(201, 168, 130, 0.95) 0%, rgba(166, 137, 106, 0.95) 40%, rgba(45, 36, 31, 0.95) 100%);
    padding: 80px 40px;
    text-align: center;
    color: var(--dark);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px var(--shadow-hover);
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* Ensure the CTA and Contact sections block the body camo pattern
   by using opaque backgrounds and normal blend mode */
.cta-banner,
.contact {
    background-blend-mode: normal !important;
    /* reapply opaque gradients to ensure no underlying pattern shows through */
}

.cta-banner {
    background: linear-gradient(135deg, #9d866d 0%, #785f4a 40%, #382c24 100%) !important;
}

.contact {
    background: linear-gradient(135deg, var(--dark) 0%, var(--secondary-bg) 100%) !important;
}

.cta-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.06));
    mix-blend-mode: overlay;
    pointer-events: none;
}

.cta-banner h2 {
    font-size: 44px;
    margin-bottom: 24px;
    color: var(--dark);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.cta-banner p {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--dark);
    opacity: 0.9;
}

/* Differentiate one of the banner CTAs */
.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .primary-cta {
    background-color: var(--dark) !important;
    color: var(--text-light) !important;
    border: 1px solid var(--dark) !important;
    box-shadow: 0 4px 16px var(--shadow) !important;
}

.cta-buttons .primary-cta:hover {
    background-color: var(--primary-bg) !important;
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}

/* REVIEWS */
.reviews {
    background-color: var(--dark);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.review-card {
    background: linear-gradient(135deg, rgba(45, 36, 31, 0.6) 0%, rgba(26, 22, 18, 0.8) 100%);
    border-left: 3px solid var(--accent);
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px var(--shadow-hover);
    border-left-width: 4px;
}

.stars {
    color: var(--accent);
    font-size: 20px;
    margin-bottom: 18px;
    letter-spacing: 2px;
}

.review-text {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 16px;
    color: var(--text);
}

.reviewer {
    font-size: 15px;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* AUTHOR */
.author {
    background-color: var(--primary-bg);
}

/* Structure / Core Themes */
.structure-intro {
    max-width: 900px;
    margin: 16px auto 0;
    color: var(--text);
    font-size: 17px;
    text-align: center;
    line-height: 1.8;
}

.structure-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 26px;
    align-items: start;
}

.theme-card {
    background: linear-gradient(135deg, rgba(45, 36, 31, 0.6) 0%, rgba(26, 22, 18, 0.8) 100%);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 4px 20px var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 300px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 28px var(--shadow-hover);
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(45, 36, 31, 0.8) 0%, rgba(26, 22, 18, 0.9) 100%);
}

.theme-card h4 {
    margin: 0 0 16px 0;
    font-size: 22px;
    color: var(--accent) !important;
    font-weight: 600;
}

.theme-card ul {
    list-style: disc;
    margin: 0;
    padding-left: 18px;
    margin-top: 6px;
    width: 80%;
    text-align: left;
    display: block;
}

.theme-card ul li {
    margin: 10px 0;
    font-size: 15px;
    color: var(--text);
    line-height: 1.7;
}

@media (max-width: 992px) {
    .structure-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .structure-grid {
        grid-template-columns: 1fr;
    }
}

.author-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 50px;
    margin-top: 50px;
}

.author-photo {
    background-image: url('../images/tom-henderson-author-photo.webp');
    height: 400px;
    border-radius: 8px;
    box-shadow: 0 8px 32px var(--shadow-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border);
    color: var(--text-light);
    font-weight: 500;
}

.author-bio p {
    margin-bottom: 20px;
    line-height: 1.85;
    font-size: 17px;
    color: var(--text);
}

/* CONTACT */
.contact {
    background: linear-gradient(135deg, var(--dark) 0%, var(--secondary-bg) 100%);
}

.contact-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

.contact-form label {
    display: block;
    color: var(--text);
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
    text-shadow: 0 1px 0 rgba(0,0,0,0.35);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 20px;
    background-color: rgba(45, 36, 31, 0.4);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255,255,255,0.85);
    opacity: 1;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 168, 130, 0.15);
    background-color: rgba(45, 36, 31, 0.6);
}

.contact-form input.error,
.contact-form textarea.error {
    border-color: #d9534f;
    animation: shake 0.3s;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

/* Hide Netlify honeypot field */
.contact-form input[name="bot-field"],
.contact-form label[for="bot-field"] {
    display: none !important;
    visibility: hidden;
    position: absolute;
    left: -9999px;
}

.error-message {
    color: #d9534f;
    font-size: 14px;
    margin-top: -15px;
    margin-bottom: 15px;
    display: none;
}

.error-message.show {
    display: block;
}

.success-message {
    color: #5cb85c;
    font-size: 18px;
    text-align: center;
    padding: 20px;
    background-color: rgba(92, 184, 92, 0.1);
    border-radius: 5px;
    margin-bottom: 20px;
    display: none;
    animation: fadeIn 0.5s;
}

.success-message.show {
    display: block;
}

.contact-form button {
    width: 100%;
    padding: 16px;
    background-color: var(--accent);
    color: var(--dark);
    border: 1px solid var(--accent);
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 16px var(--shadow);
}

.contact-form button:hover:not(:disabled) {
    background-color: var(--accent-dark);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

.contact-form button:active:not(:disabled) {
    transform: translateY(0);
}

.contact-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-info h3 {
    color: var(--accent);
    font-size: 26px;
    margin-bottom: 24px;
    font-weight: 600;
}

.contact-info p {
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--text);
    line-height: 1.75;
}

.contact-info a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.contact-info a:hover {
    color: var(--text-light);
    border-bottom-color: var(--accent);
}

.social-links {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.social-links h3 {
    margin: 0;
    font-size: 20px;
    color: var(--accent);
}

.social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 6px;
}

.social-links a {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(45, 36, 31, 0.6);
    border: 1px solid var(--border);
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 20px;
    position: relative;
}

.social-links a .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.social-links a:hover {
    background: var(--accent);
    color: var(--dark);
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px var(--shadow);
}

/* Ensure SVG icons inherit color and render correctly */
.social-link svg {
    width: 18px;
    height: 18px;
    display: block;
    color: inherit;
}

.social-link svg path,
.social-link svg circle,
.social-link svg rect {
    fill: currentColor;
    stroke: currentColor;
}

/* FOOTER */
footer {
    background-color: var(--dark);
    padding: 40px 30px;
    text-align: center;
    font-size: 14px;
    color: var(--text);
    border-top: 1px solid var(--border);
}

footer p {
    line-height: 1.8;
    opacity: 0.85;
}

/* ANIMATIONS */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* MOBILE */
@media (max-width: 767px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--secondary-bg);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        display: none;
        box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    }

    .buy-now {
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 17px;
    }

    section {
        padding: 50px 24px;
    }

    .section-heading {
        font-size: 32px;
    }

    .book-showcase {
        grid-template-columns: 1fr;
    }

    .book-cover {
        width: 100%;
        max-width: 350px;
        height: auto;
        border-radius: 8px;
        animation: float 3s ease-in-out infinite;
    }

    .book-cover-img {
        height: auto;
        width: 100%;
        max-width: 100%;
    }

    .author-content {
        grid-template-columns: 1fr;
    }

    .book-description {
        display: block;
        padding: 20px;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .purchase-grid {
        grid-template-columns: 1fr;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .hero h1 {
        font-size: 52px;
    }

    .section-heading {
        font-size: 40px;
    }

    /* Ensure reviews show two columns on mid-size screens */
    .reviews-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}
/* Book contents (table of contents style) */
.book-contents {
    max-width: 1200px;
    margin: 24px auto;
    padding: 20px;
}

.contents-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 15px;
}

/* Selected excerpts styling */
.selected-excerpts {
    max-width: 1200px;
    margin: 18px auto 48px auto;
    padding: 14px 20px;
}

.selected-excerpts .quote {
    background: linear-gradient(135deg, rgba(45, 36, 31, 0.6) 0%, rgba(26, 22, 18, 0.8) 100%);
    border-left: 4px solid var(--accent);
    padding: 24px 28px 24px 72px;
    margin: 16px 0;
    font-style: italic;
    color: var(--text);
    position: relative;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s ease;
}

.selected-excerpts .quote:hover {
    border-left-width: 5px;
    box-shadow: 0 6px 24px var(--shadow-hover);
}

.selected-excerpts .quote::before {
    content: '"';
    font-size: 48px;
    line-height: 1;
    color: var(--accent);
    position: absolute;
    left: 20px;
    top: 20px;
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
}

.selected-excerpts .quote p {
    margin: 0 0 12px 0;
    padding-left: 0;
    font-size: 17px;
    line-height: 1.8;
}

.selected-excerpts .quote p:last-child {
    margin-bottom: 0;
}

/* Center contact form and simplify contact info */
.contact .contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 0 20px;
}

.contact .contact-form {
    width: 100%;
    max-width: 720px;
}

.contact .contact-info {
    text-align: center;
    max-width: 720px;
}

.toc-item {
    background: linear-gradient(135deg, rgba(45, 36, 31, 0.6) 0%, rgba(26, 22, 18, 0.8) 100%);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s ease;
}

.toc-item:hover {
    border-color: var(--accent);
    box-shadow: 0 6px 24px var(--shadow-hover);
}

.toc-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    font-size: 17px;
    font-weight: 600;
    color: var(--accent);
    transition: color 0.3s ease;
}

.toc-item summary:hover {
    color: var(--text-light);
}

.toc-item summary::-webkit-details-marker { display:none; }

.toc-item summary::after {
    content: '\002B';
    font-size: 22px;
    color: var(--accent);
    transition: transform 0.3s ease, color 0.3s ease;
    font-weight: 300;
}

.toc-item[open] summary::after {
    transform: rotate(90deg);
}

.toc-item[open] summary::after {
    content: '\2212';
}

.toc-desc {
    padding: 0 24px 20px 24px;
    color: var(--text);
    line-height: 1.75;
    font-size: 15px;
}

@media (min-width: 768px) {
    .contents-list {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

/* Responsive font sizes */
@media (max-width: 767px) {
    .hero h1 {
        font-size: 42px;
    }
    
    .author-headline {
        font-size: 38px;
    }
    
    .section-heading {
        font-size: 36px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .hero h1 {
        font-size: 54px;
    }
    
    .section-heading {
        font-size: 42px;
    }
}


