/* ============================================
   MIMAAMAKIMM - Landing Page Redesign v2
   Compact, no-scroll, bubble gallery, modal explanations
   ============================================ */

:root {
    /* Individual palette - warm sage */
    --ind-50: #f0f9f6;
    --ind-100: #dcf0e8;
    --ind-200: #bce0d3;
    --ind-300: #8fcaa9;
    --ind-400: #5fae80;
    --ind-500: #3f9568;
    --ind-600: #2e7a52;
    --ind-700: #286345;
    --ind-800: #225038;
    --ind-soft: #e8f5ee;
    --ind-soft-2: #f5fbf8;

    /* Organization palette - deep indigo + warm gold */
    --org-50: #f4f5fb;
    --org-100: #e6e8f5;
    --org-200: #c9cdeb;
    --org-300: #a3a8d8;
    --org-400: #7d82c2;
    --org-500: #5d62a8;
    --org-600: #4a4f8c;
    --org-700: #3d4174;
    --org-800: #2f3357;
    --org-900: #1f2340;
    --gold-300: #e8c878;
    --gold-400: #d9b35a;
    --gold-500: #c89b3c;
    --gold-600: #a87f2a;
    --org-soft: #eef0fb;
    --org-soft-2: #f7f8fd;

    --surface-glass: rgba(255, 255, 255, 0.75);
    --shadow-soft: 0 8px 32px rgba(13, 71, 50, 0.06);
    --shadow-lift: 0 16px 48px rgba(13, 71, 50, 0.1);
}

/* ============================================
   HEADER COMPACT
   ============================================ */
.header-compact {
    padding: 0.65rem 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
}

.nav-compact .nav-list {
    gap: 1.5rem;
}

.nav-compact .nav-list a {
    font-size: 0.92rem;
}

.nav-compact .nav-list .main-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.72rem 1rem;
    font-size: 1.05rem;
}

.nav-compact .main-nav-list {
    gap: 0.45rem;
}

.main-nav-link svg {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 768px) {
    .nav-compact .nav-list .main-nav-link {
        width: 100%;
        padding: 1rem;
        font-size: 1.05rem;
    }
}

.header-contact-compact {
    gap: 0.85rem;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.1rem;
    background: linear-gradient(135deg, var(--ind-600), var(--ind-500));
    color: #fff !important;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-out);
    box-shadow: 0 4px 12px rgba(46, 122, 82, 0.2);
}

.header-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(46, 122, 82, 0.3);
}

/* ============================================
   HERO COMPACT - Two columns, no scroll needed
   ============================================ */
.hero-compact {
    position: relative;
    min-height: calc(100vh - 60px);
    padding: 1.5rem 0 1.5rem;
    background:
        radial-gradient(ellipse 60% 40% at 10% 20%, rgba(95, 174, 128, 0.15) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 90% 30%, rgba(93, 98, 168, 0.13) 0%, transparent 55%),
        radial-gradient(ellipse 50% 60% at 50% 100%, rgba(232, 200, 120, 0.1) 0%, transparent 55%),
        linear-gradient(180deg, #fbfcfe 0%, #f5f8f6 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-bg-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    animation: orb-float 18s ease-in-out infinite;
}

.orb-individual {
    width: 360px;
    height: 360px;
    top: 5%;
    right: 5%;
    background: radial-gradient(circle, rgba(95, 174, 128, 0.4) 0%, transparent 70%);
}

.orb-corporate {
    width: 400px;
    height: 400px;
    bottom: 5%;
    left: 5%;
    background: radial-gradient(circle, rgba(93, 98, 168, 0.35) 0%, transparent 70%);
    animation-delay: -8s;
}

@keyframes orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(25px, -30px) scale(1.06); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-compact-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

/* LEFT: Compact copy */
.hero-compact-copy {
    max-width: 580px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--ind-700);
    box-shadow: var(--shadow-soft);
    margin-bottom: 1rem;
}

.hero-badge svg {
    color: var(--gold-500);
}

.hero-title-compact {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.8rem, 3.2vw, 2.75rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 0.85rem;
}

