/**
 * Valley Templates CSS
 * Structural styling for interior page templates.
 * Applied on: Theme Builder templates 227201–227204 + new per-category templates.
 *
 * Relies on brand tokens from valley-components.css.
 * All colours reference CSS variables or match brand system exactly.
 *
 * Contents:
 *  1. Interior Hero (Templates A, B — sidebar service pages)
 *  2. Breadcrumb
 *  3. Category Label / Hero Meta
 *  4. Two-Column Layout (content + sidebar)
 *  5. Sidebar wrapper
 *  6. Bottom CTA Band
 *  7. Buttons (gold + outline-white)
 *  8. LP Hero (Template E — full-width landing page)
 *  9. LP Stat Boxes
 * 10. Trust Strip (hero pills)
 * 11. Areas Parent Hero (Template C)
 * 12. Responsive
 */

/* ═══════════════════════════════════════════════════════════════
 * 1. INTERIOR HERO
 *    Navy background, breadcrumb → category label → H1 → subtitle
 * ═══════════════════════════════════════════════════════════════ */

.valley-interior-hero {
    background-color: #1B3A5C;
    background-image:
        linear-gradient(135deg, rgba(0,0,0,0.35) 0%, transparent 60%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 80px,
            rgba(255,255,255,0.015) 80px,
            rgba(255,255,255,0.015) 81px
        );
    padding: 3.5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

/* Decorative bottom edge — gold accent line */
.valley-interior-hero::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #C49B2F 0%, #F5C518 50%, #C49B2F 100%);
}

.valley-interior-hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}


/* Page Title shortcode output */
.valley-page-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
    margin: 0.375rem 0 1rem;
}

/* ═══════════════════════════════════════════════════════════════
 * 2. BREADCRUMB
 * ═══════════════════════════════════════════════════════════════ */

.valley-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.valley-breadcrumb a,
.valley-breadcrumb span {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.15s ease;
}

.valley-breadcrumb a:hover {
    color: #F5C518;
}

.valley-breadcrumb__sep {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.7rem;
}

.valley-breadcrumb__current {
    color: rgba(255, 255, 255, 0.85) !important;
}


/* ═══════════════════════════════════════════════════════════════
 * 3. CATEGORY LABEL & HERO META
 * ═══════════════════════════════════════════════════════════════ */

.valley-hero-category-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #F5C518;
    margin-bottom: 0.875rem;
}

.valley-hero-category-label::before {
    content: '◆';
    font-size: 0.5rem;
    color: #C49B2F;
}

.valley-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 1rem;
}

.valley-hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 680px;
    margin: 0 0 1.75rem;
}


/* ═══════════════════════════════════════════════════════════════
 * 4. TWO-COLUMN LAYOUT (content + sidebar)
 *    Wraps the main post content + sidebar in a boxed container
 * ═══════════════════════════════════════════════════════════════ */

.valley-content-sidebar-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}

.valley-main-content {
    min-width: 0; /* prevent grid blowout */
}

/* Standard content typography */
.valley-main-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 600;
    color: #1B3A5C;
    margin: 2rem 0 0.75rem;
}

.valley-main-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 600;
    color: #1B3A5C;
    margin: 1.5rem 0 0.5rem;
}

/* Body copy inherits from the Elementor kit Text (body) global so it matches
   paragraphs set via system font tokens. Color + spacing stay local. */
.valley-main-content p {
    font-family: var(--e-global-typography-text-font-family, 'Inter', sans-serif);
    font-size:   var(--e-global-typography-text-font-size, 1rem);
    font-weight: var(--e-global-typography-text-font-weight, 400);
    line-height: var(--e-global-typography-text-line-height, 1.7);
    color: #3E4556;
    margin: 0 0 1.25rem;
}

