/**
 * HBREA Quote Block Styles
 *
 * Styles for president quote and testimonial blocks.
 *
 * @package HBREA
 * @since 1.0.0
 */

/* ==========================================================================
   QUOTE BLOCK (President Quote)
   ========================================================================== */

.hbrea-quote {
    background-color: var(--hbrea-navy);
    padding: var(--hbrea-section-padding-mobile) 0;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hbrea-quote {
        padding: var(--hbrea-section-padding) 0;
    }
}

.hbrea-quote__inner {
    display: grid;
    gap: var(--hbrea-space-8);
    align-items: center;
}

@media (min-width: 768px) {
    .hbrea-quote__inner {
        grid-template-columns: 2fr 3fr;
        gap: var(--hbrea-space-12);
    }
}

@media (min-width: 1024px) {
    .hbrea-quote__inner {
        gap: var(--hbrea-space-16);
    }
}

/* Photo */
.hbrea-quote__photo-wrap {
    text-align: center;
}

@media (min-width: 768px) {
    .hbrea-quote__photo-wrap {
        text-align: left;
    }
}

.hbrea-quote__photo {
    width: 200px;
    height: 200px;
    border-radius: var(--hbrea-radius-full);
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.2);
    margin: 0 auto;
}

@media (min-width: 768px) {
    .hbrea-quote__photo {
        width: 100%;
        max-width: 280px;
        height: auto;
        aspect-ratio: 1 / 1;
        margin: 0;
    }
}

@media (min-width: 1024px) {
    .hbrea-quote__photo {
        max-width: 320px;
    }
}

/* Content */
.hbrea-quote__content {
    text-align: center;
}

@media (min-width: 768px) {
    .hbrea-quote__content {
        text-align: left;
    }
}

/* Quote Icon */
.hbrea-quote__icon {
    color: var(--hbrea-copper);
    margin-bottom: var(--hbrea-space-4);
}

.hbrea-quote__icon svg {
    width: 48px;
    height: 48px;
}

@media (min-width: 768px) {
    .hbrea-quote__icon svg {
        width: 64px;
        height: 64px;
    }
}

/* Quote Text */
.hbrea-quote__text {
    font-family: var(--hbrea-font-heading);
    font-size: var(--hbrea-text-xl);
    font-weight: var(--hbrea-font-medium);
    font-style: italic;
    line-height: var(--hbrea-leading-relaxed);
    color: var(--hbrea-white);
    margin-bottom: var(--hbrea-space-6);
}

@media (min-width: 768px) {
    .hbrea-quote__text {
        font-size: var(--hbrea-text-2xl);
    }
}

@media (min-width: 1024px) {
    .hbrea-quote__text {
        font-size: var(--hbrea-text-3xl);
    }
}

/* Attribution */
.hbrea-quote__author {
    font-family: var(--hbrea-font-heading);
    font-size: var(--hbrea-text-lg);
    font-weight: var(--hbrea-font-bold);
    color: var(--hbrea-white);
    margin-bottom: var(--hbrea-space-1);
}

.hbrea-quote__title {
    font-size: var(--hbrea-text-base);
    color: var(--hbrea-gray-400);
}

/* ==========================================================================
   QUOTE BLOCK VARIANTS
   ========================================================================== */

/* Centered variant (no photo) */
.hbrea-quote--centered .hbrea-quote__inner {
    display: block;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hbrea-quote--centered .hbrea-quote__photo-wrap {
    display: none;
}

/* Light variant */
.hbrea-quote--light {
    background-color: var(--hbrea-off-white);
}

.hbrea-quote--light .hbrea-quote__text {
    color: var(--hbrea-navy);
}

.hbrea-quote--light .hbrea-quote__author {
    color: var(--hbrea-navy);
}

.hbrea-quote--light .hbrea-quote__title {
    color: var(--hbrea-gray-600);
}

.hbrea-quote--light .hbrea-quote__photo {
    border-color: var(--hbrea-gray-300);
}

/* Reversed layout */
@media (min-width: 768px) {
    .hbrea-quote--reversed .hbrea-quote__inner {
        grid-template-columns: 3fr 2fr;
    }
    
    .hbrea-quote--reversed .hbrea-quote__photo-wrap {
        order: 2;
        text-align: right;
    }
    
    .hbrea-quote--reversed .hbrea-quote__content {
        order: 1;
    }
    
    .hbrea-quote--reversed .hbrea-quote__photo {
        margin-left: auto;
        margin-right: 0;
    }
}

/* ==========================================================================
   SIMPLE BLOCKQUOTE (for use in content)
   ========================================================================== */

.hbrea-blockquote {
    position: relative;
    margin: var(--hbrea-space-8) 0;
    padding: var(--hbrea-space-6) var(--hbrea-space-8);
    background-color: var(--hbrea-off-white);
    border-left: 4px solid var(--hbrea-copper);
    border-radius: 0 var(--hbrea-radius) var(--hbrea-radius) 0;
}

.hbrea-blockquote p {
    font-size: var(--hbrea-text-lg);
    font-style: italic;
    line-height: var(--hbrea-leading-relaxed);
    color: var(--hbrea-gray-700);
    margin-bottom: var(--hbrea-space-4);
}

.hbrea-blockquote p:last-child {
    margin-bottom: 0;
}

.hbrea-blockquote cite {
    display: block;
    font-size: var(--hbrea-text-sm);
    font-style: normal;
    font-weight: var(--hbrea-font-semibold);
    color: var(--hbrea-navy);
}

.hbrea-blockquote cite::before {
    content: '— ';
}
