/* ─── Site chrome: header menu, footer, typography polish ─── */

:root {
    --font-display: 'Outfit', 'Alexandria', system-ui, sans-serif;
    --font-ar: 'Alexandria', system-ui, sans-serif;
    --font-body: 'Outfit', 'Alexandria', system-ui, sans-serif;
    --footer-dark: #3f5d46;
    --footer-mid: #4d6e54;
    --med-pattern: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2756%27%20height%3D%2756%27%20viewBox%3D%270%200%2056%2056%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27%237a9170%27%20stroke-width%3D%271.1%27%20opacity%3D%270.38%27%3E%3Cpath%20d%3D%27M28%2016v16M18%2026h20%27%2F%3E%3Ccircle%20cx%3D%2728%27%20cy%3D%2726%27%20r%3D%272.2%27%20fill%3D%27%23a8b89e%27%20stroke%3D%27none%27%20opacity%3D%270.55%27%2F%3E%3Cpath%20d%3D%27M4%2046%20H12%20L15%2038%20L19%2048%20L23%2036%20L27%2044%20L31%2038%20L35%2048%20H52%27%20stroke-width%3D%270.9%27%20opacity%3D%270.32%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
    --med-pattern-light: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2756%27%20height%3D%2756%27%20viewBox%3D%270%200%2056%2056%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27%23ffffff%27%20stroke-width%3D%271.1%27%20opacity%3D%270.26%27%3E%3Cpath%20d%3D%27M28%2016v16M18%2026h20%27%2F%3E%3Ccircle%20cx%3D%2728%27%20cy%3D%2726%27%20r%3D%272.2%27%20fill%3D%27%23ffffff%27%20stroke%3D%27none%27%20opacity%3D%270.35%27%2F%3E%3Cpath%20d%3D%27M4%2046%20H12%20L15%2038%20L19%2048%20L23%2036%20L27%2044%20L31%2038%20L35%2048%20H52%27%20stroke-width%3D%270.9%27%20opacity%3D%270.22%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
    --med-pattern-footer: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2764%27%20height%3D%2764%27%20viewBox%3D%270%200%2064%2064%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27%23ffffff%27%20stroke-width%3D%270.95%27%20opacity%3D%270.17%27%3E%3Cpath%20d%3D%27M32%2018v14M24%2026h16%27%2F%3E%3Ccircle%20cx%3D%2732%27%20cy%3D%2726%27%20r%3D%271.8%27%20fill%3D%27%23ffffff%27%20stroke%3D%27none%27%20opacity%3D%270.25%27%2F%3E%3Cpath%20d%3D%27M6%2052%20H16%20L19%2044%20L23%2054%20L27%2042%20L31%2050%20L35%2044%20L39%2054%20H58%27%20stroke-width%3D%270.85%27%20opacity%3D%270.18%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
    --med-pattern-dots: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2714%27%20height%3D%2714%27%20viewBox%3D%270%200%2014%2014%27%3E%3Ccircle%20cx%3D%277%27%20cy%3D%277%27%20r%3D%271.15%27%20fill%3D%27%23ffffff%27%20opacity%3D%270.42%27%2F%3E%3C%2Fsvg%3E");
}

body {
    font-family: var(--font-body);
}

h1, h2, h3, h4, .site-nav-link, .footer-brand-name, .section-head h2 {
    font-family: var(--font-display);
}

.btn-register {
    font-family: var(--font-body);
}

/* ─── Medical pattern: cross + ECG (header & footer) ─── */
.site-header-pattern {
    position: absolute;
    inset: 0;
    background-image: var(--med-pattern);
    background-size: 48px 48px;
    pointer-events: none;
    border-radius: inherit;
    opacity: 0.55;
    z-index: 0;
}
.site-header-hero:not(.is-scrolled) .site-header-pattern {
    background-image: var(--med-pattern-light);
    background-size: 44px 44px;
    opacity: 0.18;
}
.site-header-hero.is-scrolled .site-header-pattern {
    background-image: var(--med-pattern);
    background-size: 48px 48px;
    opacity: 0.5;
}
.site-header-inner > :not(.site-header-pattern) {
    position: relative;
    z-index: 1;
}

