/**
 * الووکیل — Material Design 3 (RTL) · Sabte Kalhor tokens via CSS variables
 */

.alolawyer-page {
    direction: rtl;
    text-align: right;
    font-family: var(--al-font);
    color: var(--al-on-surface);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.alolawyer-page *,
.alolawyer-page *::before,
.alolawyer-page *::after {
    box-sizing: border-box;
}

/* ── Secondary nav (sticky on AloLawyer page — not main site navbar) ── */
body.page-alolawyer #navbar,
body.page-alolawyer #navbar.fixed-top,
body.page-alolawyer #navbar.show,
body.page-alolawyer #navbar.hide {
    position: static !important;
    top: auto !important;
    box-shadow: none !important;
}

.al-subnav {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--al-subnav-bg);
    border-top: 4px solid var(--al-subnav-bar);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);
}

.al-subnav__inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    min-height: 64px;
    direction: rtl;
    text-align: right;
}

.al-subnav__brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
    text-decoration: none;
    color: var(--al-subnav-text);
}

.al-subnav__brand:hover {
    text-decoration: none;
    color: var(--al-primary);
}

.al-subnav__brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--al-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 151, 152, 0.35);
}

.al-subnav__brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.al-subnav__brand-icon em {
    color: #fff;
    font-size: 1.1rem;
}

.al-subnav__brand-text strong {
    display: block;
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.3;
}

.al-subnav__brand-text small {
    display: block;
    font-size: 0.68rem;
    color: var(--al-accent);
    font-weight: normal;
}

.al-subnav__links {
    display: none;
    flex: 1;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
    direction: rtl;
}

@media (min-width: 992px) {
    .al-subnav__links {
        display: flex;
    }
}

.al-subnav__chip {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--al-muted);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.al-subnav__chip:hover {
    background: color-mix(in srgb, var(--al-primary) 10%, transparent);
    color: var(--al-primary-dark);
    text-decoration: none;
}

.al-subnav__cta {
    display: none;
    align-items: center;
    gap: 0.4rem;
    margin-right: auto;
    margin-left: 0;
    padding: 0.55rem 1.15rem;
    border-radius: 100px;
    background: var(--al-accent);
    color: var(--al-purple);
    font-size: 0.82rem;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(245, 166, 35, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.al-subnav__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(245, 166, 35, 0.45);
    color: var(--al-purple);
    text-decoration: none;
}

@media (min-width: 992px) {
    .al-subnav__cta {
        display: inline-flex;
    }
}

.al-subnav__toggle {
    display: flex;
    margin-right: auto;
    background: var(--al-surface-variant);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    color: var(--al-subnav-text);
    cursor: pointer;
}

@media (min-width: 992px) {
    .al-subnav__toggle {
        display: none;
    }
}

.al-subnav__drawer {
    display: none;
    padding: 0.75rem 0 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    direction: rtl;
    text-align: right;
}

.al-subnav__drawer.is-open {
    display: block;
}

.al-subnav__drawer .al-subnav__chip {
    display: block;
    border-radius: 10px;
    margin-bottom: 0.25rem;
}

.al-subnav__drawer .al-subnav__cta {
    display: inline-flex;
    margin-top: 0.75rem;
}

/* ── Hero (MD3 filled gradient surface) ── */
.al-hero {
    position: relative;
    padding: 2.75rem 0 3.5rem;
    background: linear-gradient(135deg, var(--al-hero-start) 0%, var(--al-hero-end) 100%);
    overflow: hidden;
}

.al-hero.has-bg-image {
    background-image: var(--al-hero-bg-image);
    background-size: cover;
    background-position: center;
}

.al-hero.has-bg-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(9, 131, 142, 0.92) 0%, rgba(49, 41, 97, 0.94) 100%);
}

.al-hero .container {
    position: relative;
    z-index: 1;
}

.al-hero__grid {
    display: grid;
    gap: 1.5rem;
    align-items: stretch;
}

@media (min-width: 992px) {
    .al-hero__grid {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 1.75rem;
    }
}

.al-surface-hero {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--al-radius);
    padding: 2rem 1.75rem;
    color: #fff;
    text-align: right;
    box-shadow: var(--al-elevation);
}

.al-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--al-accent);
    font-size: var(--al-kicker-size);
    font-weight: bold;
    margin-bottom: 1rem;
}