.accent-individual {
    background: linear-gradient(135deg, var(--ind-500) 0%, var(--ind-400) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.accent-org {
    background: linear-gradient(135deg, var(--org-700) 0%, var(--gold-500) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle-compact {
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Dual Path CTAs (compact) */
.hero-path-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.path-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-out);
    box-shadow: var(--shadow-soft);
}

.path-cta-individual:hover {
    border-color: var(--ind-300);
    background: var(--ind-soft-2);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(46, 122, 82, 0.12);
}

.path-cta-org:hover {
    border-color: var(--org-300);
    background: var(--org-soft-2);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(47, 51, 87, 0.12);
}

.path-cta-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.path-cta-individual .path-cta-icon {
    background: linear-gradient(135deg, var(--ind-soft) 0%, var(--ind-100) 100%);
    color: var(--ind-600);
}

.path-cta-org .path-cta-icon {
    background: linear-gradient(135deg, var(--org-soft) 0%, var(--org-100) 100%);
    color: var(--org-700);
}

.path-cta span:not(.path-cta-icon) {
    display: flex;
    flex-direction: column;
}

.path-cta strong {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
}

.path-cta small {
    font-size: 0.74rem;
    color: var(--text-secondary);
    margin-top: 0.1rem;
}

.hero-mini-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-mini-contact a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--duration-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.hero-mini-contact a:hover {
    color: var(--ind-600);
}

.dot-sep {
    opacity: 0.5;
}

/* ============================================
   BUBBLE GALLERY (right side of hero)
   ============================================ */
.hero-bubble-gallery {
    position: relative;
}

.gallery-title-compact {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 1rem;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.gallery-title-compact small {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.bubble-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    direction: ltr; /* keep visual order stable */
}

.bubble-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 6px 20px rgba(13, 71, 50, 0.15);
    transition: all var(--duration-normal) var(--ease-out);
    background: var(--bg);
    animation: bubble-enter 0.6s var(--ease-out) both;
}

.bubble-item:nth-child(1) { animation-delay: 0.05s; }
.bubble-item:nth-child(2) { animation-delay: 0.10s; }
.bubble-item:nth-child(3) { animation-delay: 0.15s; }
.bubble-item:nth-child(4) { animation-delay: 0.20s; }
.bubble-item:nth-child(5) { animation-delay: 0.25s; }
.bubble-item:nth-child(6) { animation-delay: 0.30s; }
.bubble-item:nth-child(7) { animation-delay: 0.35s; }
.bubble-item:nth-child(8) { animation-delay: 0.40s; }
.bubble-item:nth-child(9) { animation-delay: 0.45s; }
.bubble-item:nth-child(10) { animation-delay: 0.50s; }
.bubble-item:nth-child(11) { animation-delay: 0.55s; }
.bubble-item:nth-child(12) { animation-delay: 0.60s; }

@keyframes bubble-enter {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.bubble-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

.bubble-item:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 28px rgba(13, 71, 50, 0.25);
    border-color: var(--ind-200);
    z-index: 2;
}

.bubble-item:hover img {
    transform: scale(1.15);
}

.bubble-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.45) 100%);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
    pointer-events: none;
}

.bubble-item:hover::after {
    opacity: 1;
}

.bubble-item-label {
    position: absolute;
    bottom: 8%;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(8px);
    transition: all var(--duration-normal) var(--ease-out);
    pointer-events: none;
    padding: 0 0.4rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    line-height: 1.2;
    direction: rtl;
}

.bubble-item:hover .bubble-item-label {
    opacity: 1;
    transform: translateY(0);
}

/* Featured (larger) bubbles */
.bubble-item.is-featured {
    grid-column: span 2;
    grid-row: span 2;
    border-radius: var(--radius-lg);
    aspect-ratio: 1;
}

.bubble-item.is-featured:hover {
    border-radius: var(--radius-lg);
}

.bubble-item.is-featured .bubble-item-label {
    font-size: 0.85rem;
    bottom: 5%;
}

/* ============================================
   PATH TOGGLE WRAPPER
   ============================================ */
.services-compact-section {
    padding: 3rem 0;
    background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
}

.path-toggle-wrapper {
    position: relative;
    display: flex;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-2xl);
    padding: 0.5rem;
    box-shadow: var(--shadow-lift);
    margin: 0 auto 2.5rem;
    gap: 0.5rem;
    width: fit-content;
    max-width: 100%;
}

.path-toggle {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.4rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: color var(--duration-normal) var(--ease-out);
    color: var(--text-secondary);
    font-family: var(--font-display);
    min-width: 200px;
    justify-content: flex-start;
}

.path-toggle.active {
    color: #fff;
}

.path-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--ind-soft);
    color: var(--ind-600);
    transition: all var(--duration-normal) var(--ease-out);
    flex-shrink: 0;
}