.valley-main-content ul,
.valley-main-content ol {
    font-family: var(--e-global-typography-text-font-family, 'Inter', sans-serif);
    font-size:   var(--e-global-typography-text-font-size, 1rem);
    font-weight: var(--e-global-typography-text-font-weight, 400);
    line-height: var(--e-global-typography-text-line-height, 1.7);
    color: #3E4556;
    padding-left: 1.5rem;
    margin: 0 0 1.25rem;
}

.valley-main-content ul li::marker {
    color: #C49B2F;
}


/* Content + Sidebar layout — uses Elementor flex, we control spacing and max-width */
.valley-content-sidebar-wrap {
    max-width: 1280px;
    margin: 0 auto;
}

/* Target the actual flex row inside boxed containers */
.valley-content-sidebar-wrap > .e-con-inner,
.valley-content-sidebar-wrap.e-con-full {
    gap: 3rem;
    padding: 3rem 2rem 4rem;
}

/* Sidebar fixed width */
.valley-content-sidebar-wrap .valley-sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* Content column takes remaining space */
.valley-content-sidebar-wrap .valley-main-content {
    flex: 1;
    min-width: 0;
}


/* ═══════════════════════════════════════════════════════════════
 * 4b. FEATURED IMAGE (top of content column)
 * ═══════════════════════════════════════════════════════════════ */

.valley-featured-image {
    margin-bottom: 2rem;
    position: relative;
}

.valley-featured-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}


/* ═══════════════════════════════════════════════════════════════
 * 4c. LEAD PARAGRAPH (styled excerpt below featured image)
 * ═══════════════════════════════════════════════════════════════ */

.valley-lead-paragraph {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    color: #3E4556;
    line-height: 1.75;
    border-left: 3px solid #C62828;
    padding-left: 1.25rem;
    margin-bottom: 2.5rem;
}


/* ═══════════════════════════════════════════════════════════════
 * 5. SIDEBAR WRAPPER
 * ═══════════════════════════════════════════════════════════════ */

.valley-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 2rem;
}

/* Sidebar section divider label */
.valley-sidebar__section-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #C49B2F;
    margin: 0.5rem 0 0.25rem;
}

/* Sidebar quick-action CTA card (wraps [valley_cta type="schedule"]) */
.valley-sidebar .valley-cta-wrap {
    border-radius: 0;
}


/* ═══════════════════════════════════════════════════════════════
 * 6. BOTTOM CTA BAND
 *    Red background, centered, white text, gold button
 * ═══════════════════════════════════════════════════════════════ */

.valley-bottom-cta {
    background-color: #C62828;
    background-image: linear-gradient(135deg, #B71C1C 0%, #C62828 40%, #B71C1C 100%);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle diagonal texture */
.valley-bottom-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 40px,
        rgba(255,255,255,0.03) 40px,
        rgba(255,255,255,0.03) 41px
    );
    pointer-events: none;
}

.valley-bottom-cta__inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.valley-bottom-cta__label {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 0.75rem;
}

.valley-bottom-cta__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 0.75rem;
}

.valley-bottom-cta__subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0 0 2rem;
}

.valley-bottom-cta__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Trust line below buttons */
.valley-bottom-cta__trust-line {
    margin-top: 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.valley-bottom-cta__trust-line span::before {
    content: '◆ ';
    color: rgba(196, 155, 47, 0.6);
    font-size: 0.5rem;
}

.valley-bottom-cta__trust-line span:first-child::before {
    display: none;
}


/* ═══════════════════════════════════════════════════════════════
 * 7. BUTTONS
 * ═══════════════════════════════════════════════════════════════ */

/* Gold CTA — primary action */
.valley-btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background-color: #F5C518;
    color: #1B3A5C;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
}

.valley-btn-gold:hover {
    background-color: #EAB800;
    transform: translateY(-1px);
    color: #1B3A5C;
}

.valley-btn-gold:active {
    transform: translateY(0);
}

/* White outline — secondary action */
.valley-btn-outline-white {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background-color: transparent;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
}

.valley-btn-outline-white:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

