/* AceOne CMS core blocks — Elite Total Health theme adapter */

.cms-block-text,
.cms-block-feature-grid,
.cms-block-faq,
.cms-block-testimonials,
.cms-block-stats-band,
.cms-block-gallery,
.cms-block-image,
.cms-block-content-section,
.cms-block-split-reverse,
.cms-block-module-intro,
.cms-block-module-unknown,
.cms-block-form-module,
.cms-block-cta,
.cms-block-hero {
    --cms-muted: var(--slate);
    --cms-line: var(--line);
    --cms-accent: var(--teal);
    --cms-accent-deep: var(--navy);
}

.cms-block-hero,
.cms-block-cta,
.cms-block-text,
.cms-block-feature-grid,
.cms-block-faq,
.cms-block-testimonials,
.cms-block-stats-band,
.cms-block-gallery,
.cms-block-image,
.cms-block-content-section,
.cms-block-split-reverse,
.cms-block-module-intro,
.cms-block-module-unknown,
.cms-block-form-module {
    font-family: var(--font-body);
}

.cms-block-hero .container,
.cms-block-cta .container,
.cms-block-text .container,
.cms-block-feature-grid .container,
.cms-block-faq .container,
.cms-block-testimonials .container,
.cms-block-stats-band .container,
.cms-block-gallery .container,
.cms-block-image .container,
.cms-block-content-section .container,
.cms-block-split-reverse .container,
.cms-block-module-intro .container,
.cms-block-module-unknown .container,
.cms-block-form-module .container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: clamp(18px, 5vw, 40px);
}

.cms-block-centered-head,
.cms-block-hero .page-header-content,
.cms-block-cta .cta-panel-head,
.cms-block-gallery .section-head,
.cms-block-image .section-head,
.cms-block-stats-band .stats-band-head {
    text-align: center;
    max-width: 760px;
    margin-inline: auto;
}

.section-kicker,
.cms-block-text .section-kicker,
.cms-block-content-section .section-kicker,
.cms-block-split-reverse .section-kicker,
.cms-block-cta .section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 16px;
}

.section-kicker::before,
.cms-block-text .section-kicker::before,
.cms-block-content-section .section-kicker::before,
.cms-block-split-reverse .section-kicker::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--grad-fresh);
    border-radius: 2px;
}

.section-title,
.cms-block-text-title,
.page-title,
.cms-block-feature-grid .section-title,
.cms-block-faq .section-title,
.cms-block-testimonials .section-title,
.cms-block-stats-band .section-title,
.cms-block-gallery .section-title,
.cms-block-image .section-title,
.cms-block-content-section .section-title,
.cms-block-split-reverse .section-title,
.cms-block-module-intro .section-title {
    margin: 0 0 0.75rem;
    font-family: var(--font-head);
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--navy-deep);
}

.section-copy,
.cms-block-text-body,
.content-feature-intro,
.split-showcase-intro,
.content-feature-body,
.split-showcase-body,
.cms-block-module-unknown .section-copy,
.cms-block-gallery .section-copy {
    color: var(--slate);
    line-height: 1.75;
    font-size: 1rem;
}

.cms-block-hero .btn-primary,
.cms-block-cta .btn-primary,
.cms-block-form-module .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.92em 1.5em;
    border-radius: 999px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--navy-deep);
    background: var(--gold);
    box-shadow: 0 10px 26px rgba(246, 196, 22, 0.32);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cms-block-hero .btn-secondary,
.cms-block-cta .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.92em 1.5em;
    border-radius: 999px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--navy);
    background: #fff;
    border: 2px solid var(--line);
    box-shadow: none;
}

.cms-block-hero .btn-primary:hover,
.cms-block-cta .btn-primary:hover,
.cms-block-hero .btn-secondary:hover,
.cms-block-cta .btn-secondary:hover {
    transform: translateY(-2px);
}

.cms-block-hero .hero-actions,
.cms-block-cta .hero-actions,
.cms-block-cta .cta-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
}

.cms-block-hero.page-header {
    position: relative;
    overflow: hidden;
    padding: clamp(72px, 12vw, 140px) 0 clamp(56px, 8vw, 96px);
    background: var(--grad-hero);
    color: #fff;
    background-size: cover;
    background-position: center;
}

.cms-block-hero.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(19, 179, 166, 0.22), transparent 24%),
        radial-gradient(circle at 88% 12%, rgba(246, 196, 22, 0.14), transparent 20%);
    pointer-events: none;
}

.cms-block-hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 23, 51, 0.35), rgba(10, 23, 51, 0.78));
}

.cms-block-hero .page-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 760px;
    margin-inline: auto;
}

