/* Simple Marketing for Smart People - Main Stylesheet */
/* Replicating the WordPress site design */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Source+Sans+3:wght@400;500;600&display=swap');

:root {
    /* Brand Colors */
    --color-red: #c41e3a;
    --color-red-hover: #a3172f;
    --color-olive: #4a5a3c;
    --color-olive-light: #5c6b4d;
    --color-text: #333333;
    --color-text-light: #555555;
    --color-cream: #faf6f0;
    --color-cream-dark: #f0ebe3;
    --color-white: #ffffff;
    --color-border: #e0d9cf;
    --color-gold-star: #f5a623;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Layout */
    --max-width: 1100px;
    --content-width: 800px;
    --section-spacing: 80px;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-cream);
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

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

h1 {
    font-size: 3rem;
    font-weight: 400;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.25rem;
}

a {
    color: var(--color-red);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-red-hover);
}

/* Header / Navigation */
header {
    background: var(--color-cream);
    padding: 1.5rem 2rem;
    text-align: center;
}

.main-nav {
    max-width: var(--max-width);
    margin: 0 auto;
}

.logo {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    line-height: 1.3;
}

.logo .simple {
    color: var(--color-red);
}

.logo .marketing {
    color: var(--color-text);
}

.logo .for {
    color: var(--color-text);
    font-weight: 400;
}

.logo .smart-people {
    color: var(--color-red);
}

/* Main Content */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section - Homepage */
.hero {
    padding: 2rem 0 var(--section-spacing);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-image {
    order: -1;
}

.book-cover {
    width: 100%;
    max-width: 350px;
    height: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.hero-text h1 {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.hero-text .tagline {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.hero-text .hero-quote {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.4;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.hero-text .hero-quote-author {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
    font-style: normal;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-red);
    color: var(--color-white);
    padding: 1rem 1.75rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: background 0.2s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--color-red-hover);
    color: var(--color-white);
    transform: translateY(-2px);
}

.cta-button .amazon-icon {
    width: 20px;
    height: 20px;
}

/* Authors Section */
.authors-section {
    padding: var(--section-spacing) 0;
    text-align: center;
}

.authors-section h2 {
    color: var(--color-olive);
    margin-bottom: 3rem;
}

.authors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.author-card {
    text-align: left;
}

.author-card.reverse {
    text-align: right;
}

.author-card.reverse .author-content {
    text-align: left;
}

.author-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    margin-bottom: 1.5rem;
}

.author-card.reverse .author-image {
    float: right;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.author-card:not(.reverse) .author-image {
    float: left;
    margin-right: 2rem;
    margin-bottom: 1rem;
}

.author-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.author-role {
    font-size: 0.85rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.author-bio {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.7;
    clear: both;
}

.author-bio p {
    margin-bottom: 1rem;
}

/* Foreword Section */
.foreword-section {
    padding: var(--section-spacing) 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.foreword-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.foreword-section h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--color-text);
    margin-bottom: 2rem;
}

.foreword-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.foreword-image img {
    width: 100%;
    max-width: 350px;
    border-radius: 8px;
}

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

/* About The Book Section */
.about-section {
    padding: var(--section-spacing) 0;
    border-top: 1px solid var(--color-border);
}

.about-section .section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: 0.5rem;
}

.about-section h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 2rem;
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 1.5rem;
}

/* Praise/Reviews Section */
.praise-section {
    padding: var(--section-spacing) 0;
    border-top: 1px solid var(--color-border);
}

.praise-section .section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: 0.5rem;
}

.praise-section h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-olive);
    text-align: center;
    margin-bottom: 3rem;
}

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

.review-card {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: 8px;
}

.review-stars {
    color: var(--color-gold-star);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.review-text {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-style: italic;
}

.review-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
}

/* Order CTA Section */
.order-section {
    padding: var(--section-spacing) 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.order-section h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.order-section p {
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.order-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.order-book-image {
    width: 150px;
    height: auto;
}

/* ==================== */
/* BONUS PAGE STYLES */
/* ==================== */

.bonus-hero {
    padding: 3rem 0;
    text-align: center;
    max-width: var(--content-width);
    margin: 0 auto;
}

.bonus-hero h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.bonus-intro {
    text-align: left;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.bonus-intro p {
    font-size: 1.05rem;
    color: var(--color-olive);
    margin-bottom: 1.5rem;
}

.bonus-intro ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.bonus-intro li {
    font-size: 1.05rem;
    color: var(--color-olive);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.bonus-intro .form-cta {
    font-size: 1.05rem;
    color: var(--color-olive);
}

/* Opt-in Form */
.optin-form {
    max-width: 500px;
    margin: 2rem auto;
}

.optin-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.form-input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--color-white);
    color: var(--color-text);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-red);
}

.form-button {
    width: 100%;
    justify-content: center;
    cursor: pointer;
}

@media (max-width: 600px) {
    .form-fields {
        flex-direction: column;
    }
}

.form-row {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.form-field {
    flex: 1;
    position: relative;
}

.form-field input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--color-white);
    color: var(--color-text);
}