.al-kicker__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--al-accent);
    animation: al-pulse 1.5s infinite;
}

@keyframes al-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.al-hero__title {
    font-size: var(--al-hero-title-size);
    font-weight: bold;
    line-height: 1.55;
    margin: 0 0 1rem;
    text-align: right;
    color: #fff;
}

.al-hero__title em {
    color: var(--al-accent);
    font-style: normal;
}

.al-hero__desc {
    font-size: var(--al-hero-body-size);
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.93);
    margin: 0;
    text-align: right;
}

.al-trust-pill {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-right: 3px solid var(--al-accent);
    font-size: calc(var(--al-body-size) - 0.02rem);
    text-align: right;
}

.al-trust-pill em {
    color: var(--al-accent);
    margin-top: 0.15rem;
}

.al-manager {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.75rem;
    text-align: right;
}

.al-manager__photo {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 3px solid var(--al-accent);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--al-purple);
}

.al-manager__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.al-manager__name {
    font-weight: bold;
    font-size: 0.92rem;
    margin: 0;
    color: #fff;
}

.al-manager__role {
    font-size: 0.8rem;
    color: var(--al-accent);
    margin: 0.25rem 0 0;
    line-height: 1.6;
}

/* Form elevated card */
.al-form-card {
    background: var(--al-surface);
    border-radius: var(--al-radius);
    box-shadow: var(--al-elevation);
    overflow: hidden;
    text-align: right;
    border: var(--al-border-w) solid rgba(0, 151, 152, 0.12);
}

.al-form-card__accent {
    height: 5px;
    background: linear-gradient(to left, var(--al-primary), var(--al-accent));
}

.al-form-card__body {
    padding: 1.5rem 1.65rem 1.75rem;
}

.al-form-card h3 {
    color: var(--al-primary-dark);
    font-size: calc(var(--al-card-title-size) + 0.05rem);
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-align: right;
}

.al-form-card__sub {
    color: var(--al-primary);
    font-size: 0.82rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-align: right;
}

.al-form-card label {
    font-size: 0.84rem;
    font-weight: bold;
    color: var(--al-muted);
    text-align: right;
    display: block;
}

.al-form-card .form-control {
    border-radius: 12px;
    border: var(--al-border-w) solid #e2e8f0;
    font-size: var(--al-body-size);
    text-align: right;
    padding: 0.65rem 0.9rem;
}

.al-form-card .form-control[type="tel"] {
    direction: ltr;
    text-align: left;
}

.al-form-card .form-control:focus {
    border-color: var(--al-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--al-primary) 18%, transparent);
}

.al-form-card select.form-control,
.al-form-card .al-select,
.al-booking-form select.form-control {
    display: block;
    width: 100%;
    min-height: 48px;
    height: auto;
    line-height: 1.6;
    padding: 0.7rem 2.25rem 0.7rem 0.9rem;
    appearance: auto;
    -webkit-appearance: menulist;
    background-color: #fff;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    direction: rtl;
    text-align: right;
}

.al-form-card select.form-control option,
.al-booking-form select.form-control option {
    direction: rtl;
    text-align: right;
    padding: 0.35rem 0.5rem;
    line-height: 1.5;
}

.al-form-card .btn-default {
    font-size: var(--al-button-size);
    font-weight: bold;
    padding: 0.75rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 151, 152, 0.3);
}

.al-form-card__footer {
    font-size: 0.76rem;
    color: #94a3b8;
    font-style: italic;
    margin: 0.85rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px dashed #e2e8f0;
    text-align: right;
}

/* ── Sections ── */
.al-section {
    padding: var(--al-section-pad) 0;
    text-align: right;
}

.al-section--why { background: var(--al-why-bg); }
.al-section--services { background: var(--al-services-bg); }
.al-section--lawyers { background: var(--al-lawyers-bg); }
.al-section--faq { background: var(--al-faq-bg); }

.al-section__head {
    margin-bottom: 2.25rem;
    text-align: right;
    max-width: 48rem;
}

.al-section__kicker {
    display: inline-block;
    font-size: var(--al-kicker-size);
    font-weight: bold;
    color: var(--al-primary);
    background: color-mix(in srgb, var(--al-primary) 10%, transparent);
    padding: 0.3rem 0.85rem;
    border-radius: 100px;
    margin-bottom: 0.65rem;
}

