/* ==========================================================================
   Paperbacks & Pixels — NEOBRUTALIST Stylesheet
   PaperbackU brand colors + bold borders, hard shadows, chunky type.
   Design principles from "Making Your Website Work" by Gill Andrews.
   ========================================================================== */

/* --- Brand tokens --- */
:root {
    /* Colors — PaperbackU palette, cranked up for neobrutalism */
    --cream:       #FFFCF1;
    --yellow:      #FDE64A;   /* vivid brand yellow — the star */
    --text:        #000000;   /* pure black for neobrutalist contrast */
    --border:      #000000;   /* thick black borders everywhere */
    --dark:        #000000;
    --white:       #FFFFFF;
    --success:     #4A7C59;
    --error:       #A94442;

    /* Typography */
    --font:        'Karla', sans-serif;

    /* Neobrutalist shadow — hard offset, no blur */
    --shadow:      4px 4px 0 #000000;
    --shadow-lg:   6px 6px 0 #000000;
    --shadow-hover: 2px 2px 0 #000000;

    /* Layout */
    --max-width:   900px;
    --wide-width:  1100px;
    --nav-height:  80px;
    --radius:      0px;       /* sharp corners = neobrutalist */
}


/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--cream);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: var(--wide-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

a {
    color: var(--text);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

a:hover {
    background: var(--yellow);
}


/* ==========================================================================
   TYPOGRAPHY — Karla, extra chunky for neobrutalism
   ========================================================================== */

h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
    letter-spacing: -0.02em;    /* tight tracking = punchy */
}

h1 { font-size: 3.2rem; margin-bottom: 24px; }
h2 { font-size: 2.4rem; margin-bottom: 20px; }
h3 { font-size: 1.5rem; margin-bottom: 16px; }
h4 { font-size: 1.15rem; margin-bottom: 12px; }

p {
    margin-bottom: 16px;
}

ul, ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

li {
    margin-bottom: 8px;
}


/* ==========================================================================
   NAVIGATION — thick bottom border, no subtlety
   ========================================================================== */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--cream);
    border-bottom: 3px solid var(--border);
    height: var(--nav-height);
    display: flex;
    align-items: center;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: none;
    padding: 0 40px;
}

.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo:hover {
    background: none;
}

.nav-glasses {
    height: 48px;
    width: auto;
}

.nav-brand-name {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text);
    letter-spacing: -0.01em;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 28px;
    align-items: center;
    padding: 0;
    margin: 0;
    margin-left: auto;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    padding: 4px 8px;
    transition: background 0.1s;
}

.nav-links a:hover {
    background: var(--yellow);
}

/* "Get in Touch" button in nav — neobrutalist style */
.nav-cta {
    background: var(--yellow) !important;
    color: var(--text) !important;
    padding: 10px 24px !important;
    border: 3px solid var(--border) !important;
    box-shadow: var(--shadow);
    transition: all 0.1s;
}

.nav-cta:hover {
    box-shadow: var(--shadow-hover) !important;
    transform: translate(2px, 2px);
    background: var(--yellow) !important;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--text);
}


/* ==========================================================================
   BUTTONS — thick borders, hard shadows, no rounded corners
   ========================================================================== */

.btn {
    display: inline-block;
    background: var(--yellow);
    color: var(--text);
    padding: 14px 32px;
    border: 3px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.1s;
    letter-spacing: 0.02em;
}

.btn:hover {
    box-shadow: var(--shadow-hover);
    transform: translate(2px, 2px);
    background: var(--yellow);
    color: var(--text);
}

.btn-outline {
    background: var(--cream);
    color: var(--text);
    border: 3px solid var(--border);
}

.btn-outline:hover {
    background: var(--yellow);
    color: var(--text);
    box-shadow: var(--shadow-hover);
    transform: translate(2px, 2px);
}


/* ==========================================================================
   SECTIONS
   ========================================================================== */

.section {
    padding: 80px 0;
}

.section-alt {
    padding: 80px 0;
    background: var(--white);
    border-top: 3px solid var(--border);
    border-bottom: 3px solid var(--border);
}

.section-dark {
    padding: 80px 0;
    background: var(--dark);
    color: var(--cream);
}

.section-header {
    margin-bottom: 48px;
}

.section-header p {
    font-size: 1.15rem;
    max-width: 640px;
}

/* Yellow accent block — chunkier for neobrutalism */
.accent-line {
    width: 80px;
    height: 6px;
    background: var(--yellow);
    border: 2px solid var(--border);
    margin: 20px 0 0 0;
}


/* ==========================================================================
   HERO — big, bold, unapologetic
   ========================================================================== */

.hero {
    padding: 80px 0 60px;
    border-bottom: 3px solid var(--border);
    background: var(--yellow);
}

