/* Base & CSS Variables */
:root {
    --primary-color: #B53333; /* Sunset/Coral Red from the Rescue Ridge banner */
    --primary-light: #D94848;
    --text-main: #2A211E; /* Warm charcoal instead of cool slate */
    --text-muted: #6B5B56; /* Warm earthy gray */
    --bg-main: #FFFCFA; /* Very soft warm white */
    --bg-secondary: #FFF5F2; /* Subtle sunset cream */
    --border-color: #F0E6E1;
    --shadow-sm: 0 4px 6px rgba(42, 33, 30, 0.05);
    --shadow-md: 0 10px 20px rgba(42, 33, 30, 0.08);
    --transition: all 0.3s ease;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
}

/* Typography */
.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-subtitle {
    display: inline-block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 5%;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1;
}

.logo-tagline {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 0.8rem;
    color: var(--text-main);
    margin-bottom: -2px;
    width: 100%;
    text-align: justify;
    text-align-last: justify;
}

.logo-name {
    font-family: 'Oswald', sans-serif;
    font-size: 2.8rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-main);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover:not(.btn-outline) {
    color: var(--primary-color);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
}

.btn-outline {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--primary-color);
    color: var(--primary-color) !important;
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white !important;
}

.btn-text {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 1rem;
    transition: var(--transition);
}

.btn-text:hover {
    transform: translateX(5px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 5% 0;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s forwards ease-out 0.2s;
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s forwards ease-out 0.5s;
}

.hero-book-cover {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.hero-book-cover:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(42, 33, 30, 0.15);
}

/* Section Styling */
.series-section {
    padding: 6rem 5%;
    background-color: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.divider {
    height: 3px;
    width: 60px;
    background-color: var(--primary-color);
    margin: 0 auto;
}

/* Series Grid */
.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.series-card {
    background: var(--bg-main);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.series-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.series-cover-wrapper {
    aspect-ratio: 2 / 3;
    background-color: #EAECEE;
    position: relative;
    overflow: hidden;
}

.grid-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.series-card:hover .grid-cover-img {
    transform: scale(1.05);
}

.series-info {
    padding: 2rem;
}

.series-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.series-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.book-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.direct-link {
    color: #2A211E;
    border-bottom: 1px solid var(--primary-color);
}
.direct-link:hover {
    color: var(--primary-color);
    transform: translateX(0);
}

/* Newsletter Section */
.newsletter-section {
    padding: 6rem 5%;
    background: linear-gradient(rgba(42, 33, 30, 0.95), rgba(42, 33, 30, 0.95)), url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    color: white;
    text-align: center;
}

.newsletter-container {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-text h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter-text p {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
}

.newsletter-form input:focus {
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.3);
}

/* Footer */
.footer {
    background-color: #1A252F;
    color: white;
    text-align: center;
    padding: 3rem 5%;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.copyright {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.affiliate-disclosure {
    color: #666;
    font-size: 0.75rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.4;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-description {
        margin: 0 auto 2.5rem;
    }
    
    .nav-links {
        display: none; /* We would add a hamburger menu toggle in JS */
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

/* Temporary toggle to hide Buy Direct buttons while store is being built */
.direct-link {
    display: none !important;
}
