/*
Theme Name:  Blocksy Child
Theme URI:   https://detwistdentals.com
Description: Child theme for De-Twist Dental Specialist — adds post CTA and customisations.
Author:      De-Twist Dental Specialist
Template:    blocksy
Version:     1.0.0
License:     GNU General Public License v2 or later
*/

/* ============================================================
   POST CTA BANNER — Book Appointment
   Appears after post content on all single blog posts.
   ============================================================ */

.detwist-post-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #102136 0%, #1a3650 100%);
    border-left: 5px solid #5ba63a;
    border-radius: 10px;
    padding: 36px 40px;
    margin: 48px 0 32px;
    position: relative;
    overflow: hidden;
}

.detwist-post-cta::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(91, 166, 58, 0.12);
    pointer-events: none;
}

.detwist-post-cta__text {
    flex: 1;
    min-width: 220px;
}

.detwist-post-cta__eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #5ba63a;
    margin-bottom: 8px;
}

.detwist-post-cta__heading {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
    line-height: 1.3;
}

.detwist-post-cta__sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.70);
    margin: 0;
    line-height: 1.5;
}

.detwist-post-cta__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    flex-shrink: 0;
}

.detwist-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    line-height: 1;
    transition: filter 0.18s ease, transform 0.18s ease;
    white-space: nowrap;
}

.detwist-cta-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.detwist-cta-btn--primary {
    background: #5ba63a;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(91, 166, 58, 0.35);
}

.detwist-cta-btn--secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.85) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.30);
    padding: 12px 26px;
    font-size: 14px;
}

.detwist-cta-btn--secondary:hover {
    border-color: rgba(255, 255, 255, 0.70);
    color: #ffffff !important;
}

.detwist-cta-btn svg {
    flex-shrink: 0;
}

/* Mobile stacking */
@media (max-width: 600px) {
    .detwist-post-cta {
        flex-direction: column;
        padding: 28px 24px;
    }

    .detwist-post-cta__actions {
        width: 100%;
    }

    .detwist-cta-btn {
        width: 100%;
        justify-content: center;
    }
}
