/**
 * AWMB Homepage Styles
 * Spec: homepage-redesign-spec-2026-04-01.md
 * Version: 1.0
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --navy:        #1a2744;
    --white:       #ffffff;
    --gold:        #d4a855;
    --gold-dark:   #b8902e;
    --gold-light:  #fdf6e3;
    --dark-grey:   #333333;
    --mid-grey:    #666666;
    --light-grey:  #f8f9fa;
    --border-grey: #e0e0e0;
    --error-red:   #dc3545;
    --success:     #28a745;
    --max-width:   1200px;
}

/* ============================================
   GLOBAL HOMEPAGE RESETS
   ============================================ */
.awmb-homepage * {
    box-sizing: border-box;
}

.awmb-homepage section {
    width: 100%;
}

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

/* ============================================
   TYPOGRAPHY HELPERS
   ============================================ */
.hp-eyebrow {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 12px 0;
}

.hp-headline {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 20px 0;
}

.hp-subhead {
    font-size: 18px;
    line-height: 1.6;
    color: var(--mid-grey);
    margin: 0 0 24px 0;
}

/* ============================================
   CTA BUTTON
   ============================================ */
.hp-btn {
    display: inline-block;
    background: var(--gold);
    color: var(--navy);
    font-size: 18px;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(212, 168, 85, 0.35);
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    line-height: 1.3;
}

.hp-btn:hover {
    background: var(--gold-dark);
    color: var(--navy);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(212, 168, 85, 0.45);
    text-decoration: none;
}

.hp-btn:active {
    transform: translateY(0);
}

.hp-btn-outline {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    box-shadow: none;
}

.hp-btn-outline:hover {
    background: var(--gold);
    color: var(--navy);
}

/* ============================================
   SECTION 1: HERO
   ============================================ */
.hp-hero {
    background: var(--navy);
    padding: 80px 0;
    overflow: hidden;
}

.hp-hero-inner {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 48px;
    align-items: center;
}

.hp-hero-text .hp-headline {
    font-size: 48px;
    color: var(--white);
}

.hp-hero-subhead {
    font-size: 20px;
    line-height: 1.6;
    color: rgba(255,255,255,0.82);
    margin: 0 0 24px 0;
}

.hp-trust-bar {
    font-size: 15px;
    color: var(--white);
    margin: 0 0 28px 0;
    line-height: 1.8;
}

.hp-trust-bar span {
    display: inline-block;
    margin-right: 20px;
    white-space: nowrap;
}

.hp-hero-cta-wrap {
    margin-bottom: 12px;
}

.hp-hero-cta-wrap .hp-btn {
    font-size: 20px;
    padding: 18px 36px;
}

.hp-cta-small-note {
    font-size: 13px;
    color: rgba(255,255,255,0.72);
    margin: 10px 0 0 0;
}

.hp-hero-trust-line {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    font-style: italic;
    margin: 16px 0 0 0;
}

