/* ===== Khairy Website - Shared Styles ===== */
/* Brand: Navy #0a1628 / Navy Deepest #060e1a / Gold #c9a84c / White */

:root {
    --navy: #0a1628;
    --navy-deep: #060e1a;
    --navy-light: #1a2a45;
    --gold: #c9a84c;
    --gold-light: #d4b966;
    --gold-dark: #a88c3a;
    --white: #ffffff;
    --off-white: #f8f6f1;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-400: #999;
    --gray-600: #666;
    --gray-800: #333;
    --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.08);
    --shadow-md: 0 8px 24px rgba(10, 22, 40, 0.12);
    --shadow-lg: 0 16px 48px rgba(10, 22, 40, 0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--off-white);
    color: var(--gray-800);
    line-height: 1.7;
    direction: rtl;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Amiri', serif;
    color: var(--navy);
    line-height: 1.3;
}

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

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 16px 0;
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-logo-img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--navy-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border, rgba(201,168,76,0.3));
}
.nav-logo-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-logo-text {
    color: var(--white);
}

.nav-logo-text .name {
    font-family: 'Amiri', serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.nav-logo-text .title {
    font-size: 11px;
    color: var(--gold);
    line-height: 1.2;
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    color: var(--white);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--gold);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 0;
    left: 0;
    height: 2px;
    background: var(--gold);
}

.nav-cta {
    background: var(--gold);
    color: var(--navy) !important;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 700;
    transition: all 0.3s;
}

.nav-cta:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    color: var(--navy) !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
}

@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--navy-deep);
        flex-direction: column;
        padding: 40px;
        gap: 24px;
        transition: right 0.3s;
        overflow-y: auto;
    }
    .nav-menu.active {
        right: 0;
    }
    .mobile-menu-btn {
        display: block;
    }
    .nav-logo-text .name {
        font-size: 15px;
    }
    .nav-logo-text .title {
        font-size: 10px;
    }
}

/* ===== Page Header ===== */
.page-header {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
    color: var(--white);
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(201, 168, 76, 0.1) 0%, transparent 50%);
}

.page-header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-header h1 {
    color: var(--white);
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 16px;
}

.page-header .gold-underline {
    width: 80px;
    height: 4px;
    background: var(--gold);
    margin: 0 auto 24px;
    border-radius: 2px;
}

.page-header p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    margin-top: 24px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
    color: var(--gold);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 30px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    background: var(--gold);
    color: var(--navy);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #1da851;
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ===== Sections ===== */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 16px;
}

.section-title .gold-underline {
    width: 80px;
    height: 4px;
    background: var(--gold);
    margin: 0 auto 16px;
    border-radius: 2px;
}

.section-title p {
    color: var(--gray-600);
    font-size: 17px;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Cards ===== */
.card {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    border: 1px solid var(--gray-200);
}

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

.card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 28px;
    color: var(--white);
}

.card h3 {
    color: var(--navy);
    font-size: 22px;
    margin-bottom: 12px;
}

.card p {
    color: var(--gray-600);
    line-height: 1.7;
}

.grid {
    display: grid;
    gap: 32px;
}

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

@media (max-width: 968px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) and (min-width: 769px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Image Placeholders ===== */
.img-placeholder {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 14px;
    text-align: center;
    border-radius: 12px;
    border: 2px dashed var(--gray-200);
    padding: 40px 20px;
    min-height: 200px;
}

.img-placeholder.aspect-1-1 { aspect-ratio: 1 / 1; }
.img-placeholder.aspect-4-3 { aspect-ratio: 4 / 3; }
.img-placeholder.aspect-16-9 { aspect-ratio: 16 / 9; }
.img-placeholder.aspect-3-4 { aspect-ratio: 3 / 4; }

.img-placeholder-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.1) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px;
}

.cta-content h2 {
    color: var(--white);
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
    background: var(--navy-deep);
    color: var(--white);
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--gold);
    margin-bottom: 20px;
    font-family: 'Amiri', serif;
    font-size: 20px;
}

.footer-col p, .footer-col a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.9;
    display: block;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s;
}

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

@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ===== WhatsApp Float ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: #25D366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6); }
}

/* ===== Stats ===== */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    margin: 40px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Amiri', serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 8px;
}

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

/* ===== Lists ===== */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 12px 0;
    padding-right: 32px;
    position: relative;
    color: var(--gray-800);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    top: 12px;
    color: var(--gold);
    font-weight: 900;
    font-size: 18px;
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.3s;
    background: var(--white);
}

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

/* Explicit option styling for consistency */
.form-group select option {
    background-color: #ffffff;
    color: #333333;
    padding: 10px;
}

