/*
Theme Name: EIB Hub
Theme URI: https://easyincomebasics.com
Author: Easy Income Basics
Description: Block theme for the Easy Income Basics reality-checked income hub.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: eib-hub
*/

/* ---------- Base ---------- */
body { -webkit-font-smoothing: antialiased; }
a { text-underline-offset: 3px; }
.wp-site-blocks { padding-top: 0; }

/* ---------- Header ---------- */
.eib-header { border-bottom: 1px solid var(--wp--preset--color--line); position: sticky; top: 0; z-index: 50; background: var(--wp--preset--color--paper); }
.eib-header .wp-block-site-title a { text-decoration: none; }
.eib-logo-mark { display:inline-block; width:34px; height:34px; border-radius:9px; background: var(--wp--preset--color--ink); color: var(--wp--preset--color--gold); font-family: var(--wp--preset--font-family--display); font-weight:700; font-size:15px; line-height:34px; text-align:center; letter-spacing:-0.5px; }
.eib-header .wp-block-navigation a { font-weight: 500; }
.eib-header .wp-block-navigation a:hover { color: var(--wp--preset--color--green); }

/* ---------- Sections ---------- */
.eib-hero { background: var(--wp--preset--color--ink); color: #fff; }
.eib-hero h1, .eib-hero h2, .eib-hero p { color: #fff; }
.eib-eyebrow { font-family: var(--wp--preset--font-family--display); letter-spacing: 0.14em; text-transform: uppercase; font-size: 13px !important; font-weight: 600; color: var(--wp--preset--color--gold) !important; }
.eib-eyebrow.dark { color: var(--wp--preset--color--green) !important; }
.eib-muted { color: var(--wp--preset--color--slate); }
.eib-hero .eib-muted { color: #B8C2CE; }
.eib-band { background: var(--wp--preset--color--sand); }

/* ---------- Cards ---------- */
.eib-card { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 16px; padding: 28px !important; height: 100%; box-sizing: border-box; }
.eib-card h3 { margin-top: 0; }
.eib-card.featured { border: 2px solid var(--wp--preset--color--green); position: relative; }
.eib-tag { display:inline-block; background: var(--wp--preset--color--gold); color: var(--wp--preset--color--ink); font-weight:700; font-size:12px; letter-spacing:0.06em; text-transform:uppercase; border-radius:999px; padding:4px 12px; }
.eib-price { font-family: var(--wp--preset--font-family--display); font-size: 44px !important; font-weight: 700; line-height: 1.1; margin: 8px 0 0 !important; color: var(--wp--preset--color--ink); }
.eib-price small { font-size: 16px; font-weight: 500; color: var(--wp--preset--color--slate); }
.eib-card ul { padding-left: 1.1em; }
.eib-card li { margin-bottom: 6px; }

/* ---------- Notices ---------- */
.eib-notice { border-left: 6px solid var(--wp--preset--color--gold); background: #FFF8E4; border-radius: 10px; padding: 18px 22px !important; }
.eib-warning { border-left: 6px solid #B42318; background: #FDF0EF; border-radius: 10px; padding: 18px 22px !important; }

/* ---------- Tables ---------- */
.eib-table table { border-collapse: collapse; width: 100%; background:#fff; border-radius: 12px; overflow: hidden; }
.eib-table th { background: var(--wp--preset--color--ink); color: #fff; text-align: left; font-family: var(--wp--preset--font-family--display); }
.eib-table th, .eib-table td { border: 1px solid var(--wp--preset--color--line); padding: 12px 14px; vertical-align: top; }
.eib-table tr:nth-child(even) td { background: #FBFAF6; }

/* ---------- Strips ---------- */
.eib-proof p { font-weight: 600; }
.eib-check li::marker { content: "✓  "; color: var(--wp--preset--color--green); font-weight: 700; }

/* ---------- Footer ---------- */
.eib-footer { background: var(--wp--preset--color--ink); color: #B8C2CE; }
.eib-footer a { color: #fff; text-decoration: none; }
.eib-footer a:hover { color: var(--wp--preset--color--gold); }
.eib-footer h4 { color: #fff; }

/* ---------- Buttons ---------- */
.wp-block-button.is-style-outline .wp-block-button__link { border-width: 2px; }
.eib-hero .wp-block-button.is-style-outline .wp-block-button__link { color: #fff; border-color: #fff; }

@media (max-width: 781px) {
  .eib-price { font-size: 36px !important; }
}

/* ---------- Section spacing (used by EIB Site Kit pages) ---------- */
.eib-sec { padding: 80px 24px !important; margin-top: 0 !important; margin-bottom: 0 !important; }
.eib-sec.tight { padding: 40px 24px !important; }
.entry-content > .eib-sec:first-child, .wp-block-post-content > .eib-sec:first-child { margin-top: 0 !important; }
.wp-block-post-content.is-layout-constrained > .alignfull { margin-top: 0; margin-bottom: 0; }
.eib-cards > .wp-block-column { display: flex; }
.eib-cards > .wp-block-column > .eib-card { width: 100%; }
.eib-quiz { background:#fff; border:1px solid var(--wp--preset--color--line); border-radius:16px; padding:28px; }
.eib-quiz label { display:block; font-weight:600; margin:18px 0 6px; }
.eib-quiz select, .eib-quiz input, .eib-jobs input { width:100%; padding:12px 14px; border:1px solid #C9D1DB; border-radius:10px; font-size:17px; font-family:inherit; box-sizing:border-box; background:#fff; }
.eib-quiz button, .eib-jobs button { margin-top:22px; background: var(--wp--preset--color--green); color:#fff; border:0; border-radius:10px; padding:14px 26px; font-family: var(--wp--preset--font-family--display); font-weight:600; font-size:17px; cursor:pointer; }
.eib-quiz button:hover, .eib-jobs button:hover { background: var(--wp--preset--color--green-dark); }
.eib-result { margin-top:24px; display:grid; gap:16px; }
.eib-result .eib-card h3 { font-size: 21px; }
.eib-facts { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap:6px 18px; font-size:15px; margin: 12px 0; }
.eib-facts b { display:block; font-size:12px; letter-spacing:.06em; text-transform:uppercase; color: var(--wp--preset--color--slate); font-weight:600; }
.eib-jobs { display:grid; grid-template-columns: 2fr 1.4fr auto; gap:12px; align-items:end; }
.eib-jobs button { margin-top:0; }
@media (max-width: 781px) { .eib-jobs { grid-template-columns: 1fr; } .eib-sec { padding: 56px 20px !important; } }