/* Navy outline — for use on light backgrounds */
.valley-btn-outline-navy {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background-color: transparent;
    color: #1B3A5C;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    border: 2px solid #1B3A5C;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.valley-btn-outline-navy:hover {
    background-color: #1B3A5C;
    color: #ffffff;
}


/* ═══════════════════════════════════════════════════════════════
 * 8. LP HERO (Template E — full-width landing page)
 *    Bigger, more dramatic. No sidebar version.
 * ═══════════════════════════════════════════════════════════════ */

.valley-lp-hero {
    background-color: #1B3A5C;
    background-image: linear-gradient(135deg, #0F2336 0%, #1B3A5C 50%, #24517D 100%);
    padding: 5rem 2rem 5.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.valley-lp-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #C49B2F 0%, #F5C518 30%, #C49B2F 70%, #F5C518 100%);
}

.valley-lp-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.valley-lp-hero__label {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #F5C518;
    margin: 0 0 1rem;
}

.valley-lp-hero__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 600;
    color: #ffffff;
    line-height: 1.15;
    margin: 0 0 1.25rem;
}

.valley-lp-hero__subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.65;
    max-width: 640px;
    margin: 0 auto 2.25rem;
}

.valley-lp-hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.25rem;
}


/* ═══════════════════════════════════════════════════════════════
 * 9. LP STAT BOXES
 *    4-column bar beneath LP hero
 * ═══════════════════════════════════════════════════════════════ */

.valley-stats-bar {
    background-color: #F5F1EB;
    border-top: 3px solid #C49B2F;
    padding: 0;
}

.valley-stats-bar__grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.valley-stat-box {
    padding: 2rem 1.5rem;
    text-align: center;
    border-right: 1px solid #E8E0D4;
    position: relative;
}

.valley-stat-box:last-child {
    border-right: none;
}

/* Diamond separator between boxes */
.valley-stat-box + .valley-stat-box::before {
    content: '◆';
    position: absolute;
    left: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #C49B2F;
    font-size: 0.55rem;
    opacity: 0.5;
}

.valley-stat-box__number {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    color: #1B3A5C;
    line-height: 1;
    margin: 0 0 0.35rem;
}

.valley-stat-box__label {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #3E4556;
    margin: 0;
}

.valley-stat-box__sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #888;
    margin: 0.25rem 0 0;
}


/* ═══════════════════════════════════════════════════════════════
 * 10. TRUST STRIP (hero pills)
 *     Horizontal row of trust badges inside hero sections
 * ═══════════════════════════════════════════════════════════════ */

.valley-hero-trust-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.valley-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.875rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.valley-trust-pill__icon {
    color: #F5C518;
    font-size: 0.85rem;
}

.valley-trust-pill:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
}


/* ═══════════════════════════════════════════════════════════════
 * 11. AREAS PARENT HERO (Template C)
 *     Same base as interior hero but with map integration
 * ═══════════════════════════════════════════════════════════════ */

.valley-areas-hero {
    background-color: #1B3A5C;
    padding: 3rem 0 0;
    position: relative;
}

.valley-areas-hero::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #C49B2F, #F5C518, #C49B2F);
}

