/* ==========================================================================
   Conditions New Page - Premium CSS Styles
   ========================================================================== */

:root {
    --wm-teal: #5BA8A0;
    --wm-teal-hover: #4a8d86;
    --wm-heading-dark: #2E3030;
    --wm-body-brown: #60403E;
    --wm-bg-cream: #FBF9F6;
    --wm-pastel-pink: #FCECEB;
    --wm-pastel-pink-text: #D18C85;
    --wm-pastel-blue: #EAF2F4;
    --wm-pastel-blue-text: #5b7fa3;
    --wm-pastel-orange: #FCEFD5;
    --wm-pastel-orange-text: #B5844B;
    --wm-card-bg: #FFFFFF;
}

.conditions-new-page-wrapper {
    background-color: var(--wm-bg-cream);
    font-family: 'Inter', sans-serif;
    color: var(--wm-body-brown);
    overflow-x: hidden;
}

/* ==========================================================================
   Global / Shared Styles
   ========================================================================== */

/* Buttons */
.conditions-new-page-wrapper .btn-wm-primary {
    background-color: var(--wm-teal) !important;
    color: #FFFFFF !important;
    border: none !important;
    font-size: 0.88rem;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(91, 168, 160, 0.15);
}

.conditions-new-page-wrapper .btn-wm-primary:hover {
    background-color: var(--wm-secondary) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(114, 165, 159, 0.2);
}

.conditions-new-page-wrapper .btn-wm-outline {
    background-color: transparent !important;
    color: var(--wm-heading-dark) !important;
    border: 2px solid var(--wm-heading-dark) !important;
    font-size: 0.88rem;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.conditions-new-page-wrapper .btn-wm-outline:hover {
    background-color: var(--wm-heading-dark) !important;
    color: #FFFFFF !important;
    transform: translateY(-3px);
}

/* Tagline Component */
.conditions-new-page-wrapper .tagline {
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.conditions-new-page-wrapper .tagline-dot {
    width: 30px;
    height: 1px;
    background: var(--wm-heading-dark);
    display: inline-block;
    margin-right: 10px;
}

.conditions-new-page-wrapper .tagline-text {
    font-weight: 700;
    color: var(--wm-subheading);
}

/* Image Frames */
.conditions-hero-img,
.conditions-landscape-img,
.conditions-repro-img {
    border: 6px solid #FFFFFF;
    border-radius: 120px 24px;
    box-shadow: 0 20px 45px rgba(96, 64, 62, 0.06);
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Hero & Landscape images: reduce height slightly (~12%) */
.conditions-hero-img,
.conditions-landscape-img {
    max-height: 620px;
    width: auto;
    max-width: 100%;
    object-fit: cover;
}

.conditions-hero-img:hover,
.conditions-landscape-img:hover,
.conditions-repro-img:hover {
    transform: scale(1.02);
}

/* Placeholder Frames — hero & landscape (slightly reduced) */
.conditions-hero-placeholder-frame,
.conditions-landscape-placeholder-frame {
    width: 420px;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F1EE 100%);
    border: 6px solid #FFFFFF;
    border-radius: 120px 24px;
    box-shadow: 0 20px 45px rgba(96, 64, 62, 0.05);
}

/* Placeholder Frame — repro section (full size) */
.conditions-repro-placeholder-frame {
    width: 480px;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F1EE 100%);
    border: 6px solid #FFFFFF;
    border-radius: 120px 24px;
    box-shadow: 0 20px 45px rgba(96, 64, 62, 0.05);
}

/* Faint Line Art SVG Background Overlays */
.flower-overlay-graphic,
.flower-overlay-graphic-repro {
    position: absolute;
    width: 180px;
    height: 180px;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 1;
    opacity: 0.18;
}

.flower-overlay-graphic {
    top: -50px;
    right: -40px;
    transform: rotate(15deg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M30 90 C35 70 50 40 75 25 M75 25 C65 30 55 25 50 15 C45 25 55 35 75 25 M48 56 C38 58 28 50 32 40 C38 35 44 42 48 56 M58 42 C65 30 55 20 45 28 C40 35 48 45 58 42 M35 75 C25 70 20 58 28 50 C35 45 40 58 35 75' fill='none' stroke='%2360403E' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

.flower-overlay-graphic-repro {
    top: -60px;
    left: -50px;
    transform: rotate(-25deg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 90 C50 60 60 30 75 15 M50 70 C40 65 35 55 42 48 C48 42 58 46 50 70 M53 55 C65 50 70 40 63 33 C57 27 47 31 53 55 M47 40 C35 35 30 25 37 18 C43 12 53 16 47 40' fill='none' stroke='%2360403E' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Hero Section Divider
   ========================================================================== */
.service-hero-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 2;
}

.hero-divider-svg,
.hero-divider-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Section background image — applied when ACF bg set via inline url() */
.conditions-new-hero[style],
.conditions-new-landscape[style],
.conditions-new-grid[style],
.conditions-new-repro[style],
.conditions-new-specialization[style] {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Spec icon fallback text */
.spec-icon-fallback {
    font-size: 32px;
    color: #fff;
    line-height: 1;
}

.conditions-new-hero {
    background-color: var(--hero-background-color);
    padding: 50px 0 170px 0 !important;
}

.conditions-new-hero .hero-main-title {
    font-family: 'Domine', serif;
    font-weight: 700;
    font-size: 3.8rem;
    color: var(--wm-heading-dark);
    color: white;
    line-height: 1.15;
}

.conditions-new-hero .hero-desc-text {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--wm-body-brown);
    color: white;
    opacity: 0.95;
    max-width: 580px;
}

.conditions-new-hero .tagline-dot {
    background: #ffffff;
}

.conditions-new-hero .tagline-text {
    color: #ffffff;
}

.conditions-new-hero .btn-wm-primary {
    background: white !important;
    color: #347d75 !important;
    border: 1px solid transparent !important
}

.conditions-new-hero .btn-wm-primary:hover {
    background-color: transparent !important;
    color: white !important;
    border: 1px solid white !important
}

.conditions-new-hero .btn-wm-outline {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
}

/* ==========================================================================
   2. Landscape Section
   ========================================================================== */
.landscape-wave-divider {
    margin-top: -80px;
    position: relative;
    z-index: 5;
}

.conditions-new-landscape {
    padding: 50px 0 !important;
    background-color: #f5f5f5;
}

.conditions-new-landscape .landscape-main-title {
    font-family: 'Domine', serif;
    font-weight: 700;
    font-size: 3.8rem;
    color: var(--wm-heading-dark);
    line-height: 1.2;

}

.conditions-new-landscape .landscape-desc-primary {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--wm-body-brown);
    font-weight: 500;
}

.conditions-new-landscape .landscape-desc-secondary {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--wm-body-brown);
    opacity: 0.85;
}

/* ==========================================================================
   3. Grid Section (Conditions We Treat)
   ========================================================================== */
.conditions-new-grid {
    padding: 100px 0 !important;
    background-color: #F8F6F3;
}

.conditions-new-grid .grid-section-title {
    font-family: 'Domine', serif;
    font-size: 3.8rem;
    font-weight: 700;
    color: var(--wm-heading-dark);
    margin-bottom: 50px;
}

.cond-grid-card {
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--wm-teal);
    /* border-top-color overridden inline per card from ACF accent */
    box-shadow: 0 8px 24px rgba(96, 64, 62, 0.05), 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    min-height: 300px;
    overflow: hidden;
    padding: 32px 20px !important;
}

.cond-grid-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 44px rgba(91, 168, 160, 0.12), 0 6px 16px rgba(0, 0, 0, 0.04);
    border-color: rgba(91, 168, 160, 0.25);
}