/* Hero visual */
.hp-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hp-hero-mockup {
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.hp-book-placeholder {
    background: linear-gradient(135deg, #2a3f6e 0%, #1a2744 100%);
    border: 2px solid rgba(212,168,85,0.4);
    border-radius: 12px;
    padding: 48px 32px;
    color: rgba(255,255,255,0.6);
    font-size: 80px;
    line-height: 1;
    text-align: center;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
}

.hp-book-placeholder .placeholder-label {
    font-size: 13px;
    color: rgba(212,168,85,0.7);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ============================================
   SECTION 2: PROBLEM / EMPATHY
   ============================================ */
.hp-problem {
    background: var(--white);
    padding: 80px 0;
}

.hp-problem-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hp-problem .hp-headline {
    font-size: 36px;
    color: var(--navy);
}

.hp-problem-body {
    font-size: 18px;
    color: var(--dark-grey);
    line-height: 1.7;
}

.hp-problem-body p {
    margin: 0 0 18px 0;
}

.hp-problem-body p:last-child {
    margin-bottom: 0;
}

/* ============================================
   SECTION 3: HOW IT WORKS
   ============================================ */
.hp-how {
    background: var(--light-grey);
    padding: 80px 0;
}

.hp-how-header {
    text-align: center;
    margin-bottom: 48px;
}

.hp-how-header .hp-headline {
    font-size: 36px;
    color: var(--navy);
}

.hp-how-header .hp-subhead {
    font-size: 18px;
    text-align: center;
    margin-bottom: 0;
}

.hp-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hp-card {
    background: var(--white);
    border: 1px solid var(--border-grey);
    border-radius: 16px;
    padding: 32px 28px;
    text-align: center;
}

.hp-card-step {
    width: 48px;
    height: 48px;
    background: var(--gold);
    border-radius: 50%;
    color: var(--navy);
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

.hp-card-icon {
    font-size: 36px;
    margin-bottom: 12px;
    display: block;
    line-height: 1;
}

.hp-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 10px 0;
}

.hp-card-desc {
    font-size: 15px;
    color: var(--mid-grey);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   SECTION 4: SAMPLE OUTPUT / WHAT YOU GET
   ============================================ */
.hp-output {
    background: var(--white);
    padding: 80px 0;
}

.hp-output-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hp-output-text .hp-headline {
    font-size: 36px;
    color: var(--navy);
}

.hp-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.hp-checklist li {
    font-size: 17px;
    color: var(--dark-grey);
    line-height: 1.5;
    padding: 10px 0 10px 32px;
    border-bottom: 1px solid var(--border-grey);
    position: relative;
}

.hp-checklist li:last-child {
    border-bottom: none;
}

.hp-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
    font-size: 18px;
}

.hp-output-note {
    font-size: 14px;
    color: var(--mid-grey);
    margin: 0;
    font-style: italic;
}

.hp-output-visual {
    display: flex;
    justify-content: center;
}

.hp-output-placeholder {
    background: var(--light-grey);
    border: 2px dashed var(--border-grey);
    border-radius: 12px;
    padding: 48px 32px;
    text-align: center;
    width: 100%;
    max-width: 380px;
    color: var(--mid-grey);
}

.hp-output-placeholder .placeholder-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 16px;
}

.hp-output-placeholder .placeholder-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--border-grey);
}

/* ============================================
   SECTION 5: TESTIMONIAL
   ============================================ */
.hp-testimonial {
    background: var(--navy);
    padding: 80px 0;
}

.hp-testimonial-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hp-quote-mark {
    font-size: 96px;
    line-height: 0.7;
    color: var(--gold);
    font-family: Georgia, serif;
    display: block;
    margin-bottom: 24px;
}

.hp-quote-text {
    font-size: 24px;
    line-height: 1.6;
    color: var(--white);
    font-style: italic;
    font-family: 'Playfair Display', Georgia, serif;
    margin: 0 0 24px 0;
}

.hp-quote-attrib {
    font-size: 16px;
    color: var(--gold);
    font-weight: 600;
    margin: 0 0 32px 0;
}

.hp-testimonial-covers {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.hp-cover-thumb {
    width: 80px;
    height: 112px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

/* ============================================
   SECTION 6: PRICING TIERS
   ============================================ */
.hp-pricing {
    background: var(--light-grey);
    padding: 80px 0;
}

.hp-pricing-header {
    text-align: center;
    margin-bottom: 48px;
}

.hp-pricing-header .hp-headline {
    font-size: 36px;
    color: var(--navy);
}

.hp-pricing-header .hp-subhead {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.hp-pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.hp-pricing-card {
    background: var(--white);
    border: 1px solid var(--border-grey);
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    position: relative;
}

.hp-pricing-card.featured {
    border: 2px solid var(--gold);
    box-shadow: 0 8px 32px rgba(212,168,85,0.2);
    transform: scale(1.04);
}

.hp-pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--navy);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 18px;
    border-radius: 20px;
    white-space: nowrap;
}

.hp-pricing-tier-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 4px 0;
}

.hp-pricing-delivery {
    font-size: 14px;
    color: var(--mid-grey);
    margin: 0 0 20px 0;
}

.hp-pricing-price {
    font-size: 48px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
    margin: 0 0 4px 0;
}

.hp-pricing-price sup {
    font-size: 24px;
    vertical-align: super;
}

.hp-pricing-includes {
    font-size: 13px;
    color: var(--mid-grey);
    margin: 0 0 24px 0;
}

.hp-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
    text-align: left;
}

.hp-pricing-features li {
    font-size: 14px;
    color: var(--dark-grey);
    padding: 6px 0 6px 22px;
    position: relative;
    border-bottom: 1px solid var(--light-grey);
}

.hp-pricing-features li:last-child {
    border-bottom: none;
}

.hp-pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}

.hp-pricing-card .hp-btn {
    width: 100%;
    font-size: 16px;
    padding: 14px 24px;
}

/* ============================================
   SECTION 7: GUARANTEE
   ============================================ */
