/*
 * PBM — Ashley Bakthemes Service Pages v1.0.2
 * Loaded only on the 3 PBM service pages (Local SEO 987701, YT Ads 987702, Meta Ads 987703)
 *
 * Style DNA from Bakthemes Ashley demo:
 *   - Dark editorial palette (#0E0F12 base, #F5F5F7 text)
 *   - Orange accent (#E56734) matching Ashley's CTA buttons + hover states
 *   - Accordion-style "approach" sections (open/close on click, auto-close siblings)
 *   - Hover-highlight service columns that fill with the accent color on hover
 *   - 4-tier pricing block style (dark bg, big white headline, accent CTAs)
 *   - Custom cursor + marquee + scroll progress
 *
 * IMPORTANT: works on BOTH:
 *   - Local SEO: rendered as .elementor-widget-text-editor (has _elementor_data)
 *   - YT Ads / Meta Ads: rendered as .elementor-widget-theme-post-content (post_content only)
 *
 * @since 2026-08-20
 */

/* ============================================================
   ACTIVATION — only on the 3 service pages
   ============================================================ */
body.page-id-987701,
body.page-id-987702,
body.page-id-987703 {
    background: #0E0F12 !important;
    color: #F5F5F7 !important;
}

body.page-id-987701 .vamtam-body,
body.page-id-987702 .vamtam-body,
body.page-id-987703 .vamtam-body {
    background: #0E0F12 !important;
}

/* Kill PixelPier's default page-header bar — it's the duplicate H1 above our content */
body.page-id-987701 header.page-header,
body.page-id-987702 header.page-header,
body.page-id-987703 header.page-header,
body.page-id-987701 h1.page-title,
body.page-id-987702 h1.page-title,
body.page-id-987703 h1.page-title,
body.page-id-987701 .page-header,
body.page-id-987702 .page-header,
body.page-id-987703 .page-header {
    display: none !important;
}

/* ============================================================
   BASE — apply to BOTH text-editor AND theme-post-content widgets
   (Local SEO uses text-editor; YT Ads and Meta Ads use theme-post-content)
   ============================================================ */
body.page-id-987701 .elementor-widget-text-editor,
body.page-id-987702 .elementor-widget-theme-post-content,
body.page-id-987703 .elementor-widget-theme-post-content,
body.page-id-987701 .page-content,
body.page-id-987702 .page-content,
body.page-id-987703 .page-content {
    background: transparent !important;
    color: #F5F5F7 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-weight: 300 !important;
    line-height: 1.65 !important;
    font-size: 17px !important;
    letter-spacing: 0.005em !important;
}

/* HERO H1 — per-page sizing (Bakthemes-style dark editorial) */
body.page-id-987701 .elementor-widget-text-editor h1,
body.page-id-987702 .elementor-widget-theme-post-content h1,
body.page-id-987703 .elementor-widget-theme-post-content h1 {
    font-weight: 200 !important;
    line-height: 1.05 !important;
    letter-spacing: -0.03em !important;
    margin: 0 0 32px !important;
    color: #FFFFFF !important;
    text-transform: none !important;
}

body.page-id-987701 .elementor-widget-text-editor h1 { font-size: clamp(48px, 6.5vw, 88px) !important; }
body.page-id-987702 .elementor-widget-theme-post-content h1 { font-size: clamp(40px, 5.5vw, 76px) !important; }
body.page-id-987703 .elementor-widget-theme-post-content h1 { font-size: clamp(34px, 4.8vw, 64px) !important; max-width: 900px; }