.hero h1 {
    font-size: 3.6rem;
    max-width: 750px;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.hero .subtagline {
    font-size: 1.2rem;
    line-height: 1.5;
    max-width: 600px;
    margin-bottom: 36px;
    color: #333;
}

.hero .btn {
    margin-right: 16px;
    margin-bottom: 12px;
}

/* Primary hero button on yellow bg — flip to black */
.hero .btn:first-of-type {
    background: var(--text);
    color: var(--yellow);
    box-shadow: none;
    border-color: var(--text);
}

.hero .btn:first-of-type:hover {
    transform: translate(2px, 2px);
}

.hero .btn-outline {
    background: transparent;
    border-color: var(--text);
}


/* ==========================================================================
   SERVICE CARDS — thick borders, hard shadows
   ========================================================================== */

.service-cards {
    display: grid;
    gap: 24px;
}

.service-cards-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.service-cards-3 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.service-card {
    background: var(--white);
    border: 3px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    transition: all 0.15s;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translate(-2px, -2px);
}

.service-card h3 {
    margin-bottom: 8px;
}

.service-card .price {
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 12px;
    background: var(--yellow);
    display: inline-block;
    padding: 2px 8px;
    border: 2px solid var(--border);
    align-self: flex-start;
}

.service-card p {
    flex-grow: 1;
}

.service-card .btn {
    align-self: flex-start;
    margin-top: 16px;
}


/* ==========================================================================
   SERVICE DETAIL PAGE
   ========================================================================== */

.service-hero {
    padding: 80px 0 40px;
}

.service-hero .category-label {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--yellow);
    display: inline-block;
    padding: 4px 12px;
    border: 2px solid var(--border);
    margin-bottom: 16px;
}

.service-meta {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding: 24px 0;
    border-top: 3px solid var(--border);
    border-bottom: 3px solid var(--border);
}

.service-meta div {
    min-width: 160px;
}

.service-meta .label {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.service-meta .value {
    font-weight: 800;
    font-size: 1.3rem;
}

.service-body {
    padding: 48px 0 80px;
}

.service-body h2 {
    margin-top: 40px;
}

.service-body ul {
    list-style: none;
    padding: 0;
}

.service-body ul li {
    padding: 10px 0 10px 32px;
    position: relative;
    border-bottom: 2px solid #eee;
}

.service-body ul li:last-child {
    border-bottom: none;
}

.service-body ul li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    font-weight: 800;
    font-size: 1.1rem;
}


/* ==========================================================================
   AUDIENCE SECTION
   ========================================================================== */

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.audience-item {
    padding: 20px 24px;
    border: 3px solid var(--border);
    background: var(--cream);
    box-shadow: var(--shadow);
}

.audience-item h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.audience-item p {
    font-size: 0.95rem;
    margin: 0;
}


/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */

