/*
Theme Name: Hornbill Press
Theme URI: https://hornbillpress.in
Author: Hornbill Press
Description: Custom theme for hornbillpress.in — a vibrant self-publishing platform for authors. Pairs with the "Hornbill Publishing" plugin and WooCommerce.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: hornbillpress
*/

:root {
    --hb-orange: #ff6b35;
    --hb-amber: #f7931e;
    --hb-navy: #1a1f36;
    --hb-ink: #24262b;
    --hb-muted: #6b7280;
    --hb-bg: #fdfcfb;
    --hb-card: #ffffff;
    --hb-border: #eceef1;
    --hb-radius: 14px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--hb-ink);
    background: var(--hb-bg);
    line-height: 1.6;
}

h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; font-weight: 800; line-height: 1.2; margin: 0 0 .5em; }
a { color: var(--hb-orange); }

.hb-container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---- Header ---- */
.hb-site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(253,252,251,.92); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--hb-border);
}
.hb-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.hb-logo { font-weight: 800; font-size: 22px; text-decoration: none; color: var(--hb-navy); }
.hb-logo span { color: var(--hb-orange); }
.hb-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.hb-nav a { text-decoration: none; color: var(--hb-ink); font-weight: 600; font-size: 15px; }
.hb-nav a:hover { color: var(--hb-orange); }
.hb-header-cta { display: flex; align-items: center; gap: 14px; }
.hb-menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

/* ---- Buttons (shared with plugin) ---- */
.hb-btn {
    display: inline-block; padding: 13px 28px; border-radius: 999px; font-weight: 700;
    text-decoration: none; border: none; cursor: pointer; font-size: 15px;
    transition: transform .15s ease, box-shadow .15s ease;
}
.hb-btn-primary { background: linear-gradient(135deg,var(--hb-orange),var(--hb-amber)); color: #fff; }
.hb-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(247,147,30,.35); color: #fff; }
.hb-btn-outline { background: transparent; color: var(--hb-navy); border: 2px solid var(--hb-navy); }
.hb-btn-outline:hover { background: var(--hb-navy); color: #fff; }

/* ---- Hero ---- */
.hb-hero {
    padding: 90px 0 70px;
    background: radial-gradient(circle at 15% 20%, rgba(255,107,53,.10), transparent 45%),
                radial-gradient(circle at 85% 0%, rgba(247,147,30,.10), transparent 40%);
    text-align: center;
}
.hb-hero h1 { font-size: 48px; max-width: 780px; margin: 0 auto 18px; }
.hb-hero h1 .hb-highlight { background: linear-gradient(135deg,var(--hb-orange),var(--hb-amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hb-hero p.hb-sub { font-size: 19px; color: var(--hb-muted); max-width: 620px; margin: 0 auto 34px; }
.hb-hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- Sections ---- */
.hb-section { padding: 70px 0; }
.hb-section-title { text-align: center; margin-bottom: 12px; font-size: 34px; }
.hb-section-sub { text-align: center; color: var(--hb-muted); max-width: 600px; margin: 0 auto 44px; }
.hb-section-alt { background: #fff; border-top: 1px solid var(--hb-border); border-bottom: 1px solid var(--hb-border); }

/* ---- Feature cards (how it works) ---- */
.hb-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 28px; }
.hb-step-card {
    background: var(--hb-card); border: 1px solid var(--hb-border); border-radius: var(--hb-radius);
    padding: 28px; text-align: center;
}
.hb-step-num {
    width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 16px; display: flex;
    align-items: center; justify-content: center; font-weight: 800; color: #fff;
    background: linear-gradient(135deg,var(--hb-orange),var(--hb-amber));
}
.hb-step-card h3 { font-size: 18px; margin-bottom: 8px; }
.hb-step-card p { color: var(--hb-muted); font-size: 14.5px; margin: 0; }

/* ---- CTA banner ---- */
.hb-cta-banner {
    background: linear-gradient(135deg,var(--hb-navy),#2b3363);
    color: #fff; border-radius: 24px; padding: 60px 40px; text-align: center; margin: 0 auto;
}
.hb-cta-banner h2 { color: #fff; font-size: 30px; }
.hb-cta-banner p { color: #cbd2e8; max-width: 520px; margin: 0 auto 28px; }

/* ---- Footer ---- */
.hb-site-footer { background: var(--hb-navy); color: #cbd2e8; padding: 60px 0 30px; margin-top: 60px; }
.hb-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.hb-footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.hb-footer-grid ul { list-style: none; padding: 0; margin: 0; }
.hb-footer-grid li { margin-bottom: 8px; }
.hb-footer-grid a { color: #a9b2d1; text-decoration: none; font-size: 14px; }
.hb-footer-grid a:hover { color: #fff; }
.hb-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; text-align: center; font-size: 13px; color: #8892b8; }

/* ---- Single book / archive ---- */
.hb-book-single { display: grid; grid-template-columns: 320px 1fr; gap: 48px; padding: 60px 0; }
.hb-book-single img { width: 100%; border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.15); }
.hb-book-meta { color: var(--hb-muted); margin-bottom: 20px; }
.hb-book-price-tag { font-size: 28px; font-weight: 800; margin: 20px 0; }

@media (max-width: 900px) {
    .hb-nav, .hb-header-cta .hb-btn-outline { display: none; }
    .hb-menu-toggle { display: block; }
    .hb-hero h1 { font-size: 34px; }
    .hb-footer-grid { grid-template-columns: 1fr 1fr; }
    .hb-book-single { grid-template-columns: 1fr; }
}