/* ─── Full-width header lighting (home) ─── */
.site-header-full { position: relative; }
.site-header-ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}
.site-header-light-sweep {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,0.14) 48%, rgba(255,255,255,0.24) 50%, rgba(255,255,255,0.14) 52%, transparent);
    animation: headerSweep 6s ease-in-out infinite;
}
@keyframes headerSweep {
    0% { left: -60%; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { left: 120%; opacity: 0; }
}
.site-header-glow-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200,255,220,0.5), rgba(255,255,255,0.75), rgba(200,255,220,0.5), transparent);
    box-shadow: 0 0 20px rgba(200,255,220,0.35);
    animation: headerGlowPulse 3s ease-in-out infinite;
}
.site-header-full.is-scrolled .site-header-glow-line {
    background: linear-gradient(90deg, transparent, var(--green), transparent);
    box-shadow: none;
    animation: none;
}
@keyframes headerGlowPulse {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 1; }
}
.site-header-full .site-header-inner { position: relative; z-index: 1; }

/* Header green glass — uniform footer green */
.site-header-hero:not(.is-scrolled),
.site-header-full:not(.is-scrolled) {
    background: #4d6e54;
}

.has-drbj-inner .site-header-hero:not(.is-scrolled) {
    background: #4d6e54;
}

.site-header-hero:not(.is-scrolled) .site-header-inner,
.site-header-full:not(.is-scrolled) .site-header-inner {
    color: rgba(255, 255, 255, 0.92);
}

.site-header-hero:not(.is-scrolled) .site-header-pattern {
    background-image: var(--med-pattern-footer);
    background-size: 40px 40px;
    opacity: 0.14;
}

.site-header-full:not(.is-scrolled) .site-header-light-sweep {
    display: none;
}

.site-header-full:not(.is-scrolled) .site-header-glow-line {
    display: none;
}

/* ─── Desktop nav icons & hover ─── */
.site-nav-desktop .site-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}
.site-nav-icon {
    font-size: 12px;
    opacity: 0.65;
    transition: transform 0.35s var(--ease), opacity 0.35s;
}
.site-nav-link:hover .site-nav-icon,
.site-nav-link.is-active .site-nav-icon {
    opacity: 1;
    transform: scale(1.15);
}
.site-nav-desktop .site-nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    inset-inline: 18px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
    transform: scaleX(0);
    transition: transform 0.35s var(--ease);
}
.site-nav-desktop .site-nav-link:hover::after,
.site-nav-desktop .site-nav-link.is-active::after {
    transform: scaleX(1);
}

.site-header-phone {
    align-items: center;
    gap: 8px;
}
.site-header-cta .btn-register,
.site-header-mobile-tools .btn-register {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.site-header-inner {
    transition: box-shadow 0.4s var(--ease), background 0.4s, padding 0.3s;
}

/* ─── Mobile menu redesign ─── */
.site-menu-overlay {
    display: flex;
    flex-direction: column;
    padding: 0;
    background: #f8faf6;
    overflow: hidden;
}
.site-menu-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.site-menu-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.45;
    animation: menuOrb 8s ease-in-out infinite;
}
.site-menu-orb-1 {
    width: 280px;
    height: 280px;
    background: rgba(132, 147, 121, 0.35);
    top: -80px;
    right: -60px;
}
.site-menu-orb-2 {
    width: 220px;
    height: 220px;
    background: rgba(90, 107, 78, 0.2);
    bottom: 10%;
    left: -40px;
    animation-delay: -3s;
}
@keyframes menuOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 15px) scale(1.08); }
}