.about-intro {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.about-photo {
    width: 240px;
    height: 240px;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.photo-placeholder {
    width: 240px;
    height: 240px;
    background: var(--yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text);
    font-weight: 700;
    font-size: 0.9rem;
    border: 3px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.non-negotiable {
    padding: 28px;
    border: 3px solid var(--border);
    background: var(--yellow);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}


/* ==========================================================================
   PARTNERS PAGE
   ========================================================================== */

.partner-type {
    padding: 28px 0;
    border-bottom: 3px solid var(--border);
}

.partner-type:last-child {
    border-bottom: none;
}

.partner-type h3 {
    color: var(--text);
}

.partnership-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.partnership-feature {
    padding: 24px;
    background: var(--cream);
    border: 3px solid var(--border);
    box-shadow: var(--shadow);
}

.partnership-feature h4 {
    margin-bottom: 8px;
}


/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: flex-start;
}

.contact-info h2 {
    font-size: 1.6rem;
}

.contact-info p {
    font-size: 1.05rem;
}

.contact-form label {
    display: block;
    font-weight: 800;
    margin-bottom: 6px;
    margin-top: 20px;
    font-size: 0.95rem;
}

.contact-form label:first-child {
    margin-top: 0;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 16px;
    border: 3px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 1rem;
    background: var(--white);
    color: var(--text);
}

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    box-shadow: var(--shadow);
}

.contact-form .btn {
    margin-top: 24px;
    width: 100%;
}


/* ==========================================================================
   BLOG
   ========================================================================== */

.blog-placeholder {
    text-align: center;
    padding: 40px 0;
    font-weight: 700;
}

.blog-list-item {
    padding: 32px 0;
    border-bottom: 3px solid var(--border);
}

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

.blog-list-item h2 {
    margin-bottom: 8px;
}

.blog-list-item h2 a {
    text-decoration: none;
}

.blog-list-item h2 a:hover {
    background: var(--yellow);
}

.blog-date {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.blog-body h2 { margin-top: 40px; }
.blog-body h3 { margin-top: 32px; }
.blog-body p { margin-bottom: 16px; }


/* ==========================================================================
   FLASH MESSAGES
   ========================================================================== */

.flash-messages {
    padding-top: 16px;
}

.flash {
    padding: 16px 20px;
    border: 3px solid var(--border);
    margin-bottom: 12px;
    font-weight: 700;
}

.flash-success {
    background: #C8F7C5;
}

.flash-error {
    background: #FFDAD6;
}


/* ==========================================================================
   FOOTER — black bg, yellow accents
   ========================================================================== */

.site-footer {
    background: var(--dark);
    color: var(--cream);
    padding: 64px 0 0;
    border-top: 3px solid var(--border);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: none;
    padding: 0 40px;
}

.footer-glasses {
    height: 44px;
    width: auto;
    margin-bottom: 10px;
}

.footer-brand-name {
    display: block;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--yellow);
    margin-bottom: 12px;
}

.site-footer p {
    color: #999;
    font-size: 0.95rem;
}

.site-footer h4 {
    color: var(--yellow);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

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

.footer-links a {
    color: #CCC;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--yellow);
    background: none;
}

.footer-contact a {
    color: var(--yellow);
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
    background: none;
}

.footer-bottom {
    margin-top: 48px;
    padding: 24px 40px;
    border-top: 2px solid #333;
    max-width: none;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #555;
    margin: 0;
}


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

.page-404 {
    text-align: center;
    padding: 80px 0;
}


/* ==========================================================================
   PROBLEM / EMPATHY SECTION
   ========================================================================== */

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

.problem-card {
    padding: 24px;
    border: 3px solid var(--border);
    background: var(--white);
    box-shadow: var(--shadow);
}

.problem-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.problem-card p {
    font-size: 0.95rem;
    margin: 0;
}


/* ==========================================================================
   HOW IT WORKS — 3-step plan
   ========================================================================== */

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

.step-card {
    padding: 28px;
    border: 3px solid var(--border);
    background: var(--white);
    box-shadow: var(--shadow);
    position: relative;
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 36px;
    text-align: center;
    font-weight: 800;
    font-size: 1.2rem;
    background: var(--yellow);
    border: 3px solid var(--border);
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.95rem;
    margin: 0;
}


/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.testimonial-card {
    padding: 28px;
    border: 3px solid var(--border);
    background: var(--cream);
    box-shadow: var(--shadow);
}

.testimonial-card blockquote {
    font-size: 1.05rem;
    line-height: 1.5;
    font-style: italic;
    margin: 0 0 16px 0;
}

.testimonial-author {
    font-weight: 800;
    font-size: 0.9rem;
    margin: 0;
}


/* ==========================================================================
   PUBLISHING PROFESSIONALS CALLOUT
   ========================================================================== */

.pros-callout {
    padding: 40px;
    border: 3px solid var(--border);
    background: var(--yellow);
    box-shadow: var(--shadow-lg);
}

.pros-callout h2 {
    margin-bottom: 16px;
}

.pros-callout p {
    max-width: 640px;
}


/* ==========================================================================
   LEAD MAGNET SIGNUP
   ========================================================================== */

.lead-magnet-section {
    padding: 60px 0;
    background: var(--dark);
    color: var(--cream);
    border-top: 3px solid var(--border);
    border-bottom: 3px solid var(--border);
    text-align: center;
}

.lead-magnet-eyebrow {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--yellow);
    margin-bottom: 8px;
}

.lead-magnet-title {
    font-size: 1.6rem;
    color: var(--cream);
    margin-bottom: 12px;
}

.lead-magnet-desc {
    font-size: 0.95rem;
    color: #BBB;
    margin-bottom: 24px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.lead-magnet-form {
    margin: 0 auto;
}

.lead-magnet-input-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.lead-magnet-email {
    flex: 1;
    min-width: 200px;
    max-width: 320px;
    padding: 12px 16px;
    border: 3px solid var(--cream);
    font-size: 1rem;
    font-family: var(--font);
    background: var(--white);
    color: var(--text);
}

.lead-magnet-btn {
    white-space: nowrap;
}

.lead-magnet-msg {
    text-align: center;
    margin-top: 12px;
    font-weight: 600;
}

.lead-magnet-fine-print {
    font-size: 0.8rem;
    color: #777;
    margin-top: 12px;
    margin-bottom: 0;
}


/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.text-center { text-align: center; }
.mt-0  { margin-top: 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-0  { margin-bottom: 0; }


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

@media (max-width: 768px) {

    body { font-size: 16px; }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    .hero { padding: 48px 0 40px; }
    .hero h1 { font-size: 2.6rem; }
    .section { padding: 48px 0; }
    .section-alt { padding: 48px 0; }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--cream);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 3px solid var(--border);
    }

    .menu-open .nav-links {
        display: flex;
    }

    .about-intro {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

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

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .service-cards-2,
    .service-cards-3 {
        grid-template-columns: 1fr;
    }

    .service-meta {
        flex-direction: column;
        gap: 16px;
    }

    .problem-grid,
    .steps-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .pros-callout {
        padding: 28px;
    }

    .lead-magnet-input-row {
        flex-direction: column;
        align-items: center;
    }

    .lead-magnet-email {
        max-width: 100%;
        width: 100%;
    }
}