.al-section__title {
    font-size: var(--al-section-title-size);
    font-weight: bold;
    color: var(--al-primary-dark);
    line-height: 1.5;
    margin: 0 0 0.65rem;
    text-align: right;
}

.al-section__lead {
    font-size: var(--al-body-size);
    color: var(--al-muted);
    line-height: 1.85;
    margin: 0;
    text-align: right;
}

.al-section__accent {
    width: 56px;
    height: 4px;
    background: linear-gradient(to left, var(--al-accent), var(--al-primary));
    border-radius: 100px;
    margin-top: 0.85rem;
}

/* MD3 elevated cards */
.al-m3-card {
    background: var(--al-surface);
    border-radius: var(--al-radius);
    border: var(--al-border-w) solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--al-elevation);
    padding: 1.5rem;
    height: 100%;
    text-align: right;
    transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.25s;
}

.al-m3-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.al-m3-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--al-primary), var(--al-primary-dark));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.al-m3-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.al-m3-card h3 {
    font-size: var(--al-card-title-size);
    font-weight: bold;
    color: var(--al-primary-dark);
    margin: 0 0 0.65rem;
    text-align: right;
}

.al-m3-card p {
    font-size: var(--al-body-size);
    color: var(--al-muted);
    line-height: 1.85;
    margin: 0;
    text-align: right;
}

/* Service card */
.al-service-card {
    border-right: 4px solid var(--al-accent);
}

.al-service-card__num {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: color-mix(in srgb, var(--al-accent) 18%, transparent);
    color: var(--al-primary-dark);
    font-weight: bold;
    font-size: 0.85rem;
    margin-bottom: 0.85rem;
}

.al-bullets {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.15rem;
}

.al-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    font-size: calc(var(--al-body-size) - 0.04rem);
    color: var(--al-muted);
    margin-bottom: 0.45rem;
    text-align: right;
    line-height: 1.65;
}

.al-bullets em {
    color: var(--al-primary);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.al-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--al-primary-dark);
    font-weight: bold;
    font-size: calc(var(--al-body-size) - 0.02rem);
    text-decoration: none;
}

.al-link:hover {
    color: var(--al-primary);
    text-decoration: none;
}

/* Lawyer card */
.al-lawyer-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.al-lawyer-card__head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.35rem 1.25rem 1rem;
    flex: 1;
    text-align: right;
}

.al-lawyer-card__photo {
    width: 76px;
    height: 76px;
    border-radius: 14px;
    border: 2px solid var(--al-primary);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--al-surface-variant);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
}

.al-lawyer-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.al-lawyer-card__foot {
    padding: 1rem 1.25rem;
    background: var(--al-surface-variant);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.al-lawyer-card__foot .btn-b-default {
    border-radius: 100px;
    font-size: calc(var(--al-button-size) - 0.05rem);
    font-weight: bold;
}

/* Stats */
.al-stats {
    background: linear-gradient(to left, var(--al-hero-start), var(--al-hero-end));
    padding: 2.75rem 0;
    border-bottom: 4px solid var(--al-accent);
}

.al-stat {
    text-align: right;
    padding: 0.5rem 0;
}

.al-stat__value {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: bold;
    color: var(--al-accent);
    margin-bottom: 0.35rem;
}

.al-stat__label {
    display: block;
    font-size: calc(var(--al-body-size) - 0.05rem);
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.65;
    max-width: 15rem;
}

/* FAQ */
.al-faq {
    max-width: 52rem;
    margin-right: 0;
    margin-left: auto;
}

.al-faq__item {
    background: var(--al-surface);
    border-radius: var(--al-radius);
    border: var(--al-border-w) solid rgba(0, 0, 0, 0.06);
    margin-bottom: 0.65rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.2s;
}

.al-faq__item.is-open {
    box-shadow: var(--al-elevation);
    border-color: color-mix(in srgb, var(--al-primary) 25%, transparent);
}

.al-faq__btn {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.35rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: right;
}

.al-faq__btn span {
    flex: 1;
    font-weight: bold;
    font-size: calc(var(--al-body-size) + 0.04rem);
    color: var(--al-on-surface);
    text-align: right;
    line-height: 1.6;
}

.al-faq__btn em {
    color: var(--al-primary);
    transition: transform 0.25s;
    flex-shrink: 0;
}

.al-faq__item.is-open .al-faq__btn em {
    transform: rotate(180deg);
    color: var(--al-accent);
}

.al-faq__answer {
    display: none;
    padding: 0 1.35rem 1.15rem;
    font-size: var(--al-body-size);
    color: var(--al-muted);
    line-height: 1.9;
    text-align: right;
    border-top: 1px solid #f1f5f9;
    padding-top: 0.85rem;
}

.al-faq__item.is-open .al-faq__answer {
    display: block;
}

/* Contact */
.al-contact {
    background: linear-gradient(to left, var(--al-hero-start) 30%, var(--al-hero-end) 100%);
    padding: var(--al-section-pad) 0;
    text-align: right;
    color: #fff;
}

.al-contact h4 {
    font-weight: bold;
    font-size: calc(var(--al-card-title-size) + 0.02rem);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid color-mix(in srgb, var(--al-accent) 55%, transparent);
    display: inline-block;
}

.al-contact p,
.al-contact li {
    font-size: var(--al-body-size);
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.92);
}

