/**
 * Homepage Carousel Styles
 *
 * Full-width hero carousel with yellow angled overlay,
 * replicating the original K4 Kitchens homepage design.
 *
 * @package  K4_Kitchens_New
 * @author   Steve Austen
 * @company  The PCGP
 * @version  1.0.0
 */

/* ═══════════════════════════════════════════
   Hero Carousel – full viewport width
   ═══════════════════════════════════════════ */
.hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Height is set relative to viewport for a dramatic hero section */
    height: 520px;
    /* Push down below fixed header (33px top bar + 80px main header) */
    margin-top: 113px;
}

/* Account for WordPress admin bar when logged in */
.admin-bar .hero-carousel {
    margin-top: 145px; /* 113px header + 32px admin bar */
}

@media screen and (max-width: 782px) {
    .admin-bar .hero-carousel {
        margin-top: 159px; /* 113px header + 46px admin bar */
    }
}

/* Slide track holds all slides */
.hero-carousel__track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual slide – background image covers the area */
.hero-carousel__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #e8e8e8;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 0;
}

/* Active slide is visible */
.hero-carousel__slide.is-active {
    opacity: 1;
    z-index: 1;
}

/* ═══════════════════════════════════════════
   Yellow Angled Overlay
   ═══════════════════════════════════════════ */

/* The overlay creates the yellow angled shape on the left */
.hero-carousel__overlay {
    position: absolute;
    /* Inset from top and bottom edges to create margin */
    top: 80px;
    bottom: 80px;
    left: 0;
    width: 50%;
    height: auto;
    /* Yellow with slight transparency so the image shows through */
    background: rgba(243, 175, 46, 0.78);
    /* Steeper angled right edge using clip-path - matches original design */
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
    display: flex;
    align-items: center;
    z-index: 2;
}

/* Text content inside the overlay */
.hero-carousel__content {
    padding: 30px 100px 30px 40px;
    max-width: 100%;
}

/* Heading – bold */
.hero-carousel__heading {
    font-family: "Poppins", sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #231f20;
    margin: 0 0 6px 0;
    line-height: 1.1;
    letter-spacing: 0.5px;
}

/* Subtitle – bold italic */
.hero-carousel__subtitle {
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 700;
    font-style: italic;
    color: #231f20;
    margin: 0 0 10px 0;
    letter-spacing: 0.3px;
}

/* Description paragraph */
.hero-carousel__description {
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #333;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

/* Contact Us button – black rounded */
.hero-carousel__btn {
    display: inline-block;
    padding: 12px 30px;
    background: #231f20;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    transition: background 0.3s ease, transform 0.2s ease;
    letter-spacing: 0.3px;
}

.hero-carousel__btn:hover {
    background: #333;
    color: #fff;
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════
   Navigation Dots
   ═══════════════════════════════════════════ */
.hero-carousel__dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-carousel__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease;
}

.hero-carousel__dot.is-active,
.hero-carousel__dot:hover {
    background: #fff;
}

/* ═══════════════════════════════════════════
   Previous / Next Arrows - Hidden
   ═══════════════════════════════════════════ */
.hero-carousel__arrow {
    display: none;
}

/* ═══════════════════════════════════════════
   Trust Strip
   ═══════════════════════════════════════════ */
.trust-strip {
    background: #f8f8f8;
    border-top: 1px solid #e0e0e0;
    padding: 20px 0;
    margin: 0;
}

.trust-strip__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px 30px;
    padding: 0 20px;
}

