/*
 Theme Name:   GeneratePress Child - Wonderland Labs
 Theme URI:    https://wonderland-labs.com
 Description:  GeneratePress child theme for Wonderland Labs
 Author:       MacSolutions Plus
 Template:     generatepress
 Version:      1.0.0
*/

/* ── CSS Custom Properties ─────────────────────────────── */
:root {
    --wl-green: #68B04D;
    --wl-green-light: #8AE658;
    --wl-green-bright: #6ebf44;
    --wl-green-alt: #81D742;
    --wl-purple: #9d2e92;
    --wl-purple-dark: #4e0087;
    --wl-dark: #353535;
    --wl-dark-alt: #494949;
    --wl-white: #ffffff;
    --wl-light-gray: #fafafa;
    --wl-font-heading: 'Source Sans Pro', sans-serif;
    --wl-font-body: 'Droid Sans', sans-serif;
}

/* ── Typography ────────────────────────────────────────── */
body {
    font-family: var(--wl-font-body);
    color: #333;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--wl-font-heading);
    font-weight: 300;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

.purp-text { color: var(--wl-purple); }

/* ── Layout: Sections & Containers ─────────────────────── */
.wl-section {
    padding: 60px 0;
}

.wl-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.wl-row {
    display: grid;
    gap: 30px;
    margin-bottom: 30px;
    align-items: start;
}

.wl-row-equal {
    align-items: stretch;
}

.wl-col {
    padding: 15px;
}

/* ── Section Variants ──────────────────────────────────── */
.wl-section-colored {
    position: relative;
}

.header-banner {
    text-align: center;
    color: var(--wl-white);
    padding: 100px 0 60px;
    position: relative;
    background-size: cover;
    background-position: center;
}

.header-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.header-banner .wl-container {
    position: relative;
    z-index: 1;
}

.header-banner h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.header-banner h3 {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 30px;
}

.green-overlay {
    position: relative;
    color: var(--wl-white);
}

.green-overlay::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(104, 176, 77, 0.85);
    z-index: 0;
}

.green-overlay .wl-container {
    position: relative;
    z-index: 1;
}

.black-overlay {
    position: relative;
    color: var(--wl-white);
    text-align: center;
}

.black-overlay::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 0;
}

.black-overlay .wl-container {
    position: relative;
    z-index: 1;
}

/* ── Buttons ───────────────────────────────────────────── */
.wl-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--wl-green);
    color: var(--wl-white) !important;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    margin: 5px;
}

.wl-btn:hover {
    background-color: var(--wl-green-bright);
    color: var(--wl-white) !important;
    text-decoration: none;
}

/* ── Blurb Cards ───────────────────────────────────────── */
.wl-blurb {
    text-align: center;
    padding: 20px;
}

.wl-blurb-image img {
    max-width: 120px;
    height: auto;
    margin: 0 auto 15px;
    display: block;
}

.wl-blurb-icon {
    font-size: 3rem;
    color: var(--wl-green);
    margin-bottom: 15px;
}

.wl-blurb-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.wl-blurb-title a {
    color: inherit;
    text-decoration: none;
}

.wl-blurb-title a:hover {
    color: var(--wl-green);
}

.wl-blurb-body {
    font-size: 0.95rem;
    color: #666;
}

/* ── CTA Sections ──────────────────────────────────────── */
.wl-cta {
    text-align: center;
    padding: 20px 0;
}

.wl-cta h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* ── Hero / Slider ─────────────────────────────────────── */
.wl-hero {
    padding: 80px 40px;
    background-size: cover;
    background-position: center;
    color: var(--wl-white);
    position: relative;
    text-align: center;
}

.wl-hero-overlay {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.wl-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.wl-hero h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.wl-slider {
    /* Stack slides vertically — each becomes a standalone hero section */
}

.wl-slider .wl-hero {
    margin-bottom: 0;
}

/* ── Testimonials ──────────────────────────────────────── */
.wl-testimonial {
    padding: 25px;
    margin-bottom: 20px;
    background: var(--wl-light-gray);
    border-radius: 8px;
    border-left: 4px solid var(--wl-green);
}

.wl-testimonial blockquote {
    font-style: italic;
    font-size: 1rem;
    margin: 0 0 15px 0;
    padding: 0;
    border: none;
    color: #444;
}

.wl-testimonial cite {
    font-style: normal;
    font-weight: 600;
    color: var(--wl-green);
    display: block;
}

.wl-testimonial-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    float: left;
    margin-right: 15px;
}

