/**
 * HeeraHut — Business Plan & Opportunity page themes
 */

/* Shared diamond lattice */
.prm-theme-opportunity,
.prm-theme-plan {
    --hh-gold: #c9a227;
    --hh-gold-bright: #e8d48b;
    --hh-ink: #080c14;
    --hh-velvet: #0f1623;
    --hh-cream: #f7f4ef;
    --hh-cream-alt: #efe9df;
}

.prm-theme-opportunity::before,
.prm-theme-plan::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg width='28' height='49' viewBox='0 0 28 49' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c9a227' fill-opacity='0.04'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5-13-7.5v-15l13-7.5M0 22.5l13-7.5M13.99 9.25v15M27.99 22.5l-13 7.5'/%3E%3C/g%3E%3C/svg%3E");
}

.prm-theme-opportunity > *,
.prm-theme-plan > * {
    position: relative;
    z-index: 1;
}

/* Section divider */
.prm-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.5rem 0;
    margin: 0 auto 2rem;
    max-width: 320px;
}
.prm-divider::before,
.prm-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--hh-gold), transparent);
}
.prm-divider-gem {
    width: 10px;
    height: 10px;
    background: var(--hh-gold);
    transform: rotate(45deg);
    box-shadow: 0 0 12px rgba(201, 162, 39, 0.5);
}