.trust-strip__item {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.trust-strip__icon {
    color: #f3af2e;
    font-size: 16px;
    flex-shrink: 0;
}

.trust-strip__text {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #231f20;
}

/* ═══════════════════════════════════════════
   Homepage Content Section
   ═══════════════════════════════════════════ */
.homepage-content {
    padding: 50px 0;
}

.homepage-editor-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.homepage-editor-content h2,
.homepage-editor-content h3 {
    color: #231f20;
    margin-top: 30px;
}

.homepage-editor-content img {
    max-width: 100%;
    height: auto;
}

/* ═══════════════════════════════════════════
   Responsive – Tablet (991px)
   ═══════════════════════════════════════════ */
@media (max-width: 991px) {
    .hero-carousel {
        height: 440px;
    }

    .hero-carousel__overlay {
        top: 70px;
        bottom: 70px;
        width: 50%;
        background: rgba(243, 175, 46, 0.78);
        clip-path: polygon(0 0, 100% 0, 75% 100%, 0 100%);
    }

    .hero-carousel__content {
        padding: 25px 70px 25px 35px;
        max-width: 100%;
    }

    .hero-carousel__heading {
        font-size: 24px;
    }

    .hero-carousel__subtitle {
        font-size: 12px;
    }

    .hero-carousel__description {
        font-size: 11px;
    }

    /* Hide low priority trust items on tablets */
    .trust-strip__item--low {
        display: none;
    }

    .trust-strip__text {
        font-size: 13px;
    }
}

/* ═══════════════════════════════════════════
   Responsive – Small tablet / large mobile (768px)
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
    .hero-carousel {
        height: 400px;
    }

    .hero-carousel__overlay {
        top: 60px;
        bottom: 60px;
        width: 55%;
        background: rgba(243, 175, 46, 0.78);
        clip-path: polygon(0 0, 100% 0, 75% 100%, 0 100%);
    }

    .hero-carousel__content {
        padding: 20px 60px 20px 25px;
        max-width: 100%;
    }

    .hero-carousel__heading {
        font-size: 22px;
    }

    .hero-carousel__subtitle {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .hero-carousel__description {
        font-size: 10px;
        margin-bottom: 12px;
    }

    .hero-carousel__btn {
        padding: 10px 24px;
        font-size: 14px;
    }

    /* Move arrows inward */
    .hero-carousel__arrow--prev {
        left: 10px;
    }

    .hero-carousel__arrow--next {
        right: 10px;
    }

    /* Hide medium and low priority trust items on small tablets */
    .trust-strip__item--medium,
    .trust-strip__item--low {
        display: none;
    }

    .trust-strip__text {
        font-size: 12px;
    }

    .trust-strip__container {
        gap: 20px;
    }
}

/* ═══════════════════════════════════════════
   Responsive – Mobile (600px)
   ═══════════════════════════════════════════ */
@media (max-width: 600px) {
    .hero-carousel {
        height: 380px;
    }

    /* On small screens, overlay covers more of the image */
    .hero-carousel__overlay {
        top: 50px;
        bottom: 50px;
        width: 60%;
        background: rgba(243, 175, 46, 0.78);
        clip-path: polygon(0 0, 100% 0, 75% 100%, 0 100%);
    }

    .hero-carousel__content {
        padding: 18px 50px 18px 20px;
        max-width: 100%;
    }

    .hero-carousel__heading {
        font-size: 20px;
    }

    .hero-carousel__subtitle {
        font-size: 10px;
    }

    .hero-carousel__description {
        font-size: 9px;
        line-height: 1.4;
    }

    .hero-carousel__btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    /* Hide arrows on small screens, rely on dots and auto-play */
    .hero-carousel__arrow {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    /* Further reduce trust strip on mobile */
    .trust-strip__text {
        font-size: 11px;
    }

    .trust-strip__container {
        gap: 15px;
        padding: 0 15px;
    }

    .trust-strip__icon {
        font-size: 14px;
    }
}

/* ═══════════════════════════════════════════
   Responsive – Small mobile (480px)
   ═══════════════════════════════════════════ */
@media (max-width: 480px) {
    .hero-carousel {
        height: 340px;
    }

    .hero-carousel__overlay {
        top: 40px;
        bottom: 40px;
        width: 70%;
        background: rgba(243, 175, 46, 0.78);
        clip-path: polygon(0 0, 100% 0, 75% 100%, 0 100%);
    }

    .hero-carousel__content {
        padding: 15px 40px 15px 18px;
        max-width: 100%;
    }

    .hero-carousel__heading {
        font-size: 18px;
    }

    .hero-carousel__subtitle {
        font-size: 9px;
    }

    .hero-carousel__description {
        font-size: 8px;
    }

    .hero-carousel__btn {
        padding: 8px 18px;
        font-size: 12px;
    }

    /* Hide arrows on very small screens */
    .hero-carousel__arrow {
        display: none;
    }

    /* Smallest trust strip styling */
    .trust-strip__text {
        font-size: 10px;
    }

    .trust-strip__container {
        gap: 10px;
        padding: 0 10px;
    }

    .trust-strip__icon {
        font-size: 12px;
    }

    .trust-strip {
        padding: 15px 0;
    }
}

/* ═══════════════════════════════════════════
   Homepage – Typical Costs Section
   Premium card layout with highlight state,
   gradient accents, and smooth hover effects.
   ═══════════════════════════════════════════ */
.hp-costs {
    background: #f7f7f7;
    padding: 80px 0 90px;
}

.hp-costs__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Section header ── */
.hp-costs__header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px;
}

