/*
 * 50 Page dream sensor.
 * Load order: content-style.css -> css/05-header.css -> css/05-footer.css -> css/10-content-patterns.css -> css/11-tabs-block.css -> css/15-woocommerce.css -> css/20-page-patterns.css -> css/20-support-pages.css -> style.css -> css/pages/50-page-*.css.
 * Purpose: Dream Sensor page-only section overrides loaded on page ID 15514.
 * Related files: content-style.css holds tokens/base utilities; css/10-content-patterns.css holds reusable components.
 * Scope: these rules were moved from style.css and editor-style.css, targeting .dmax-dream-* and .dmax-dream-opensensor-* classes.
 */

/* ============================================================
   Dream Sensor — Frontend
   ============================================================ */

/* ── S1: Hero ─────────────────────────────────────────────────── */
.dmax-dream-hero-section {
    background: #000000;
}

.dmax-dream-hero-title {
    max-width: 680px;
}

.dmax-dream-report {
    margin: 0 0 28px;
    color: #fff;
    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 1.5;
}

.dmax-dream-report a {
    color: var(--dmax-sky);
    font-weight: 700;
}

/* .dmax-dream-spec-tabs {...} */

.dmax-dream-hero-image img {
    width: min(100%, 520px);
    max-height: 760px;
    object-fit: contain;
    margin-inline: auto; }

.dmax-dream-hero-buttons {
    margin-top: 28px;
}

/* ── S2: Benefits ─────────────────────────────────────────────── */
.dmax-dream-benefits-section {
    background: #fff;
}

.dmax-dream-benefits-title {
    max-width: 620px;
    /* padding-top: 30px; */
    margin-bottom: 30px;
}

.dmax-dream-benefits-section .gform-footer.gform_footer.top_label {
    /* padding-bottom: 0; */
}
.dmax-dream-benefits-section .gform_wrapper.gravity-theme .gform_footer input {
    /* margin-bottom: 0; */
}

@media (max-width: 768px) {
    .survey_wrapper .gform_title {
        /* padding-top: calc(var(--global-kb-row-default-top, var(--global-kb-spacing-sm, 1.5rem))); */
        padding-top: clamp(45px, 4vw, 75px);
    }
}

@media (max-width: 1024px) {
    .dmax-dream-benefits-form {
        padding-left: 0;
        padding-right: 0;
    }
}

/* ── Comfort & Durability Redesign ─────────────────────────── */
@media (max-width: 767px) {
    .dmax-cover-image {
        min-height: 280px;
    }
}

.dmax-cover-image {
    height: 100%;
}

.dmax-cover-image img {
    /* width: 100%; */
    /* height: 100%; */
    /* object-fit: cover; */
}

/* ── Comfort image treatment ──────────────────────────────── */
/* Shadow/border on parent so overflow:hidden doesn't clip glow */
.kadence-columndreamcomfortnestedc2 > .kt-inside-inner-col {
    /* transition: box-shadow 0.35s ease, transform 0.35s ease; */
    transition: transform 0.35s ease;
}

.kadence-columndreamcomfortnestedc2 > .kt-inside-inner-col:hover {
    transform: translateY(-4px);
}

/* Clip image to rounded corners */
.kb-imagedreamcomfortimg {
    overflow: hidden;
    border-radius: 16px;
}

.kb-imagedreamcomfortimg img {
    /* display: block; */
    /* border-radius: 16px; */
}

.dmax-comfort-intro,
div.single-content p.dmax-comfort-intro,
.editor-styles-wrapper div.single-content p.dmax-comfort-intro {
    color: #fff;
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.65;
    /* margin-bottom: 2rem; */
    margin-bottom: 0;
}

/* ── Stat callouts ────────────────────────────────────────── */
.dmax-comfort-stats {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2.25rem;
}

.dmax-comfort-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dmax-comfort-stat-icon {
    font-size: 1.5rem;
    color: var(--dmax-sky);
    margin-bottom: 0.5rem;
}

.dmax-comfort-stat-value {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.dmax-comfort-stat-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* ── Scroll-reveal animation (Intersection Observer) ──────── */
@media (prefers-reduced-motion: reduce) {
    html.js [data-animate] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

[data-animate] {
    opacity: 1;
    transform: none;
}

html.js [data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: calc(var(--reveal-delay, 0) * 1ms);
}

html.js [data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Feature cards grid ───────────────────────────────────── */
.dmax-comfort-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* Last item spans full width when odd count */
.dmax-comfort-features .dmax-comfort-feature:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.dmax-comfort-feature {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.dmax-comfort-feature:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(60, 188, 230, 0.25);
}

.dmax-comfort-feature-icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--dmax-sky);
    background: rgba(60, 188, 230, 0.1);
    border-radius: 6px;
}

.dmax-comfort-feature-text {
    display: flex;
    flex-direction: column;
}

.dmax-comfort-feature-text strong {
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
}

.dmax-comfort-feature-text span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8125rem;
    line-height: 1.3;
}