.path-toggle-org .path-toggle-icon {
    background: var(--org-soft);
    color: var(--org-700);
}

.path-toggle.active .path-toggle-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.path-toggle-text {
    text-align: right;
}

.path-toggle-text strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.path-toggle-text small {
    display: block;
    font-size: 0.74rem;
    opacity: 0.85;
    margin-top: 0.1rem;
}

.path-toggle-indicator {
    position: absolute;
    top: 0.5rem;
    bottom: 0.5rem;
    width: calc(50% - 0.5rem);
    background: linear-gradient(135deg, var(--ind-600), var(--ind-500));
    border-radius: var(--radius-xl);
    transition: all var(--duration-slow) var(--ease-out);
    z-index: 1;
    box-shadow: 0 8px 20px rgba(46, 122, 82, 0.3);
    right: 0.5rem;
    left: auto;
}

.path-toggle-wrapper.is-org .path-toggle-indicator {
    right: auto;
    left: 0.5rem;
    background: linear-gradient(135deg, var(--org-800), var(--org-700));
    box-shadow: 0 8px 20px rgba(47, 51, 87, 0.3);
}

/* ============================================
   AUDIENCE CONTENT - smooth swap
   ============================================ */
.audience-content {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity var(--duration-normal) var(--ease-out),
                transform var(--duration-normal) var(--ease-out);
    position: absolute;
    width: 100%;
    visibility: hidden;
}

.audience-content.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
    visibility: visible;
    animation: audience-enter 0.4s var(--ease-out);
}

@keyframes audience-enter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   SERVICE CARDS COMPACT
   ============================================ */
.services-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.service-card-compact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.service-card-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.audience-content-individual .service-card-compact::before {
    background: linear-gradient(90deg, var(--ind-500), var(--ind-300));
}

.audience-content-org .service-card-compact::before {
    background: linear-gradient(90deg, var(--org-700), var(--gold-500));
}

.service-card-compact:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(13, 71, 50, 0.1);
}

.audience-content-individual .service-card-compact:hover {
    border-color: var(--ind-300);
}

.audience-content-org .service-card-compact:hover {
    border-color: var(--org-300);
}

.service-card-compact:hover::before {
    opacity: 1;
}

.service-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
    transition: transform var(--duration-normal) var(--ease-out);
}

.service-card-icon-individual {
    background: linear-gradient(135deg, var(--ind-soft) 0%, var(--ind-100) 100%);
    color: var(--ind-600);
}

.service-card-icon-org {
    background: linear-gradient(135deg, var(--org-soft) 0%, var(--org-100) 100%);
    color: var(--org-700);
}

.service-card-compact:hover .service-card-icon {
    transform: scale(1.08) rotate(-3deg);
}

.service-card-icon svg {
    width: 24px;
    height: 24px;
}

.service-card-compact h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
}

.service-card-compact p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.55;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: auto;
    padding-top: 0.5rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ind-600);
    transition: gap var(--duration-fast) var(--ease-out);
}

.audience-content-org .service-card-link {
    color: var(--org-700);
}

.service-card-compact:hover .service-card-link {
    gap: 0.5rem;
}

.service-card-link svg {
    transition: transform var(--duration-fast) var(--ease-out);
}

.service-card-cta .service-card-link {
    display: none;
}

/* ============================================
   SUB-PAGE ANCHOR OFFSET
   Ensures deep-linked headings land below the sticky header
   ============================================ */
h3[id],
h2[id],
[id]:target {
    scroll-margin-top: 100px;
}

/* ============================================
   TEAM SECTION - Stylized therapist grid
   ============================================ */
