/* --- Global Styles --- */
:root {
    --primary-color: #28a745; /* Professional Green */
    --primary-dark: #218838;   /* Darker Green for hover */
    --secondary-color: #f4f9f4; /* Very Light Green-Tinted White */
    --text-dark: #222;
    --text-light: #555;
    --white: #ffffff;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

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

section {
    padding: 60px 0;
}

h1, h2, h3 {
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-dark);
}

h1 { font-size: 2.8rem; font-weight: 700; }
h2 { font-size: 2.2rem; text-align: center; font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; color: var(--primary-dark); }

p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

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

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

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

.btn-large {
    padding: 15px 35px;
    font-size: 1.2rem;
}

/* --- Section 1: Hero --- */
.hero {
    background-color: var(--secondary-color);
    padding: 80px 0 60px 0;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

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

.book-mockup-placeholder {
    width: 300px;
    height: 400px;
    background: #e9e9e9; 
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden; 
    /* Flexbox to center text if image fails to load */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #888;
    font-weight: 600;
}

.hero .sub-headline {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin: 15px 0 10px;
}

.hero .sub-sub-headline {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero .cta-buttons {
    display: flex;
    gap: 15px;
}

/* --- Section 2: Problem --- */
.problem {
    background-color: var(--white);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.problem-card {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 8px;
}
.problem-card h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}
.problem-card p {
    font-size: 1rem;
}

/* --- Section 3: Solution (USP) --- */
.solution {
    background-color: var(--primary-dark);
    color: var(--white);
    text-align: center;
}
.solution h2 {
    color: var(--white);
}
.solution p {
    color: #f0f0f0;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}
.solution strong {
    color: #cfffdb;
}

/* --- Section 4: Features --- */
.features {
    background-color: var(--white);
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.feature-item {
    background: var(--secondary-color);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.feature-item h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
}
.feature-item p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* --- Section 5: Authority (Author) --- */
.author {
    background-color: var(--secondary-color);
}
.author-content {
    display: flex;
    align-items: center;
    gap: 40px;
}
.author-photo-placeholder {
    flex: 0 0 200px;
    height: 200px;
    background: #e9e9e9;
    border: 2px dashed var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    overflow: hidden; /* Ensures the image stays circular */
}
.author-bio {
    flex: 1;
}
.author-bio h2 {
    text-align: left;
}
.author-bio blockquote {
    font-size: 1.2rem;
    font-style: italic;
    margin: 20px 0 0 0;
    padding-left: 20px;
    border-left: 4px solid var(--primary-color);
}
.author-bio cite {
    display: block;
    font-weight: 600;
    font-style: normal;
    color: var(--text-dark);
    margin-top: 10px;
}

/* --- Section 6: "Look Inside" (Sample) --- */
.sample {
    background-color: var(--white);
}
.sample-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.sample-image-placeholder {
    height: 300px;
    background: #f4f9f4; /* Light green frame */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden; 
    padding: 10px; /* Padding for the 'matted' frame look */
    box-sizing: border-box;
    
    /* Centering text if image fails */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

/* --- Section 7: Pricing --- */
.pricing {
    background-color: var(--secondary-color);
}
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
    margin-top: 40px;
}
.pricing-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
}
.pricing-card.available {
    border-top: 8px solid var(--primary-color);
}
.pricing-card.coming-soon {
    border-top: 8px solid var(--border-color);
}

.pricing-card h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
}
.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 15px 0;
}
.pricing-card .status {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 15px 0;
}
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    flex-grow: 1;
}
.pricing-features li {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--text-light);
}
.pricing-card .btn {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

/* --- Section 8: FAQ --- */
.faq {
    background-color: var(--white);
}
.faq .container {
    max-width: 800px;
}
.faq-item {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}
.faq-item h3 {
    color: var(--text-dark);
    margin: 0 0 10px;
}
.faq-item p {
    margin: 0;
    font-size: 1rem;
}

/* --- Section 9: Contact Us (Horizontal Blocks) --- */
.contact {
    background-color: var(--white);
    padding: 60px 0;
}

.contact h2 {
    text-align: center;
    margin-bottom: 10px;
}

.contact .section-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--text-light);
}

/* 1. Bulk Discount Banner (Full Width) */
.bulk-banner {
    background-color: #fff3cd; /* Soft Gold */
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 40px; /* Space between banner and blocks */
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* 2. Contact Blocks Container (The Single Line) */
.contact-grid {
    display: flex;             /* This aligns them in a single row */
    justify-content: center;   /* Centers them in the middle */
    gap: 20px;                 /* Space between the blocks */
    flex-wrap: nowrap;         /* Tries to keep them on one line */
}

/* 3. The Individual Blocks */
.contact-card {
    flex: 1;                   /* Makes all blocks the same width */
    background: var(--white);
    border: 2px solid var(--secondary-color); /* Thicker, cleaner border */
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 200px;          /* Ensures they don't get too squished */
    
    /* Vertical Flex to stack icon/text inside the block */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.contact-card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background-color: var(--secondary-color);
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%; /* Puts the emoji in a nice circle */
}

.contact-card h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-weight: 700;
}

.contact-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.contact-card .link-text {
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Adjustment: Stack them only on very small screens */
@media (max-width: 768px) {
    .contact-grid {
        flex-wrap: wrap; /* Allows wrapping on mobile phones */
    }
    .contact-card {
        min-width: 100%; /* Full width on mobile */
    }
}

/* Bulk Banner Style */
.bulk-banner {
    background-color: #fff8e1;
    border: 1px solid #ffe082;
    color: #8d6e03;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

.bulk-banner p {
    margin: 0;
    color: inherit;
    font-size: 1rem;
}

/* Contact Cards Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.contact-card {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-card h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.contact-card p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 15px;
}

.contact-card .link-text {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-card:hover .link-text {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* --- Footer --- */
footer {
    background: var(--text-dark);
    color: #aaa;
    padding: 30px 0;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.social-links {
    display: flex;
    gap: 15px;
}
.social-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    background-color: var(--primary-color);
    color: var(--white);
    transition: background-color 0.3s ease;
}
.social-btn:hover {
    background-color: var(--primary-dark);
}

/* --- IMAGE HANDLING --- */

/* 1. Book Mockup (Hero) - Cover */
.book-mockup-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

/* 2. Author Photo - Cover (Circle) */
.author-photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Border radius is handled by the container in this version */
}

/* 3. Sample Gallery - Contain (Show full page) */
.sample-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* --- Responsive Styles --- */
@media (max-width: 900px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        order: 2;
    }
    .hero-visual {
        order: 1;
        margin-bottom: 30px;
    }
    .hero .cta-buttons {
        justify-content: center;
    }
    .author-content {
        flex-direction: column;
        text-align: center;
    }
    .author-bio h2 {
        text-align: center;
    }
    .author-bio blockquote {
        border: none;
        padding: 0;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    .hero .cta-buttons {
        flex-direction: column;
    }
    .btn {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
    .footer-content {
        flex-direction: column;
        gap: 15px;
    }
}