@media (max-width: 767px) {
    /* Image first on mobile (visual hook), then text/features */
    .kb-row-layout-iddreamcomfortnested > .kt-row-column-wrap {
        display: flex;
        flex-direction: column;
    }

    .kadence-columndreamcomfortnestedc1 {
        order: 2;
    }

    .kadence-columndreamcomfortnestedc2 {
        order: 1;
    }

    /* Cap image height so it doesn't dominate */
    .dmax-cover-image {
        max-height: 320px;
    }

    /* Center intro text on mobile */
    .dmax-comfort-intro {
        text-align: center;
    }

    .dmax-comfort-stats {
        /* gap: 0.75rem; */
        gap: 0.625rem;
        margin-bottom: 0.625rem;
    }

    .dmax-comfort-stat-label {
        font-size: 0.75rem;
    }

    .dmax-comfort-stat {
        padding: 1rem 0.25rem;
    }

    .dmax-comfort-stat-icon {
        font-size: 1.25rem;
    }

    .dmax-comfort-features {
        grid-template-columns: 1fr;
    }

    .dmax-comfort-features .dmax-comfort-feature:last-child:nth-child(odd) {
        grid-column: auto;
    }
}

/* Style the YouTube Embed Plus wrapper to match Flow page video aesthetics */
.dmax-dream-experts-section .epyt-video-wrapper {
    width: 100%;
    max-width: 960px;
    margin: 0 auto 2.5rem !important;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(11, 31, 51, 0.15);
    border: 1px solid rgba(136, 215, 212, 0.3);
}

.dmax-dream-experts-section .epyt-facade {
    border-radius: 12px;
}

.dmax-dream-experts-section .epyt-facade-poster {
    border-radius: 12px;
}

.dmax-dream-experts-blurb,
.single-content p.dmax-dream-experts-blurb {
    max-width: 666px;
    margin: clamp(16px, 3.5vw, 3.5rem) auto clamp(2rem, 4.5vw, 5.3125rem);
    font-size: clamp(16px, 1.5vw, 21px);
    line-height: 1.45;
    color: #000;
}

.dmax-dream-experts-logos {
    justify-content: center;
    align-items: center;
}

.dmax-dream-experts-logos .wp-block-kadence-column {
    flex-basis: auto;
    max-width: 200px;
}

.dmax-expert-logo {
    text-align: center;
    margin: 0 auto;
}

.dmax-expert-logo img {
    max-height: 100px;
    width: auto;
    display: inline-block;
}

@media (max-width: 767px) {
    .dmax-expert-logo img {
        max-height: 85px;
    }
}

.dmax-expert-logo a:hover img {
    opacity: 0.8;
}