.site-menu-ecg {
    position: absolute;
    bottom: 18%;
    left: 0;
    width: 100%;
    height: 60px;
    color: rgba(132, 147, 121, 0.25);
}
.site-menu-ecg path {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: ecgDraw 4s linear infinite;
}
@keyframes ecgDraw {
    to { stroke-dashoffset: 0; }
}

.site-menu-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: calc(88px + env(safe-area-inset-top)) var(--gutter) calc(48px + env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.site-menu-kicker {
    font-size: 13px;
    font-weight: 600;
    color: var(--green-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.site-menu-overlay.is-open .site-menu-kicker {
    opacity: 1;
    transform: none;
}

.site-menu-overlay a.site-menu-link {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: inherit;
    font-weight: inherit;
    padding: 18px 0;
    border-bottom: 1px solid rgba(132, 147, 121, 0.15);
    transform: translateX(24px);
    opacity: 0;
    transition: transform 0.55s var(--ease), opacity 0.55s var(--ease), color 0.25s;
}
.site-menu-overlay .site-menu-overlay-footer a {
    font-family: var(--font-body);
    font-size: inherit;
    font-weight: inherit;
    padding: 0;
    border-bottom: none;
    transform: none;
    opacity: 1;
}
.site-menu-overlay.is-open a.site-menu-link {
    transform: translateX(0);
    opacity: 1;
    transition-delay: calc(0.06s * var(--i, 0) + 0.08s);
}
.site-menu-link-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(132, 147, 121, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-dark);
    font-size: 18px;
    flex-shrink: 0;
    transition: transform 0.3s var(--ease), background 0.3s;
}
.site-menu-link:hover .site-menu-link-icon,
.site-menu-link.is-active .site-menu-link-icon {
    background: var(--green);
    color: #fff;
    transform: scale(1.05);
}
.site-menu-link-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.site-menu-link-text strong {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 5vw, 1.75rem);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
}
.site-menu-link-text small {
    font-size: 14px;
    color: var(--ink-muted);
}
.site-menu-link-arrow {
    color: var(--green);
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.3s, transform 0.3s var(--ease);
}
.site-menu-link:hover .site-menu-link-arrow,
.site-menu-link.is-active .site-menu-link-arrow {
    opacity: 1;
    transform: none;
}
.site-menu-link.is-active .site-menu-link-text strong {
    color: var(--green-dark);
}

.site-menu-overlay-footer {
    margin-top: auto;
    padding-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.site-menu-register {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.site-menu-phone {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Hide old overlay link styles conflict */
.site-menu-overlay > a:not(.site-menu-link) { display: none; }

/* ─── Footer ─── */
.site-footer {
    position: relative;
    border-top: none;
    padding: 0 0 20px;
    background: #4d6e54;
    color: rgba(255, 255, 255, 0.88);
    overflow: hidden;
}

.site-footer-pattern {
    position: absolute;
    inset: 0;
    background-image: var(--med-pattern-footer);
    background-size: 40px 40px;
    opacity: 0.14;
    pointer-events: none;
    z-index: 0;
}

.site-footer .container {
    position: relative;
    z-index: 1;
    padding-top: 48px;
}

.footer-grid {
    display: grid;
    gap: 28px 24px;
    grid-template-columns: 1fr;
}

.footer-logo img {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
    margin-bottom: 16px;
}
.footer-brand-name {
    font-size: 1.65rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    margin-top: 4px;
}
.footer-brand-tag {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 6px;
}
.footer-brand-desc {
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.62);
    margin-top: 8px;
    max-width: 28rem;
}
.footer-register-btn {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.footer-register-btn:hover {
    transform: translateY(-1px);
}

.footer-social {
    margin-top: 0;
}

.footer-social-block {
    margin-top: 20px;
}

.footer-social-block .footer-col-title {
    margin-top: 0;
}

.footer-social-block .footer-social-list {
    margin-top: 12px;
}

.footer-social-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

.footer-social-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.28s var(--ease, ease), background 0.28s, color 0.28s, border-color 0.28s, box-shadow 0.28s;
}

.footer-social-link:hover {
    transform: translateY(-3px);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.footer-social-link--youtube:hover {
    background: #ff0000;
}

.footer-social-link--facebook:hover {
    background: #1877f2;
}

.footer-social-link--instagram:hover {
    background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%);
}

.footer-social-link--whatsapp:hover {
    background: #25d366;
}

.footer-col-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-col-title i {
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-links a {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    transition: color 0.2s;
}
.footer-links a:hover {
    color: #fff;
}

.footer-pillars {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-pillars li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}
.footer-pillars i {
    width: auto;
    height: auto;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    background: none;
    border-radius: 0;
}

.footer-contact-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-contact-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    transition: color 0.2s;
}
.footer-contact-card:hover {
    background: none;
    border-color: transparent;
    transform: none;
    color: #fff;
}
.footer-contact-icon {
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
    font-size: 13px;
    margin-top: 2px;
}
.footer-contact-card small {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 2px;
}
.footer-contact-card strong {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    word-break: break-word;
}

.footer-bottom {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}
.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-bottom-links a {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.2s;
}
.footer-bottom-links a:hover {
    color: rgba(255, 255, 255, 0.85);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    }

    .footer-col:not(.footer-brand-col) {
        padding-top: 18px;
    }

    .footer-col:not(.footer-brand-col) .footer-col-title {
        margin-top: 0;
    }
}

@media (min-width: 1024px) {
    .site-menu-link-text strong { font-size: 1.85rem; }

    .site-menu-overlay:not(.is-open) {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header-inner,
    .trust-item,
    .site-menu-orb,
    .site-menu-ecg path,
    .vitals-orb,
    .vitals-ecg path,
    .vitals-ring,
    .testimonial-card,
    .site-header-light-sweep,
    .site-header-glow-line,
    .hero-mesh,
    .hero-light-ray,
    .hero-particle,
    .hero-3d-ring,
    .hero-3d-glow {
        animation: none !important;
    }
    .site-menu-overlay a.site-menu-link {
        transform: none;
        opacity: 1;
    }
}

/* ─── Language switch ─── */
.site-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(168, 184, 158, 0.35);
    border-radius: var(--radius-pill);
}
.site-header-hero:not(.is-scrolled) .site-lang-switch {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
}
.site-header-hero .site-lang-btn { color: rgba(255, 255, 255, 0.88); }
.site-header-hero.is-scrolled .site-lang-switch {
    background: var(--paper-2);
    border-color: rgba(107, 148, 112, 0.25);
}
.site-header-hero.is-scrolled .site-lang-btn { color: var(--ink-muted); }
.site-lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 40px;
    width: 40px;
    height: 32px;
    padding: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
    color: var(--ink-muted);
    border-radius: var(--radius-pill);
    transition: background 0.25s, color 0.25s;
    flex: 0 0 40px;
}
.site-lang-btn.is-active {
    background: var(--green);
    color: #fff;
}
.site-header-hero .site-lang-btn.is-active {
    background: var(--green);
    color: #fff;
}
.site-lang-switch-mobile { margin-inline-end: 4px; }
.site-lang-switch-menu { margin-bottom: 16px; }

.site-header-phone-num { display: none; }
@media (min-width: 1200px) {
    .site-header-phone-num { display: inline; }
}

/* ─── Vital organs section ─── */
.vitals-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--paper) 0%, var(--green-light) 100%);
}
.vitals-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.vitals-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.35;
    animation: menuOrb 10s ease-in-out infinite;
}
.vitals-orb-1 {
    width: 320px;
    height: 320px;
    background: rgba(168, 184, 158, 0.45);
    top: -80px;
    right: 10%;
}
.vitals-orb-2 {
    width: 260px;
    height: 260px;
    background: rgba(122, 145, 112, 0.25);
    bottom: 0;
    left: -60px;
    animation-delay: -4s;
}
.vitals-ecg {
    position: absolute;
    bottom: 12%;
    left: 0;
    width: 100%;
    height: 40px;
    color: rgba(168, 184, 158, 0.35);
}
.vitals-ecg path {
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
    animation: ecgDraw 5s linear infinite;
}
.vitals-section.is-visible .vitals-ecg path {
    animation-play-state: running;
}

