/* ============================================================
   Smart Media Manager — Front-end & Block Editor Styles
   Therapy / Wellness layout — warm, professional palette
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --smm-cream:      #F5EFE6;
    --smm-beige:      #E4D6C5;
    --smm-brown:      #8B6F47;
    --smm-dark:       #3A2E26;
    --smm-teal:       #4A9B8E;
    --smm-teal-light: #6BB8AC;
    --smm-teal-dark:  #357A6E;
    --smm-text:       #3D3530;
    --smm-muted:      #6B5C52;
    --smm-radius:     12px;
    --smm-shadow:     0 4px 20px rgba(0,0,0,0.10);
    --smm-transition: 0.25s ease;
}

/* ── Hero Cover Block ──────────────────────────────────────── */
.smm-hero.wp-block-cover {
    background-color: var(--smm-dark);
    position: relative;
}

.smm-hero .wp-block-cover__image-background {
    object-fit: cover;
    filter: brightness(0.6);
}

.smm-hero-heading.wp-block-heading,
.smm-hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
    color: #ffffff !important;
    margin: 0;
}

.smm-hero .wp-block-cover__inner-container {
    padding: 0 24px;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

/* Standalone page title (no hero image) */
.smm-hero-title-text.wp-block-heading {
    font-size: clamp(28px, 4vw, 48px);
    color: var(--smm-dark);
    text-align: center;
    padding: 48px 24px 16px;
    margin-bottom: 0;
}

/* ── Media-Text Sections ───────────────────────────────────── */
.smm-media-section.wp-block-media-text {
    gap: 48px;
    padding: 56px 32px;
    align-items: center;
    background: transparent;
	max-width: 1366px;
}

/* Alternating background tints */
.smm-media-section:nth-child(odd) {
    background-color: var(--smm-cream);
}

.smm-media-section:nth-child(even) {
    background-color: #ffffff;
}

.smm-media-section .wp-block-media-text__media img {
    border-radius: var(--smm-radius);
    box-shadow: var(--smm-shadow);
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    transition: transform var(--smm-transition), box-shadow var(--smm-transition);
}

.smm-media-section .wp-block-media-text__media img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 32px rgba(0,0,0,0.16);
}

.smm-media-section .wp-block-media-text__content {
    padding: 0;
}

/* ── Headings inside sections ──────────────────────────────── */
.smm-media-section h2,
.smm-media-section h3,
.smm-media-section h4 {
    color: var(--smm-teal-dark);
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 16px;
    line-height: 1.3;
    position: relative;
    padding-bottom: 12px;
}

.smm-media-section h2::after,
.smm-media-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--smm-teal);
    border-radius: 2px;
}

/* ── Paragraphs inside sections ────────────────────────────── */
.smm-media-section p,
.smm-media-section .wp-block-paragraph {
    color: var(--smm-text);
    font-size: 17px;
    line-height: 1.85;
    margin-bottom: 14px;
}

/* ── Stand-alone headings (no adjacent image) ──────────────── */
.wp-block-heading {
    color: var(--smm-dark);
}

h1.wp-block-heading {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.2;
}

h2.wp-block-heading {
    font-size: clamp(22px, 3vw, 32px);
    color: var(--smm-teal-dark);
    margin-top: 40px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--smm-beige);
}

h3.wp-block-heading {
    font-size: clamp(18px, 2.2vw, 24px);
    color: var(--smm-brown);
    margin-top: 32px;
}

/* ── Stand-alone paragraphs ────────────────────────────────── */
.wp-block-paragraph {
    font-size: 17px;
    line-height: 1.85;
    color: var(--smm-text);
    max-width: 72ch;
}

/* ── Images with alignleft / alignright ────────────────────── */
.wp-block-image.alignleft,
.wp-block-image.alignright {
    max-width: 44%;
}

.wp-block-image.alignleft {
    float: left;
    margin: 0 32px 24px 0;
}

.wp-block-image.alignright {
    float: right;
    margin: 0 0 24px 32px;
}

.wp-block-image img {
    border-radius: var(--smm-radius);
    box-shadow: var(--smm-shadow);
    width: 100%;
    height: auto;
}

/* ── Mobile Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
    .smm-media-section.wp-block-media-text {
        padding: 36px 20px;
        gap: 28px;
    }

    .smm-media-section.wp-block-media-text.is-stacked-on-mobile {
        grid-template-columns: 1fr;
    }

    .smm-media-section .wp-block-media-text__media img {
        aspect-ratio: 16 / 9;
    }

    .wp-block-image.alignleft,
    .wp-block-image.alignright {
        float: none;
        max-width: 100%;
        margin: 0 0 20px 0;
    }
}

/* ── Block Editor overrides ────────────────────────────────── */
.editor-styles-wrapper .smm-hero-heading {
    color: #ffffff !important;
}

.editor-styles-wrapper .smm-media-section:nth-child(odd) {
    background-color: var(--smm-cream);
}

.editor-styles-wrapper .smm-media-section:nth-child(even) {
    background-color: #ffffff;
}
