@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   SCOPED CSS — .pm-rc
   All selectors scoped under .pm-rc to prevent cross-plugin conflicts.
   Product colours: #5B2C6F (purple) / #008080 (teal)
   ============================================================ */

/* --- Typography --- */
.pm-rc h1, .pm-rc h2, .pm-rc h3 {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    line-height: 1.2;
}
.pm-rc p {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
}
.pm-rc { font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif; }
.pm-rc * { box-sizing: border-box; }

/* --- Utility Classes --- */
.pm-rc .pm-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.pm-rc .glass {
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(91,44,111,0.07);
}
.pm-rc .text-center { text-align: center; }
.pm-rc .text-purple { color: #5B2C6F; }
.pm-rc .text-teal   { color: #008080; }
.pm-rc .text-gradient {
    background: linear-gradient(135deg, #5B2C6F, #008080);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pm-rc .text-muted { color: #555555; }
.pm-rc section { padding: 4rem 0; position: relative; }

/* --- Hero Section --- */
.pm-rc .pm-hub-hero {
    height: auto;
    max-height: none;
    min-height: 380px;
    padding: 6rem 0 3rem;
    display: flex;
    align-items: center;
    background:
        linear-gradient(135deg,
            rgba(20, 8, 30, 0.85) 0%,
            rgba(91, 44, 111, 0.65) 45%,
            rgba(0, 128, 128, 0.45) 100%),
        url('hero_bg.png') !important;
    background-size: cover !important;
    background-position: center !important;
    position: relative;
    overflow: hidden;
    color: #fff;
}
.pm-rc .pm-hub-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at bottom left,
        rgba(0, 128, 128, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Hero kicker chip */
.pm-rc .hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 100px;
    padding: 0.4rem 1.2rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1rem;
}
.pm-rc .hero-kicker span { color: #c084fc; font-weight: 800; }
.pm-rc .hero-content {
    position: relative;
    z-index: 1;
    text-align: center !important;
    max-width: 900px;
    margin: 0 auto;
}
.pm-rc .pm-hub-hero h1,
.pm-rc .pm-hub-hero .wp-block-heading {
    color: #fff;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.pm-rc .pm-hub-hero h1 em {
    font-style: normal;
    color: #c084fc;
    text-shadow: 0 0 30px rgba(192, 132, 252, 0.5);
}
.pm-rc .pm-hub-hero p {
    color: rgba(255,255,255,0.9);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}
.pm-rc .pm-hub-hero p strong { color: #fff; }

/* Hero stats */
.pm-rc .hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.pm-rc .hero-stats .stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    margin-bottom: 0.3rem;
}
.pm-rc .hero-stats .stat-lbl {
    display: block;
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Pillar colour accents */
.pm-rc .pillar-basics  { --pillar-color: #5B2C6F; }
.pm-rc .pillar-hacks   { --pillar-color: #2471A3; }
.pm-rc .pillar-speed   { --pillar-color: #1A8A5A; }
.pm-rc .pillar-process { --pillar-color: #B7770D; }
.pm-rc .pillar-money   { --pillar-color: #008080; }

/* --- Buttons --- */
.pm-rc .btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.pm-rc .btn-primary {
    background: linear-gradient(135deg, #5B2C6F, #008080);
    color: #fff;
    box-shadow: 0 4px 15px rgba(91, 44, 111, 0.3);
}
.pm-rc .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(91, 44, 111, 0.4);
}
.pm-rc .btn-secondary {
    background: transparent;
    color: #5B2C6F;
    border: 2px solid #5B2C6F;
}
.pm-rc .btn-secondary:hover {
    background: #5B2C6F;
    color: #fff;
}

/* --- Pillar Cards (Hub page) --- */
.pm-rc .pillar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}
.pm-rc .pillar-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.06);
    text-decoration: none;
    display: block;
    color: inherit;
}
.pm-rc .pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(91,44,111,0.13);
}
.pm-rc .pillar-card h3 { margin-bottom: 0.5rem; }
.pm-rc .pillar-card p  { color: #555; font-size: 0.95rem; margin-bottom: 1rem; }
.pm-rc .pillar-card .card-arrow { font-weight: 600; }

/* --- Accordion --- */
.pm-rc .accordion-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
}
.pm-rc details.accordion-item {
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
    transition: box-shadow 0.3s;
}
.pm-rc details.accordion-item[open] {
    box-shadow: 0 8px 24px rgba(91,44,111,0.10);
    border-color: rgba(91, 44, 111, 0.25);
}
.pm-rc summary.accordion-header {
    display: flex;
    align-items: center;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    color: #1A1A1A;
    list-style: none;
    gap: 1rem;
    transition: background 0.2s;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.pm-rc summary.accordion-header:hover {
    background: rgba(91, 44, 111, 0.03);
}
.pm-rc summary.accordion-header::before {
    content: 'Q';
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5B2C6F, #008080);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
}
.pm-rc summary.accordion-header::-webkit-details-marker { display: none; }
.pm-rc summary.accordion-header::after {
    content: '+';
    margin-left: auto;
    font-size: 1.5rem;
    font-weight: 300;
    color: #5B2C6F;
    transition: transform 0.3s;
    flex-shrink: 0;
}
.pm-rc details[open] summary.accordion-header::after {
    content: '×';
    color: #008080;
}

/* --- Accordion Content --- */
.pm-rc .accordion-content {
    padding: 0 1.5rem 1.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #333;
}

/* --- TL;DR Box --- */
.pm-rc .tldr-box {
    background: linear-gradient(135deg,
        rgba(91, 44, 111, 0.05) 0%,
        rgba(0, 128, 128, 0.04) 100%);
    border-left: 4px solid #5B2C6F;
    border-radius: 0 12px 12px 0;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.93rem;
    line-height: 1.7;
}
.pm-rc .tldr-label {
    display: inline-block;
    background: linear-gradient(135deg, #5B2C6F, #008080);
    color: #fff;
    padding: 0.15rem 0.7rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

/* --- Read Full link --- */
.pm-rc .read-full-link {
    color: #5B2C6F;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s;
}
.pm-rc .read-full-link:hover { color: #008080; text-decoration: underline; }

/* WP Button override inside accordion */
.pm-rc .accordion-content .wp-block-button__link,
.pm-rc .accordion-content .wp-element-button {
    background: transparent !important;
    color: #5B2C6F !important;
    padding: 0 !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
}
.pm-rc .accordion-content .wp-block-button__link:hover,
.pm-rc .accordion-content .wp-element-button:hover {
    color: #008080 !important;
    text-decoration: underline !important;
}
.pm-rc .accordion-content .wp-block-button,
.pm-rc .accordion-content .wp-block-buttons { margin: 0 !important; padding: 0 !important; }

/* --- FCA Disclosure --- */
.pm-rc .fca-disclosure {
    margin-top: 3rem;
    padding: 1.2rem 1.5rem;
    background: #f8f8f8;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #888;
    line-height: 1.6;
    border: 1px solid #eee;
}

/* --- Sidebar --- */
.pm-rc .sidebar { position: sticky; top: 100px; align-self: start; }
.pm-rc .sidebar-nav {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.06);
}
.pm-rc .sidebar-nav h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #5B2C6F;
    margin-bottom: 1rem;
    font-weight: 700;
}
.pm-rc .sidebar-links { list-style: none; padding: 0; margin: 0; }
.pm-rc .sidebar-links li { margin-bottom: 0.5rem; }
.pm-rc .sidebar-links a {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
}
.pm-rc .sidebar-links a:hover,
.pm-rc .sidebar-links a.active {
    background: rgba(91, 44, 111, 0.08);
    color: #5B2C6F;
    font-weight: 600;
}

/* --- Spoke Layout (sidebar + main) --- */
.pm-rc .spoke-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 4rem;
    padding-top: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* --- Enquiry CTA strip --- */
.pm-rc .cta-strip {
    background: linear-gradient(135deg, #5B2C6F, #008080);
    border-radius: 16px;
    padding: 2rem;
    margin: 3rem 0 1rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.pm-rc .cta-strip p { color: rgba(255,255,255,0.9); margin: 0; font-size: 0.95rem; }
.pm-rc .cta-strip strong { color: #fff; display: block; font-size: 1.1rem; margin-bottom: 0.3rem; }
.pm-rc .cta-strip a {
    background: #fff;
    color: #5B2C6F;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}
.pm-rc .cta-strip a:hover { background: #f3e8ff; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .pm-rc .pm-hub-hero h1 { font-size: 2.5rem; }
}
@media (max-width: 768px) {
    .pm-rc .pm-hub-hero { min-height: 350px; padding: 4rem 1rem 3rem; }
    .pm-rc .pm-hub-hero h1 { font-size: 2rem; }
    .pm-rc .pm-hub-hero p { font-size: 1rem; }
    .pm-rc .hero-stats { gap: 1.5rem; }
    .pm-rc .hero-stats .stat-num { font-size: 1.8rem; }
    .pm-rc .spoke-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: 2rem;
    }
    .pm-rc .sidebar { position: static; margin-bottom: 2rem; }
    .pm-rc .pillar-grid { grid-template-columns: 1fr; }
    .pm-rc .cta-strip { flex-direction: column; text-align: center; }
}
