:root {
    --navy-900: #0e1a5c;
    --navy-800: #142a86;
    --navy-700: #1b37a3;
    --navy-100: #e8eaf9;
    --navy-50: #f4f5fc;
    --gold: #f2a71b;
    --gold-dark: #d88f0c;
    --ink: #16192e;
    --gray-600: #5b607a;
    --gray-300: #d9dbe9;
    --white: #ffffff;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;
    --shadow: 0 10px 30px rgba(14, 26, 92, 0.10);
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-ar), var(--font-en);
    color: var(--ink);
    background: var(--white);
    line-height: 1.7;
}

html[dir="ltr"] body {
    font-family: var(--font-en), var(--font-ar);
}

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

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

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--gold);
    color: var(--navy-900);
    box-shadow: 0 8px 20px rgba(242, 167, 27, .35);
}

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

.btn-outline {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, .12);
}

.btn-navy {
    background: var(--navy-800);
    color: var(--white);
}

.btn-navy:hover {
    background: var(--navy-900);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-block {
    width: 100%;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--gray-300);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 100px;
    height: 70px;
    object-fit: contain;
}

.brand-name {
    font-weight: 800;
    font-size: 20px;
    color: var(--navy-900);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    font-weight: 600;
    color: var(--gray-600);
    font-size: 15px;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--navy-800);
    border-color: var(--gold);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lang-switch {
    font-weight: 700;
    font-size: 14px;
    color: var(--navy-800);
    border: 1.5px solid var(--navy-100);
    padding: 8px 14px;
    border-radius: 999px;
}

.lang-switch:hover {
    background: var(--navy-100);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--navy-900);
    border-radius: 2px;
}

/* Hero */
.hero {
    background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
    color: var(--white);
    overflow: hidden;
    position: relative;
    padding: 0;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(242, 167, 27, .18), transparent 45%);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 48px;
    padding: 84px 0 60px;
    position: relative;
}

.hero-copy {
    min-width: 0;
}

.hero-eyebrow {
    display: inline-block;
    max-width: 100%;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.5;
}

.hero h1 {
    font-size: clamp(28px, 4.5vw, 44px);
    line-height: 1.35;
    margin: 0 0 18px;
    font-weight: 800;
    overflow-wrap: break-word;
}

.hero p.lead {
    font-size: clamp(15px, 2vw, 17px);
    color: rgba(255, 255, 255, .82);
    max-width: 520px;
    margin: 0 0 30px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.hero-actions .btn {
    white-space: normal;
    text-align: center;
}

.hero-note {
    font-size: 13px;
    color: rgba(255, 255, 255, .6);
}

.hero-stats {
    display: flex;
    gap: 36px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .15);
}

.hero-stat strong {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: var(--white);
}

.hero-stat span {
    font-size: 12.5px;
    color: rgba(255, 255, 255, .65);
    font-weight: 600;
}

.hero-media {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
}

.hero-media .float-card {
    position: absolute;
    bottom: -22px;
    background: var(--white);
    color: var(--ink);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    box-shadow: var(--shadow);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100% - 24px);
    z-index: 1;
}

html[dir="rtl"] .hero-media .float-card {
    left: -18px;
}

html[dir="ltr"] .hero-media .float-card {
    right: -18px;
}

.float-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #23c364;
    flex-shrink: 0;
}

/* Section basics */
section {
    padding: 88px 0;
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.eyebrow {
    color: var(--gold-dark);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.section-head h2 {
    font-size: 32px;
    margin: 10px 0 14px;
    color: var(--navy-900);
    font-weight: 800;
}

.section-head p {
    color: var(--gray-600);
    font-size: 16px;
    margin: 0;
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--navy-50);
    border-radius: var(--radius-lg);
    padding: 24px 22px;
    transition: transform .2s ease, box-shadow .2s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--navy-100);
    background: var(--white);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--gold);
    color: var(--navy-900);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.feature-body {
    min-width: 0;
}

.feature-card h3 {
    font-size: 17px;
    margin: 0 0 6px;
    color: var(--navy-900);
}

.feature-card p {
    margin: 0;
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.7;
}

/* Why Alhakim */
.why-section {
    background: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.why-card {
    text-align: center;
    background: var(--navy-50);
    border-radius: var(--radius-lg);
    padding: 36px 22px 32px;
    border: 1px solid transparent;
    transition: transform .2s ease, box-shadow .2s ease;
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--navy-100);
    background: var(--white);
}

