/* ═══════════════════════════════════════════════════════════════════════════
   SOHHTAK — Premium Healthcare Design System
   Stack: Pure CSS (no framework, no build step)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #99f6e4;
    --primary-bg: #f0fdfa;
    --heading: #1e3a5f;
    --text: #334155;
    --text-secondary: #64748b;
    --text-hint: #94a3b8;
    --white: #ffffff;
    --bg: #f8fafc;
    --bg-alt: #f1f5f9;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --success: #10b981;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.25s ease;
    --max-width: 1140px;
    --font-en: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-ar: 'Noto Sans Arabic', 'Inter', sans-serif;
}

/* ─── Reset ─── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-en);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* RTL Body */
[dir="rtl"] body {
    font-family: var(--font-ar);
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ─── Utility ─── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* ═══════════════════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════════════════ */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 60px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-dark);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    background: transparent;
}

.lang-toggle:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

/* Mobile hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════════════ */

.hero {
    padding: 80px 0 60px;
    background: linear-gradient(170deg, var(--white) 0%, var(--primary-bg) 100%);
    border-bottom: 1px solid var(--border-light);
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero-visual {
    flex: 0 0 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-icon-block {
    width: 340px;
    height: 340px;
    background: linear-gradient(135deg, var(--primary-bg), #ccfbf1);
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-icon-block svg {
    width: 160px;
    height: 160px;
    color: var(--primary);
}

.hero-badge {
    position: absolute;
    bottom: -16px;
    right: -16px;
    background: var(--white);
    border: 2px solid var(--primary-light);
    border-radius: 16px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
}

.hero-badge svg {
    width: 18px;
    height: 18px;
    color: var(--success);
}

.hero h1 {
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    color: var(--heading);
    margin-bottom: 18px;
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-trust {
    display: flex;
    gap: 24px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.hero-trust-item svg {
    width: 18px;
    height: 18px;
    color: var(--success);
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.35);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary-bg);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════════════════════ */

.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 700;
    color: var(--heading);
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* ─── Steps (How It Works) ─── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    text-align: center;
    padding: 40px 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    position: relative;
}

.step-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--primary-bg);
    color: var(--primary-dark);
    border-radius: 14px;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 10px;
}

.step-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ─── Service Cards ─── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 32px 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.service-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.service-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-bg);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.service-icon svg {
    width: 26px;
    height: 26px;
    color: var(--primary);
}

.service-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 8px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ─── Trust Section ─── */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.trust-item {
    text-align: center;
    padding: 32px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.trust-item svg {
    width: 40px;
    height: 40px;
    color: var(--primary);
    margin-bottom: 16px;
}

.trust-item h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 6px;
}

.trust-item p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ─── CTA Banner ─── */
.cta-banner {
    padding: 64px 0;
    background: linear-gradient(135deg, var(--heading) 0%, #2d5a8a 100%);
    color: var(--white);
    text-align: center;
}

.cta-banner h2 {
    font-size: clamp(24px, 3.5vw, 34px);
    font-weight: 700;
    margin-bottom: 14px;
}

.cta-banner p {
    font-size: 17px;
    opacity: 0.85;
    margin-bottom: 28px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.cta-banner .btn-primary {
    background: var(--primary);
}

.cta-banner .btn-primary:hover {
    background: var(--primary-dark);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PAGE HERO (inner pages)
   ═══════════════════════════════════════════════════════════════════════════ */

.page-hero {
    padding: 56px 0 48px;
    background: linear-gradient(170deg, var(--white) 0%, var(--primary-bg) 100%);
    border-bottom: 1px solid var(--border-light);
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 800;
    color: var(--heading);
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.page-hero p {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.about-card {
    padding: 36px 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.about-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-card h3 svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.about-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FAQ ACCORDION
   ═══════════════════════════════════════════════════════════════════════════ */

.faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    background: var(--white);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: var(--heading);
    text-align: left;
    transition: background var(--transition);
}

[dir="rtl"] .faq-question {
    text-align: right;
}

.faq-question:hover {
    background: var(--bg);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    color: var(--text-hint);
    transition: transform var(--transition);
    flex-shrink: 0;
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════════════════════ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-info-item .icon-wrap {
    width: 48px;
    height: 48px;
    background: var(--primary-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-item .icon-wrap svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.contact-info-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--heading);
    margin-bottom: 4px;
}

.contact-info-item p,
.contact-info-item a {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.contact-info-item a:hover {
    color: var(--primary);
}

.contact-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

.contact-form h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
    background: var(--bg);
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */

.site-footer {
    background: var(--heading);
    color: rgba(255, 255, 255, 0.75);
    padding: 56px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    margin-top: 12px;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 10px;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 13px;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo img {
    height: 48px;
    width: auto;
    display: block;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-visual {
        flex: none;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    /* Mobile nav open state */
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        padding: 20px 24px;
        gap: 16px;
        box-shadow: var(--shadow-lg);
    }

    .section {
        padding: 56px 0;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .hero-icon-block {
        width: 260px;
        height: 260px;
    }

    .hero-icon-block svg {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 48px 0 40px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .page-hero {
        padding: 40px 0 32px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RTL OVERRIDES
   ═══════════════════════════════════════════════════════════════════════════ */

[dir="rtl"] {
    letter-spacing: 0 !important;
}

[dir="rtl"] .nav-links a.active::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .hero-badge {
    right: auto;
    left: -16px;
}

[dir="rtl"] .hero-inner {
    direction: rtl;
}

[dir="rtl"] .footer-brand p {
    margin-left: auto;
    margin-right: 0;
}