/* Chapter label */
.prm-chapter {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.prm-chapter-num {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: rgba(201, 162, 39, 0.35);
}
.prm-chapter-tag {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #92400e;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(201, 162, 39, 0.45);
    border-radius: 999px;
    background: rgba(255, 251, 235, 0.8);
}

/* Cross-page bridge */
.prm-page-bridge {
    background: linear-gradient(90deg, var(--hh-velvet), #1a2332, var(--hh-velvet));
    border-top: 1px solid rgba(201, 162, 39, 0.35);
    border-bottom: 1px solid rgba(201, 162, 39, 0.35);
    padding: 1rem 1.5rem;
    text-align: center;
    color: #cbd5e1;
    font-size: 0.9375rem;
}
.prm-page-bridge a {
    color: var(--hh-gold-bright);
    font-weight: 700;
    text-decoration: none;
    margin-left: 0.35rem;
    border-bottom: 1px solid rgba(232, 212, 139, 0.5);
}
.prm-page-bridge a:hover { color: #fff; border-color: #fff; }

/* ─── OPPORTUNITY THEME ─── */
.prm-theme-opportunity {
    background: var(--hh-cream);
}

.prm-theme-opportunity .prm-hero {
    min-height: 560px;
    background: linear-gradient(145deg, #080c14 0%, #141c2b 40%, #1f2937 100%);
}
.prm-theme-opportunity .prm-hero-overlay {
    background: linear-gradient(105deg, rgba(8, 12, 20, 0.94) 0%, rgba(8, 12, 20, 0.72) 50%, rgba(20, 28, 43, 0.55) 100%);
}
.prm-theme-opportunity .prm-hero h1 {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.prm-theme-opportunity .prm-hero .btn-primary {
    box-shadow: 0 8px 28px rgba(201, 162, 39, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.prm-study-feature {
    background: linear-gradient(160deg, #0f1623 0%, #1a2332 100%);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid rgba(201, 162, 39, 0.3);
    box-shadow: 0 24px 60px rgba(8, 12, 20, 0.2);
    position: relative;
    overflow: hidden;
}
.prm-study-feature::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 60%;
    height: 120%;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.12), transparent 70%);
    pointer-events: none;
}
.prm-study-feature .prm-study-stat {
    color: var(--hh-gold-bright);
    text-shadow: 0 0 40px rgba(201, 162, 39, 0.4);
}
.prm-study-feature h2 {
    color: #fff;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0.5rem 0;
}
.prm-study-feature p {
    color: #94a3b8;
    max-width: 560px;
    margin: 0 auto;
}

.prm-theme-opportunity .prm-section.alt {
    background: linear-gradient(180deg, var(--hh-cream-alt) 0%, var(--hh-cream) 100%);
}
.prm-theme-opportunity .prm-quote-banner {
    margin-top: 2rem;
    border: 1px solid rgba(201, 162, 39, 0.25);
    background: linear-gradient(135deg, #0f1623, #1a2332);
}

.prm-theme-opportunity .prm-barrier-pill {
    background: #fff;
    border-color: rgba(201, 162, 39, 0.35);
    box-shadow: 0 4px 16px rgba(8, 12, 20, 0.06);
    padding: 0.75rem 1.25rem;
}
.prm-theme-opportunity .prm-solution-block {
    background: #fff;
    margin: 0 0 1.5rem;
    padding: 2.5rem;
    border-radius: 1.25rem;
    border: 1px solid #e8e0d4;
    border-left: 4px solid var(--hh-gold);
    box-shadow: 0 12px 40px rgba(8, 12, 20, 0.06);
}
.prm-theme-opportunity .prm-solution-block:nth-child(even) {
    border-left-color: #1e293b;
    background: linear-gradient(135deg, #fff 0%, #fffbeb 100%);
}
.prm-theme-opportunity .prm-solution-num {
    color: rgba(201, 162, 39, 0.25);
    font-size: 5rem;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}
.prm-theme-opportunity .prm-solution-body {
    position: relative;
}

.prm-theme-opportunity .prm-section.dark {
    background: linear-gradient(165deg, #080c14 0%, #0f1623 50%, #141c2b 100%);
    position: relative;
}
.prm-theme-opportunity .prm-section.dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(201, 162, 39, 0.08), transparent);
    pointer-events: none;
}

.prm-theme-opportunity .prm-growth-card {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(201, 162, 39, 0.2) !important;
}
.prm-theme-opportunity .prm-table-wrap {
    border: 1px solid rgba(201, 162, 39, 0.2);
}

.prm-theme-opportunity .prm-director {
    background: linear-gradient(145deg, #fff 0%, #fff9eb 100%);
    border: 2px solid rgba(201, 162, 39, 0.25);
}

.prm-theme-opportunity .prm-stream-card {
    border-top: 3px solid var(--hh-gold);
}

.prm-theme-opportunity .prm-cta {
    background: linear-gradient(135deg, #92400e 0%, #c9a227 45%, #d4a843 100%);
    position: relative;
    overflow: hidden;
}
.prm-theme-opportunity .prm-cta::before {
    content: '◆';
    position: absolute;
    font-size: 12rem;
    opacity: 0.06;
    top: -2rem;
    right: -1rem;
    color: #fff;
    transform: rotate(15deg);
}

/* ─── BUSINESS PLAN THEME ─── */
.prm-theme-plan {
    background: var(--hh-cream);
}

.prm-theme-plan .prm-hero {
    min-height: 580px;
    background: linear-gradient(160deg, #080c14 0%, #152238 50%, #1e3a5f 100%);
}
.prm-theme-plan .prm-hero-overlay {
    background: linear-gradient(120deg, rgba(8, 12, 20, 0.93) 0%, rgba(21, 34, 56, 0.8) 60%, rgba(30, 58, 95, 0.5) 100%);
}

.prm-plan-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    background: #fff;
    border-bottom: 1px solid #e8e0d4;
    box-shadow: 0 4px 20px rgba(8, 12, 20, 0.06);
    position: sticky;
    top: 116px;
    z-index: 9990;
}
.prm-plan-nav a {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}
.prm-plan-nav a:hover {
    color: #92400e;
    border-color: rgba(201, 162, 39, 0.4);
    background: #fffbeb;
}

.prm-theme-plan .prm-opennet-badge {
    background: rgba(30, 58, 95, 0.5);
    border-color: rgba(201, 162, 39, 0.5);
}

.prm-theme-plan .prm-stat-strip .prm-stat-item {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(201, 162, 39, 0.35);
    backdrop-filter: blur(12px);
}

.prm-theme-plan .prm-quote-block {
    border: 2px solid rgba(201, 162, 39, 0.2);
    background: linear-gradient(145deg, #fff 0%, #faf6ee 100%);
}

.prm-theme-plan .prm-section--income {
    background: linear-gradient(180deg, #fff 0%, var(--hh-cream) 100%);
    border-top: 3px solid var(--hh-gold);
    border-bottom: 3px solid var(--hh-gold);
}
.prm-theme-plan .prm-income-tabs {
    background: linear-gradient(180deg, #efe9df, #e8e0d4);
    border: 1px solid rgba(201, 162, 39, 0.25);
    padding: 0.5rem;
}
.prm-theme-plan .prm-detail-card {
    border: 2px solid rgba(201, 162, 39, 0.15);
    background: linear-gradient(180deg, #fff 0%, #faf9f7 100%);
}
.prm-theme-plan .prm-detail-card h3 {
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1ede6;
}

.prm-theme-plan .prm-stream-card {
    background: linear-gradient(180deg, #fff 0%, #faf6ee 100%);
}
.prm-theme-plan .prm-stream-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--hh-gold), transparent);
}
.prm-theme-plan .prm-stream-card {
    position: relative;
    overflow: hidden;
}

.prm-theme-plan .prm-section.dark {
    background: linear-gradient(165deg, #0f1623 0%, #152238 100%);
}
.prm-theme-plan .prm-offer-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
}

.prm-theme-plan .prm-option.gold {
    background: linear-gradient(160deg, #152238 0%, #080c14 100%);
    border-color: var(--hh-gold);
    box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.3), 0 28px 56px rgba(8, 12, 20, 0.35);
}

.prm-theme-plan .prm-terms-list {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #e8e0d4;
}

.prm-theme-plan .prm-cta {
    background: linear-gradient(135deg, #152238 0%, #0f1623 40%, #92400e 100%);
    border: 1px solid rgba(201, 162, 39, 0.4);
}

.prm-plan-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: -2rem;
    padding: 0 1rem 2rem;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 5;
}
.prm-plan-highlight {
    background: #fff;
    border: 1px solid rgba(201, 162, 39, 0.35);
    border-radius: 1rem;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 16px 40px rgba(8, 12, 20, 0.1);
}
.prm-plan-highlight .ico { font-size: 1.75rem; margin-bottom: 0.5rem; }
.prm-plan-highlight strong {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    color: #92400e;
}
.prm-plan-highlight span {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.prm-theme-plan .prm-card {
    border-top: 3px solid var(--hh-gold);
}

@media (max-width: 768px) {
    .prm-plan-nav {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .prm-plan-nav a { white-space: nowrap; flex-shrink: 0; }
    .prm-plan-highlights { grid-template-columns: 1fr; margin-top: -1rem; }
    .prm-theme-opportunity .prm-solution-block { padding: 1.5rem; }
    .prm-theme-opportunity .prm-solution-num { font-size: 3rem; right: 0.75rem; }
}