.valley-areas-hero__text {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

.valley-areas-hero__map {
    width: 100%;
    height: 400px;
    position: relative;
}


/* ═══════════════════════════════════════════════════════════════
 * 12. RESPONSIVE
 * ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .valley-content-sidebar-wrap > .e-con-inner,
    .valley-content-sidebar-wrap.e-con-full {
        flex-direction: column !important;
        gap: 2rem;
        padding: 2rem 1.5rem 3rem;
    }

    .valley-content-sidebar-wrap .valley-sidebar {
        width: 100%;
        flex-shrink: 1;
        position: static;
        order: 2;
    }

    .valley-content-sidebar-wrap .valley-main-content {
        order: 1;
    }

    .valley-featured-image img {
        height: 250px;
    }

    .valley-stats-bar__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .valley-stat-box:nth-child(2) {
        border-right: none;
    }

    .valley-stat-box + .valley-stat-box::before {
        display: none;
    }

    .valley-stat-box:nth-child(1),
    .valley-stat-box:nth-child(2) {
        border-bottom: 1px solid #E8E0D4;
    }
}

@media (max-width: 768px) {
    .valley-interior-hero {
        padding: 2.5rem 0 3rem;
    }

    .valley-interior-hero__inner {
        padding: 0 1.25rem;
    }

    .valley-hero-trust-strip {
        gap: 0.5rem;
    }

    .valley-trust-pill {
        font-size: 0.7rem;
        padding: 0.35rem 0.7rem;
    }

    .valley-bottom-cta {
        padding: 3rem 1.25rem;
    }

    .valley-bottom-cta__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .valley-btn-gold,
    .valley-btn-outline-white,
    .valley-btn-outline-navy {
        justify-content: center;
        width: 100%;
    }

    .valley-lp-hero {
        padding: 3.5rem 1.25rem 4rem;
        text-align: left;
    }

    .valley-lp-hero__subtitle {
        margin-left: 0;
    }

    .valley-lp-hero__actions {
        justify-content: flex-start;
        flex-direction: column;
        align-items: flex-start;
    }

    .valley-stats-bar__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .valley-stat-box {
        padding: 1.5rem 1rem;
    }

    .valley-content-sidebar-wrap {
        padding: 2rem 1.25rem 3rem;
    }

    .valley-breadcrumb {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .valley-stats-bar__grid {
        grid-template-columns: 1fr 1fr;
    }

    .valley-hero-trust-strip {
        display: none; /* too cramped on small phones — hide pills */
    }
}


/* ═══════════════════════════════════════════════════════════════
 * 13. GRAVITY FORMS — Dark Theme Override
 *     Applied via .valley-gf-dark class on parent container.
 *     This is form-plugin theming only — layout is Elementor-native.
 * ═══════════════════════════════════════════════════════════════ */

.valley-gf-dark .gform_wrapper { margin: 0 !important; padding: 0 !important; }
.valley-gf-dark .gfield { margin-bottom: 0.75rem !important; padding: 0 !important; }
.valley-gf-dark .gfield_label,
.valley-gf-dark .gform-field-label--type-sub { display: none !important; }

.valley-gf-dark input[type="text"],
.valley-gf-dark input[type="email"],
.valley-gf-dark input[type="tel"],
.valley-gf-dark select {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 0 !important;
    color: #fff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.85rem !important;
    -webkit-appearance: none !important;
}
.valley-gf-dark input::placeholder { color: rgba(255,255,255,0.4) !important; }
.valley-gf-dark input:focus,
.valley-gf-dark select:focus {
    border-color: rgba(255,255,255,0.5) !important;
    outline: none !important;
    background: rgba(255,255,255,0.12) !important;
}
.valley-gf-dark select { color: rgba(255,255,255,0.5) !important; }