/* ── Pricing Cards ─────────────────────────────────────── */
.wl-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.wl-pricing-card {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    background: var(--wl-white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wl-pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.wl-pricing-featured {
    border-color: var(--wl-green);
    position: relative;
}

.wl-pricing-featured::after {
    content: 'POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--wl-green);
    color: white;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.wl-pricing-title {
    font-size: 1.3rem;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.wl-pricing-subtitle {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.wl-pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--wl-green);
    margin-bottom: 20px;
}

.wl-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    text-align: left;
}

.wl-pricing-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

.wl-pricing-features li:last-child {
    border-bottom: none;
}

/* ── Accordion / FAQ ───────────────────────────────────── */
.wl-accordion-item {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    margin-bottom: 10px;
    overflow: hidden;
}

.wl-accordion-item summary {
    padding: 15px 20px;
    font-weight: 600;
    cursor: pointer;
    background: var(--wl-light-gray);
    list-style: none;
    position: relative;
    padding-right: 40px;
}

.wl-accordion-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--wl-green);
}

.wl-accordion-item[open] summary::after {
    content: '−';
}

.wl-accordion-body {
    padding: 15px 20px;
}

/* ── Stats / Counters ──────────────────────────────────── */
.wl-stat {
    text-align: center;
    padding: 20px;
}

.wl-stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--wl-green);
}

.wl-stat-label {
    font-size: 0.95rem;
    text-transform: uppercase;
    color: #666;
}

/* ── Progress Bars ─────────────────────────────────────── */
.wl-progress {
    margin-bottom: 15px;
}

.wl-progress-label {
    margin-bottom: 5px;
    font-weight: 600;
}

.wl-progress-bar {
    height: 25px;
    background: var(--wl-green);
    color: white;
    text-align: center;
    line-height: 25px;
    font-size: 0.8rem;
    border-radius: 3px;
}

/* ── Audio ─────────────────────────────────────────────── */
.wl-audio {
    background: var(--wl-light-gray);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* ── Divider ───────────────────────────────────────────── */
.wl-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 30px 0;
}

/* ── Images ────────────────────────────────────────────── */
.wp-block-image {
    margin-bottom: 20px;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* ── Form Placeholder ──────────────────────────────────── */
.wl-form-placeholder {
    background: var(--wl-light-gray);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 2px dashed #ccc;
}

/* ── Gravity Forms Overrides (ported from Divi child) ─── */
.gform_wrapper .gfield input,
.gform_wrapper .gfield textarea,
.gform_wrapper .gfield select {
    border: 1px solid #ddd !important;
    padding: 12px !important;
    border-radius: 5px !important;
    font-size: 0.95rem !important;
}

.gform_wrapper .gform_button,
.gform_wrapper input[type="submit"] {
    background-color: var(--wl-green) !important;
    color: white !important;
    border: none !important;
    padding: 12px 30px !important;
    border-radius: 5px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
}

.gform_wrapper .gform_button:hover,
.gform_wrapper input[type="submit"]:hover {
    background-color: var(--wl-green-bright) !important;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
    .wl-row {
        grid-template-columns: 1fr !important;
    }

    .header-banner h1 {
        font-size: 2.5rem;
    }

    .header-banner h3 {
        font-size: 1.1rem;
    }

    .wl-hero h2 {
        font-size: 1.8rem;
    }

    .wl-section {
        padding: 40px 0;
    }

    .wl-pricing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-banner h1 {
        font-size: 2rem;
    }

    .wl-btn {
        display: block;
        text-align: center;
    }
}

/* ── Hide theme-generated page/post titles ─────────────── */
/* Content already contains H1 titles from migration */
.single .entry-header .entry-title,
.page .entry-header .entry-title,
.entry-header {
    display: none;
}
