/**
 * Kitchens With Alterations Template Styles
 *
 * Styles for the K4 Kitchens With Alterations page template.
 *
 * @package  bb-theme-child
 * @author   Steve Austen
 * @company  The PCGP
 * @version  1.0.0
 */

/* ═══════════════════════════════════════════
   Hero Header
   ═══════════════════════════════════════════ */
.ka-hero {
    background: #f5f5f5;
    padding: 60px 0 50px;
    text-align: center;
}

.ka-header {
    max-width: 800px;
    margin: 0 auto;
}

/* Row 1: Page title – italic yellow text */
.ka-subtitle {
    display: block;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: italic;
    font-size: 20px;
    color: #f3af2e;
    margin-bottom: 12px;
}

/* Row 2: Editable heading – uppercase, heavy weight, dark, multi-line */
.ka-title {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-size: 40px;
    color: #231f20;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0;
}

/* ═══════════════════════════════════════════
   Gallery Cards
   ═══════════════════════════════════════════ */
.ka-gallery-section {
    background: #f5f5f5;
    padding: 60px 0;
}

/* 3-column grid */
.ka-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Individual card */
.ka-gallery-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    padding: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

/* Image wrapper (<a> tag) – contains the hover overlay */
.ka-gallery-image-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
}

/* The image itself – fixed aspect ratio so all cards match */
.ka-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 4 / 3;
    transition: transform 0.4s ease;
}

/* Hover: zoom the image */
.ka-gallery-image-wrap:hover .ka-gallery-image {
    transform: scale(1.08);
}

/* Dark overlay + magnifier icon on hover */
.ka-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    border-radius: 8px;
}

.ka-gallery-image-wrap:hover .ka-gallery-overlay {
    opacity: 1;
}

/* Magnifier SVG icon */
.ka-gallery-icon {
    width: 48px;
    height: 48px;
    color: #fff;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

/* Description text below image */
.ka-gallery-text {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    text-align: center;
    margin: 16px 8px 6px;
}

/* ═══════════════════════════════════════════
   Magnific Popup Overrides (gallery lightbox)
   ═══════════════════════════════════════════ */
.mfp-ka-gallery .mfp-img {
    padding: 40px 0;
}

/* ═══════════════════════════════════════════
   WordPress Editor Content (optional)
   ═══════════════════════════════════════════ */
.ka-editor-section {
    background: #fff;
    padding: 60px 0 70px;
}

.ka-editor-content {
    max-width: 900px;
    margin: 0 auto;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.ka-editor-content h2 {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-size: 32px;
    color: #231f20;
    text-transform: uppercase;
    margin: 40px 0 20px 0;
}

.ka-editor-content h2:first-child {
    margin-top: 0;
}

.ka-editor-content h3 {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #231f20;
    margin: 35px 0 15px 0;
}

.ka-editor-content h4 {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #231f20;
    margin: 30px 0 12px 0;
}

.ka-editor-content p {
    margin-bottom: 18px;
}

.ka-editor-content a {
    color: #f3af2e;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.ka-editor-content a:hover {
    color: #e2a027;
}

.ka-editor-content ul,
.ka-editor-content ol {
    margin: 0 0 20px 24px;
    padding: 0;
}

.ka-editor-content li {
    margin-bottom: 8px;
}

.ka-editor-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}

.ka-editor-content blockquote {
    border-left: 4px solid #f3af2e;
    margin: 20px 0;
    padding: 15px 25px;
    background: #fafafa;
    font-style: italic;
    color: #555;
}

/* ═══════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════ */
@media (max-width: 991px) {
    .ka-title {
        font-size: 34px;
    }

    /* Gallery: 2-column on tablets */
    .ka-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ka-editor-content h2 {
        font-size: 26px;
    }

    .ka-editor-content h3 {
        font-size: 20px;
    }
}

@media (max-width: 600px) {
    .ka-hero {
        padding: 40px 0 35px;
    }

    .ka-subtitle {
        font-size: 18px;
    }

    .ka-title {
        font-size: 28px;
    }

    /* Gallery: single column on mobile */
    .ka-gallery-grid {
        grid-template-columns: 1fr;
    }

    .ka-gallery-section {
        padding: 40px 0;
    }

    .ka-editor-section {
        padding: 40px 0;
    }
}