.hp-guarantee {
    background: var(--white);
    padding: 80px 0;
}

.hp-guarantee-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.hp-guarantee-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    background: var(--navy);
    border: 4px solid var(--gold);
    border-radius: 50%;
    margin: 0 auto 32px auto;
    gap: 4px;
}

.hp-guarantee-badge .badge-icon {
    font-size: 44px;
    line-height: 1;
}

.hp-guarantee-badge .badge-days {
    font-size: 20px;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
}

.hp-guarantee-badge .badge-text {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--white);
    text-align: center;
    line-height: 1.3;
}

.hp-guarantee .hp-headline {
    font-size: 30px;
    color: var(--navy);
}

.hp-guarantee-body {
    font-size: 18px;
    color: var(--dark-grey);
    line-height: 1.7;
    margin: 0 0 20px 0;
}

.hp-guarantee-link {
    font-size: 16px;
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}

.hp-guarantee-link:hover {
    color: var(--gold-dark);
    text-decoration: underline;
}

/* ============================================
   SECTION 8: FINAL CTA
   ============================================ */
.hp-final-cta {
    background: var(--navy);
    padding: 80px 0;
}

.hp-final-cta-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.hp-final-cta .hp-headline {
    font-size: 36px;
    color: var(--white);
}

.hp-final-cta .hp-subhead {
    font-size: 18px;
    color: rgba(255,255,255,0.82);
    margin-bottom: 32px;
}

.hp-final-cta .hp-btn {
    font-size: 20px;
    padding: 20px 48px;
    margin-bottom: 12px;
}

.hp-final-cta-note {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    margin: 12px 0 0 0;
}

.hp-trust-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.hp-trust-icon-item {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================
   MOBILE STICKY CTA BAR
   ============================================ */
.hp-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 68px;
    background: var(--white);
    border-top: 1px solid var(--border-grey);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.12);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 48px 0 16px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.hp-sticky-bar.visible {
    transform: translateY(0);
}

.hp-sticky-bar.dismissed {
    display: none !important;
}

.hp-sticky-bar-btn {
    display: block;
    width: 100%;
    max-width: 480px;
    height: 44px;
    background: var(--gold);
    color: var(--navy);
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    text-align: center;
    line-height: 44px;
    text-decoration: none;
    transition: background 0.2s;
}

.hp-sticky-bar-btn:hover {
    background: var(--gold-dark);
    color: var(--navy);
    text-decoration: none;
}

.hp-sticky-dismiss {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: var(--mid-grey);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
    line-height: 1;
}

.hp-sticky-dismiss:hover {
    background: var(--light-grey);
    color: var(--dark-grey);
}

/* Body padding when sticky bar is visible */
body.hp-sticky-active {
    padding-bottom: 68px;
}

/* ============================================
   TABLET BREAKPOINT (768px-1199px)
   ============================================ */
@media (max-width: 1199px) and (min-width: 769px) {
    .hp-pricing-cards {
        gap: 16px;
    }
    .hp-pricing-card.featured {
        transform: scale(1.02);
    }
}

