/* Call to action */
.cta-final { background: var(--bg-deep); text-align: center; padding: 130px 0; position: relative; }
.cta-final::before { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 320px; height: 320px; border: 1px solid rgba(232,80,2,0.06); border-radius: 50%; pointer-events: none; }
.cta-final::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(30deg); width: 200px; height: 200px; border: 1px solid rgba(232,80,2,0.04); pointer-events: none; }
.cta-box { max-width: 700px; margin: 0 auto; border: 1px solid rgba(232,80,2,0.2); padding: 68px 52px; border-radius: var(--radius-lg); background: var(--bg-card); position: relative; z-index: 1; }
.cta-box::before { content: ""; position: absolute; top: -1px; left: -1px; width: 32px; height: 32px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); border-radius: 4px 0 0 0; opacity: 0.5; transition: opacity var(--transition-smooth); }
.cta-box::after { content: ""; position: absolute; bottom: -1px; right: -1px; width: 32px; height: 32px; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); border-radius: 0 0 4px 0; opacity: 0.5; transition: opacity var(--transition-smooth); }
.cta-box:hover::before, .cta-box:hover::after { opacity: 0.9; }
.trust-note { color: var(--text-muted); font-size: 0.85rem; margin-top: 24px; }

@media (max-width: 768px) { .cta-box { padding: 44px 28px; } }
@media (max-width: 480px) { .cta-box { padding: 32px 20px; border-radius: var(--radius-md); } .cta-box::before, .cta-box::after { width: 20px; height: 20px; } }

/* ==========================================================================
   COMPONENT: CTA
   Case Studies page overrides
   ========================================================================== */

body.page-template-page-case-studies .cta-final {
    background: var(--bg-void);
    text-align: center;
    padding: 120px 0;
    position: relative;
}

body.page-template-page-case-studies .cta-box {
    max-width: 720px;
    margin: 0 auto;
    border: 1px solid rgba(232, 80, 2, 0.16);
    padding: 68px 54px;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    position: relative;
    z-index: 1;
    transition: all var(--transition-glacial);
}

body.page-template-page-case-studies .cta-box::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 34px;
    height: 34px;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
    border-radius: 6px 0 0 0;
    opacity: 0.4;
    transition: all var(--transition-smooth);
}

body.page-template-page-case-studies .cta-box::after {
    content: "";
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 34px;
    height: 34px;
    border-bottom: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    border-radius: 0 0 6px 0;
    opacity: 0.4;
    transition: all var(--transition-smooth);
}

body.page-template-page-case-studies .cta-box:hover::before,
body.page-template-page-case-studies .cta-box:hover::after {
    opacity: 0.8;
    box-shadow: 0 0 16px rgba(232, 80, 2, 0.3);
}

/* ==========================================================================
   COMPONENT: CTA
   Add generic .cta-section variant
   ========================================================================== */

.cta-section {
    background: var(--bg-void);
    text-align: center;
    padding: 120px 0;
    position: relative;
}

.cta-section .cta-box {
    /* The .cta-box styles are inherited from the existing global cta-box */
    /* This selector just ensures the box is centered inside .cta-section */
}

.cta-section .cta-box p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Make sure the existing .cta-box still works inside .cta-section */
.cta-section .cta-box::before,
.cta-section .cta-box::after {
    /* Corner accents already defined globally for .cta-box */
}