/* ── Open Sensor CTA section (on Dream Sensor page) ──────── */
.dmax-dream-opensensor-section {
    align-items: center;
    background: linear-gradient(90deg, var(--dmax-navy) 19.38%, #000 58.68%);
    min-height: 592px;
    padding: 0;
}

.dmax-dream-opensensor-section .kt-row-column-wrap {
    align-items: center;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.dmax-dream-opensensor-section .kadence-columndreamopensensorc1 .kt-inside-inner-col {
    padding-left: var(--theme-gutter, 13.8888888889vw);
    padding-right: 5rem;
}

.dmax-dream-opensensor-title {
    color: #fff;
    max-width: 620px;
    margin-bottom: 18px;
}

.dmax-dream-opensensor-copy {
    color: #fff;
    font-size: clamp(16px, 1.5vw, 26px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 36px;
}

.dmax-dream-opensensor-buttons {
    margin-top: 0;
}

.dmax-dream-opensensor-buttons .button-style-secondary, .dmax-dream-opensensor-buttons .button-style-secondary:visited {
    background: transparent;
    border-color: #fff;
    color: #fff;
}

.dmax-dream-opensensor-buttons .button-style-secondary:hover, .dmax-dream-opensensor-buttons .button-style-secondary:focus {
    background: var(--dmax-sky);
    border-color: var(--dmax-sky);
    color: #000;
}

.dmax-dream-opensensor-image img {
    width: min(100%, 622px);
    height: auto;
    margin-inline: auto;
}

@media (max-width: 680px) {
    .dmax-dream-benefits-section {
        padding-bottom: 0;
    }
}
@media (max-width: 767px) {
    .dmax-dream-opensensor-section {
        min-height: 0;
        padding: 64px 0 0;
    }

    .dmax-dream-opensensor-section .kadence-columndreamopensensorc1 .kt-inside-inner-col {
        padding-left: var(--theme-gutter, 33px);
        padding-right: var(--theme-gutter, 33px);
        padding-bottom: 48px;
    }

    .dmax-dream-opensensor-image img {
        width: 100%;
        max-width: 400px;
    }
}

/* ============================================================
   Dream Sensor — Editor
   ============================================================ */

.editor-styles-wrapper .dmax-dream-hero-section {
    background: #000000;
}

.editor-styles-wrapper .dmax-dream-hero-title {
    max-width: 680px;
}

.editor-styles-wrapper .dmax-dream-report {
    margin: 0 0 28px;
    color: #fff;
    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 1.5;
}

.editor-styles-wrapper .dmax-dream-report a {
    color: var(--dmax-sky);
    font-weight: 700;
}

.editor-styles-wrapper .dmax-dream-hero-image img {
    width: min(100%, 520px);
    max-height: 760px;
    object-fit: contain;
    margin-inline: auto;
}

.editor-styles-wrapper .dmax-dream-hero-buttons {
    margin-top: 28px;
}

.editor-styles-wrapper .dmax-dream-benefits-section {
    background: #ffffff;
}

.editor-styles-wrapper .dmax-dream-benefits-title {
    max-width: 620px;
    padding-top: 30px;
    margin-bottom: 30px;
}

.editor-styles-wrapper .dmax-dream-comfort-nested {
    margin-top: 0;
}

.editor-styles-wrapper .dmax-cover-image {
    height: 100%;
}

.editor-styles-wrapper .dmax-cover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.editor-styles-wrapper .kb-imagedreamcomfortimg {
    overflow: hidden;
    border-radius: 16px;
}

.editor-styles-wrapper .kb-imagedreamcomfortimg img {
    display: block;
    border-radius: 16px;
}

.editor-styles-wrapper .dmax-comfort-intro {
    color: #fff;
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.65;
    /* margin-bottom: 2rem; */
    margin-bottom: 0;
}

.editor-styles-wrapper .dmax-comfort-stats {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2.25rem;
}
.editor-styles-wrapper .dmax-comfort-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.editor-styles-wrapper .dmax-comfort-stat-icon {
    font-size: 1.5rem;
    color: var(--dmax-sky);
    margin-bottom: 0.5rem;
}
.editor-styles-wrapper .dmax-comfort-stat-value {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.editor-styles-wrapper .dmax-comfort-stat-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-top: 0.25rem;
}
.editor-styles-wrapper .dmax-comfort-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.editor-styles-wrapper .dmax-comfort-features .dmax-comfort-feature:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}
.editor-styles-wrapper .dmax-comfort-feature {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.editor-styles-wrapper .dmax-comfort-feature-icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--dmax-sky);
    background: rgba(60, 188, 230, 0.1);
    border-radius: 6px;
}
.editor-styles-wrapper .dmax-comfort-feature-text {
    display: flex;
    flex-direction: column;
}
.editor-styles-wrapper .dmax-comfort-feature-text strong {
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
}
.editor-styles-wrapper .dmax-comfort-feature-text span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8125rem;
    line-height: 1.3;
}

.editor-styles-wrapper .dmax-dream-opensensor-section {
    align-items: center;
    background: linear-gradient(90deg, var(--dmax-navy) 19.38%, #000 58.68%);
    min-height: 592px;
    padding: 0;
}
.editor-styles-wrapper .dmax-dream-opensensor-section .kt-row-column-wrap {
    align-items: center;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.editor-styles-wrapper .dmax-dream-opensensor-section .kadence-columndreamopensensorc1 .kt-inside-inner-col {
    padding-left: var(--theme-gutter, 13.8888888889vw);
    padding-right: 5rem;
}
.editor-styles-wrapper .dmax-dream-opensensor-title {
    color: #fff;
    max-width: 620px;
    margin-bottom: 18px;
}
.editor-styles-wrapper .dmax-dream-opensensor-copy {
    color: #fff;
    font-size: clamp(16px, 1.5vw, 26px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 36px;
}
.editor-styles-wrapper .dmax-dream-opensensor-buttons {
    margin-top: 0;
}
.editor-styles-wrapper .dmax-dream-opensensor-buttons .button-style-secondary,
.editor-styles-wrapper .dmax-dream-opensensor-buttons .button-style-secondary:visited {
    background: transparent;
    border-color: #fff;
    color: #fff;
}
.editor-styles-wrapper .dmax-dream-opensensor-buttons .button-style-secondary:hover,
.editor-styles-wrapper .dmax-dream-opensensor-buttons .button-style-secondary:focus {
    background: var(--dmax-sky);
    border-color: var(--dmax-sky);
    color: #000;
}
.editor-styles-wrapper .dmax-dream-opensensor-image img {
    width: min(100%, 622px);
    height: auto;
    margin-inline: auto;
}