.al-contact .gold {
    color: var(--al-accent);
    font-weight: bold;
}

.al-contact__phone {
    font-size: 1.35rem;
    font-weight: bold;
    color: var(--al-accent);
    direction: ltr;
    text-align: right;
    display: inline-block;
}

.al-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.75rem;
}

.al-badge-box {
    width: 58px;
    height: 68px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.al-badge-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Grid */
.al-grid-3 {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .al-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.al-grid-2 {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 992px) {
    .al-grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.al-grid-4 {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 576px) {
    .al-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .al-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 991px) {
    .al-hero__grid {
        grid-template-columns: 1fr;
    }
}

/* ── Lawyer card role ── */
.al-lawyer-card__role {
    font-size: 0.78rem;
    color: var(--al-primary);
    font-weight: bold;
}

/* ── Booking modal (MD3 dialog) ── */
.al-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.al-modal.is-open {
    display: flex;
}

.al-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}

.al-modal__dialog {
    position: relative;
    width: min(100%, 440px);
    max-height: 92vh;
    overflow-y: auto;
    background: var(--al-surface);
    border-radius: 20px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
    padding: 1.5rem 1.65rem 1.75rem;
    direction: rtl;
    text-align: right;
}

.al-modal__close {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: var(--al-surface-variant);
    color: var(--al-muted);
    cursor: pointer;
}

.al-modal__head h3 {
    color: var(--al-primary-dark);
    font-size: 1.15rem;
    font-weight: bold;
    margin: 0 0 0.35rem;
}

.al-modal__lawyer {
    color: var(--al-accent);
    font-weight: bold;
    font-size: 0.9rem;
    margin: 0 0 1rem;
}

.al-booking-form label {
    font-size: 0.84rem;
    font-weight: bold;
    color: var(--al-muted);
    display: block;
    margin-bottom: 0.35rem;
}

.al-booking-form .form-control,
.al-booking-form select.form-control,
.al-booking-form .al-select {
    border-radius: 12px;
    border: var(--al-border-w) solid #e2e8f0;
    font-size: var(--al-body-size);
    text-align: right;
    padding: 0.65rem 0.9rem;
    width: 100%;
}

.al-booking-form .form-control[type="tel"] {
    direction: ltr;
    text-align: left;
}

.al-booking-form select.form-control,
.al-booking-form .al-select {
    min-height: 48px;
    height: auto;
    line-height: 1.6;
    padding: 0.7rem 2.25rem 0.7rem 0.9rem;
    appearance: auto;
    -webkit-appearance: menulist;
    direction: rtl;
}

.al-char-count {
    display: block;
    text-align: left;
    direction: ltr;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

.al-booking-fee {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    background: var(--al-surface-variant);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    margin: 1rem 0;
}

.al-booking-fee__label {
    display: block;
    font-size: 0.72rem;
    color: var(--al-muted);
    margin-bottom: 0.2rem;
}

.al-booking-fee__amount {
    color: var(--al-primary-dark);
    font-size: 1rem;
}

.al-booking-form .btn-default {
    font-weight: bold;
    border-radius: 12px;
    padding: 0.75rem;
}
