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

:root {
    --navy: #0f1224;
    --navy-mid: #1a1f3a;
    --gold: #d24151;
    --gold-light: #e05a69;
    --cream: #f2f2f2;
    --muted: rgba(15, 18, 36, 0.5);
    --border: rgba(210, 65, 81, 0.2);
    --border-soft: rgba(15, 18, 36, 0.07);
    --header-h: 70px;
    --footer-h: 40px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #0a0c18;
    color: #ffffff;
    height: 100vh;
    overflow: hidden;
}

/* ── Header ── */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
}

/* Shared container — same width as .hero-content */
.page-container {
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Header Left - Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-mark {
    width: 42px;
    height: 42px;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 16px;
    flex-shrink: 0;
}

.logo-copy .name {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.02em;
}

.logo-copy .specialty {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 1px;
}

/* Header Center - Contact Info */
.header-center {
    display: flex;
    align-items: center;
    gap: 32px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--navy);
    transition: color 0.2s;
}

.header-contact-item:hover {
    color: var(--gold);
}

.header-contact-item .hci-icon {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(210, 65, 81, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--gold);
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
}

.header-contact-item:hover .hci-icon {
    background: rgba(210, 65, 81, 0.15);
    border-color: var(--gold);
}

.header-whatsapp .hci-icon {
    border-color: rgba(37, 211, 102, 0.3);
    color: #25D366;
}

.header-whatsapp:hover .hci-icon {
    background: rgba(37, 211, 102, 0.15);
    border-color: #25D366;
}

.hci-text {
    display: flex;
    flex-direction: column;
}

.hci-label {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1;
}

.hci-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    margin-top: 2px;
    line-height: 1;
    letter-spacing: 0.02em;
}

.header-contact-divider {
    width: 1px;
    height: 28px;
    background: rgba(0, 0, 0, 0.1);
}

/* Header Right - Lang Switcher */
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.lang-switcher {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    padding: 4px;
    gap: 2px;
}

.lang-btn {
    min-width: 44px;
    padding: 8px 16px;
    border-radius: 50px;
    border: none;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    color: var(--muted);
    background: transparent;
    transition: all 0.22s;
    line-height: 1;
}

.lang-btn.active {
    background: var(--gold);
    color: #ffffff;
    box-shadow: 0 2px 12px -2px rgba(210, 65, 81, 0.5);
}

.lang-btn:hover:not(.active) {
    color: var(--navy);
    background: rgba(0, 0, 0, 0.06);
}

.lang-btn[data-lang="ar"] {
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-size: 13px;
    letter-spacing: 0;
}

/* ── Hero Section ── */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('hero-bg.webp') center/cover no-repeat;
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(15, 18, 36, 0.92) 0%, rgb(15 18 36 / 58%) 35%, rgb(15 18 36 / 45%) 55%, rgba(15, 18, 36, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 460px;
    gap: 60px;
    align-items: center;
    padding: 0 60px;
    padding-top: var(--header-h);
    height: 100%;
}

/* ── Hero Left ── */
.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 40px 0;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
}

.eyebrow::before {
    content: '';
    width: 32px;
    height: 2px;
    background: var(--gold);
    flex-shrink: 0;
}

.hero-intro {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-doctor-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
    flex-shrink: 0;
}

.hero-heading {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(32px, 3.2vw, 52px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.hero-heading em {
    font-style: italic;
    color: var(--gold);
}

.hero-sub {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
    color: #ffffff;
    max-width: 440px;
}

/* Feature Badges */
.hero-services {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 8px;
}

.hero-service {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 14px 12px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(210, 65, 81, 0.25);
    border-radius: 14px;
    backdrop-filter: blur(12px);
    transition: background 0.2s, border-color 0.2s;
}

.hero-service:hover {
    background: rgba(210, 65, 81, 0.2);
    border-color: rgba(210, 65, 81, 0.5);
}

.hero-service-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(210, 65, 81, 0.4);
}

.hero-service-text {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
}

.hero-service-sub {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
    line-height: 1.4;
}

/* ── Hero Right - Map + Address ── */
.hero-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding-top: 16px;
    padding-bottom: calc(var(--footer-h) + 16px);
    height: calc(100vh - var(--header-h));
}

/* Doctor Card */
.doctor-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    width: fit-content;
    transition: background 0.2s;
}

.doctor-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.doctor-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    flex-shrink: 0;
}

.doctor-name {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.doctor-role {
    font-size: 12px;
    color: var(--gold);
    margin-top: 1px;
}

/* Contact Row */
.contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(8px);
}

.ci-icon {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(210, 65, 81, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #ffffff;
    flex-shrink: 0;
}

.ci-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1;
}

.ci-value {
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    margin-top: 2px;
    line-height: 1.3;
}

/* Appointment Form Card */
.form-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    padding: 28px 28px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    color: var(--navy);
}

