/*
 * Pull-Quote Variants — Hello Elementor Child v2.2
 * Active variant determined by body class `hec-quote-*`.
 */

/* Base reset */
body.single-post blockquote.hec-pullquote {
    margin: 3rem auto;
    padding: 0;
    background: transparent;
    border: none;
    font-style: normal;
    color: var(--hec-text);
    box-sizing: border-box;
}

body.single-post blockquote.hec-pullquote p {
    margin: 0;
}

/* Gutenberg native quote — intentionally plain */
body.single-post .wp-block-quote {
    margin: 2.5rem auto;
    padding: 1rem 1.5rem;
    border-left: 3px solid var(--hec-accent);
    font-family: var(--hec-font-body);
    font-style: italic;
    max-width: 65ch;
}

body.single-post .wp-block-quote cite {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-style: normal;
    opacity: 0.65;
}

/* ========================================================================
   CLASSIC
   ======================================================================== */
body.hec-quote-classic blockquote.hec-pullquote {
    font-family: var(--hec-font-heading);
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-style: italic;
    font-weight: 400;
    text-align: center;
    line-height: 1.55;
    padding: 2rem 2.5rem;
    max-width: 620px;
    position: relative;
}

body.hec-quote-classic blockquote.hec-pullquote::before,
body.hec-quote-classic blockquote.hec-pullquote::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: var(--hec-accent);
}

body.hec-quote-classic blockquote.hec-pullquote::before { top: 0; }
body.hec-quote-classic blockquote.hec-pullquote::after  { bottom: 0; }

/* ========================================================================
   BAR — left-aligned with thick vertical bar
   ======================================================================== */
body.hec-quote-bar blockquote.hec-pullquote {
    font-family: var(--hec-font-heading);
    font-size: clamp(1.35rem, 2.8vw, 1.85rem);
    font-weight: 400;
    text-align: left;
    line-height: 1.4;
    padding: 0.5rem 0 0.5rem 2rem;
    max-width: 680px;
    border-left: 4px solid var(--hec-accent);
    font-style: normal;
}

/* ========================================================================
   MARK — large decorative serif quote mark
   ======================================================================== */
body.hec-quote-mark blockquote.hec-pullquote {
    font-family: var(--hec-font-heading);
    font-size: clamp(1.3rem, 2.6vw, 1.7rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.5;
    padding: 3rem 2rem 2rem 3rem;
    max-width: 700px;
    position: relative;
    text-align: left;
}

body.hec-quote-mark blockquote.hec-pullquote::before {
    content: '\201C';
    position: absolute;
    top: -2rem;
    left: -0.5rem;
    font-family: var(--hec-font-heading);
    font-size: clamp(7rem, 14vw, 11rem);
    line-height: 1;
    color: var(--hec-accent);
    opacity: 0.25;
    font-style: normal;
    font-weight: 700;
    z-index: 0;
    pointer-events: none;
}

body.hec-quote-mark blockquote.hec-pullquote > * {
    position: relative;
    z-index: 1;
}

/* ========================================================================
   CARD — accent background, white text
   ======================================================================== */
body.hec-quote-card blockquote.hec-pullquote {
    font-family: var(--hec-font-heading);
    font-size: clamp(1.2rem, 2.4vw, 1.5rem);
    font-weight: 400;
    font-style: normal;
    line-height: 1.5;
    text-align: center;
    padding: 2.5rem 2.5rem;
    max-width: 620px;
    background: var(--hec-accent);
    color: #ffffff;
    border-radius: 12px;
    position: relative;
}

body.hec-quote-card blockquote.hec-pullquote p {
    color: #ffffff;
}

body.hec-quote-card blockquote.hec-pullquote::before {
    content: '';
    position: absolute;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: rgba(255, 255, 255, 0.4);
}

/* ========================================================================
   RESPONSIVE
   ======================================================================== */
@media (max-width: 560px) {
    body.hec-quote-classic blockquote.hec-pullquote,
    body.hec-quote-mark blockquote.hec-pullquote,
    body.hec-quote-card blockquote.hec-pullquote {
        padding: 1.5rem 1rem;
        font-size: 1.1rem;
    }

    body.hec-quote-bar blockquote.hec-pullquote {
        padding-left: 1.25rem;
        font-size: 1.2rem;
    }

    body.hec-quote-mark blockquote.hec-pullquote::before {
        font-size: 5rem;
        top: -1rem;
    }
}
