/* ============================================
   MIMAAMAKIMM - Sub-page Theme Override
   Makes sub-pages match the redesigned landing page theme.
   Loaded AFTER styles.css so it overrides original styling.
   ============================================ */

/* ============================================
   HEADER - compact, glassmorphic, with CTA
   ============================================ */
.header {
    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);
    box-shadow: 0 2px 12px rgba(13, 71, 50, 0.04);
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(13, 71, 50, 0.08);
}

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

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

.nav .nav-list a {
    font-size: 0.92rem;
    color: var(--text);
    font-weight: 500;
    transition: color var(--duration-fast) var(--ease-out);
}

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

.nav .nav-list a:hover {
    color: var(--ind-600, var(--brand-700));
}

.header-contact {
    gap: 0.85rem;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.1rem;
    background: linear-gradient(135deg, var(--ind-600, #2e7a52), var(--ind-500, #3f9568));
    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);
}

/* ============================================
   PAGE HEADER - hero-style gradient with badge
   ============================================ */
.page-header {
    position: relative;
    padding: 5rem 0 3.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;
    text-align: center;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(95, 174, 128, 0.18) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(93, 98, 168, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--ind-500, #3f9568) 0%, var(--ind-600, #2e7a52) 100%);
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(46, 122, 82, 0.25);
    color: #fff;
}

.page-header-icon svg {
    width: 32px;
    height: 32px;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--ink);
    margin-bottom: 0.75rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.page-header-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.1rem;
    background: var(--surface-glass, rgba(255, 255, 255, 0.75));
    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.85rem;
    color: var(--text-secondary);
    box-shadow: 0 4px 16px rgba(13, 71, 50, 0.06);
}

.breadcrumb a {
    color: var(--ind-600, #2e7a52);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--duration-fast);
}

.breadcrumb a:hover {
    color: var(--ind-700, #286345);
}

.breadcrumb span {
    opacity: 0.5;
}

.breadcrumb-current {
    color: var(--text) !important;
    font-weight: 600;
    opacity: 1 !important;
}

/* ============================================
   SECTIONS - softer, more spacious
   ============================================ */
.intro-section {
    padding: 3rem 0;
    background: #fff;
}

.intro-content p {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--text);
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.section {
    padding: 4rem 0;
}

.section--soft {
    background: linear-gradient(180deg, #fbfcfe 0%, #fff 100%);
}

.section--soft-reverse {
    background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--ink);
    text-align: center;
    margin-bottom: 2.5rem;
    letter-spacing: -0.01em;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--ind-500, #3f9568), var(--ind-300, #8fcaa9));
    margin: 0.85rem auto 0;
    border-radius: var(--radius-full);
}

/* ============================================
   CARDS - polished, modern
   ============================================ */
.therapy-type-card,
.feature-card,
.summary-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(13, 71, 50, 0.04);
}

.therapy-type-card::before,
.feature-card::before,
.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ind-500, #3f9568), var(--ind-300, #8fcaa9));
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.therapy-type-card:hover,
.feature-card:hover,
.summary-card:hover {
    transform: translateY(-3px);
    border-color: var(--ind-300, #8fcaa9);
    box-shadow: 0 16px 40px rgba(46, 122, 82, 0.1);
}

.therapy-type-card:hover::before,
.feature-card:hover::before,
.summary-card:hover::before {
    opacity: 1;
}

.therapy-type-card h3,
.feature-card h3,
.summary-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.6rem;
    scroll-margin-top: 100px;
}

.therapy-type-card p,
.feature-card p,
.summary-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

.feature-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(95, 174, 128, 0.12) 0%, rgba(95, 174, 128, 0.06) 100%);
    color: var(--ind-600, #2e7a52);
    transition: transform var(--duration-normal) var(--ease-out);
}

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

.feature-card-icon svg {
    width: 26px;
    height: 26px;
}

/* ============================================
   GRIDS - consistent gaps
   ============================================ */
.therapy-types-grid,
.feature-cards,
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

/* ============================================
   PROCESS STEPS - Vertical timeline matching reference design
   White cards stacked vertically, green numbered circles on the right,
   connected by a teal vertical line.
   ============================================ */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    padding-right: 28px; /* space for the vertical line + badges */
}