.why-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy-900);
    font-weight: 800;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.why-card h3 {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    color: var(--navy-900);
    font-weight: 800;
}

/* How it works */
.how-section {
    background: var(--navy-50);
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.how-step {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    box-shadow: var(--shadow);
}

.how-step .step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy-900);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 16px;
}

.how-step h3 {
    font-size: 16.5px;
    margin: 0 0 8px;
    color: var(--navy-900);
}

.how-step p {
    margin: 0;
    font-size: 14px;
    color: var(--gray-600);
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: center;
}

.about-grid img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.about-grid h2 {
    font-size: 30px;
    color: var(--navy-900);
    margin: 0 0 20px;
    font-weight: 800;
}

.about-grid p {
    color: var(--gray-600);
    margin: 0 0 16px;
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.mv-card {
    background: var(--navy-50);
    border-radius: var(--radius-md);
    padding: 22px;
}

.mv-card h4 {
    color: var(--navy-900);
    margin: 0 0 8px;
    font-size: 16px;
}

.mv-card p {
    margin: 0;
    font-size: 14px;
    color: var(--gray-600);
}

/* Download CTA */
.download-section {
    background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
    color: var(--white);
    border-radius: var(--radius-lg);
    margin: 0 24px;
    max-width: 1180px;
    margin-inline: auto;
    padding: 64px 48px;
    text-align: center;
}

.download-section h2 {
    font-size: 30px;
    margin: 0 0 14px;
    font-weight: 800;
}

.download-section p {
    color: rgba(255, 255, 255, .78);
    max-width: 480px;
    margin: 0 auto 30px;
}

.store-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    background: none;
    border: none;
    padding: 0;
    transition: transform .15s ease, opacity .15s ease;
}

.store-badge:hover {
    background: none;
    transform: translateY(-2px);
    opacity: .92;
}

.store-badge img {
    height: 52px;
    width: auto;
    display: block;
    border-radius: 8px;
}

/* Phone mockup (hero) */
.phone-mockup {
    width: min(300px, 100%);
    background: var(--navy-900);
    border-radius: 40px;
    padding: 14px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}

.phone-screen {
    background: var(--white);
    border-radius: 28px;
    padding: 22px 18px;
}

.mockup-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.mockup-topbar img {
    width: 26px;
    height: 26px;
    box-shadow: none;
    border-radius: 6px;
}

.mockup-topbar span {
    font-weight: 800;
    color: var(--navy-900);
    font-size: 15px;
}

.mockup-search {
    background: var(--navy-50);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 14px;
}

.mockup-chips {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.chip {
    font-size: 12px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--navy-50);
    color: var(--navy-800);
}

.chip-active {
    background: var(--navy-800);
    color: var(--white);
}

.mockup-doctor-card {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1.5px solid var(--gray-300);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 16px;
}

.mockup-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--navy-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.mockup-doctor-card strong {
    display: block;
    font-size: 13.5px;
    color: var(--navy-900);
}

.mockup-doctor-card small {
    display: block;
    font-size: 11.5px;
    color: var(--gray-600);
}

/* Doctors directory page */
.doctors-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 44px;
}

.specialty-chip {
    border: 1.5px solid var(--gray-300);
    background: var(--white);
    color: var(--navy-800);
    font-weight: 700;
    font-size: 13.5px;
    padding: 9px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.specialty-chip:hover {
    border-color: var(--navy-700);
}

.specialty-chip.active {
    background: var(--navy-800);
    color: var(--white);
    border-color: var(--navy-800);
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.doctor-card {
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 26px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--navy-100);
}

.doctor-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.doctor-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.doctor-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--navy-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    overflow: hidden;
}

.doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.doctor-card-head strong {
    display: block;
    font-size: 15.5px;
    color: var(--navy-900);
}

.doctor-card-head span {
    display: block;
    font-size: 13px;
    color: var(--gray-600);
    font-weight: 600;
}

.doctor-card-bio {
    font-size: 13.5px;
    color: var(--gray-600);
    margin: 0 0 18px;
}

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

.no-results {
    text-align: center;
    color: var(--gray-600);
    font-weight: 600;
    padding: 40px 0;
    display: none;
}

.doctors-bottom-cta {
    margin-top: 60px;
    background: var(--navy-50);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
}

.doctors-bottom-cta h3 {
    color: var(--navy-900);
    font-size: 22px;
    margin: 0 0 10px;
}

.doctors-bottom-cta p {
    color: var(--gray-600);
    margin: 0 0 22px;
}

