/* PPSNumberGuide.ie — Main Stylesheet */
:root {
    --green:       #1a5c36;
    --green-dark:  #133d25;
    --green-light: #eef6f1;
    --gold:        #c9a84c;
    --text:        #1a1a1a;
    --text-muted:  #555;
    --border:      #c3dace;
    --white:       #ffffff;
    --radius:      6px;
    --shadow:      0 2px 10px rgba(0,0,0,.08);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.content-wrap { max-width: 860px; }

/* ─── HEADER ─────────────────────────────────── */
.ib-header {
    background: var(--green-dark);
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.ib-header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0;
}
.ib-logo { font-size: 1.15rem; font-weight: 700; color: var(--white); letter-spacing: -.02em; }
.ib-logo span { color: var(--gold); }
.ib-nav { display: flex; gap: 24px; align-items: center; list-style: none; }
.ib-nav a { color: rgba(255,255,255,.85); font-size: .9rem; font-weight: 500; }
.ib-nav a:hover { color: var(--white); text-decoration: none; }
.ib-nav .ib-nav-cta { background: var(--gold); color: #000; padding: 7px 16px; border-radius: var(--radius); font-weight: 600; font-size: .85rem; }
.ib-nav .ib-nav-cta:hover { background: #d4b55a; }
.ib-hamburger { display: none; background: none; border: none; cursor: pointer; color: var(--white); font-size: 1.4rem; }

/* ─── HERO ───────────────────────────────────── */
.ib-hero { background: var(--green); color: var(--white); padding: 64px 0 48px; }
.ib-eyebrow { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin-bottom: 12px; }
.ib-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
.ib-hero-desc { font-size: 1.1rem; color: rgba(255,255,255,.85); max-width: 700px; margin-bottom: 20px; }
.ib-hero-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: .85rem; color: rgba(255,255,255,.7); }
.ib-hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-top: 36px; }
.ib-hero-stat { background: rgba(255,255,255,.1); border-radius: var(--radius); padding: 18px; text-align: center; }
.ib-hero-stat-num { font-size: 1.9rem; font-weight: 800; color: var(--gold); line-height: 1; }
.ib-hero-stat-label { font-size: .8rem; color: rgba(255,255,255,.75); margin-top: 6px; }

/* ─── BREADCRUMB ─────────────────────────────── */
.ib-breadcrumb { font-size: .8rem; color: rgba(255,255,255,.65); margin-bottom: 16px; }
.ib-breadcrumb a { color: rgba(255,255,255,.65); }
.ib-breadcrumb a:hover { color: var(--white); }
.ib-breadcrumb .sep { margin: 0 6px; }

/* ─── SECTION ────────────────────────────────── */
.ib-section { padding: 60px 0; }
.ib-section:nth-child(even) { background: var(--green-light); }

h2 { font-size: 1.5rem; font-weight: 700; margin: 40px 0 16px; color: var(--green-dark); }
h2:first-child { margin-top: 0; }
h3 { font-size: 1.1rem; font-weight: 600; margin: 28px 0 12px; color: var(--green-dark); }
p { margin-bottom: 16px; }
ul, ol { padding-left: 1.5rem; margin-bottom: 16px; }
li { margin-bottom: 6px; }

/* ─── FACTS PANEL ────────────────────────────── */
.ib-facts-panel { background: var(--green); color: var(--white); border-radius: var(--radius); padding: 28px; margin-bottom: 36px; }
.ib-facts-panel h3 { color: var(--gold); margin-top: 0; margin-bottom: 20px; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.ib-facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.ib-fact-item { background: rgba(255,255,255,.1); border-radius: 4px; padding: 14px; }
.ib-fact-label { display: block; font-size: .75rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.ib-fact-value { display: block; font-size: 1.15rem; font-weight: 700; color: var(--white); }

/* ─── CHECKLIST ──────────────────────────────── */
.ib-checklist { list-style: none; padding-left: 0; }
.ib-checklist li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.ib-checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ─── TABLE ──────────────────────────────────── */
.ib-table-wrap { overflow-x: auto; margin: 20px 0; }
.ib-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ib-table th { background: var(--green); color: var(--white); text-align: left; padding: 10px 14px; font-weight: 600; }
.ib-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.ib-table tr:last-child td { border-bottom: none; }
.ib-table tr:nth-child(even) td { background: var(--green-light); }

/* ─── ALERT ──────────────────────────────────── */
.ib-alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: var(--radius); margin: 24px 0; font-size: .9rem; }
.ib-alert--warn { background: #fff8e6; border-left: 4px solid var(--gold); }
.ib-alert--info { background: var(--green-light); border-left: 4px solid var(--green); }
.ib-alert-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

/* ─── STEPS ──────────────────────────────────── */
.ib-steps { counter-reset: step; list-style: none; padding: 0; }
.ib-steps li { counter-increment: step; display: flex; gap: 16px; margin-bottom: 20px; }
.ib-steps li::before { content: counter(step); min-width: 32px; height: 32px; background: var(--green); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; margin-top: 2px; }

/* ─── FAQ ────────────────────────────────────── */
.ib-faq-list { border-top: 1px solid var(--border); }
.ib-faq-item { border-bottom: 1px solid var(--border); }
.ib-faq-q { cursor: pointer; padding: 16px 0; font-weight: 600; font-size: .95rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.ib-faq-q::after { content: "+"; font-size: 1.2rem; color: var(--green); flex-shrink: 0; margin-left: 12px; }
.ib-faq-item[open] .ib-faq-q::after { content: "−"; }
.ib-faq-a { padding-bottom: 16px; font-size: .9rem; color: var(--text-muted); }

/* ─── CARDS / LINKS GRID ─────────────────────── */
.ib-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 28px 0; }
.ib-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: box-shadow .2s; }
.ib-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.12); text-decoration: none; }
.ib-card-title { font-size: 1rem; font-weight: 700; color: var(--green-dark); margin-bottom: 8px; }
.ib-card-desc { font-size: .85rem; color: var(--text-muted); }
.ib-links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 20px; }
.ib-link-card { display: block; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; transition: border-color .2s, box-shadow .2s; }
.ib-link-card:hover { border-color: var(--green); box-shadow: var(--shadow); text-decoration: none; }
.ib-link-title { display: block; font-weight: 700; color: var(--green-dark); font-size: .9rem; margin-bottom: 4px; }
.ib-link-desc { display: block; font-size: .8rem; color: var(--text-muted); }