.form-group select option:checked {
    background-color: var(--gold);
    color: var(--navy);
}

.form-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Tables ===== */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.pricing-table th,
.pricing-table td {
    padding: 16px 20px;
    text-align: right;
    border-bottom: 1px solid var(--gray-200);
}

.pricing-table th {
    background: var(--navy);
    color: var(--white);
    font-weight: 700;
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-table tr:hover {
    background: var(--off-white);
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.gold { color: var(--gold); }
.navy { color: var(--navy); }

/* ===== Page Specific - About ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    aspect-ratio: 3 / 4;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* للصور العرضية (Office / Consultation) — تتعرض المشهد كامل بدون قص غريب */
.about-image.wide {
    aspect-ratio: 16 / 10;
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 24px;
}

.about-text .subtitle {
    color: var(--gold);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.credential-item {
    background: var(--off-white);
    padding: 16px;
    border-radius: 12px;
    border-right: 4px solid var(--gold);
}

.credential-item .title {
    color: var(--navy);
    font-weight: 700;
    font-size: 14px;
}

.credential-item .detail {
    color: var(--gray-600);
    font-size: 13px;
    margin-top: 4px;
}

@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .credentials-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== FAQ Accordion ===== */
.faq-item {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s;
}

.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--navy);
    transition: background 0.3s;
}

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

.faq-question::after {
    content: '+';
    color: var(--gold);
    font-size: 24px;
    font-weight: 700;
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    padding: 0 24px;
    color: var(--gray-600);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 20px;
}

/* ===== BMI Calculator ===== */
.bmi-calculator {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    max-width: 700px;
    margin: 0 auto;
}

.bmi-input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.bmi-result {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: var(--white);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    margin-top: 32px;
    display: none;
}

.bmi-result.show {
    display: block;
}

.bmi-number {
    font-family: 'Amiri', serif;
    font-size: 64px;
    color: var(--gold);
    font-weight: 700;
    line-height: 1;
}

.bmi-category {
    font-size: 20px;
    margin: 12px 0;
    color: var(--white);
}

.bmi-recommendation {
    color: rgba(255, 255, 255, 0.85);
    margin-top: 16px;
}

@media (max-width: 600px) {
    .bmi-input-grid {
        grid-template-columns: 1fr;
    }
    .bmi-calculator {
        padding: 24px;
    }
}

/* ===== Clinics ===== */
.clinic-card {
    background: var(--white);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    border: 1px solid var(--gray-200);
}

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

.clinic-card h3 {
    color: var(--navy);
    font-size: 22px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.clinic-card .badge {
    background: var(--gold);
    color: var(--navy);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.clinic-card .address {
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.6;
}

.clinic-card .schedule {
    background: var(--off-white);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--navy);
    font-weight: 600;
}

/* ===== Hero (homepage) ===== */
.hero {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
    color: var(--white);
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(201, 168, 76, 0.15) 0%, transparent 50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    color: var(--white);
    font-size: clamp(32px, 5vw, 52px);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content h1 .gold {
    color: var(--gold);
}

.hero-content .subtitle {
    color: var(--gold);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    flex-wrap: wrap;
}

.hero-stats .stat-item .stat-number {
    color: var(--gold);
    font-size: 36px;
}

.hero-stats .stat-item .stat-label {
    color: rgba(255, 255, 255, 0.7);
}

.hero-image {
    aspect-ratio: 3 / 4;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--gold);
}

@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-cta {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-image {
        max-width: 350px;
        margin: 0 auto;
    }
}

/* ===== Procedure detail page ===== */
.procedure-hero {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
    color: var(--white);
    padding: 140px 0 60px;
}

.procedure-info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    margin-top: 40px;
}

.procedure-content h2 {
    color: var(--navy);
    font-size: 28px;
    margin: 32px 0 16px;
}

.procedure-content p {
    color: var(--gray-800);
    line-height: 1.9;
    margin-bottom: 16px;
}

.procedure-sidebar {
    background: var(--white);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 100px;
    height: fit-content;
}

.procedure-sidebar h4 {
    color: var(--navy);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gold);
}

.procedure-sidebar .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: 14px;
}

.procedure-sidebar .detail-row:last-child {
    border-bottom: none;
}

.procedure-sidebar .detail-label {
    color: var(--gray-600);
}

.procedure-sidebar .detail-value {
    color: var(--navy);
    font-weight: 700;
}

@media (max-width: 968px) {
    .procedure-info-grid {
        grid-template-columns: 1fr;
    }
    .procedure-sidebar {
        position: static;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}