.cond-card-icon-wrap {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: none !important;
}

.cond-grid-card:hover .cond-card-icon-wrap {
    transform: scale(1.08) rotate(5deg);
}

.cond-card-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

/* Default icon wrap (no ACF image) */
.cond-card-icon-wrap--default {
    background-color: #e6f4f1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    width: 90px;
    height: 90px;
}

.cond-card-icon-emoji {
    font-size: 26px;
    line-height: 1;
}

.cond-card-title {
    font-family: 'Domine', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--wm-heading-dark);
    line-height: 1.3;
    margin-bottom: 10px;
}

.cond-card-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--wm-body-brown);
    opacity: 0.82;
    max-width: 220px;
    margin: 0 auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.88em;
    /* 2 lines × 1.6 line-height × 0.9rem */
    margin-bottom: 16px !important;
}

.cond-card-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    /* color is set inline per-card from ACF accent color */
}

.cond-card-link:hover {
    letter-spacing: 2.5px;
}

/* ==========================================================================
   4. Reproductive Section
   ========================================================================== */
.conditions-new-repro {
    padding: 120px 0 !important;
    background-color: var(--wm-bg-cream);
    max-height: 750px;
}

.conditions-new-repro .repro-main-title {
    font-family: 'Domine', serif;
    font-size: 3.8rem;
    font-weight: 700;
    color: var(--wm-heading-dark);
    line-height: 1.2;
    max-width: 650px;
}

.conditions-new-repro .repro-desc-text {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--wm-body-brown);
    opacity: 0.95;
    max-width: 650px;
}

.conditions-new-repro .repro-image-container img {
    max-height: 500px;
}

/* ==========================================================================
   5. Specialization Section
   ========================================================================== */
.conditions-new-specialization {
    padding: 100px 0 !important;
    background-color: #F5F2EE;
}