/* Doctor profile page */
.doctor-hero {
    text-align: center;
    position: relative;
}

.doctor-back-link {
    position: absolute;
    top: 28px;
    inset-inline-start: 24px;
    color: rgba(255, 255, 255, .75);
    font-weight: 700;
    font-size: 13.5px;
}

.doctor-back-link:hover {
    color: var(--white);
}

.doctor-hero-avatar {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    margin: 0 auto 18px;
    overflow: hidden;
    flex-shrink: 0;
}

.doctor-hero-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.doctor-hero-specialty {
    color: rgba(255, 255, 255, .78);
    font-weight: 700;
    margin: 0;
}

.doctor-profile-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: start;
}

.profile-heading {
    color: var(--navy-900);
    font-size: 22px;
    margin: 0 0 14px;
}

.profile-bio {
    color: var(--gray-600);
    font-size: 15.5px;
    margin: 0 0 30px;
}

.quick-facts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quick-fact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--gray-300);
    padding-bottom: 14px;
}

.quick-fact-label {
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 600;
}

.quick-fact-value {
    color: var(--navy-900);
    font-size: 14.5px;
    font-weight: 700;
    text-align: end;
    word-break: break-word;
}

.quick-fact-value a {
    color: var(--navy-800);
}

.quick-fact-value a:hover {
    color: var(--gold-dark);
}

.dir-ltr {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
}

.doctor-availability-note {
    margin: 24px 0 0;
    padding: 14px 16px;
    background: var(--navy-50);
    border-radius: var(--radius-sm);
    color: var(--navy-800);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.7;
}

.doctor-share {
    max-width: 460px;
    margin: 0 auto;
}

.doctor-share h3,
.doctor-share p {
    text-align: center;
}

.doctor-book-card {
    background: var(--navy-50);
    border-radius: var(--radius-lg);
    padding: 30px;
    position: sticky;
    top: 100px;
}

.doctor-book-card h3 {
    color: var(--navy-900);
    font-size: 18px;
    margin: 0 0 10px;
}

.doctor-book-card p {
    color: var(--gray-600);
    font-size: 14px;
    margin: 0 0 20px;
}

.doctor-book-card .store-badges {
    margin-top: 16px;
}

.doctor-book-card .store-badge img {
    height: 44px;
}

/* FAQ */
.faq-list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: inherit;
    background: var(--white);
    border: none;
    padding: 20px 24px;
    font-weight: 700;
    font-size: 15.5px;
    color: var(--navy-900);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 16px;
}

.faq-question .icon {
    transition: transform .2s ease;
    font-size: 18px;
    color: var(--gold-dark);
    flex-shrink: 0;
}

.faq-item.open .faq-question .icon {
    transform: rotate(45deg);
}

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

.faq-answer p {
    padding: 0 24px 20px;
    margin: 0;
    color: var(--gray-600);
    font-size: 14.5px;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--navy-900);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--gray-300);
    font-family: inherit;
    font-size: 14.5px;
    color: var(--ink);
    background: var(--navy-50);
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--navy-700);
    background: var(--white);
}

.contact-info-card {
    background: var(--navy-900);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.contact-info-card h3 {
    margin: 0 0 22px;
    font-size: 19px;
}

.contact-info-card .info-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    font-weight: 600;
}

.contact-info-card .info-row .info-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gold);
}

.contact-info-card .info-row .info-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.contact-info-card .info-row a {
    color: var(--white);
}

.contact-info-card .info-row a:hover {
    color: var(--gold);
}

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 18px;
}

.alert-success {
    background: #e6f7ee;
    color: #16794a;
    border: 1px solid #b9e8cf;
}

.alert-error {
    background: #fdecec;
    color: #b3261e;
    border: 1px solid #f6c6c4;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-120%);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    min-width: 320px;
    max-width: 520px;
    animation: toastSlideIn .5s cubic-bezier(.22, 1, .36, 1) forwards;
}

.toast-notification.toast-hiding {
    animation: toastSlideOut .4s cubic-bezier(.55, .06, .68, .19) forwards;
}

.toast-success {
    background: rgba(230, 247, 238, .95);
    color: #16794a;
    border: 1.5px solid #b9e8cf;
}

.toast-error {
    background: rgba(253, 236, 236, .95);
    color: #b3261e;
    border: 1.5px solid #f6c6c4;
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: inherit;
    opacity: .6;
    padding: 0 0 0 8px;
    line-height: 1;
    transition: opacity .2s ease;
}