/* ─── CTA ────────────────────────────────────── */
.ib-cta-box { background: var(--green-light); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; text-align: center; margin: 36px 0; }
.ib-cta-box p { margin-bottom: 16px; font-size: 1rem; }
.ib-btn { display: inline-block; background: var(--green); color: var(--white); padding: 12px 28px; border-radius: var(--radius); font-weight: 700; font-size: .95rem; text-decoration: none; transition: background .2s; }
.ib-btn:hover { background: var(--green-dark); text-decoration: none; }
.ib-cta-t1 { background: var(--green-dark); color: var(--white); padding: 48px 0; text-align: center; }
.ib-cta-t1 h2 { color: var(--gold); margin-top: 0; }
.ib-cta-t1 p { color: rgba(255,255,255,.8); max-width: 560px; margin: 0 auto 24px; }
.ib-cta-t1 .ib-btn { background: var(--gold); color: #000; }
.ib-cta-t1 .ib-btn:hover { background: #d4b55a; }

/* ─── AUTHOR BOX ─────────────────────────────── */
.ib-author-box { border-top: 1px solid var(--border); padding: 36px 0; }
.ib-author-inner { display: flex; gap: 20px; align-items: flex-start; max-width: 860px; margin: 0 auto; padding: 0 20px; }
.ib-author-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 700; flex-shrink: 0; }
.ib-author-name { font-weight: 700; font-size: .95rem; color: var(--green-dark); }
.ib-author-role { font-size: .8rem; color: var(--text-muted); margin-bottom: 6px; }
.ib-author-bio { font-size: .85rem; color: var(--text-muted); }

/* ─── AD SLOT ────────────────────────────────── */
.ib-ad-slot { background: #f5f5f5; border: 1px dashed #ccc; border-radius: var(--radius); min-height: 90px; display: flex; align-items: center; justify-content: center; color: #aaa; font-size: .8rem; margin: 28px 0; }

/* ─── FOOTER ─────────────────────────────────── */
.ib-footer { background: var(--green-dark); color: rgba(255,255,255,.7); padding: 48px 0 28px; }
.ib-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; margin-bottom: 36px; }
.ib-footer-col h4 { color: var(--gold); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.ib-footer-col a { display: block; color: rgba(255,255,255,.65); font-size: .85rem; margin-bottom: 8px; }
.ib-footer-col a:hover { color: var(--white); text-decoration: none; }
.ib-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; font-size: .8rem; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* ─── COOKIE BANNER ──────────────────────────── */
#ppn-cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: #1a1a1a; color: #eee; padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; z-index: 9999; font-size: .85rem; }
#ppn-cookie-banner p { margin: 0; flex: 1 1 300px; }
.ppn-cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.ppn-cookie-accept { background: var(--green); color: #fff; border: none; padding: 8px 18px; border-radius: 4px; cursor: pointer; font-weight: 600; font-size: .85rem; }
.ppn-cookie-decline { background: transparent; color: #aaa; border: 1px solid #555; padding: 8px 14px; border-radius: 4px; cursor: pointer; font-size: .85rem; }

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 768px) {
    .ib-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--green-dark); padding: 20px; gap: 16px; }
    .ib-nav.open { display: flex; }
    .ib-hamburger { display: block; }
    .ib-header-inner { position: relative; }
    .ib-hero { padding: 40px 0 32px; }
    .ib-hero h1 { font-size: 1.6rem; }
    .ib-section { padding: 40px 0; }
    .ib-facts-grid { grid-template-columns: 1fr 1fr; }
    .ib-author-inner { flex-direction: column; }
    .ib-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .ib-facts-grid { grid-template-columns: 1fr; }
    .ib-footer-grid { grid-template-columns: 1fr; }
    .ib-hero-stats { grid-template-columns: 1fr 1fr; }
}