/* H2 — Section headings (Bakthemes-style: hairline divider above, generous margin) */
body.page-id-987701 .elementor-widget-text-editor h2,
body.page-id-987702 .elementor-widget-theme-post-content h2,
body.page-id-987703 .elementor-widget-theme-post-content h2 {
    font-size: clamp(26px, 3.4vw, 44px) !important;
    font-weight: 300 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em !important;
    margin: 72px 0 24px !important;
    color: #FFFFFF !important;
    padding-top: 36px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.page-id-987701 .elementor-widget-text-editor h2:first-of-type,
body.page-id-987702 .elementor-widget-theme-post-content h2:first-of-type,
body.page-id-987703 .elementor-widget-theme-post-content h2:first-of-type {
    border-top: none !important;
    padding-top: 0 !important;
    margin-top: 56px !important;
}

/* H3 — Sub-headings (Bakthemes accordion style when inside ul.pbm-approach) */
body.page-id-987701 .elementor-widget-text-editor h3,
body.page-id-987702 .elementor-widget-theme-post-content h3,
body.page-id-987703 .elementor-widget-theme-post-content h3 {
    font-size: clamp(17px, 1.5vw, 21px) !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    letter-spacing: 0.01em !important;
    margin: 36px 0 12px !important;
    color: #FFFFFF !important;
}

/* Paragraphs */
body.page-id-987701 .elementor-widget-text-editor p,
body.page-id-987702 .elementor-widget-theme-post-content p,
body.page-id-987703 .elementor-widget-theme-post-content p {
    margin: 0 0 18px !important;
    max-width: 720px !important;
    color: #F5F5F7 !important;
}

/* Strong — bright white */
body.page-id-987701 .elementor-widget-text-editor strong,
body.page-id-987702 .elementor-widget-theme-post-content strong,
body.page-id-987703 .elementor-widget-theme-post-content strong {
    font-weight: 500 !important;
    color: #FFFFFF !important;
}

/* Em — soft muted gray */
body.page-id-987701 .elementor-widget-text-editor em,
body.page-id-987702 .elementor-widget-theme-post-content em,
body.page-id-987703 .elementor-widget-theme-post-content em {
    color: #B8BCC8 !important;
    font-style: italic !important;
}

/* Links — orange (Bakthemes accent) instead of blue */
body.page-id-987701 .elementor-widget-text-editor a,
body.page-id-987702 .elementor-widget-theme-post-content a,
body.page-id-987703 .elementor-widget-theme-post-content a {
    color: #E56734 !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(229, 103, 52, 0.3) !important;
    transition: border-color 0.2s, color 0.2s !important;
}

body.page-id-987701 .elementor-widget-text-editor a:hover,
body.page-id-987702 .elementor-widget-theme-post-content a:hover,
body.page-id-987703 .elementor-widget-theme-post-content a:hover {
    color: #FF8A4D !important;
    border-bottom-color: #FF8A4D !important;
}

/* Lists */
body.page-id-987701 .elementor-widget-text-editor ul,
body.page-id-987702 .elementor-widget-theme-post-content ul,
body.page-id-987703 .elementor-widget-theme-post-content ul {
    padding-left: 20px !important;
    margin: 0 0 24px !important;
}

body.page-id-987701 .elementor-widget-text-editor ul li,
body.page-id-987702 .elementor-widget-theme-post-content ul li,
body.page-id-987703 .elementor-widget-theme-post-content ul li {
    margin-bottom: 10px !important;
    color: #F5F5F7 !important;
}

/* Layout — center the content */
body.page-id-987701 .page-content > .elementor,
body.page-id-987702 .page-content > .elementor,
body.page-id-987703 .page-content > .elementor,
body.page-id-987701 .page-content .elementor-widget-text-editor,
body.page-id-987702 .page-content .elementor-widget-theme-post-content,
body.page-id-987703 .page-content .elementor-widget-theme-post-content,
body.page-id-987701 .elementor-widget-text-editor .elementor-widget-container,
body.page-id-987702 .elementor-widget-theme-post-content .elementor-widget-container,
body.page-id-987703 .elementor-widget-theme-post-content .elementor-widget-container {
    max-width: 960px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
}

/* Top mono-caps label above H1 */
body.page-id-987701 .elementor-widget-text-editor h1::before,
body.page-id-987702 .elementor-widget-theme-post-content h1::before,
body.page-id-987703 .elementor-widget-theme-post-content h1::before {
    content: "PRIME BRIDGE MEDIA — TRICITY";
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 28px;
    text-transform: uppercase;
}

/* ============================================================
   ASHLEY BAKTHEMES FEATURES — added in v1.0.2
   ============================================================ */

/* --- Hero CTA pill: convert [Get a free X →] bracketed text into a real CTA button --- */
body.page-id-987701 .elementor-widget-text-editor p:has(> strong:only-child),
body.page-id-987702 .elementor-widget-theme-post-content p:has(> strong:only-child),
body.page-id-987703 .elementor-widget-theme-post-content p:has(> strong:only-child) {
    /* These are the bracketed action prompts — get a real button shape */
    margin: 24px 0 40px !important;
}

body.page-id-987701 .elementor-widget-text-editor p > strong:only-child,
body.page-id-987702 .elementor-widget-theme-post-content p > strong:only-child,
body.page-id-987703 .elementor-widget-theme-post-content p > strong:only-child {
    display: inline-block;
    padding: 16px 32px !important;
    background: #E56734 !important;
    color: #FFFFFF !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    border: none !important;
    border-radius: 0 !important;
    transition: background 0.2s, transform 0.2s !important;
    cursor: pointer !important;
}

body.page-id-987701 .elementor-widget-text-editor p > strong:only-child:hover,
body.page-id-987702 .elementor-widget-theme-post-content p > strong:only-child:hover,
body.page-id-987703 .elementor-widget-theme-post-content p > strong:only-child:hover {
    background: #FF8A4D !important;
    color: #FFFFFF !important;
    transform: translateX(4px);
}

/* --- Accordion — auto-convert H3 sections to click-to-open accordions --- */
/* The JS adds .pbm-accordion class to lists that follow H3 sequences */
.pbm-accordion {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 24px 0 !important;
    max-width: 800px !important;
}

.pbm-accordion__item {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 0 !important;
    margin: 0 !important;
}

.pbm-accordion__item:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.pbm-accordion__title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 24px 8px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
    color: rgba(255, 255, 255, 0.85) !important;
    transition: color 0.2s !important;
    user-select: none !important;
}