.vitals-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 48px;
    align-items: center;
}
@media (min-width: 960px) {
    .vitals-grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
}
.vitals-lead {
    font-size: 1.05rem;
    color: var(--ink-muted);
    line-height: 1.8;
    max-width: 520px;
    margin: 12px 0 28px;
}
.vitals-tabs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.vitals-tab {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    padding: 16px 18px;
    text-align: start;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(168, 184, 158, 0.28);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s, background 0.35s;
    overflow: hidden;
}
.vitals-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(122, 145, 112, 0.12);
}
.vitals-tab.is-active {
    background: #fff;
    border-color: var(--green);
    box-shadow: 0 16px 40px rgba(168, 184, 158, 0.2);
}
.vitals-tab-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--green-light);
    color: var(--green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: background 0.3s, color 0.3s;
}
.vitals-tab.is-active .vitals-tab-icon {
    background: var(--green);
    color: #fff;
}
.vitals-tab-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.vitals-tab-text strong {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--ink);
}
.vitals-tab-text small {
    font-size: 0.85rem;
    color: var(--ink-muted);
    line-height: 1.5;
}
.vitals-tab-pulse {
    position: absolute;
    inset-inline-end: 16px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-radius: 50%;
    background: var(--green);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s;
}
.vitals-tab.is-active .vitals-tab-pulse {
    opacity: 1;
    animation: vitalsPulse 1.4s ease-in-out infinite;
}
@keyframes vitalsPulse {
    0%, 100% { transform: scale(0.8); opacity: 0.6; }
    50% { transform: scale(1.4); opacity: 1; }
}