.toast-close:hover {
    opacity: 1;
}

/* Toast progress bar */
.toast-notification::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    animation: toastProgress 5s linear forwards;
}

.toast-success::after {
    background: #16794a;
}

.toast-error::after {
    background: #b3261e;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(-50%) translateY(-120%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    to {
        transform: translateX(-50%) translateY(-120%);
        opacity: 0;
    }
}

@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

/* Legal pages */
.legal-content {
    max-width: 780px;
    margin: 0 auto;
    color: var(--gray-600);
}

.legal-content h2 {
    color: var(--navy-900);
    font-size: 20px;
    margin: 30px 0 12px;
}

.legal-content p {
    margin: 0 0 14px;
}

.legal-note {
    background: #fff7e6;
    border: 1px solid #ffe4a3;
    color: #8a5a00;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    margin-bottom: 30px;
    font-weight: 600;
}

/* Page hero (inner pages) */
.page-hero {
    background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
    color: var(--white);
    padding: 70px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 34px;
    margin: 0 0 12px;
    font-weight: 800;
}

.page-hero p {
    color: rgba(255, 255, 255, .78);
    max-width: 560px;
    margin: 0 auto;
}

/* Footer */
.site-footer {
    background: var(--navy-900);
    color: rgba(255, 255, 255, .7);
    padding-top: 64px;
}

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

.footer-brand .brand-name {
    color: var(--white);
}

.footer-brand .footer-logo {
    width: auto;
    height: 90px;
    max-width: 420px;
    object-fit: contain;
    display: block;
}

.footer-brand p {
    font-size: 14px;
    color: rgba(255, 255, 255, .6);
    margin: 14px 0 20px;
    max-width: 260px;
}

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

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-col .footer-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    color: rgba(255, 255, 255, .8);
    transition: background .15s ease, color .15s ease;
}

.footer-col .footer-social a svg {
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.footer-col .footer-social a:hover {
    background: var(--gold);
    color: var(--navy-900);
}

.footer-col h4 {
    color: var(--white);
    font-size: 14.5px;
    font-weight: 800;
    margin: 0 0 20px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, .65);
    margin-bottom: 13px;
}

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

.footer-col.footer-contact a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col.footer-contact a svg {
    display: block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--gold);
}

.footer-bottom {
    padding: 22px 0;
}

.footer-bottom p {
    margin: 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
}

/* Responsive */
@media (max-width: 980px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 48px 0 72px;
        text-align: center;
    }

    .hero p.lead {
        margin-inline: auto;
    }

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

    .hero-stats {
        justify-content: center;
        gap: 24px;
    }

    .hero-media {
        max-width: 300px;
        margin-bottom: 16px;
    }

    html[dir="rtl"] .hero-media .float-card,
    html[dir="ltr"] .hero-media .float-card {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        bottom: -12px;
    }

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

    .about-grid,
    .contact-grid,
    .doctor-profile-grid {
        grid-template-columns: 1fr;
    }

    .mission-vision {
        grid-template-columns: 1fr;
    }

    .doctor-book-card {
        position: static;
    }

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

@media (max-width: 720px) {
    .main-nav {
        position: fixed;
        inset-inline-start: 0;
        top: 68px;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 24px;
        gap: 6px;
        border-bottom: 1px solid var(--gray-300);
        transform: translateY(-140%);
        transition: transform .25s ease;
        box-shadow: var(--shadow);
    }

    .main-nav.open {
        transform: translateY(0);
    }

    .main-nav a {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid var(--navy-50);
    }

    .nav-toggle {
        display: flex;
    }

    .header-cta {
        display: none;
    }

    .hero-inner {
        padding: 36px 0 48px;
        gap: 32px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-stats {
        gap: 16px;
        justify-content: space-between;
    }

    .hero-stat strong {
        font-size: 22px;
    }

    .hero-media {
        max-width: 260px;
    }

    .phone-mockup {
        border-radius: 32px;
        padding: 10px;
    }

    .phone-screen {
        padding: 16px 12px;
        border-radius: 22px;
    }

    .features-grid,
    .how-grid,
    .why-grid,
    .doctors-grid {
        grid-template-columns: 1fr;
    }

    .download-section {
        padding: 44px 24px;
        margin: 0 16px;
    }

    section {
        padding: 60px 0;
    }

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

@media (max-width: 480px) {
    .hero-inner {
        padding: 28px 0 56px;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .hero-media {
        max-width: 220px;
    }
}