.team-compact-section {
    padding: 5rem 0 4.5rem;
    background:
        radial-gradient(ellipse 70% 60% at 12% 8%, rgba(95, 174, 128, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 92% 30%, rgba(63, 149, 104, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 80% 60% at 50% 110%, rgba(220, 240, 232, 0.55) 0%, transparent 60%),
        linear-gradient(180deg, #ffffff 0%, #fbfdfc 55%, #f6fbf8 100%);
    position: relative;
    overflow: hidden;
}

.team-compact-section::before {
    content: '';
    position: absolute;
    top: -8%;
    left: -6%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(95, 174, 128, 0.10) 0%, transparent 70%);
    pointer-events: none;
}

.team-compact-section::after {
    content: '';
    position: absolute;
    bottom: -12%;
    right: -8%;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(63, 149, 104, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.section-header-compact {
    text-align: center;
    margin: 0 auto 3rem;
    max-width: 640px;
    position: relative;
    z-index: 1;
    padding: 0 1rem;
}

.section-header-compact .section-eyebrow {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.95rem;
    background: linear-gradient(135deg, var(--ind-soft, #e8f5ee) 0%, var(--ind-100, #dcf0e8) 100%);
    color: var(--ind-700, #286345);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    border-radius: var(--radius-full);
    border: 1px solid rgba(63, 149, 104, 0.18);
    margin: 0 auto 0.85rem;
    box-shadow: 0 2px 8px rgba(46, 122, 82, 0.06);
}

.section-header-compact .section-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ind-500, #3f9568);
    box-shadow: 0 0 0 3px rgba(63, 149, 104, 0.18);
}

.section-header-compact h2 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 800;
    color: var(--ink);
    line-height: 1.15;
    margin: 0 0 0.6rem;
    position: relative;
    display: block;
}

.section-header-compact h2::after {
    content: '';
    display: block;
    width: 64px;
    height: 5px;
    margin: 0.85rem auto 0;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--ind-300, #8fcaa9) 0%, var(--ind-600, #2e7a52) 50%, var(--ind-300, #8fcaa9) 100%);
    opacity: 0.95;
    box-shadow: 0 1px 6px rgba(46, 122, 82, 0.18);
}

.section-header-compact .section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0.4rem auto 0;
    max-width: 480px;
}

.therapist-cluster {
    /* Circle diameter — single source of truth for all 15 circles. */
    --d: 108px;
    /* Container size — fits the outer ring (R2=243.9 + d/2=54) plus hover scale buffer. */
    --container: 640px;

    position: relative;
    width: var(--container);
    height: var(--container);
    margin: 2rem auto 1rem;
    z-index: 1;
}

/* Each cell is absolutely positioned at the center of the container, then
   translated by (--x, --y) which is set inline per cell. */
.cluster-cell {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(calc(-50% + var(--x, 0px)), calc(-50% + var(--y, 0px)));
    width: var(--d);
    background: none;
    border: 0;
    padding: 0;
    font-family: inherit;
    color: inherit;
    cursor: pointer;
    transition: transform var(--duration-normal) var(--ease-out),
                z-index 0s linear var(--duration-normal);
    -webkit-tap-highlight-color: transparent;
}

.cluster-cell:hover,
.cluster-cell:focus-visible {
    transform: translate(calc(-50% + var(--x, 0px)), calc(-50% + var(--y, 0px))) scale(1.08);
    z-index: 20 !important;
    transition: transform var(--duration-normal) var(--ease-out),
                z-index 0s linear 0s;
}

.cluster-cell:focus-visible {
    outline: none;
}

.cluster-cell:focus-visible .cluster-circle {
    box-shadow:
        0 12px 28px rgba(46, 122, 82, 0.28),
        0 0 0 3px var(--ind-500, #3f9568),
        0 0 0 5px #fff;
}

/* The circle itself — uniform size, photo fills it, with a visible border. */
.cluster-circle {
    width: var(--d);
    height: var(--d);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 50% 35%, var(--ind-soft, #e8f5ee) 0%, var(--ind-100, #dcf0e8) 100%);
    /* Visible border + outer ring + soft shadow. The 3px white inner border
       gives the "polaroid" feel; the 1.5px sage outer ring is the colored border. */
    border: 3px solid #fff;
    box-shadow:
        0 0 0 1.5px var(--ind-300, #8fcaa9),
        0 6px 16px rgba(13, 71, 50, 0.18);
    transition: transform var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out);
}

.cluster-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--duration-slow) var(--ease-out);
}

/* Text overlay (name + short role) at the bottom of the circle, on a dark
   scrim for legibility over any photo. */
.cluster-circle-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 0.1rem;
    padding: 0.45rem 0.4rem 0.5rem;
    text-align: center;
    background: linear-gradient(180deg, transparent 22%, rgba(13, 50, 35, 0.88) 100%);
    color: #fff;
    pointer-events: none;
    z-index: 2;
}

.cluster-circle-name {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.15;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
    letter-spacing: -0.005em;
    /* Two short lines keep complete Hebrew names readable in the circle. */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
}

.cluster-circle-role {
    font-family: var(--font-body, var(--font-display));
    font-size: 0.62rem;
    font-weight: 500;
    line-height: 1.2;
    opacity: 0.92;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
}

/* Hover: lift the circle, intensify shadow, zoom the photo. */
.cluster-cell:hover .cluster-circle {
    box-shadow:
        0 0 0 1.5px var(--ind-500, #3f9568),
        0 14px 32px rgba(46, 122, 82, 0.30),
        0 0 0 3px rgba(255, 255, 255, 0.5);
}

.cluster-cell:hover .cluster-circle img {
    transform: scale(1.1);
}

/* Featured (lead) cell — clinical director / CEO.
   Sits in the center, gold border + gold gradient backdrop + badge. */
.cluster-cell--lead {
    z-index: 3;
}

.cluster-cell--lead .cluster-circle {
    background:
        radial-gradient(circle at 50% 35%, #fff7e0 0%, #f5e7b8 100%);
    border-color: #fff;
    box-shadow:
        0 0 0 1.5px var(--gold-500, #c89b3c),
        0 8px 22px rgba(168, 127, 42, 0.25);
}

.cluster-cell--lead::after {
    content: 'מנהל קליני';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.22rem 0.6rem;
    font-family: var(--font-display);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--ind-800, #225038);
    background: linear-gradient(135deg, var(--gold-300, #e8c878), var(--gold-400, #d9b35a));
    border: 1px solid rgba(168, 127, 42, 0.4);
    border-radius: var(--radius-full);
    box-shadow: 0 3px 8px rgba(168, 127, 42, 0.30);
    z-index: 4;
    white-space: nowrap;
    pointer-events: none;
}

.cluster-cell--lead:hover .cluster-circle {
    box-shadow:
        0 0 0 1.5px var(--gold-600, #a87f2a),
        0 16px 32px rgba(168, 127, 42, 0.32),
        0 0 0 3px rgba(255, 255, 255, 0.5);
}

/* Decorative dotted backdrop — adds organic texture without clutter */
.therapist-cluster::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    height: 90%;
    transform: translate(-50%, -50%);
    background-image:
        radial-gradient(circle, rgba(95, 174, 128, 0.16) 1.2px, transparent 1.6px);
    background-size: 22px 22px;
    background-position: 0 0;
    opacity: 0.5;
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
    mask-image: radial-gradient(circle at 50% 50%, #000 35%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 35%, transparent 75%);
}

/* Soft glow behind the whole cluster, reinforces the meta-circle shape */
.therapist-cluster::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 78%;
    height: 78%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(95, 174, 128, 0.10) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

/* Responsive — shrink the meta-circle on tablet */
@media (max-width: 900px) {
    .therapist-cluster {
        --d: 84px;
        --container: 500px;
    }
    .cluster-circle-name {
        font-size: 0.66rem;
    }
    .cluster-circle-role {
        font-size: 0.54rem;
    }
}

/* Mobile — switch to a clean 2-column grid (concentric layout too cramped) */
@media (max-width: 680px) {
    .therapist-cluster {
        --d: 120px;
        --container: auto;
        width: 100%;
        height: auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.4rem 0.5rem;
        padding: 0 0.5rem;
        margin: 1.5rem auto;
    }
    .therapist-cluster::before,
    .therapist-cluster::after {
        display: none;
    }
    .cluster-cell {
        position: static;
        top: auto;
        left: auto;
        transform: none !important;
        width: 100%;
        margin: 0 auto;
    }
    .cluster-cell:hover,
    .cluster-cell:focus-visible {
        transform: scale(1.04) !important;
    }
    .cluster-circle {
        margin: 0 auto;
    }
    .cluster-circle-name {
        font-size: 0.78rem;
    }
    .cluster-circle-role {
        font-size: 0.62rem;
    }
}

@media (max-width: 380px) {
    .therapist-cluster {
        --d: 104px;
    }
    .cluster-circle-name {
        font-size: 0.74rem;
    }
}

.team-cta-compact {
    text-align: center;
    margin: 2.75rem auto 0;
    max-width: 720px;
    padding: 1.6rem 1.5rem;
    background: linear-gradient(135deg, var(--ind-soft-2, #f5fbf8) 0%, var(--ind-soft, #e8f5ee) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--ind-100, #dcf0e8);
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 16px rgba(46, 122, 82, 0.06);
}

.team-cta-compact p {
    color: var(--ink);
    font-size: 1rem;
    margin: 0 0 0.9rem;
    font-weight: 600;
    line-height: 1.5;
}

.team-cta-compact a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.6rem;
    background: linear-gradient(135deg, var(--ind-600, #2e7a52), var(--ind-500, #3f9568));
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.92rem;
    transition: transform var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out);
    box-shadow: 0 6px 18px rgba(46, 122, 82, 0.22);
}

.team-cta-compact a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(46, 122, 82, 0.32);
}

/* ============================================
   THERAPIST MODAL
   ============================================ */
.therapist-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 30, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
    pointer-events: none;
}

.therapist-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.therapist-modal-close {
    position: absolute;
    top: 5rem;
    left: 1.5rem;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-normal) var(--ease-out);
    z-index: 10;
}

.therapist-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.therapist-modal-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    max-width: 720px;
    width: 100%;
    background: #fff;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transform: scale(0.92);
    transition: transform var(--duration-normal) var(--ease-out);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.therapist-modal.active .therapist-modal-content {
    transform: scale(1);
}

.therapist-modal-photo {
    background: linear-gradient(135deg, var(--ind-soft, #e8f5ee) 0%, var(--ind-100, #dcf0e8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 280px;
}

.therapist-modal-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.therapist-modal-info {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.therapist-modal-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--ind-soft, #e8f5ee);
    color: var(--ind-700, #286345);
    margin-bottom: 1rem;
}

.therapist-modal-info h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 0.85rem;
    line-height: 1.2;
}

.therapist-modal-info p {
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.therapist-modal-cta {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--ind-600, #2e7a52), var(--ind-500, #3f9568));
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--duration-normal) var(--ease-out);
    box-shadow: 0 6px 18px rgba(46, 122, 82, 0.25);
    align-self: flex-start;
}

.therapist-modal-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(46, 122, 82, 0.35);
}

.service-card-cta {
    background: linear-gradient(135deg, var(--ind-soft-2) 0%, var(--ind-soft) 100%);
    border-color: var(--ind-200) !important;
}

.service-card-cta h3 {
    color: var(--ind-700);
}

.audience-content-org .service-card-cta {
    background: linear-gradient(135deg, var(--org-soft-2) 0%, var(--org-soft) 100%);
    border-color: var(--org-200) !important;
}

.audience-content-org .service-card-cta h3 {
    color: var(--org-700);
}

/* ============================================
   CONTACT COMPACT
   ============================================ */
.contact-compact-section {
    padding: 3rem 0;
    background: linear-gradient(180deg, #fbfcfe 0%, #fff 100%);
    position: relative;
    overflow: hidden;
}

.contact-compact-section::before {
    content: '';
    position: absolute;
    top: 10%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(95, 174, 128, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.contact-compact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.contact-compact-info h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.contact-compact-info p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.contact-compact-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.contact-compact-meta li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-compact-meta svg {
    color: var(--ind-500);
    flex-shrink: 0;
}

.contact-compact-meta a {
    color: var(--text);
    text-decoration: none;
    transition: color var(--duration-fast);
}

.contact-compact-meta a:hover {
    color: var(--ind-600);
}

.contact-compact-form {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lift);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.contact-compact-form input,
.contact-compact-form select,
.contact-compact-form textarea {
    padding: 0.75rem 0.9rem;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text);
    background: #fff;
    transition: all var(--duration-fast) var(--ease-out);
    width: 100%;
    resize: vertical;
}

.contact-compact-form input:focus,
.contact-compact-form select:focus,
.contact-compact-form textarea:focus {
    outline: none;
    border-color: var(--ind-400);
    box-shadow: 0 0 0 3px rgba(95, 174, 128, 0.12);
}

.btn-submit-compact {
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, var(--ind-600), var(--ind-500));
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    box-shadow: 0 6px 18px rgba(46, 122, 82, 0.25);
}

.btn-submit-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(46, 122, 82, 0.35);
}

.form-mini-disclaimer {
    font-size: 0.76rem;
    color: var(--text-secondary);
    text-align: center;
    margin: 0;
}

/* ============================================
   FOOTER COMPACT
   ============================================ */
.footer-compact {
    padding: 1.5rem 0;
    background: #1a2a32;
    color: #fff;
}

.footer-content-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-content-compact .footer-logo {
    max-height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.footer-content-compact .footer-contact a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--duration-fast);
}

.footer-content-compact .footer-contact a:hover {
    color: #fff;
}

.footer-content-compact .footer-social a {
    color: rgba(255, 255, 255, 0.85);
    transition: all var(--duration-fast);
}

.footer-content-compact .footer-social a:hover {
    color: var(--ind-300);
    transform: translateY(-2px);
}

.footer-compact .footer-bottom {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-compact .footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   IMAGE MODAL
   ============================================ */
.image-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 30, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
    pointer-events: none;
}

.image-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.image-modal-close {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-normal) var(--ease-out);
    z-index: 10;
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.image-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-normal) var(--ease-out);
    z-index: 10;
}

.image-modal-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.image-modal-prev {
    right: 1.5rem; /* RTL: prev = right */
}

.image-modal-next {
    left: 1.5rem; /* RTL: next = left */
}

.image-modal-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
    max-width: 1100px;
    width: 100%;
    max-height: 85vh;
    background: #fff;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transform: scale(0.92);
    transition: transform var(--duration-normal) var(--ease-out);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.image-modal.active .image-modal-content {
    transform: scale(1);
}

.image-modal-image-wrap {
    background: #0a1218;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 320px;
}

.image-modal-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-modal-text {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.image-modal-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.74rem;
    font-weight: 600;
    background: var(--ind-soft);
    color: var(--ind-700);
    margin-bottom: 1rem;
}

.image-modal-text h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 0.85rem;
    line-height: 1.25;
}

.image-modal-text p {
    color: var(--text-secondary);
    font-size: 0.97rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.image-modal-actions {
    margin-top: auto;
}

.image-modal-cta {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--ind-600), var(--ind-500));
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.92rem;
    transition: all var(--duration-normal) var(--ease-out);
    box-shadow: 0 6px 18px rgba(46, 122, 82, 0.25);
}

.image-modal-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(46, 122, 82, 0.35);
}

.image-modal-counter {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
    .hero-compact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-compact {
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-path-cta {
        grid-template-columns: 1fr 1fr;
    }

    .bubble-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .bubble-item.is-featured {
        grid-column: span 2;
        grid-row: span 2;
    }

    .contact-compact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .image-modal-content {
        grid-template-columns: 1fr;
        max-height: 90vh;
    }

    .image-modal-image-wrap {
        min-height: 220px;
        max-height: 40vh;
    }

    .image-modal-text {
        padding: 1.5rem;
    }

    /* Team responsive — hive handled in its own block above */
    .therapist-modal-content {
        grid-template-columns: 1fr;
        max-height: 90vh;
        overflow-y: auto;
    }

    .therapist-modal-photo {
        min-height: 220px;
        max-height: 40vh;
    }

    .therapist-modal-info {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    .hero-title-compact {
        font-size: 1.6rem;
    }

    .hero-subtitle-compact {
        font-size: 0.9rem;
    }

    .hero-path-cta {
        grid-template-columns: 1fr;
    }

    .path-cta {
        padding: 0.7rem 0.85rem;
    }

    .path-cta-icon {
        width: 32px;
        height: 32px;
    }

    .path-cta strong {
        font-size: 0.88rem;
    }

    .path-cta small {
        font-size: 0.7rem;
    }

    .bubble-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.45rem;
    }

    .bubble-item.is-featured {
        grid-column: span 2;
        grid-row: span 2;
    }

    .bubble-item-label {
        font-size: 0.62rem;
    }

    .services-grid-compact {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .service-card-compact {
        padding: 1rem;
    }

    .service-card-compact h3 {
        font-size: 0.95rem;
    }

    .service-card-compact p {
        font-size: 0.82rem;
    }

    .path-toggle-wrapper {
        flex-direction: column;
        width: 100%;
    }

    .path-toggle {
        min-width: auto;
        width: 100%;
    }

    .path-toggle-indicator {
        width: calc(100% - 1rem);
        height: calc(50% - 0.5rem);
        top: 0.5rem;
        bottom: auto;
        right: 0.5rem;
        left: 0.5rem;
    }

    .path-toggle-wrapper.is-org .path-toggle-indicator {
        top: auto;
        bottom: 0.5rem;
        transform: none;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
    }

    .image-modal {
        padding: 1rem;
    }

    .image-modal-nav {
        width: 40px;
        height: 40px;
    }

    .image-modal-prev { right: 0.5rem; }
    .image-modal-next { left: 0.5rem; }

    .image-modal-text h3 {
        font-size: 1.2rem;
    }

    .footer-content-compact {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .orb,
    .bubble-item {
        animation: none;
    }

    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