.cms-block-hero .page-title,
.cms-block-hero .section-copy,
.cms-block-hero .breadcrumb .current {
    color: #fff;
}

.cms-block-hero .breadcrumb {
    justify-content: center;
    margin-bottom: 0.75rem;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.cms-block-text-editorial,
.section-shell,
.stats-band-panel,
.content-feature-shell,
.split-showcase-shell {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: clamp(24px, 4vw, 40px);
}

.cms-block-text-grid,
.content-feature-grid,
.split-showcase-grid {
    display: grid;
    gap: clamp(24px, 4vw, 40px);
    align-items: center;
}

.cms-block-text-grid.has-media,
.content-feature-grid.has-media,
.split-showcase-grid.has-media {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
}

.split-showcase-grid.has-media {
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr);
}

.cms-block-text-figure,
.content-feature-media,
.split-showcase-media {
    overflow: hidden;
    border-radius: var(--radius);
    min-height: 280px;
    background: var(--off-2);
}

.cms-block-text-figure img,
.content-feature-media img,
.split-showcase-media img,
.cms-block-image img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
}

.feature-grid-list {
    display: grid;
    gap: 18px;
    margin-top: 28px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-grid-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.feature-grid-index {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--teal);
    font-family: var(--font-head);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.feature-grid-card h3 {
    margin: 0 0 10px;
    font-family: var(--font-head);
    font-size: 1.2rem;
    color: var(--navy-deep);
}

.feature-grid-card p {
    margin: 0;
    color: var(--slate);
    line-height: 1.7;
}

.feature-grid-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.feature-grid-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(17, 42, 99, 0.18);
}

.feature-grid-dot.is-active {
    background: var(--teal);
}

.cms-block-faq .faq-list {
    margin-top: 28px;
}

.cms-block-faq .faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}

.cms-block-faq .faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--navy-deep);
}

.cms-block-faq .faq-item summary::-webkit-details-marker {
    display: none;
}

.cms-block-faq .faq-item summary::after {
    content: "+";
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--off-2);
    color: var(--teal);
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    transition: 0.3s;
}

.cms-block-faq .faq-item[open] summary::after {
    content: "×";
    background: var(--teal);
    color: #fff;
}

.cms-block-faq .faq-answer {
    padding: 0 22px 22px;
    color: var(--slate);
}

.cms-block-faq .faq-answer p {
    margin: 0;
    line-height: 1.75;
}

.testimonials-grid {
    display: grid;
    gap: 20px;
    margin-top: 28px;
    grid-template-columns: 1fr;
}

@media (min-width: 680px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1000px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.testimonial-quote {
    margin: 0;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--ink);
}

.testimonial-meta {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.testimonial-meta strong {
    display: block;
    font-family: var(--font-head);
    color: var(--navy-deep);
}

.testimonial-meta span {
    display: block;
    margin-top: 4px;
    color: var(--slate);
    font-size: 0.92rem;
}

.stats-band-grid {
    display: grid;
    gap: 16px;
    margin-top: 28px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stats-band-card {
    background: var(--off);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}

.stats-band-card strong {
    display: block;
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    color: var(--navy-deep);
    line-height: 1;
    margin-bottom: 8px;
}

.stats-band-card span {
    color: var(--slate);
    font-size: 0.95rem;
}

.cms-block-cta {
    padding-block: 0;
}

.cms-block-cta .cta-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(48px, 8vw, 88px) clamp(24px, 5vw, 40px);
    background: var(--grad-hero);
    color: #fff;
    border-radius: 0;
    text-align: center;
}

.cms-block-cta .cta-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(19, 179, 166, 0.24), transparent 28%),
        radial-gradient(circle at bottom left, rgba(246, 196, 22, 0.12), transparent 30%);
    pointer-events: none;
}

.cms-block-cta .cta-panel-head {
    position: relative;
    z-index: 1;
}

.cms-block-cta .section-title,
.cms-block-cta .section-copy,
.cms-block-cta .section-kicker {
    color: #fff;
}

.cms-block-cta .section-kicker::before {
    background: rgba(255, 255, 255, 0.55);
}

.cms-block-cta .cta-panel-actions {
    position: relative;
    z-index: 1;
}

.gallery-grid {
    display: grid;
    gap: 16px;
    margin-top: 28px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery-item {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--off-2);
    border: 1px solid var(--line);
}

.gallery-lightbox-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-lightbox-trigger:hover img {
    transform: scale(1.03);
}

.cms-rich-content p {
    margin: 0 0 1rem;
}

.cms-rich-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .cms-block-text-grid.has-media,
    .content-feature-grid.has-media,
    .split-showcase-grid.has-media {
        grid-template-columns: 1fr;
    }
}