/* The vertical teal line running along the right edge */
.process-steps::before {
    content: '';
    position: absolute;
    top: 28px;
    bottom: 28px;
    right: 23px;
    width: 2px;
    background: linear-gradient(180deg, var(--ind-400, #5fae80) 0%, var(--ind-300, #8fcaa9) 100%);
    z-index: 0;
}

.process-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    transition: all var(--duration-normal) var(--ease-out);
    box-shadow: 0 2px 8px rgba(13, 71, 50, 0.04);
    z-index: 1;
}

.process-step:hover {
    border-color: var(--ind-300, #8fcaa9);
    box-shadow: 0 8px 24px rgba(46, 122, 82, 0.1);
    transform: translateX(-3px);
}

/* The numbered circle badge - sits on the right edge, overlapping the line */
.process-step-number {
    position: absolute;
    right: -28px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ind-500, #3f9568) 0%, var(--ind-600, #2e7a52) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(46, 122, 82, 0.3);
    border: 3px solid #fff;
    z-index: 2;
    flex-shrink: 0;
}

.process-step-content {
    flex: 1;
    padding-left: 0.5rem;
}

.process-step-content h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.35rem;
}

.process-step-content p {
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.65;
    margin: 0;
}

/* ============================================
   CTA BOX - simple green card with white button
   ============================================ */
.cta-box {
    background: var(--ind-600, #2e7a52);
    color: #fff;
    border-radius: var(--radius-2xl);
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(46, 122, 82, 0.2);
}

.cta-box h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #fff;
}

.cta-box p {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    color: #fff;
}

.cta-box .btn-primary {
    background: #fff;
    color: var(--ind-700, #286345) !important;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: all var(--duration-normal) var(--ease-out);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cta-box .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

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

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

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

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

.footer .footer-contact p {
    margin: 0.2rem 0;
}

.footer .footer-social {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.footer .footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    transition: all var(--duration-normal) var(--ease-out);
}

.footer .footer-social a:hover {
    background: var(--ind-500, #3f9568);
    color: #fff;
    transform: translateY(-2px);
}

.footer .footer-social svg {
    width: 20px;
    height: 20px;
}

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

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

/* ============================================
   FLOATING WHATSAPP - smaller, refined
   ============================================ */
.whatsapp-float {
    box-shadow: 0 8px 24px rgba(46, 122, 82, 0.3);
}

/* ============================================
   CONTENT SECTIONS (used in some sub-pages)
   ============================================ */
.content-section {
    background: #fff;
    padding: 4rem 0;
    scroll-margin-top: 100px;
}

.content-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.content-section h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.6rem;
    scroll-margin-top: 100px;
}

.content-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.content-section ul,
.content-section ol {
    color: var(--text-secondary);
    line-height: 1.8;
    padding-right: 1.5rem;
    margin-bottom: 1rem;
}

.content-section li {
    margin-bottom: 0.4rem;
}

/* Optional detail on information-rich service cards */
.progressive-details[hidden] {
    display: none !important;
}

.progressive-details-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 42px;
    margin-top: 1.15rem;
    padding: 0.9rem 0;
    border: 0;
    border-top: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
    border-radius: 0;
    background: transparent;
    color: var(--primary-dark, var(--primary));
    font: 700 0.95rem/1.3 var(--font-body);
    cursor: pointer;
    transition: color 180ms ease, border-color 180ms ease;
}

.progressive-details-icon {
    margin-inline-start: 0.55rem;
    font-size: 1.35rem;
    line-height: 1;
}

.progressive-details-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.progressive-details-toggle:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--primary) 35%, transparent);
    outline-offset: 3px;
}

.therapy-service-card .progressive-details,
.program-card .progressive-details {
    margin-top: 1rem;
}

.program-card.has-progressive-details > .program-card-header,
.program-card.has-progressive-details > .progressive-details-toggle,
.program-card.has-progressive-details > .program-card-body,
.program-card.has-progressive-details > .program-card-footer {
    grid-column: 2;
    width: 100%;
}

.program-card.has-progressive-details::before {
    display: none;
}

.program-card::after {
    display: none;
}

.program-card.has-progressive-details {
    display: block;
    min-height: 0;
    padding: clamp(1.35rem, 3vw, 2rem);
    overflow: visible;
}

.program-card.has-progressive-details > .program-card-header {
    padding: 0;
    background: transparent;
    color: var(--ink);
}

.program-card.has-progressive-details .program-card-tag {
    margin-bottom: 0.55rem;
    padding: 0;
    background: transparent;
    color: var(--org-600);
    font-size: 0.78rem;
    letter-spacing: 0;
    text-transform: none;
}

.program-card.has-progressive-details .program-card-header h3 {
    max-width: 28ch;
    color: var(--ink);
    font-size: clamp(1.3rem, 2.3vw, 1.75rem);
    line-height: 1.3;
}

.program-card.has-progressive-details > .program-card-footer {
    padding: 0.35rem 0 0;
    justify-content: flex-start;
}

.process-step::before {
    display: none;
}

.page-header .breadcrumb {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: var(--text-secondary);
}

.page-header .breadcrumb span {
    color: var(--text-secondary);
    opacity: 1;
}

.program-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.85rem;
    padding-bottom: 0.15rem;
    border-bottom: 1px solid currentColor;
    color: var(--primary-dark, var(--primary));
    font-weight: 700;
    text-decoration: none;
}

.program-card-link:hover {
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .page-header {
        padding: 3.5rem 0 2.5rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    .intro-section {
        padding: 2rem 0;
    }

    .therapy-types-grid,
    .feature-cards,
    .summary-grid {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: 2rem 1.5rem;
    }

    .cta-box h3 {
        font-size: 1.4rem;
    }

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