/* Throw Down Press - Common Styles for All Pages */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, serif;
    line-height: 1.6;
    color: #1b1915;
    background-color: #f9f2e4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    background-color: #1b1915;
    color: #f9f2e4;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgb(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-and-breadcrumb {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #f9f2e4;
}

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

.nav-links a {
    color: #f9f2e4;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

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

.nav-links a.active {
    color: #f8c235;
    font-weight: bold;
}

/* Dropdown menu */
.nav-item {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1b1915;
    min-width: 200px;
    box-shadow: 0 4px 6px rgb(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgb(249, 242, 228, 0.1);
}

.dropdown a:last-child {
    border-bottom: none;
}

/* Submenu items (indented under main category) */
.dropdown a.submenu-item {
    padding-left: 2rem;
    font-size: 0.9rem;
    background-color: rgba(0, 0, 0, 0.2);
}

.dropdown a.submenu-item:hover {
    background-color: rgba(248, 194, 53, 0.1);
}


/* Main content */
main {
    margin-top: 80px;
    min-height: calc(100vh - 140px);
}

/* Page header */
.page-header {
    background-color: #f9f2e4;
    background-image: 
        radial-gradient(circle at 85% 15%, rgb(207, 62, 37, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 15% 85%, rgb(248, 194, 53, 0.12) 0%, transparent 50%),
        linear-gradient(135deg, rgb(207, 62, 37, 0.05) 0%, transparent 100%);
    color: #1b1915;
    text-align: center;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid #cf3e25;
}


/* Boxing glove image styling for promo sections */
.promo-boxing-glove {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url('../assets/images/boxing-glove-optimized.png') no-repeat center;
    background-size: contain;
    vertical-align: middle;
    margin: 0 8px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
    color: #cf3e25;
    text-shadow: 2px 2px 4px rgb(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.8;
    color: #1b1915;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}


/* Content sections */
.content-section {
    padding: 60px 0;
}

.content-section:nth-child(even) {
    background-color: #f9f1e4;
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #1b1915;
}

.content-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #1b1915;
}

/* Book grid and cards - Optimized 200px width */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-top: 1.5rem;
}

@media (min-width: 1400px) {
    .books-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .books-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 900px) and (max-width: 1199px) {
    .books-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 600px) and (max-width: 899px) {
    .books-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
}

@media (max-width: 599px) {
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

.book-card {
    background: #f9f2e4;
    border: 1px solid #1f8179;
    border-radius: 8px;
    padding: 0.75rem;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgb(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
}

.book-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgb(0,0,0,0.15);
    border-color: #f8c235;
}

.book-preview {
    width: 100%;
    margin-bottom: 0.6rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    position: relative;
}

.book-preview img {
    max-width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.book-card h3 {
    color: #1b1915;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    line-height: 1.2;
    min-height: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-author {
    color: #1f8179;
    font-style: italic;
    margin-bottom: 0.3rem;
    font-size: 0.75rem;
}

.book-meta {
    color: #666;
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
}

.book-description {
    color: #1b1915;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    flex-grow: 1;
}

.book-link {
    display: inline-block;
    background: #f8c235;
    color: #1b1915;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.8rem;
    margin-top: auto;
}

.book-link:hover {
    background: #cf3e25;
    color: #f9f2e4;
}

/* Carousel styles */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(207, 62, 37, 0.9);
    color: #f9f2e4;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.carousel-arrow:hover {
    background: rgba(207, 62, 37, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 4px;
}

.carousel-next {
    right: 4px;
}

.variant-indicator {
    text-align: center;
    font-size: 0.7rem;
    color: #1f8179;
    margin-bottom: 0.4rem;
    font-weight: bold;
}

/* Adult content tag */
.adult-content-tag {
    background: #cf3e25;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: 4px;
    display: inline-block;
    vertical-align: middle;
}

.category-card-img { width: 120px; height: 180px; object-fit: cover; border-radius: 8px; margin-bottom: 15px; }

.category-card-featured-text { font-size: 0.9em; color: #666; margin: 10px 0; }

/* Category cards */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.category-card {
    background: #f9f2e4;
    border: 2px solid #1f8179;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgb(0,0,0,0.1);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgb(0,0,0,0.2);
    border-color: #f8c235;
}

.category-card h3 {
    color: #1b1915;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.category-card p {
    color: #1b1915;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.category-link {
    display: inline-block;
    background: #cf3e25;
    color: #f9f2e4;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.category-link:hover {
    background: #1f8179;
}

/* Header Dad Joke Widget - positioned in navigation */
.header-widget.dad-joke-widget {
    position: static;
    background: rgb(249, 242, 228, 0.9);
    border: 1px solid #f8c235;
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    max-width: 180px;
    min-height: auto;
    box-shadow: 0 1px 3px rgb(0,0,0,0.1);
    color: #1b1915;
    flex-shrink: 0;
}

.header-widget.dad-joke-widget h3 {
    color: #cf3e25;
    font-size: 0.7rem;
    margin-bottom: 0.2rem;
    text-align: center;
    font-weight: bold;
}

.header-widget .dad-joke-text {
    font-size: 0.85rem;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 0;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Dad Joke Widget - Legacy absolute positioning (fallback) */
.dad-joke-widget {
    position: absolute;
    top: 100px;
    right: 5%;
    background: rgb(249, 242, 228, 0.95);
    border: 2px solid #f8c235;
    border-radius: 12px;
    padding: 1rem;
    max-width: 280px;
    min-height: 100px;
    box-shadow: 0 4px 12px rgb(0,0,0,0.2);
    z-index: 2;
    color: #1b1915;
}

.dad-joke-widget h3 {
    color: #cf3e25;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: bold;
}

.dad-joke-text {
    font-size: 1rem;
    line-height: 1.4;
    text-align: center;
    margin-bottom: 0.5rem;
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dad-joke-loading {
    color: #1f8179;
    font-style: italic;
}

.dad-joke-refresh {
    background: #cf3e25;
    color: #f9f2e4;
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    margin: 0 auto;
}

.dad-joke-refresh:hover {
    background: #1f8179;
}

/* Featured Showcase Styles */
.featured-showcase {
    background: linear-gradient(135deg, #1f8179 0%, #cf3e25 100%);
    color: #f9f2e4;
}

.featured-showcase h2 {
    color: #f9f2e4;
}

.featured-showcase p {
    color: rgb(249, 242, 228, 0.9);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.showcase-item {
    text-align: center;
    border-radius: 12px;
    overflow: hidden;
    background: rgb(249, 242, 228, 0.1);
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.showcase-item:hover {
    transform: translateY(-5px);
}

.showcase-item img {
    width: 100%;
    height: auto;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgb(0,0,0,0.3);
    margin-bottom: 1.5rem;
}

.showcase-caption h3 {
    color: #f8c235;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.showcase-caption p {
    color: #f9f2e4;
    font-size: 1.1rem;
}

/* Book Preview Images */
.book-preview {
    margin-bottom: 1rem;
    text-align: center;
}

.book-preview img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgb(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.book-preview img:hover {
    transform: scale(1.05);
}

/* Author Profiles */
.author-profiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.author-profile {
    display: flex;
    gap: 2rem;
    background: #f9f2e4;
    border: 2px solid #1f8179;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgb(0,0,0,0.1);
    align-items: flex-start;
}

.author-profile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgb(0,0,0,0.15);
    border-color: #f8c235;
}

.author-image {
    flex-shrink: 0;
}

.author-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #1f8179;
    box-shadow: 0 4px 12px rgb(0,0,0,0.2);
}

.author-info {
    flex: 1;
}

.author-info h3 {
    color: #1b1915;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.author-title {
    color: #cf3e25;
    font-style: italic;
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.author-info p {
    color: #1b1915;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

/* Footer */
footer {
    background-color: #1b1915;
    color: #f9f2e4;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

.noscript-hidden { display: none; }

.noscript-gtm { display: none; visibility: hidden; }

.footer-link-accent { color: #f8c235; }

.img-fallback { display: none; }

.book-cover-section img { width: 100%; max-width: 260px; height: auto; border-radius: 8px; box-shadow: 0 8px 32px rgba(0,0,0,0.4); }

.book-info-section { padding: 28px 20px 32px; background: #f9f2e4; color: #1b1915; }
.book-info-section .container { text-align: center; }
.book-info-section h2 { font-size: 1.4rem; line-height: 1.3; margin-bottom: 8px; color: #1b1915; }
.book-info-section .book-author { font-size: 0.95rem; color: #666; margin-bottom: 16px; }
.book-info-section .book-description { font-size: 0.95rem; line-height: 1.6; color: #444; margin-bottom: 28px; text-align: left; }

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* Responsive design */
@media (max-width: 1024px) {
    .dad-joke-widget {
        position: static;
        transform: none;
        margin: 0 auto 1.5rem auto;
        max-width: 280px;
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    /* Adjust main content margin for taller mobile header */
    main {
        margin-top: 140px;
    }
    
    header {
        padding: 0.8rem 0;
    }
    
    nav {
        flex-direction: column;
        gap: 0.8rem;
        padding: 0 15px;
    }
    
    .nav-links {
        flex-direction: row;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        order: 1;
    }
    
    .logo {
        order: -1;
        justify-content: center;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .header-widget.dad-joke-widget {
        order: 0;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header {
        padding: 60px 0 40px;
    }
    
    .page-header::before {
        width: 100px;
        height: 100px;
        left: 3%;
        opacity: 0.2;
    }
    
    .page-header::after {
        width: 50px;
        height: 50px;
        right: 3%;
        opacity: 0.1;
    }
    
    .dad-joke-widget {
        position: static;
        transform: none;
        margin: 0 auto 1.5rem auto;
        max-width: 260px;
        padding: 0.8rem;
    }
    
    .content-section {
        padding: 40px 0;
    }
    
    .content-section h2 {
        font-size: 2rem;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
    }
    
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .showcase-item {
        padding: 1rem;
    }
    
    .author-profiles {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .author-profile {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .author-image img {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    main {
        margin-top: 160px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .nav-links {
        gap: 0.5rem;
        font-size: 0.9rem;
    }
    
    .nav-links a {
        padding: 0.2rem 0.4rem;
    }
    
    .page-header {
        padding: 40px 0;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header::before,
    .page-header::after {
        display: none;
    }
    
    .content-section h2 {
        font-size: 1.8rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .book-card {
        padding: 1rem;
    }
}

/* Books with Punch warning box */
.punch-warning {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 25px;
    border-radius: 10px;
    margin: 30px auto;
    max-width: 900px;
    text-align: center;
    border: 3px solid #cc4b4b;
    box-shadow: 0 8px 20px rgba(238, 90, 82, 0.3);
}

.punch-warning h3 {
    margin: 0 0 15px 0;
    font-size: 1.8em;
    font-weight: bold;
}

.punch-warning p {
    margin: 10px 0;
    font-size: 1.1em;
    line-height: 1.6;
}

.punch-warning strong {
    font-size: 1.2em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Section navigation for sub-categories */
.section-nav {
    background: linear-gradient(135deg, #1b1915 0%, #2d2721 100%);
    padding: 25px 30px;
    border-radius: 12px;
    margin: 30px auto;
    max-width: 1100px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid #cf3e25;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.section-nav h3 {
    color: #f8c235;
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.section-nav a {
    color: #f8c235;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid transparent;
    font-size: 0.95rem;
    line-height: 1.4;
    white-space: nowrap;
}

.section-nav a:hover {
    background: #f8c235;
    color: #1b1915;
    border-color: #f8c235;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(248, 194, 53, 0.3);
}

.section-nav .separator {
    display: none;
}

/* Sub-section headers */
.sub-section {
    margin: 50px 0;
    scroll-margin-top: 100px; /* Account for fixed header */
}

.sub-section h2 {
    border-bottom: 3px solid #cf3e25;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.sub-section h3 {
    color: #1f8179;
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

/* Variation badge and carousel */
.variation-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #cf3e25;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.6rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.variation-badge:hover {
    background: #1b1915;
    transform: scale(1.1);
}

.variations-carousel {
    display: none;
    background: white;
    border: 2px solid #cf3e25;
    border-radius: 6px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    max-height: 150px;
    overflow-y: auto;
}

.variations-carousel.show {
    display: block;
}

.variation-item {
    padding: 0.4rem;
    border-bottom: 1px solid #f9f2e4;
    font-size: 0.65rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.variation-item:last-child {
    border-bottom: none;
}

.variation-item:hover {
    background: #f9f2e4;
}

.variation-item a {
    color: #1b1915;
    text-decoration: none;
    display: block;
}

.variation-item a:hover {
    color: #cf3e25;
}

.variation-title {
    font-weight: bold;
    margin-bottom: 0.2rem;
}

.variation-meta {
    font-size: 0.55rem;
    color: #666;
}

/* ============================================================
   Email Capture Section
   ============================================================ */
.email-capture-section {
    background-color: #1b1915;
    color: #f9f2e4;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.email-capture-section::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -15%;
    width: 55%;
    height: 200%;
    background: radial-gradient(circle, rgba(207, 62, 37, 0.12) 0%, transparent 65%);
    pointer-events: none;
}

.email-capture-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 45%;
    height: 150%;
    background: radial-gradient(circle, rgba(248, 194, 53, 0.08) 0%, transparent 65%);
    pointer-events: none;
}

.email-capture-inner {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin: 0 auto;
}

.email-capture-section h2 {
    font-size: 2.4rem;
    color: #f8c235;
    margin-bottom: 1rem;
    text-align: center;
}

.email-capture-section .email-subtitle {
    font-size: 1.1rem;
    color: rgba(249, 242, 228, 0.82);
    margin-bottom: 2rem;
    line-height: 1.65;
    text-align: center;
}

.email-capture-form .email-fields {
    display: flex;
    gap: 0;
    max-width: 500px;
    margin: 0 auto 0.75rem;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.email-input {
    flex: 1;
    padding: 14px 20px;
    font-size: 1rem;
    border: none;
    outline: none;
    font-family: Georgia, serif;
    color: #1b1915;
    background: #f9f2e4;
    min-width: 0;
}

.email-input:focus {
    background: #fff;
}

.email-submit-btn {
    background: #cf3e25;
    color: #f9f2e4;
    border: none;
    padding: 14px 22px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    font-family: Georgia, serif;
    transition: background 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.email-submit-btn:hover {
    background: #a8311c;
}

.email-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.email-disclaimer {
    font-size: 0.78rem;
    color: rgba(249, 242, 228, 0.45);
    margin-top: 0.6rem;
}

.email-success-inline {
    background: rgba(31, 129, 121, 0.18);
    border: 1px solid rgba(31, 129, 121, 0.5);
    border-radius: 8px;
    padding: 20px 24px;
    color: #f9f2e4;
    display: none;
    margin: 0 auto;
    max-width: 500px;
}

.email-success-inline.visible {
    display: block;
}

.email-error-msg {
    color: #f8c235;
    font-size: 0.88rem;
    margin-top: 0.5rem;
    min-height: 1.3em;
    display: none;
}

.email-error-msg.visible {
    display: block;
}

/* Kit hosted form container */
.kit-form-container {
    max-width: 540px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.kit-form-field {
    margin-bottom: 12px;
}

.kit-form input[type="email"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(207, 62, 37, 0.3);
}

.kit-form-submit {
    transition: background 0.2s ease;
}

.kit-form-submit:hover {
    background: #a8311c;
}

.kit-form-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.kit-form-success {
    animation: kitFadeIn 0.3s ease;
}

.kit-form-error {
    animation: kitFadeIn 0.3s ease;
}

@keyframes kitFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mailchimp hosted form iframe container (legacy) */
.mc-embed-container {
    max-width: 540px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    background: #f9f2e4;
    position: relative;
}

.mc-embed-iframe {
    display: block;
    width: 100%;
    height: 620px;
    border: none;
    overflow: hidden;
}

@media (max-width: 600px) {
    .mc-embed-iframe {
        height: 650px;
    }
}

/* Homepage email CTA button */
.email-homepage-cta {
    display: inline-block;
    background: #cf3e25;
    color: #f9f2e4;
    border: none;
    padding: 15px 32px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    font-family: Georgia, serif;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.25s ease;
}

.email-homepage-cta:hover {
    background: #a8311c;
    color: #f9f2e4;
}

.email-capture-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.email-homepage-cta-secondary {
    background: transparent;
    border: 2px solid #f8c235;
    color: #f8c235;
    padding: 13px 26px;
    font-size: 1rem;
}

.email-homepage-cta-secondary:hover {
    background: rgba(248, 194, 53, 0.12);
    border-color: #f8c235;
    color: #f8c235;
}

/* Landing-page-specific email form */
.email-landing-hero {
    background-color: #1b1915;
    color: #f9f2e4;
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid #cf3e25;
}

.email-landing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(207, 62, 37, 0.15) 0%, transparent 55%),
        radial-gradient(circle at 80% 70%, rgba(248, 194, 53, 0.1) 0%, transparent 55%);
    pointer-events: none;
}

.email-landing-hero .container {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.email-landing-hero h1 {
    font-size: 3rem;
    color: #f8c235;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.email-landing-hero .hero-lead {
    font-size: 1.2rem;
    color: rgba(249, 242, 228, 0.85);
    margin-bottom: 2.5rem;
    line-height: 1.65;
}

.email-landing-hero .mc-embed-container {
    max-width: 540px;
}

.email-landing-benefits {
    padding: 60px 0;
    background: #f9f2e4;
}

.email-landing-benefits h2 {
    text-align: center;
    color: #1b1915;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.benefits-list {
    list-style: none;
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1.05rem;
    color: #1b1915;
    line-height: 1.5;
}

.benefits-list li::before {
    content: '✓';
    color: #cf3e25;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1em;
}

/* Thank-you page */
.thanks-hero {
    background-color: #1b1915;
    color: #f9f2e4;
    padding: 100px 0 80px;
    text-align: center;
}

.thanks-hero h1 {
    font-size: 2.8rem;
    color: #f8c235;
    margin-bottom: 1rem;
}

.thanks-hero p {
    font-size: 1.15rem;
    color: rgba(249, 242, 228, 0.85);
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.65;
}

.thanks-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.thanks-cta-primary {
    background: #cf3e25;
    color: #f9f2e4;
    padding: 13px 28px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1rem;
    transition: background 0.25s ease;
    display: inline-block;
}

.thanks-cta-primary:hover {
    background: #a8311c;
}

.thanks-cta-secondary {
    background: transparent;
    color: #f8c235;
    padding: 13px 28px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1rem;
    border: 2px solid #f8c235;
    transition: all 0.25s ease;
    display: inline-block;
}

.thanks-cta-secondary:hover {
    background: #f8c235;
    color: #1b1915;
}

@media (max-width: 600px) {
    .email-capture-section h2 {
        font-size: 1.85rem;
    }

    .email-capture-form .email-fields {
        flex-direction: column;
        border-radius: 6px;
        overflow: visible;
    }

    .email-input {
        border-radius: 6px;
        width: 100%;
    }

    .email-submit-btn {
        border-radius: 6px;
        width: 100%;
        margin-top: 8px;
    }

    .email-landing-hero h1 {
        font-size: 2rem;
    }

    .email-landing-hero .hero-lead {
        font-size: 1rem;
    }

    .thanks-hero h1 {
        font-size: 2rem;
    }
}