.vitals-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 420px;
}
.vitals-visual-frame {
    position: relative;
    z-index: 2;
    overflow: hidden;
    width: min(100%, 420px);
    background: transparent;
    border-radius: var(--radius);
    box-shadow: var(--shadow-float);
    border: 1px solid rgba(107, 148, 112, 0.2);
}
.vitals-visual-photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
}
.vitals-visual-frame .med-body-viz {
    width: min(100%, 300px);
}
.vitals-ring {
    position: absolute;
    border: 1px solid rgba(168, 184, 158, 0.35);
    border-radius: 50%;
    pointer-events: none;
}
.vitals-ring-1 {
    inset: 8%;
    animation: med-ring-spin 22s linear infinite;
}
.vitals-ring-2 {
    inset: 2%;
    border-style: dashed;
    opacity: 0.5;
    animation: med-ring-spin 30s linear infinite reverse;
}

/* ─── FAQ accordion ─── */
.faq-accordion {
    max-width: 760px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: #fff;
    border: 1px solid rgba(168, 184, 158, 0.25);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: box-shadow 0.3s var(--ease);
}
.faq-item[open] {
    box-shadow: 0 12px 36px rgba(168, 184, 158, 0.15);
}
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--green-light);
    color: var(--green-dark);
    font-size: 12px;
    transition: transform 0.35s var(--ease), background 0.35s;
}
.faq-item[open] .faq-icon {
    transform: rotate(45deg);
    background: var(--green);
    color: #fff;
}
.faq-answer {
    padding: 0 22px 20px;
    color: var(--ink-muted);
    line-height: 1.85;
    font-size: 0.98rem;
}