.pbm-accordion__title:hover,
.pbm-accordion__item.is-open .pbm-accordion__title {
    color: #E56734 !important;
}

.pbm-accordion__icon {
    width: 24px;
    height: 24px;
    position: relative;
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 16px;
}

.pbm-accordion__icon::before,
.pbm-accordion__icon::after {
    content: '';
    position: absolute;
    background: currentColor;
}

.pbm-accordion__icon::before {
    width: 100%;
    height: 1.5px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.pbm-accordion__icon::after {
    width: 1.5px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    transition: opacity 0.3s;
}

.pbm-accordion__item.is-open .pbm-accordion__icon::after {
    opacity: 0;
}

.pbm-accordion__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), padding 0.4s;
    padding: 0 8px;
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 15px !important;
    font-weight: 300 !important;
    line-height: 1.6 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.pbm-accordion__item.is-open .pbm-accordion__body {
    max-height: 600px;
    padding: 0 8px 24px;
}

.pbm-accordion__body p {
    margin: 0 0 12px !important;
    max-width: none !important;
}

.pbm-accordion__body p:last-child {
    margin-bottom: 0 !important;
}

/* --- 4-tier pricing block (Bakthemes-style) --- */
.pbm-pricing {
    background: #0A0B0E !important;
    padding: 80px 32px !important;
    margin: 80px 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.pbm-pricing__title {
    font-size: clamp(28px, 3.8vw, 48px) !important;
    font-weight: 200 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
    color: #FFFFFF !important;
    margin: 0 0 48px !important;
    max-width: 720px !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.pbm-pricing__grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0 !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
}

.pbm-pricing__tier {
    padding: 32px 24px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    transition: background 0.25s !important;
    cursor: pointer;
    position: relative;
}

.pbm-pricing__tier:last-child {
    border-right: none !important;
}

.pbm-pricing__tier:hover {
    background: rgba(229, 103, 52, 0.08);
}

.pbm-pricing__tier:hover .pbm-pricing__cta {
    background: #E56734;
    color: #FFFFFF;
    transform: translateX(6px);
}

.pbm-pricing__tier.is-popular {
    background: rgba(229, 103, 52, 0.04);
}

.pbm-pricing__tier.is-popular::before {
    content: 'POPULAR';
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 9px;
    letter-spacing: 0.18em;
    color: #E56734;
    font-weight: 500;
}

.pbm-pricing__price {
    font-size: clamp(32px, 3vw, 40px);
    font-weight: 200;
    color: #FFFFFF;
    margin: 0 0 4px;
    line-height: 1;
}

.pbm-pricing__period {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 20px;
}

.pbm-pricing__name {
    font-size: 16px;
    font-weight: 500;
    color: #FFFFFF;
    margin: 0 0 12px;
}

.pbm-pricing__desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
    margin: 0 0 24px;
    min-height: 60px;
}