.form-title {
    font-family: 'Roboto', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.form-desc {
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
    margin-bottom: 18px;
    line-height: 1.5;
}

.cf {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cf-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cf-field label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.cf-field input,
.cf-field select,
.cf-field textarea {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(210, 65, 81, 0.15);
    border-radius: 10px;
    padding: 10px 13px;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    color: var(--navy);
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.cf-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23d24151' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
}

.cf-field select option {
    background: #fff;
    color: var(--navy);
}

.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
    border-color: rgba(210, 65, 81, 0.5);
    background: rgba(210, 65, 81, 0.04);
}

.cf-field input::placeholder,
.cf-field textarea::placeholder {
    color: rgba(15, 18, 36, 0.28);
}

.cf-field textarea {
    resize: none;
    min-height: 60px;
    line-height: 1.5;
}

.cf-status {
    display: none;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
}

.cf-status.ok {
    display: block;
    background: rgba(5, 150, 105, 0.08);
    border: 1px solid rgba(5, 150, 105, 0.25);
    color: #047857;
}

.cf-status.err {
    display: block;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #b91c1c;
}

.cf-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    width: 100%;
    transition: transform 0.15s, box-shadow 0.2s;
    margin-top: 4px;
}

.cf-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -4px rgba(210, 65, 81, 0.4);
}

.cf-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cf-submit .arr {
    font-size: 12px;
    transition: transform 0.2s;
}

.cf-submit:hover:not(:disabled) .arr {
    transform: translateX(3px);
}

/* Map Card */
.map-card {
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.12);
    height: 400px;
    flex-shrink: 0;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
}

.map-card iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ── Footer Bar ── */
.footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    background: #ffffff;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    height: 40px;
}

.footer-bar p {
    font-size: 11px;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 18px;
}

.footer-links a {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--gold);
}

/* ── Animations ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.a {
    opacity: 0;
    animation: fadeUp 0.65s ease-out forwards;
}

.d1 {
    animation-delay: .05s
}

.d2 {
    animation-delay: .18s
}

.d3 {
    animation-delay: .3s
}

.d4 {
    animation-delay: .42s
}

.d5 {
    animation-delay: .08s
}

.d6 {
    animation-delay: .22s
}

.d7 {
    animation-delay: .36s
}

/* ── RTL Support ── */
[dir="rtl"] body {
    font-family: 'Noto Kufi Arabic', sans-serif;
}

[dir="rtl"] .hero-heading,
[dir="rtl"] .form-title {
    font-family: 'Noto Kufi Arabic', sans-serif;
}

[dir="rtl"] .eyebrow::before {
    display: none;
}

[dir="rtl"] .eyebrow::after {
    content: '';
    width: 32px;
    height: 2px;
    background: var(--gold);
    flex-shrink: 0;
}

[dir="rtl"] .cf-field select {
    background-position: left 12px center;
    padding-right: 13px;
    padding-left: 34px;
}

[dir="rtl"] .arr {
    transform: scaleX(-1);
}

[dir="rtl"] .cf-submit:hover:not(:disabled) .arr {
    transform: scaleX(-1) translateX(-3px);
}

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

[dir="rtl"] .header-center {
    direction: rtl;
}

/* RTL: icon stays on the right naturally via flex row + RTL direction */

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

[dir="rtl"] .hci-value {
    direction: ltr;
}

[dir="rtl"] .hero-service > div {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .logo-copy {
    text-align: right;
}

[dir="rtl"] .doctor-card,
[dir="rtl"] .contact-row {
    direction: rtl;
}

[dir="rtl"] .hero-bg::after {
    background: linear-gradient(105deg, rgba(15, 18, 36, 0.92) 0%, rgb(15 18 36 / 58%) 35%, rgb(15 18 36 / 45%) 55%, rgba(15, 18, 36, 0.4) 100%);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .hero-content {
        grid-template-columns: 1fr 380px;
        gap: 40px;
        padding: 0 30px;
    }

    header {
        padding: 0 30px;
    }

    .header-center {
        gap: 16px;
    }
}

@media (max-width: 900px) {
    body {
        overflow-y: auto;
        height: auto;
    }

    .hero {
        height: auto;
        min-height: 100vh;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 24px;
        height: auto;
    }

    .hero-right {
        height: auto;
        padding: 0 0 30px;
    }

    .hero-left {
        padding: 30px 0 0;
    }

    .header-center {
        display: none;
    }

    header {
        padding: 0 20px;
        height: auto;
        min-height: var(--header-h);
    }

    .page-container {
        padding: 10px 0;
    }

    .footer-bar {
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .hero-services {
        flex-direction: column;
    }

    .hero-service {
        flex-direction: row;
        text-align: left;
    }

    .hero-intro {
        flex-direction: column;
        text-align: center;
    }

    .hero-sub {
        margin: 0 auto;
    }

    .hero-content {
        padding: 20px 16px;
    }

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

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

    .hero-badge {
        width: 100%;
    }

    header {
        padding: 0 12px;
    }

    .page-container {
        padding: 8px 0;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .logo {
        gap: 8px;
    }

    .logo-copy .name {
        font-size: 13px;
    }

    .logo-copy .specialty {
        font-size: 8px;
        letter-spacing: 0.1em;
    }

    .lang-btn {
        min-width: 36px;
        padding: 6px 10px;
        font-size: 11px;
    }

    .lang-btn[data-lang="ar"] {
        font-size: 11px;
    }

    .footer-bar {
        flex-direction: column;
        gap: 6px;
        text-align: center;
        padding: 8px 16px;
    }
}

/* ── WhatsApp Floating Button ── */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 26px;
        bottom: 20px;
        right: 16px;
    }
}