/* ─── Testimonials ─── */
.testimonials-track {
    display: grid;
    gap: 24px;
}
@media (min-width: 768px) {
    .testimonials-track { grid-template-columns: repeat(3, 1fr); }
}
.testimonial-card {
    margin: 0;
    padding: 28px 24px;
    background: linear-gradient(160deg, #fff 0%, var(--green-light) 100%);
    border: 1px solid rgba(168, 184, 158, 0.28);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-float);
}
.testimonial-stars {
    color: #c9a227;
    font-size: 13px;
    margin-bottom: 14px;
    display: flex;
    gap: 4px;
}
.testimonial-text {
    font-size: 0.98rem;
    line-height: 1.75;
    color: var(--ink-soft);
    margin-bottom: 18px;
    font-style: italic;
}
.testimonial-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.testimonial-meta strong {
    font-family: var(--font-display);
    color: var(--ink);
}
.testimonial-meta span {
    font-size: 13px;
    color: var(--ink-muted);
}

/* ─── Footer newsletter ─── */
.footer-newsletter {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-newsletter h5 {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-newsletter p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 12px;
    line-height: 1.5;
}
.footer-newsletter-form {
    display: flex;
    gap: 8px;
}
.footer-newsletter-form input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 13px;
}
.footer-newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.45); }
.footer-newsletter-form button {
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-pill);
    background: var(--green);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.25s, transform 0.25s;
}
.footer-newsletter-form button:hover {
    background: #b8c9ae;
    transform: translateY(-1px);
}

/* ─── Home flash toast ─── */
.home-flash-toast {
    position: fixed;
    bottom: 24px;
    inset-inline: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 14px 22px;
    background: var(--green-dark);
    color: #fff;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-float);
    font-size: 14px;
    font-weight: 600;
    animation: toastIn 0.5s var(--ease), toastOut 0.5s var(--ease) 4s forwards;
}
html[dir="rtl"] .home-flash-toast {
    transform: translateX(50%);
}
@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(12px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes toastOut {
    to { opacity: 0; transform: translateX(-50%) translateY(8px); }
}

/* ─── RTL polish ─── */
html[dir="rtl"] .site-menu-overlay a.site-menu-link {
    transform: translateX(-24px);
}
html[dir="rtl"] .site-menu-overlay.is-open a.site-menu-link {
    transform: translateX(0);
}
html[dir="rtl"] .faq-question,
html[dir="rtl"] .vitals-tab {
    text-align: right;
}

/* ─── Arabic: unified typography & RTL ─── */
html[dir="rtl"] {
    --font-display: 'Alexandria', system-ui, sans-serif;
    --font-body: 'Alexandria', system-ui, sans-serif;
    --font-ar: 'Alexandria', system-ui, sans-serif;
    --leading-body: 1.65;
    --leading-copy: 1.72;
    --leading-heading: 1.42;
    --leading-display: 1.32;
    --space-after-heading: 0.55em;
    --space-paragraph: 0.75em;
}

html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .section-head.center,
html[dir="rtl"] .hero-cinema-stats,
html[dir="rtl"] .marquee-strip,
html[dir="rtl"] .site-lang-switch,
html[dir="rtl"] .footer-bottom {
    text-align: center;
}

html[dir="rtl"] .page-hero-band h1,
html[dir="rtl"] .page-hero-band-title-text {
    line-height: var(--leading-display);
    letter-spacing: 0;
}

html[dir="rtl"] .page-hero-band-kicker {
    letter-spacing: 0.04em;
}

html[dir="ltr"] {
    --font-display: 'Outfit', 'Alexandria', system-ui, sans-serif;
    --font-body: 'Outfit', 'Alexandria', system-ui, sans-serif;
}

html[dir="ltr"] body {
    direction: ltr;
    text-align: left;
}

html[dir="rtl"] body,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
    font-family: var(--font-body);
    line-height: var(--leading-body);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] .section-head h2,
