/**
 * K4 Kitchens Pricing Page Template Styles
 * Author:  Steve Austen
 * Company: The PCGP
 * Version: 1.0.0
 */

/* Push content below the fixed header (33px top bar + 80px main header) */
.pricing-template {
    margin-top: 113px;
}

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

/* WordPress admin bar changes at 782px and below to 46px height */
@media screen and (max-width: 782px) {
    .admin-bar .pricing-template {
        margin-top: 159px; /* 113px header + 46px admin bar */
    }
}

/* ═══════════════════════════════════════════
   Hero Header
   ═══════════════════════════════════════════ */
.pricing-hero {
    background: #fff;
    padding: 60px 0 50px;
    text-align: center;
    border-bottom: 4px solid #f3af2e;
}

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

/* Row 1: Subtitle (e.g. "Our Pricing") */
.pricing-subtitle {
    display: block;
    font-family: "Poppins", sans-serif;
    font-style: italic;
    font-weight: 400;
    font-size: 22px;
    color: #f3af2e;
    margin-bottom: 8px;
}

/* Row 2: Page title */
.pricing-title {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-size: 42px;
    line-height: 1.15;
    color: #231f20;
    text-transform: uppercase;
    margin: 0 0 18px 0;
}

/* Row 3: Intro paragraph */
.pricing-intro {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    margin: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ═══════════════════════════════════════════
   Features Section
   ═══════════════════════════════════════════ */
.pricing-features-section {
    background: #fff;
    padding: 60px 0;
}

/* Section heading */
.pricing-features-heading {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-size: 28px;
    color: #231f20;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 40px 0;
}

/* Responsive grid: 4 columns, wraps elegantly */
.pricing-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Individual feature card */
.pricing-feature-card {
    background: #231f20;
    border-radius: 12px;
    padding: 24px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

/* Tick icon */
.pricing-feature-tick {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    margin-top: 2px;
}

/* Feature text */
.pricing-feature-text {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #fff;
    line-height: 1.5;
    margin: 0;
}

/* ═══════════════════════════════════════════
   Pricing Cards Section
   ═══════════════════════════════════════════ */
.pricing-cards-section {
    background: #f5f5f5;
    padding: 60px 0;
}

.pricing-cards-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

/* Individual card */
.pricing-card {
    flex: 1 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.pricing-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

/* Card image */
.pricing-card-image {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.pricing-card-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Card title */
.pricing-card-title {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: #231f20;
    text-transform: uppercase;
    margin: 24px 20px 12px;
    line-height: 1.3;
}

/* Card text */
.pricing-card-text {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0 20px 24px;
}

/* ═══════════════════════════════════════════
   WordPress Editor Content
   ═══════════════════════════════════════════ */
.pricing-editor-section {
    background: #fff;
    padding: 60px 0 70px;
    border-top: 1px solid #eee;
}

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

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

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

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

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

/* Paragraphs */
.pricing-editor-content p {
    margin-bottom: 18px;
}

/* Links */
.pricing-editor-content a {
    color: #f3af2e;
    text-decoration: underline;
    transition: color 0.3s ease;
}

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

/* Lists */
.pricing-editor-content ul,
.pricing-editor-content ol {
    margin: 0 0 24px 20px;
    padding: 0;
}

.pricing-editor-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.pricing-editor-content ul li {
    list-style: none;
    position: relative;
    padding-left: 22px;
}

.pricing-editor-content ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #f3af2e;
    font-weight: 700;
}

/* Blockquotes */
.pricing-editor-content blockquote {
    border-left: 4px solid #f3af2e;
    margin: 30px 0;
    padding: 20px 25px;
    background: #fafafa;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

/* Images */
.pricing-editor-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Tables */
.pricing-editor-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.pricing-editor-content th,
.pricing-editor-content td {
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    text-align: left;
    font-size: 15px;
}

.pricing-editor-content th {
    background: #231f20;
    color: #fff;
    font-weight: 600;
}

.pricing-editor-content tr:nth-child(even) td {
    background: #fafafa;
}

/* Horizontal rules */
.pricing-editor-content hr {
    border: none;
    border-top: 2px solid #f3af2e;
    margin: 40px 0;
}

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

    /* Features: 2-column on tablets */
    .pricing-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Cards: 2-column on tablets */
    .pricing-card {
        flex: 1 1 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
}

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

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

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

    .pricing-intro {
        font-size: 14px;
    }

    .pricing-features-section {
        padding: 40px 0;
    }

    .pricing-features-heading {
        font-size: 22px;
        margin-bottom: 28px;
    }

    /* Features: single column on mobile */
    .pricing-features-grid {
        grid-template-columns: 1fr;
    }

    .pricing-cards-section {
        padding: 40px 0;
    }

    /* Cards: single column on mobile */
    .pricing-card {
        flex: 1 1 100%;
        max-width: 100%;
    }

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