/* ============================================
   On Applebutter Road - Book Marketing Website
   ============================================ */

/* CSS Variables for consistent theming */
:root {
    --color-primary: #8B4513;      /* Saddle Brown - like apple butter */
    --color-primary-dark: #6B3410;
    --color-primary-light: #A0522D;
    --color-secondary: #556B2F;     /* Dark Olive - farmland green */
    --color-accent: #DAA520;        /* Goldenrod - wheat/harvest */
    --color-cream: #FDF5E6;         /* Old Lace - warm cream background */
    --color-warm-white: #FFFAF0;    /* Floral White */
    --color-text: #3D2914;          /* Dark brown text */
    --color-text-light: #5D4930;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-soft: 0 4px 20px rgba(61, 41, 20, 0.1);
    --shadow-medium: 0 8px 30px rgba(61, 41, 20, 0.15);
    --shadow-strong: 0 12px 40px rgba(61, 41, 20, 0.2);
    --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.7;
    background-color: var(--color-warm-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: white;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 250, 240, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(61, 41, 20, 0.08);
}

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

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

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

.nav-links a {
    font-weight: 500;
    color: var(--color-text);
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background-color: var(--color-primary) !important;
    color: white !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 4px;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background-color: var(--color-primary-dark) !important;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-warm-white) 50%, #F5EBE0 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/back.jpg') center/cover no-repeat;
    opacity: 0.08;
    z-index: 0;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    padding-right: 2rem;
}

.tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.hero h1 {
    color: var(--color-primary);
    margin-bottom: 0.25rem;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
}

.author-credit {
    font-style: italic;
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 380px;
    width: 100%;
    box-shadow: var(--shadow-strong);
    border-radius: 4px;
    transform: rotate(2deg);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 20px 60px rgba(61, 41, 20, 0.25);
}

/* About the Book Section */
.about-book {
    padding: 6rem 0;
    background-color: white;
}

.about-book h2 {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 3rem;
}

.about-book h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    margin: 1rem auto 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    margin-bottom: 1.5rem;
    text-align: justify;
    text-align-last: left;
}

.book-details {
    margin-top: 2.5rem;
    padding: 2rem;
    background: var(--color-cream);
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
}

.book-details h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.book-details ul {
    list-style: none;
    padding-left: 0;
}

.book-details li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.book-details li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

/* Quote Section */
.quote-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--color-secondary) 0%, #4A5D28 100%);
    color: white;
    text-align: center;
}

.quote-section blockquote {
    max-width: 800px;
    margin: 0 auto;
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    line-height: 1.8;
}

.quote-section blockquote::before {
    content: '"';
    display: block;
    font-size: 5rem;
    line-height: 0.5;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Author Section */
.author-section {
    padding: 6rem 0;
    background-color: var(--color-cream);
}

.author-section h2 {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 3rem;
}

.author-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    margin: 1rem auto 0;
}

.author-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.author-text p {
    margin-bottom: 1.5rem;
}

/* Reviews Section */
.reviews-section {
    padding: 6rem 0;
    background-color: white;
}

.reviews-section h2 {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 3rem;
}

.reviews-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    margin: 1rem auto 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.review-card {
    background: var(--color-cream);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.stars {
    color: var(--color-accent);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.review-text {
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.reviewer {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.95rem;
}

/* Buy Section */
.buy-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
}

.buy-content {
    display: grid;
    grid-template-columns: 0.6fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.buy-image img {
    max-width: 280px;
    margin: 0 auto;
    box-shadow: var(--shadow-strong);
    border-radius: 4px;
}

.buy-text h2 {
    color: white;
    margin-bottom: 1rem;
}

.buy-text h2::after {
    display: none;
}

.price {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.buy-text p {
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

.buy-text .btn-primary {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-text);
    margin-top: 0.5rem;
}

.buy-text .btn-primary:hover {
    background-color: #C49619;
    border-color: #C49619;
}

.buy-note {
    font-size: 0.95rem;
    margin-top: 1rem;
    opacity: 0.8;
}

/* Newsletter Section */
.newsletter-section {
    padding: 5rem 0;
    background-color: var(--color-cream);
    text-align: center;
}

.newsletter-section h2 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.newsletter-section > .container > p {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--color-text-light);
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 250px;
    padding: 0.875rem 1.25rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Footer */
.site-footer {
    padding: 4rem 0 2rem;
    background-color: var(--color-text);
    color: rgba(255, 255, 255, 0.8);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-family: var(--font-display);
    color: white;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.copyright {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer-links h4,
.footer-publisher h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: white;
}

.footer-publisher p {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

/* Responsive Design */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        padding-right: 0;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image img {
        max-width: 300px;
        transform: rotate(0);
    }
    
    .buy-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 6rem 1.5rem 3rem;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input[type="email"] {
        min-width: 100%;
    }
}