html[dir="rtl"] .site-nav-link,
html[dir="rtl"] .footer-brand-name,
html[dir="rtl"] .site-menu-link-text strong,
html[dir="rtl"] .hero-cinema-title,
html[dir="rtl"] .page-hero-band h1,
html[dir="rtl"] .bento-card h3,
html[dir="rtl"] .article-card h2 {
    font-family: var(--font-display);
    letter-spacing: 0;
    font-weight: 700;
    line-height: var(--leading-heading);
}

html[dir="rtl"] p,
html[dir="rtl"] li,
html[dir="rtl"] label,
html[dir="rtl"] .article-content,
html[dir="rtl"] .page-body,
html[dir="rtl"] .footer-brand-desc,
html[dir="rtl"] .bento-card p,
html[dir="rtl"] .help-pill,
html[dir="rtl"] .faq-answer,
html[dir="rtl"] .vitals-lead,
html[dir="rtl"] .about-bento-main p,
html[dir="rtl"] .hero-cinema-lead {
    line-height: var(--leading-copy);
}

html[dir="rtl"] p {
    margin-bottom: var(--space-paragraph);
}

html[dir="rtl"] .section-kicker {
    margin-bottom: 12px;
    letter-spacing: 0.04em;
    line-height: 1.5;
}

html[dir="rtl"] .section-head {
    margin-bottom: clamp(22px, 3vw, 36px);
}

html[dir="rtl"] .section-head h2 {
    line-height: var(--leading-display);
    letter-spacing: 0;
    max-width: none;
    margin-bottom: var(--space-after-heading);
}

html[dir="rtl"] .section-head p {
    margin-top: 0;
    margin-bottom: 0;
    line-height: var(--leading-copy);
}

html[dir="rtl"] .hero-cinema-title {
    line-height: var(--leading-display);
    margin-bottom: 20px;
}

html[dir="rtl"] .hero-line {
    line-height: var(--leading-display);
}

html[dir="rtl"] .hero-line + .hero-line {
    margin-top: 0.2em;
}

html[dir="rtl"] .hero-line-accent {
    letter-spacing: 0;
    line-height: 1.55;
    margin-top: 0.35em;
}

html[dir="rtl"] .hero-cinema-lead {
    line-height: var(--leading-copy);
    margin-bottom: 24px;
}

html[dir="rtl"] .hero-stat-card span {
    letter-spacing: 0.02em;
    line-height: 1.45;
}

html[dir="rtl"] .bento-card h3 {
    margin-bottom: 10px;
    line-height: var(--leading-heading);
}

html[dir="rtl"] .bento-card p {
    margin-bottom: 0;
}

html[dir="rtl"] .help-pill {
    line-height: var(--leading-copy);
    gap: 12px;
}

html[dir="rtl"] .vitals-tab-text strong {
    line-height: 1.45;
    display: block;
    margin-bottom: 4px;
}

html[dir="rtl"] .vitals-tab-text small {
    line-height: 1.55;
    display: block;
}

html[dir="rtl"] .faq-question {
    line-height: var(--leading-heading);
    padding-block: 4px;
}

html[dir="rtl"] .faq-answer {
    padding-top: 8px;
}

html[dir="rtl"] .site-menu-link-text strong {
    line-height: 1.35;
}

html[dir="rtl"] .footer-brand-tag,
html[dir="rtl"] .footer-brand-desc {
    line-height: var(--leading-copy);
}

html[dir="rtl"] .footer-brand-desc {
    margin-top: 10px;
}

html[dir="rtl"] .btn,
html[dir="rtl"] .site-lang-btn,
html[dir="rtl"] .form-control,
html[dir="rtl"] .site-menu-kicker,
html[dir="rtl"] .footer-col-title,
html[dir="rtl"] .marquee-track span,
html[dir="rtl"] .vitals-tab,
html[dir="rtl"] .article-date {
    font-family: var(--font-body);
    letter-spacing: 0;
    line-height: var(--leading-body);
}

html[dir="rtl"] .site-menu-kicker,
html[dir="rtl"] .hero-cinema-badge {
    letter-spacing: 0.04em;
    line-height: 1.5;
}