.conditions-new-specialization .spec-main-title {
    font-family: 'Domine', serif;
    font-size: 3.8rem;
    font-weight: 700;
    color: var(--wm-heading-dark);
    line-height: 1.2;
    text-align: center;
    max-width: 720px;
    margin: 0 auto 1.5rem auto;
}

.conditions-new-specialization .spec-subtitle-text {
    font-size: 1.3rem;
    line-height: 30px;
    color: var(--wm-body-brown);
    opacity: 0.9;
    max-width: 720px;
    margin: 0 auto;
}

/* Spec horizontal item — white card with icon + text */
.spec-item-row {
    background-color: #FFFFFF;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 8px 28px rgba(96, 64, 62, 0.05), 0 2px 8px rgba(0, 0, 0, 0.02);
    padding: 28px 24px;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    min-height: 290px;
    display: flex !important;
    place-content: center !important;
    align-items: center !important;
}


.spec-icon-big {
    width: 100px;
    height: 100px;
    min-width: 100px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    flex-shrink: 0;
}


.spec-icon-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    display: block;
}

.spec-item-text-block {
    flex: 1;
    min-width: 0;
}

.spec-item-title {
    font-family: 'Domine', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wm-heading-dark);
    line-height: 1.25;
    margin-bottom: 10px;
}

.spec-item-accent-line {
    width: 40px;
    height: 2.5px;
    border-radius: 2px;
    opacity: 0.85;
}

.spec-item-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.97rem;
    line-height: 1.72;
    color: var(--wm-body-brown);
    opacity: 0.88;
}

/* ==========================================================================
   6. CTA Section  — same sizing as .about-new-cta-section / .cta-banner-new
   ========================================================================== */
.conditions-new-cta {
    padding: 80px 0 120px 0 !important;
    background-color: var(--wm-bg-cream);
}

.conditions-cta-banner {
    background-color: var(--wm-pastel-blue);
    border-radius: 24px;
    border: 3px solid #FFFFFF;
    max-width: 1140px;
    width: 100%;
    position: relative;
    z-index: 2;
    padding: 60px 40px !important;
    box-shadow: 0 15px 40px rgba(96, 64, 62, 0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.conditions-cta-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(96, 64, 62, 0.08);
}

.conditions-cta-banner .cta-title {
    font-family: 'Domine', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--wm-heading-dark);
    margin-bottom: 15px !important;
}

.conditions-cta-banner .cta-subtitle {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--wm-body-brown);
    opacity: 0.95;
    max-width: 680px;
    margin: 0 auto 30px auto !important;
}

/* ==========================================================================
   Responsive / Media Queries
   ========================================================================== */

@media (max-width: 1199.98px) {

    .conditions-new-hero .hero-main-title,
    .conditions-new-repro .repro-main-title {
        font-size: 3rem;
    }
}

@media (max-width: 991.98px) {
    .conditions-new-hero {
        padding: 40px 0 50px 0 !important;
    }

    .conditions-new-hero .hero-main-title,
    .conditions-new-landscape .landscape-main-title,
    .conditions-new-grid .grid-section-title,
    .conditions-new-repro .repro-main-title,
    .conditions-new-specialization .spec-main-title {
        font-size: 2.5rem;
    }

    .conditions-cta-banner {
        padding: 40px 20px !important;
    }

    .conditions-cta-banner .cta-title,
    .conditions-cta-banner h2.cta-title {
        font-size: 2.2rem !important;
    }

    .conditions-hero-img,
    .conditions-landscape-img,
    .conditions-repro-img {
        max-width: 420px;
        margin-top: 20px;
    }
}

@media (max-width: 767.98px) {

    .conditions-new-hero {
        padding: 60px 0 0 !important;
    }

    .conditions-new-landscape,
    .conditions-new-grid,
    .conditions-new-repro,
    .conditions-new-specialization {
        padding: 60px 0 !important;
    }

    .spec-item-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .spec-icon-big {
        width: 80px !important;
        height: 80px !important;
        min-width: 80px !important;
    }

    .spec-icon-img {
        width: 90px !important;
        height: 90px !important;
    }

    .spec-item-accent-line {
        margin: 0 auto;
    }

    .conditions-new-hero .hero-main-title,
    .conditions-new-landscape .landscape-main-title,
    .conditions-new-grid .grid-section-title,
    .conditions-new-repro .repro-main-title,
    .conditions-new-specialization .spec-main-title {
        font-size: 2rem;
    }

    .conditions-cta-banner .cta-title,
    .conditions-cta-banner h2.cta-title {
        font-size: 1.8rem !important;
    }

    .cond-grid-card {
        min-height: auto;
        padding: 30px 20px !important;
    }

    .conditions-hero-img,
    .conditions-landscape-img,
    .conditions-repro-img {
        max-width: 100%;
        border-radius: 60px 16px;
    }
}