/**
 * Feedback/Testimonials Block - Frontend Styles
 *
 * @package iHowz Theme
 */

/* Container */
.wp-block-ihowz-feedback,
.ihowz-feedback {
    width: 100%;
    max-width: 1600px;
    margin: 60px auto;
    padding: 50px 40px !important;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* Roof background image - covers columns 2 and 3 only */
.wp-block-ihowz-feedback::before,
.ihowz-feedback::before {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 66.666%; /* columns 2 and 3 of 3 */
    height: 100%;
    background-image: url('../../assets/images/roof2.svg');
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: auto 80%;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

/* Grid Layout - 3 columns */
.feedback-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0;
    position: relative;
    z-index: 1;
}

/* Header - col 1, row 1 */
.feedback-header {
    grid-column: 1;
    grid-row: 1;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feedback-eyebrow {
    margin-bottom: clamp(12px, 1.5vw, 20px);
}

.feedback-heading {
    margin: 0 0 24px 0;
}

/* Button */
.feedback-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--primary-font);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    background: var(--accent-gold, #FF8F00);
    color: #fff;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-top: auto;
}

.feedback-btn:hover {
    background: #e67e00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 143, 0, 0.3);
}

.feedback-btn .btn-icon {
    width: 18px;
    height: 18px;
}

/* Testimonial Cards */
.feedback-card {
    background: #fff;
    border-radius: 16px;
    padding: clamp(20px, 2.5vw, 32px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

/* Cards flow naturally in 3-column grid after header */

/* Quote Icon */
.feedback-quote-icon {
    width: clamp(28px, 3vw, 40px);
    height: clamp(28px, 3vw, 40px);
    color: var(--primary-green, #9cc130);
    margin-bottom: clamp(12px, 1.5vw, 20px);
    flex-shrink: 0;
}

/* Quote Text */
.feedback-quote {
    font-family: var(--primary-font, "Mona Sans", sans-serif);
    font-size: clamp(0.875rem, 1vw, 1.0625rem);
    font-weight: 400;
    line-height: 1.7;
    color: var(--neutral-gray, #757575);
    margin: 0 0 clamp(16px, 2vw, 24px) 0;
    flex-grow: 1;
}

/* Author */
.feedback-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.feedback-author-image {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.feedback-author-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--light-gray, #e0e0e0);
    flex-shrink: 0;
}

.feedback-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.feedback-author-name {
    font-family: var(--primary-font, "Mona Sans", sans-serif);
    font-size: clamp(0.875rem, 1vw, 1rem);
    font-weight: 600;
    color: var(--primary-charcoal, #263238);
}

.feedback-author-role {
    font-family: var(--primary-font, "Mona Sans", sans-serif);
    font-size: clamp(0.75rem, 0.9vw, 0.875rem);
    font-weight: 500;
    color: var(--primary-green, #9cc130);
}

/* Responsive */
@media (max-width: 992px) {
    .feedback-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feedback-header {
        grid-column: 1 / 3;
        padding-right: 0;
        padding-bottom: 10px;
    }

    .feedback-card {
        padding: 28px;
    }

    .feedback-quote-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 16px;
    }

    .feedback-quote {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .feedback-author-name {
        font-size: 0.9375rem;
    }

    .feedback-author-role {
        font-size: 0.8125rem;
    }
}

@media (max-width: 540px) {
    .feedback-grid {
        grid-template-columns: 1fr;
    }

    .feedback-header {
        grid-column: 1;
    }

    .feedback-card {
        padding: 24px;
    }

    .feedback-quote-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 14px;
    }

    .feedback-quote {
        font-size: 0.9375rem;
        margin-bottom: 18px;
    }

    .feedback-author-name {
        font-size: 0.875rem;
    }

    .feedback-author-role {
        font-size: 0.75rem;
    }
}
