/* ==========================================
   CONTACT PAGE — contact.css
   Extends style.css — all root vars available
   ========================================== */

/* ---- HERO ---- */
.contact-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 12rem;
    padding-bottom: 8rem;
    overflow: hidden;
}

.contact-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(198,163,80,0.06) 0%, transparent 70%),
        var(--bg-dark);
    z-index: 0;
}

.contact-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.contact-eyebrow {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.8;
    margin-bottom: 2rem;
}

.contact-headline {
    font-family: var(--font-hero);
    font-size: clamp(2.8rem, 5.5vw, 5.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
}

.contact-subline {
    font-family: var(--font-story);
    font-style: italic;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 680px;
    margin: 0 auto;
}

/* ---- CONTACT CHANNELS ---- */
.contact-channels {
    background: var(--bg-surface);
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.04);
    margin-bottom: 5rem;
}

.channel-card {
    background: var(--bg-card);
    padding: 4rem 3rem;
    text-align: center;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.channel-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
    opacity: 0;
    transition: var(--transition-med);
}

.channel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.channel-card:hover::before { opacity: 1; }

.channel-icon {
    display: block;
    font-size: 1.8rem;
    color: var(--gold);
    opacity: 0.7;
    margin-bottom: 1.5rem;
    font-style: normal;
}

.channel-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.channel-link {
    display: block;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--gold);
    text-decoration: none;
    letter-spacing: 0.04em;
    margin-bottom: 1.2rem;
    transition: var(--transition-med);
}

.channel-link:hover { color: var(--text-primary); }

.channel-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 300;
}

/* Credential banner */
.credential-banner {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    justify-content: center;
}

.credential-line {
    flex: 1;
    max-width: 200px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-dim));
}

.credential-banner .credential-line:last-child {
    background: linear-gradient(to left, transparent, var(--gold-dim));
}

.credential-text {
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

.credential-text strong {
    color: var(--gold);
    font-weight: 500;
}

/* ---- BOOK SALE ---- */
.book-sale {
    background: var(--bg-dark);
}

.book-sale-header {
    text-align: center;
    margin-bottom: 7rem;
}

.book-sale-eyebrow {
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.75;
    margin-bottom: 1.5rem;
}

.book-sale-title {
    font-family: var(--font-hero);
    font-size: clamp(3.5rem, 7vw, 7rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 1.5rem;
}

.book-sale-subtitle {
    font-family: var(--font-story);
    font-style: italic;
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Book sale grid */
.book-sale-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 8rem;
    align-items: start;
}

/* Visual stacked books */
.book-sale-visual {
    position: relative;
}

.book-cover-stack {
    position: relative;
    height: 520px;
}

.book-cover-img {
    position: absolute;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.7);
}

.book-cover-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.book-cover-back {
    width: 240px;
    height: 360px;
    bottom: 0;
    left: 0;
    filter: brightness(0.6);
    transform: rotate(-4deg);
}

.book-cover-front {
    width: 280px;
    height: 420px;
    bottom: 40px;
    right: 0;
    border: 1px solid rgba(198,163,80,0.2);
}

/* Book meta info */
.book-meta {
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 4rem;
}

.book-meta-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1.4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    gap: 2rem;
}

.book-meta-label {
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    flex-shrink: 0;
}

.book-meta-value {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 300;
    text-align: right;
}

/* Purchase block */
.purchase-label {
    font-family: var(--font-body);
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.7;
    margin-bottom: 2rem;
}

.edition-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.edition-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    transition: var(--transition-med);
    position: relative;
}

.edition-card:first-child {
    border-color: var(--gold-dim);
    box-shadow: 0 0 30px var(--gold-glow);
}

.edition-card:hover {
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.edition-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.edition-badge {
    font-family: var(--font-body);
    font-size: 0.5rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold-dim);
    padding: 0.25rem 0.6rem;
}

.edition-badge--soon {
    color: var(--text-muted);
    border-color: rgba(255,255,255,0.1);
}

.edition-btn {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.65rem;
}

/* Bulk orders */
.bulk-order {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.bulk-text {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 300;
}

/* ---- COLLAB CTA ---- */
.collab-cta {
    background: var(--bg-surface);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.collab-spotlight {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(198,163,80,0.05) 0%, transparent 65%);
    pointer-events: none;
}

.collab-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.collab-eyebrow {
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.75;
    margin-bottom: 2rem;
}

.collab-title {
    font-family: var(--font-hero);
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 2.5rem;
}

.collab-body {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.85;
    font-weight: 300;
    margin-bottom: 4rem;
}

.collab-btn {
    padding: 1.3rem 4rem;
    font-size: 0.8rem;
}

/* ---- FOOTER OVERRIDE ---- */
.contact-footer {
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255,255,255,0.04);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .book-sale-grid {
        grid-template-columns: 1fr;
        gap: 5rem;
    }
    .book-cover-stack { height: 360px; }
    .book-cover-front { width: 200px; height: 300px; right: 20%; }
    .book-cover-back { width: 170px; height: 260px; }
}

@media (max-width: 768px) {
    .channels-grid {
        grid-template-columns: 1fr;
    }
    .edition-options {
        grid-template-columns: 1fr;
    }
    .bulk-order {
        flex-direction: column;
        align-items: flex-start;
    }
    .credential-banner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .credential-line { display: none; }
    .credential-text { white-space: normal; text-align: center; }
}