.hp-costs__eyebrow {
    display: inline-block;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f3af2e;
    margin-bottom: 12px;
}

.hp-costs__title {
    font-family: "Poppins", sans-serif;
    font-size: 38px;
    font-weight: 800;
    color: #231f20;
    margin: 0 0 16px;
    line-height: 1.2;
}

.hp-costs__desc {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* ── Cards grid – 3 columns ── */
.hp-costs__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: start;
}

/* ── Individual card ── */
.hp-costs__card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
}

.hp-costs__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}


/* ── Card image ── */
.hp-costs__card-image {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hp-costs__card-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.hp-costs__card:hover .hp-costs__card-image img {
    transform: scale(1.05);
}

/* Placeholder when no image is set */
.hp-costs__card-image--placeholder {
    background: linear-gradient(135deg, #e8e8e8 0%, #d4d4d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.hp-costs__card-image-icon {
    color: #bbb;
}

/* ── Card header (above image) ── */
.hp-costs__card-header {
    padding: 24px 28px 10px;
    text-align: center;
}

/* Title wrapper (contains label + name on same row) */
.hp-costs__card-title {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 16px;
    line-height: 1.3;
}

/* Plan label (e.g. "Plan A") */
.hp-costs__card-label {
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #f3af2e;
}

/* Plan name (e.g. "Kitchen Refresh") */
.hp-costs__card-name {
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #231f20;
}

/* Price */
.hp-costs__card-price {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    margin: 0;
}

/* ── Card body (below image) ── */
.hp-costs__card-body {
    padding: 20px 28px 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Sub header */
.hp-costs__subheader {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #231f20;
    margin: 0 0 12px;
}

/* Features WYSIWYG content */
.hp-costs__features {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    margin: 0;
    flex: 1;
}

.hp-costs__features p {
    margin: 0 0 10px;
}

.hp-costs__features p:last-child {
    margin-bottom: 0;
}

.hp-costs__features ul,
.hp-costs__features ol {
    margin: 0 0 10px;
    padding-left: 20px;
}

.hp-costs__features li {
    margin-bottom: 5px;
}

.hp-costs__features strong {
    font-weight: 700;
}

/* ── CTA button ── */
.hp-costs__cta {
    text-align: center;
    margin-top: 50px;
}

.hp-costs__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #231f20;
    background: #f3af2e;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 16px rgba(243, 175, 46, 0.3);
}

.hp-costs__btn:hover {
    background: #e5a225;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(243, 175, 46, 0.4);
    color: #231f20;
    text-decoration: none;
}

.hp-costs__btn svg {
    transition: transform 0.3s ease;
}

.hp-costs__btn:hover svg {
    transform: translateX(4px);
}

/* ── Responsive – Tablet (991px) ── */
@media (max-width: 991px) {
    .hp-costs {
        padding: 60px 0 70px;
    }

    .hp-costs__title {
        font-size: 32px;
    }

    .hp-costs__grid {
        gap: 20px;
    }

    .hp-costs__card-header {
        padding: 20px 22px 10px;
    }

    .hp-costs__card-label,
    .hp-costs__card-name {
        font-size: 17px;
    }

    .hp-costs__card-price {
        font-size: 15px;
    }

    .hp-costs__card-body {
        padding: 18px 22px 26px;
    }
}

/* ── Responsive – Small tablet (768px) ── */
@media (max-width: 768px) {
    .hp-costs__grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }

    .hp-costs__header {
        margin-bottom: 40px;
    }

    .hp-costs__title {
        font-size: 28px;
    }

    .hp-costs__desc {
        font-size: 15px;
    }

    .hp-costs__card-image--placeholder {
        min-height: 180px;
    }

    .hp-costs__cta {
        margin-top: 36px;
    }

    .hp-costs__btn {
        font-size: 15px;
        padding: 14px 30px;
    }
}

/* ── Responsive – Mobile (480px) ── */
@media (max-width: 480px) {
    .hp-costs {
        padding: 48px 0 56px;
    }

    .hp-costs__title {
        font-size: 24px;
    }

    .hp-costs__desc {
        font-size: 14px;
    }

    .hp-costs__card-header {
        padding: 18px 18px 10px;
    }

    .hp-costs__card-label,
    .hp-costs__card-name {
        font-size: 16px;
    }

    .hp-costs__card-price {
        font-size: 14px;
    }

    .hp-costs__card-body {
        padding: 16px 18px 24px;
    }

    .hp-costs__features {
        font-size: 13px;
    }

    .hp-costs__btn {
        font-size: 14px;
        padding: 12px 24px;
        width: 100%;
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════
   FAQ Section
   Self-contained accordion section for homepage
   All classes prefixed with k4-faq- to avoid conflicts
   ═══════════════════════════════════════════ */

/* ── Section wrapper ── */
.k4-faq-section {
    background: #fff;
    padding: 80px 20px;
}

.k4-faq-container {
    max-width: 1140px;
    margin: 0 auto;
}

/* ── Section header ── */
.k4-faq-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 50px;
}

.k4-faq-title {
    font-family: "Poppins", sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #231f20;
    margin: 0 0 16px;
    line-height: 1.2;
}

.k4-faq-intro {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* ── Accordion container ── */
.k4-faq-accordion {
    max-width: 900px;
    margin: 0 auto 50px;
}

/* ── Individual FAQ item ── */
.k4-faq-item {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 16px;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.k4-faq-item:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* ── Question button ── */
.k4-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 26px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s ease;
}

.k4-faq-question:hover {
    background-color: #fafafa;
}

.k4-faq-question:focus {
    outline: 2px solid #f3af2e;
    outline-offset: -2px;
}

.k4-faq-question-text {
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #231f20;
    line-height: 1.4;
}

/* ── Plus/minus icon ── */
.k4-faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #f3af2e;
    transition: transform 0.3s ease;
}

.k4-faq-icon svg {
    display: block;
}

.k4-faq-icon-horizontal {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.k4-faq-question[aria-expanded="true"] .k4-faq-icon {
    transform: rotate(180deg);
}

.k4-faq-question[aria-expanded="true"] .k4-faq-icon-horizontal {
    opacity: 0;
    transform: rotate(90deg);
}

/* ── Answer panel ── */
.k4-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.k4-faq-answer-content {
    padding: 0 26px 26px;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

.k4-faq-answer-content p {
    margin: 0 0 12px;
}

.k4-faq-answer-content p:last-child {
    margin-bottom: 0;
}

/* ── CTA box ── */
.k4-faq-cta {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background: #f7f7f7;
    border-radius: 12px;
    padding: 40px 30px;
}

.k4-faq-cta-heading {
    font-family: "Poppins", sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #231f20;
    margin: 0 0 12px;
    line-height: 1.3;
}

.k4-faq-cta-text {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #555;
    margin: 0 0 24px;
}

.k4-faq-cta-button {
    display: inline-block;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #231f20;
    background: #f3af2e;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 16px rgba(243, 175, 46, 0.3);
}

.k4-faq-cta-button:hover {
    background: #e5a225;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(243, 175, 46, 0.4);
    color: #231f20;
    text-decoration: none;
}

.k4-faq-cta-button:focus {
    outline: 2px solid #231f20;
    outline-offset: 4px;
}

/* ── Responsive – Tablet (768px) ── */
@media (max-width: 768px) {
    .k4-faq-section {
        padding: 60px 20px;
    }

    .k4-faq-title {
        font-size: 30px;
    }

    .k4-faq-intro {
        font-size: 15px;
    }

    .k4-faq-header {
        margin-bottom: 40px;
    }

    .k4-faq-question {
        padding: 18px 20px;
    }

    .k4-faq-question-text {
        font-size: 17px;
    }

    .k4-faq-answer-content {
        padding: 0 20px 20px;
        font-size: 14px;
    }

    .k4-faq-cta {
        padding: 32px 24px;
    }

    .k4-faq-cta-heading {
        font-size: 22px;
    }

    .k4-faq-cta-text {
        font-size: 15px;
    }
}

/* ── Responsive – Mobile (480px) ── */
@media (max-width: 480px) {
    .k4-faq-section {
        padding: 48px 16px;
    }

    .k4-faq-title {
        font-size: 26px;
    }

    .k4-faq-intro {
        font-size: 14px;
    }

    .k4-faq-question {
        padding: 16px 18px;
        gap: 12px;
    }

    .k4-faq-question-text {
        font-size: 16px;
    }

    .k4-faq-answer-content {
        padding: 0 18px 18px;
        font-size: 14px;
    }

    .k4-faq-cta {
        padding: 28px 20px;
    }

    .k4-faq-cta-heading {
        font-size: 20px;
    }

    .k4-faq-cta-text {
        font-size: 14px;
    }

    .k4-faq-cta-button {
        font-size: 15px;
        padding: 12px 28px;
        width: 100%;
    }
}