/* ============================================
   MOBILE BREAKPOINT (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    /* Container */
    .hp-container {
        padding: 0 16px;
    }

    /* Sections */
    .hp-hero,
    .hp-problem,
    .hp-how,
    .hp-output,
    .hp-testimonial,
    .hp-pricing,
    .hp-guarantee,
    .hp-final-cta {
        padding: 48px 0;
    }

    /* Hero */
    .hp-hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hp-hero-text .hp-headline {
        font-size: 32px;
    }

    .hp-hero-subhead {
        font-size: 17px;
    }

    .hp-trust-bar {
        font-size: 14px;
    }

    .hp-trust-bar span {
        display: block;
        margin-right: 0;
    }

    .hp-hero-cta-wrap .hp-btn {
        width: 100%;
        font-size: 18px;
        padding: 16px 24px;
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hp-hero-visual {
        order: 1;
    }

    .hp-hero-text {
        order: 0;
    }

    .hp-book-placeholder {
        min-height: 180px;
        padding: 32px 24px;
        font-size: 60px;
        max-width: 60vw;
        margin: 0 auto;
    }

    /* Problem */
    .hp-problem .hp-headline {
        font-size: 26px;
    }

    .hp-problem-body {
        font-size: 16px;
    }

    /* How It Works */
    .hp-how-header .hp-headline {
        font-size: 26px;
    }

    .hp-cards-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Output */
    .hp-output-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hp-output-text .hp-headline {
        font-size: 26px;
    }

    .hp-checklist li {
        font-size: 15px;
    }

    .hp-output-visual {
        justify-content: center;
    }

    .hp-output-placeholder {
        max-width: 90vw;
    }

    /* Testimonial */
    .hp-quote-text {
        font-size: 20px;
    }

    .hp-quote-mark {
        font-size: 72px;
    }

    /* Pricing */
    .hp-pricing-header .hp-headline {
        font-size: 26px;
    }

    .hp-pricing-cards {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 420px;
        margin: 0 auto;
    }

    .hp-pricing-card.featured {
        transform: none;
        order: -1;
    }

    .hp-pricing-card .hp-btn {
        height: 52px;
        font-size: 17px;
    }

    /* Guarantee */
    .hp-guarantee .hp-headline {
        font-size: 24px;
    }

    .hp-guarantee-badge {
        width: 120px;
        height: 120px;
    }

    .hp-guarantee-body {
        font-size: 16px;
    }

    /* Final CTA */
    .hp-final-cta .hp-headline {
        font-size: 28px;
    }

    .hp-final-cta .hp-btn {
        width: 100%;
        font-size: 18px;
        padding: 18px 24px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ============================================
   SMALL MOBILE BREAKPOINT (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    .hp-hero-text .hp-headline {
        font-size: 28px;
    }

    .hp-hero-subhead {
        font-size: 16px;
    }

    .hp-trust-icons {
        flex-direction: column;
        gap: 10px;
    }

    .hp-pricing-price {
        font-size: 40px;
    }

    .hp-testimonial-covers {
        gap: 10px;
    }

    .hp-cover-thumb {
        width: 64px;
        height: 90px;
    }
}

/* ============================================
   SECTION 4: SAMPLE COVERS (restored 2026-04-01)
   ============================================ */
.hp-covers {
    background: var(--light-grey);
    padding: 80px 0;
}

.hp-covers .hp-headline {
    font-size: 36px;
    color: var(--navy);
    text-align: center;
    margin-bottom: 16px;
}

.hp-covers-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 10px;
    color: var(--mid-grey);
    font-size: 17px;
    line-height: 1.6;
}

.hp-covers-note {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--mid-grey);
    font-size: 14px;
    font-style: italic;
}

/* 3-up grid */
.hp-samples-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 960px;
    margin: 0 auto;
}

/* Individual book card */
.hp-sample-book {
    text-align: center;
}

/* eBook cover (clickable) */
.hp-sample-cover-wrap {
    position: relative;
    display: inline-block;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hp-sample-cover-wrap:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.18);
}

.hp-sample-cover-wrap img {
    width: 100%;
    max-width: 220px;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

/* Badge overlay */
.hp-sample-badge {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.72);
    color: var(--gold);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
    z-index: 2;
}

/* Title under cover */
.hp-sample-title {
    font-weight: 700;
    color: var(--navy);
    font-size: 15px;
    margin-top: 12px;
    margin-bottom: 4px;
}

/* Click hint */
.hp-sample-format-label {
    font-size: 12px;
    color: var(--mid-grey);
    cursor: pointer;
    transition: color 0.2s ease;
    margin-bottom: 8px;
}

.hp-sample-book.expanded .hp-sample-format-label {
    color: var(--gold);
    font-size: 0;
}

.hp-sample-book.expanded .hp-sample-format-label::before {
    font-size: 12px;
    content: '▼ eBook Cover — click to hide full set';
}

/* Expanded panel */
.hp-sample-expanded {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.hp-sample-book.expanded .hp-sample-expanded {
    max-height: 700px;
    opacity: 1;
    margin-top: 16px;
}

/* Paperback + hardcover stacked */
.hp-sample-formats {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.hp-sample-format {
    position: relative;
    display: inline-block;
    width: 100%;
}

.hp-sample-format img {
    width: 100%;
    max-width: 280px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.hp-sample-format .hp-sample-badge {
    top: 8px;
    font-size: 9px;
    padding: 3px 8px;
}

.hp-sample-format-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--dark-grey);
    margin-top: 6px;
    text-align: center;
}

/* Mobile */
@media (max-width: 768px) {
    .hp-covers {
        padding: 48px 0;
    }

    .hp-covers .hp-headline {
        font-size: 26px;
    }

    .hp-samples-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        gap: 48px;
    }

    .hp-sample-cover-wrap img {
        max-width: 200px;
    }
}