.form-field input::placeholder {
    color: #999;
}

.form-field input:focus {
    outline: none;
    border-color: var(--color-olive);
}

.form-button {
    background: var(--color-red);
    color: var(--color-white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.form-button:hover {
    background: var(--color-red-hover);
}

.form-privacy {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: 1rem;
}

/* Billy Welcome Section */
.billy-welcome {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 4rem 0;
    max-width: 700px;
    margin: 0 auto;
}

.welcome-text {
    text-align: left;
}

.welcome-text p {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-olive);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.welcome-text .smart-people-highlight {
    font-weight: 600;
    color: var(--color-text);
}

.welcome-text .signature {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--color-text);
}

.billy-headshot {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--color-cream-dark);
}

/* Work Together CTA */
.work-together {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.work-together p {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

.work-together a {
    color: var(--color-red);
    font-weight: 500;
}

/* ==================== */
/* THANK YOU PAGE STYLES */
/* ==================== */

.thankyou-content {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
    text-align: left;
}

.thankyou-content h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 2rem;
    line-height: 1.15;
}

.thankyou-content p {
    font-size: 1.15rem;
    color: var(--color-olive);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.thankyou-content .signature {
    font-size: 1.15rem;
    color: var(--color-text);
    margin-top: 2rem;
}

.thankyou-cta {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.thankyou-cta p {
    font-size: 1rem;
    color: var(--color-text-light);
}

/* ==================== */
/* FOOTER */
/* ==================== */

footer {
    background: var(--color-cream-dark);
    padding: 2.5rem 2rem;
    margin-top: var(--section-spacing);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-line {
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.footer-logo {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
}

.footer-logo .simple {
    color: var(--color-red);
}

.footer-logo .marketing {
    color: var(--color-text);
}

.footer-logo .for {
    color: var(--color-text);
    font-weight: 400;
}

.footer-logo .smart-people {
    color: var(--color-red);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.8rem;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--color-red);
}

/* ==================== */
/* LEGAL PAGES */
/* ==================== */

.legal-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

.legal-content h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--color-text);
}

.legal-content h2 {
    font-size: 1.35rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.legal-content p {
    color: var(--color-text-light);
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.legal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-content li {
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.legal-content address {
    font-style: normal;
    color: var(--color-text-light);
    line-height: 1.8;
}

/* ==================== */
/* 404 PAGE */
/* ==================== */

.error-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 6rem 2rem;
    text-align: center;
}

.error-page h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.error-page p {
    color: var(--color-text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* ==================== */
/* RESPONSIVE */
/* ==================== */

@media (max-width: 900px) {
    :root {
        --section-spacing: 60px;
    }

    h1 {
        font-size: 2.25rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    .book-cover {
        max-width: 280px;
        margin: 0 auto;
    }

    .hero-text {
        text-align: center;
    }

    .authors-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .author-card,
    .author-card.reverse {
        text-align: center;
    }

    .author-card .author-image,
    .author-card.reverse .author-image {
        float: none;
        margin: 0 auto 1.5rem;
    }

    .author-card .author-content,
    .author-card.reverse .author-content {
        text-align: center;
    }

    .foreword-content {
        grid-template-columns: 1fr;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .order-content {
        flex-direction: column;
    }

    .billy-welcome {
        flex-direction: column-reverse;
        text-align: center;
    }

    .welcome-text {
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 600px) {
    html {
        font-size: 16px;
    }

    header {
        padding: 1rem;
    }

    main {
        padding: 0 1rem;
    }

    .bonus-hero h1,
    .thankyou-content h1 {
        font-size: 2.25rem;
    }

    .form-row {
        flex-direction: column;
    }

    .form-button {
        width: 100%;
    }

    .footer-logo-row {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-line {
        width: 100%;
        max-width: 200px;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
}