.valley-gf-dark .gform_button,
.valley-gf-dark input[type="submit"] {
    width: 100% !important;
    padding: 0.875rem 1.5rem !important;
    background: #F5C518 !important;
    color: #1B3A5C !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer !important;
}
.valley-gf-dark .gform_button:hover { background: #EAB800 !important; }
.valley-gf-dark .gform_footer { margin: 0 !important; padding: 0 !important; }
.valley-gf-dark .gfield_error input { border-color: #C62828 !important; }
.valley-gf-dark .validation_message { color: #F5C518 !important; font-size: 0.72rem !important; }


/* ═══════════════════════════════════════════════════════════════
 * 14. GRAVITY FORMS — Light Theme Override
 *     Applied via .valley-gf-light class on parent container.
 *     White fields on beige/secondary card, navy labels, yellow submit.
 *     Matches the wireframe contact form (light variant).
 * ═══════════════════════════════════════════════════════════════ */

.valley-gf-light .gform_wrapper { margin: 0 !important; padding: 0 !important; }
.valley-gf-light .gfield { margin-bottom: 1.25rem !important; padding: 0 !important; }

/* Labels — shown, uppercase, small, navy */
.valley-gf-light .gfield_label {
    display: block !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.72rem !important;
    font-weight: 500 !important;
    color: #9CA3AF !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    margin-bottom: 0.4rem !important;
}
.valley-gf-light .gfield_required { color: #C49B2F !important; margin-left: 0.15rem !important; }
.valley-gf-light .gform-field-label--type-sub {
    display: block !important;
    font-size: 0.68rem !important;
    color: #9CA3AF !important;
    margin-top: 0.3rem !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: 400 !important;
}

.valley-gf-light input[type="text"],
.valley-gf-light input[type="email"],
.valley-gf-light input[type="tel"],
.valley-gf-light textarea,
.valley-gf-light select {
    width: 100% !important;
    padding: 0.85rem 1rem !important;
    background: #FFFFFF !important;
    border: 1px solid #E8E0D4 !important;
    border-radius: 0 !important;
    color: #1B3A5C !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.85rem !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
}
.valley-gf-light textarea { min-height: 130px !important; resize: vertical !important; }
.valley-gf-light input::placeholder,
.valley-gf-light textarea::placeholder { color: #9CA3AF !important; opacity: 1 !important; }
.valley-gf-light input:focus,
.valley-gf-light textarea:focus,
.valley-gf-light select:focus {
    border-color: #1B3A5C !important;
    outline: none !important;
    background: #FFFFFF !important;
}
.valley-gf-light select { color: #1B3A5C !important; }

/* Submit button — yellow/gold full width */
.valley-gf-light .gform_button,
.valley-gf-light input[type="submit"] {
    width: 100% !important;
    padding: 1rem 1.5rem !important;
    background: #F5C518 !important;
    color: #0F2440 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}
.valley-gf-light .gform_button:hover,
.valley-gf-light input[type="submit"]:hover { background: #EAB800 !important; }
.valley-gf-light .gform_footer { margin: 0 !important; padding: 0 !important; }
.valley-gf-light .gfield_error input,
.valley-gf-light .gfield_error textarea,
.valley-gf-light .gfield_error select { border-color: #C62828 !important; }
.valley-gf-light .validation_message { color: #C62828 !important; font-size: 0.72rem !important; margin-top: 0.35rem !important; }


/* ═══════════════════════════════════════════════════════════════
 * 15. PL OFFERS SHORTCODE — Valley Coupon Cards
 *     Restyles [pl_offers] / BC offers output as classic coupons:
 *     cream paper, dashed navy border, gold "SPECIAL OFFER" eyebrow
 *     with flanking dashes, navy serif headline, red outlined CTA.
 *
 *     Target markup (plugin controlled):
 *       .offers > .offer > .offer-content > .offer-body > {
 *           .offer-cta, .offer-deal, .offer-title, .offer-terms,
 *           .offer-promocode, .offer-expiration, .offer-phone,
 *           .offer-address, .offer-logo
 *       }
 *       .offer-content > .offer-footer > a  (print link → styled as CTA)
 *
 *     Optional brand watermark behind the card:
 *       set `--offer-bg-image: url(/path/to/truck.jpg);` on `.offers`
 *       (or per `.offer`). Defaults to none so cards stay clean cream.
 * ═══════════════════════════════════════════════════════════════ */

/* Grid container — also holds brand tokens for the offer system */
.offers {
    --offer-navy: #1B3A5C;
    --offer-navy-deep: #0F2440;
    --offer-gold: #C49B2F;
    --offer-red: #C62828;
    --offer-paper: #F0E4C7;       /* aged manila-cream fallback */
    --offer-paper-deep: #E3D2A8;  /* darker edge tone */
    --offer-text-muted: #5E6B7E;
    --offer-bg-image: url('/wp-content/uploads/2026/05/cream-parchment-background.png');

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
}
@media (max-width: 1024px) {
    .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
}
@media (max-width: 640px) {
    .offers { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* Card — aged manila paper with torn edges (no straight border).
 * The torn shape is produced by an SVG mask: a solid white rect run through
 * feTurbulence + feDisplacementMap so each edge wavers like ripped paper.
 * The dashed "perforation" sits on `.offer-content` *inside* the tear. */
.offers .offer {
    position: relative;
    background-color: var(--offer-paper);
    background-image: var(--offer-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0;
    text-align: center;
    overflow: hidden;
    transition: transform 0.25s ease, filter 0.25s ease;
    /* SVG-mask torn edges. Same SVG for both `mask` and `-webkit-mask`. */
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' preserveAspectRatio='none'><defs><filter id='t' x='-5%25' y='-5%25' width='110%25' height='110%25'><feTurbulence type='fractalNoise' baseFrequency='0.018' numOctaves='2' seed='4'/><feDisplacementMap in='SourceGraphic' scale='14'/></filter></defs><rect x='8' y='8' width='384' height='384' fill='white' filter='url(%23t)'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' preserveAspectRatio='none'><defs><filter id='t' x='-5%25' y='-5%25' width='110%25' height='110%25'><feTurbulence type='fractalNoise' baseFrequency='0.018' numOctaves='2' seed='4'/><feDisplacementMap in='SourceGraphic' scale='14'/></filter></defs><rect x='8' y='8' width='384' height='384' fill='white' filter='url(%23t)'/></svg>");
    -webkit-mask-size: 100% 100%;
            mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    /* Outer shadow that follows the torn shape; inset shadows still vignette the paper. */
    filter: drop-shadow(0 3px 4px rgba(15, 36, 64, 0.18));
    box-shadow:
        inset 0 0 80px rgba(100, 65, 25, 0.35),
        inset 0 0 18px rgba(100, 65, 25, 0.20);
}
.offers .offer:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 10px 18px rgba(15, 36, 64, 0.22));
}

/* Subtle warm wash — keeps the parchment image readable against the dashed
 * navy perforation and dark text, without hiding the texture. */
.offers .offer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(240, 228, 199, 0.18);
    pointer-events: none;
    z-index: 1;
}

/* Light sepia stains — additive character on top of the real parchment.
 * Diagonal fold creases were removed (they were forming a visible X). */
.offers .offer::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.45;
    background-image:
        radial-gradient(ellipse 50% 35% at 88% 78%, rgba(120, 75, 25, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse 35% 25% at 22% 12%, rgba(100, 60, 20, 0.08) 0%, transparent 55%);
    mix-blend-mode: multiply;
}

.offers .offer-content {
    position: relative;
    z-index: 2;
    margin: 18px;
    padding: 1.75rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    height: calc(100% - 36px);
    /* Perforated coupon line — dashed navy, sits just inside the torn paper edge */
    border: 2px dashed var(--offer-navy);
    border-radius: 2px;
}

/* Offer body — flex column so we can CSS-order children regardless of PL layout_order.
 * border:0 + background:transparent override PL-WordPress-Studio's mg-design-system-v1.css
 * which sets a 3px dashed navy border on .offer-body (would double the coupon edge). */
.offers .offer-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    color: var(--offer-navy);
    flex: 1 1 auto;
    background: transparent;
    border: 0;
    padding: 0;
}
.offers .offer-body:hover { text-decoration: none !important; }

/* Visual order — independent of HTML source order. */
.offers .offer-title      { order: 1; }
.offers .offer-deal       { order: 2; }
.offers .offer-cta        { order: 3; }
.offers .offer-terms      { order: 5; }
.offers .offer-promocode  { order: 6; }
.offers .offer-expiration { order: 7; }
.offers .offer-phone      { order: 8; }
.offers .offer-address    { order: 9; }
.offers .offer-logo       { order: 10; display: none; } /* redundant — header logo covers brand */

/* .offer-title → gold tracked eyebrow ("SPECIAL OFFER") with flanking gold dashes */
.offers .offer-title {
    color: var(--offer-gold);
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-weight: 600;
    margin: 0 0 1.5rem;
    padding: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    width: 100%;
}
.offers .offer-title::before,
.offers .offer-title::after {
    content: '';
    flex: 0 0 28px;
    height: 1px;
    background-color: var(--offer-gold);
}
/* Strip core emoji from eyebrow — keeps the line clean */
.offers .offer-title img.emoji { display: none; }

/* .offer-deal → big navy serif headline.
 * border:0 + padding:0 override mg-design-system-v1.css `h2.offer-deal`. */
.offers .offer-deal {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    font-weight: 600;
    color: var(--offer-navy);
    line-height: 1.35;
    margin: 0 0 1rem;
    padding: 0;
    border: 0;
    background: transparent;
    letter-spacing: normal;
    max-width: 95%;
}

/* .offer-cta → primary red pill button (BC "Call-To-Action" field, e.g.
 * "Claim Offer Today!"). The wrapping <a class="offer-body"> makes the
 * whole card clickable, so the pill is visual only and doesn't need its
 * own href. padding override needed for mg-design-system-v1.css. */
.offers .offer-cta {
    align-self: center;
    display: inline-block;
    margin: 0.25rem auto 1.5rem;
    padding: 0.85rem 2rem;
    background-color: var(--offer-red);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 3px 8px rgba(198, 40, 40, 0.28);
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.offers .offer-body:hover .offer-cta {
    background-color: #A11F1F;
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(198, 40, 40, 0.35);
}

/* .offer-terms → fine print */
.offers .offer-terms {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    line-height: 1.55;
    color: rgba(27, 58, 92, 0.55);
    margin: 0 0 1rem;
    max-width: 90%;
}

/* .offer-promocode → dashed gold pill */
.offers .offer-promocode {
    display: inline-block;
    margin: 0.25rem 0 1rem;
}
.offers .offer-promocode code {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: rgba(196, 155, 47, 0.1);
    border: 1px dashed var(--offer-gold);
    color: var(--offer-gold);
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
}

/* Minor meta rows */
.offers .offer-expiration,
.offers .offer-phone,
.offers .offer-address {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    color: rgba(27, 58, 92, 0.5);
    margin: 0 0 0.35rem;
    letter-spacing: 0.02em;
}
.offers .offer-address span { display: block; }

/* Footer print link → hidden. The full .offer-body anchor wraps every card
 * with the same print href, so this duplicate link adds nothing. The
 * .offer-cta pill above is now the visible call to action. */
.offers .offer-footer { display: none; }


/* ═══════════════════════════════════════════════════════════════
 * 16. PL OFFERS PRINT VIEW — Printer-Friendly Single Coupon
 *     Targets /wp-content/plugins/mg/offers-print.php which sets
 *       body.offers-print > #offers > #offer > .offer ...
 *     Section 15 selectors (.offers ...) don't reach this view because
 *     the container here is `#offers` (ID), so section 16 owns it.
 *
 *     Goals: high-contrast, low-ink, single page, clean cut line.
 *     Strips all parchment / torn-mask / sepia from screen view and
 *     replaces with plain dashed black coupon on white.
 * ═══════════════════════════════════════════════════════════════ */

body.offers-print {
    background: #ffffff;
    color: #000000;
    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

body.offers-print #offers {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    box-sizing: border-box;
}

body.offers-print #offer {
    max-width: 520px;
    width: 100%;
}

/* Coupon card — plain white with dashed black "cut here" border.
 * Resets every vintage layer from section 15 (mask, filter, shadows). */
body.offers-print #offer .offer {
    position: static;
    background: #ffffff !important;
    background-image: none !important;
    border: 2px dashed #000000;
    border-radius: 4px;
    padding: 2.25rem 2rem;
    text-align: center;
    overflow: visible;
    -webkit-mask-image: none;
            mask-image: none;
    box-shadow: none;
    filter: none;
}
body.offers-print #offer .offer::before,
body.offers-print #offer .offer::after { display: none !important; }

body.offers-print #offer .offer-content {
    position: static;
    margin: 0;
    padding: 0;
    border: 0;
    display: block;
    height: auto;
    box-shadow: none;
}

body.offers-print #offer .offer-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    color: #000;
    text-decoration: none !important;
}

/* Visual order on print — title (eyebrow) on top, deal, then CTA. */
body.offers-print #offer .offer-title      { order: 1; }
body.offers-print #offer .offer-deal       { order: 2; }
body.offers-print #offer .offer-cta        { order: 3; }
body.offers-print #offer .offer-terms      { order: 5; }
body.offers-print #offer .offer-promocode  { order: 6; }
body.offers-print #offer .offer-expiration { order: 7; }
body.offers-print #offer .offer-phone      { order: 8; }
body.offers-print #offer .offer-address    { order: 9; }
body.offers-print #offer .offer-logo       { order: 10; }

/* Title — bold uppercase eyebrow with thin black rule below */
body.offers-print #offer .offer-title {
    display: block;
    color: #000;
    background: transparent !important;
    box-shadow: none !important;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 0 0 1rem;
    padding: 0 0 0.75rem;
    border-bottom: 1px solid #000;
}
body.offers-print #offer .offer-title::before,
body.offers-print #offer .offer-title::after { display: none !important; }
body.offers-print #offer .offer-title img.emoji { display: none; }

/* Deal — large serif headline */
body.offers-print #offer .offer-deal {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #000;
    line-height: 1.25;
    margin: 0 0 1rem;
    padding: 0;
    border: 0;
    background: transparent;
    letter-spacing: normal;
}

/* CTA — outlined black box (no red ink wasted) */
body.offers-print #offer .offer-cta {
    display: inline-block;
    align-self: center;
    margin: 0.5rem auto 1.25rem;
    padding: 0.6rem 1.5rem;
    background: transparent !important;
    color: #000 !important;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 2px solid #000;
    border-radius: 3px;
    box-shadow: none;
    transform: none;
}

/* Promo code — dashed black box */
body.offers-print #offer .offer-promocode {
    margin: 0.5rem 0 1rem;
}
body.offers-print #offer .offer-promocode code {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: transparent;
    border: 1px dashed #000;
    color: #000;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Terms / address / phone / expiration */
body.offers-print #offer .offer-terms {
    font-size: 0.78rem;
    line-height: 1.5;
    color: #000;
    margin: 0 auto 1rem;
    max-width: 90%;
}
body.offers-print #offer .offer-expiration,
body.offers-print #offer .offer-phone,
body.offers-print #offer .offer-address {
    font-size: 0.78rem;
    color: #000;
    margin: 0 0 0.3rem;
    letter-spacing: normal;
}
body.offers-print #offer .offer-address span { display: block; }

/* Logo — grayscale, small, centered (visible on print, hidden on screen) */
body.offers-print #offer .offer-logo {
    display: block;
    margin: 1.25rem auto 0;
    order: initial;
}
body.offers-print #offer .offer-logo img {
    max-width: 140px;
    height: auto;
    filter: grayscale(100%);
}

/* Hide the duplicate footer print link */
body.offers-print #offer .offer-footer { display: none; }

/* ── Actual printer output ── */
@media print {
    body.offers-print {
        background: #ffffff !important;
        margin: 0;
    }
    body.offers-print #offers {
        min-height: auto;
        padding: 0.5in 0.25in;
    }
    body.offers-print #offer .offer {
        page-break-inside: avoid;
    }
    /* Strip anything WP/theme might inject */
    body.offers-print #wpadminbar,
    body.offers-print > header,
    body.offers-print > footer,
    body.offers-print > nav,
    body.offers-print .elementor-location-header,
    body.offers-print .elementor-location-footer { display: none !important; }
    /* Make sure outlines/borders print as drawn */
    body.offers-print #offer .offer,
    body.offers-print #offer .offer-cta,
    body.offers-print #offer .offer-promocode code {
        -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
    }
}