.pbm-pricing__cta {
    display: inline-block;
    padding: 12px 20px;
    background: transparent;
    color: #E56734;
    border: 1px solid #E56734;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    cursor: pointer;
}

@media (max-width: 900px) {
    .pbm-pricing__grid { grid-template-columns: repeat(2, 1fr) !important; }
    .pbm-pricing__tier:nth-child(2) { border-right: none !important; }
}

@media (max-width: 540px) {
    .pbm-pricing__grid { grid-template-columns: 1fr !important; }
    .pbm-pricing__tier { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.08) !important; }
    .pbm-pricing__tier:last-child { border-bottom: none !important; }
}

/* ============================================================
   ASHLEY-STYLE HEADER (overrides PixelPier's for these pages)
   ============================================================ */
body.page-id-987701 .vamtam-header,
body.page-id-987702 .vamtam-header,
body.page-id-987703 .vamtam-header,
body.page-id-987701 header.vamtam-header,
body.page-id-987702 header.vamtam-header,
body.page-id-987703 header.vamtam-header {
    background: rgba(14, 15, 18, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ============================================================
   FOOTER — dark
   ============================================================ */
body.page-id-987701 footer,
body.page-id-987702 footer,
body.page-id-987703 footer,
body.page-id-987701 .vamtam-footer,
body.page-id-987702 .vamtam-footer,
body.page-id-987703 .vamtam-footer {
    background: #0A0B0E !important;
    color: #B8BCC8 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ============================================================
   MARQUEE strip — runs across the page below the header
   ============================================================ */
.pbm-marquee {
    overflow: hidden;
    white-space: nowrap;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: #0E0F12;
    margin-top: 0;
}

.pbm-marquee__track {
    display: inline-block;
    animation: pbm-marquee-scroll 28s linear infinite;
    padding-left: 100%;
}

.pbm-marquee__item {
    display: inline-block;
    margin: 0 40px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.pbm-marquee__item--accent {
    color: #E56734;
}

.pbm-marquee__dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin: 0 32px;
    vertical-align: middle;
}

@keyframes pbm-marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ============================================================
   CUSTOM CURSOR (the Ashley ball) — orange accent on hover
   ============================================================ */
.pbm-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    background: #F5F5F7;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    mix-blend-mode: difference;
    transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.2s, height 0.2s, opacity 0.2s, background 0.2s;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.pbm-cursor.is-visible { opacity: 1; }

.pbm-cursor.is-hover {
    width: 48px;
    height: 48px;
    background: rgba(229, 103, 52, 0.85);
}

@media (hover: hover) and (pointer: fine) {
    body.page-id-987701,
    body.page-id-987702,
    body.page-id-987703 { cursor: none; }
    body.page-id-987701 a,
    body.page-id-987701 button,
    body.page-id-987702 a,
    body.page-id-987702 button,
    body.page-id-987703 a,
    body.page-id-987703 button { cursor: none; }
}

/* ============================================================
   SCROLL PROGRESS BAR (right edge)
   ============================================================ */
.pbm-progress {
    position: fixed;
    top: 0;
    right: 0;
    width: 2px;
    height: 0;
    background: #E56734;
    z-index: 99998;
    transition: height 0.05s linear;
}

/* ============================================================
   REVEAL — fade-up on scroll
   ============================================================ */
.pbm-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pbm-reveal.is-in {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .pbm-cursor { display: none; }
    .pbm-marquee__track { animation: none; }
    .pbm-progress { display: none; }
    .pbm-reveal { opacity: 1; transform: none; transition: none; }
    .pbm-accordion__body { transition: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    body.page-id-987701 .elementor-widget-text-editor,
    body.page-id-987702 .elementor-widget-theme-post-content,
    body.page-id-987703 .elementor-widget-theme-post-content {
        font-size: 16px !important;
    }

    body.page-id-987701 .page-content > .elementor,
    body.page-id-987702 .page-content > .elementor,
    body.page-id-987703 .page-content > .elementor,
    body.page-id-987701 .page-content .elementor-widget-text-editor,
    body.page-id-987702 .page-content .elementor-widget-theme-post-content,
    body.page-id-987703 .page-content .elementor-widget-theme-post-content {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .pbm-cursor { display: none; }
    @media (hover: hover) and (pointer: fine) {
        body.page-id-987701, body.page-id-987702, body.page-id-987703 {
            cursor: auto;
        }
    }
}