/* ========================================
   CSS Variables - Luxury Color Palette#9f7543
   ======================================== */
:root {
    /* Colors */
    --color-primary: #9f7543;
    --color-primary-dark: #9f7543;
    --color-background: #faf8f5;
    --color-foreground: #3d3229;
    --color-secondary: #e8d5d5;
    --color-accent: #d4a574;
    --color-muted: #ebe6df;
    --color-muted-foreground: #736856;
    --color-border: #dfd7cc;
    --color-white: #ffffff;
    /* Typography */
    --font-heading: 'Playfair Display', 'Amiri', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    /* Border Radius */
    --radius: 0.75rem;
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(61, 50, 41, 0.05);
    --shadow-md: 0 4px 16px rgba(61, 50, 41, 0.08);
    --shadow-lg: 0 10px 40px rgba(61, 50, 41, 0.12);
    /* Transitions */
    --transition: all 0.3s ease;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-foreground);
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    transition: var(--transition);
}

/* ========================================
   Utility Classes
   ======================================== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

.text-primary {
    color: var(--color-primary);
}

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

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

.delay-200 {
    animation-delay: 0.2s;
    opacity: 0;
}

.delay-400 {
    animation-delay: 0.4s;
    opacity: 0;
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
    background-color: transparent;
}

.header.scrolled {
    background-color: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.logo-text h1 {
    font-size: 1.25rem;
    color: var(--color-foreground);
    margin-bottom: 0.125rem;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--color-muted-foreground);
}

.nav-list {
    display: none;
    list-style: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-list {
        display: flex;
    }
}

.nav-link {
    color: var(--color-foreground);
    font-weight: 500;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--color-primary);
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--color-foreground);
    transition: var(--transition);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
}

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

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

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

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(250, 248, 245, 0.4), rgba(250, 248, 245, 0.9));
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 10;
}

.hero-text {
    max-width: 700px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--color-foreground);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-muted-foreground);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 20;
}

.indicator {
    width: 48px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    width: 64px;
    background-color: var(--color-primary);
}

/* ========================================
   Section Styles
   ======================================== */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-foreground);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--color-muted-foreground);
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================
   Services Section
   ======================================== */
.services {
    background-color: rgba(235, 230, 223, 0.3);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

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

.service-card {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-foreground);
}

.service-description {
    color: var(--color-muted-foreground);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.service-link {
    color: var(--color-primary);
    font-weight: 500;
    display: inline-block;
}

.service-link:hover {
    text-decoration: underline;
}

/* ========================================
   Doctors Section
   ======================================== */
.doctors-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

.doctor-card {
    background-color: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.doctor-card:hover {
    box-shadow: var(--shadow-lg);
}

.doctor-image {
    aspect-ratio: 1;
    overflow: hidden;
}

.doctor-image img {
    width: 100%;
    /*height: 100%;*/
    object-fit: cover;
    transition: transform 0.5s ease;
}

.doctor-card:hover .doctor-image img {
    transform: scale(1.1);
}

.doctor-info {
    padding: 1.5rem;
    text-align: center;
}

.doctor-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-foreground);
}

.doctor-specialty {
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.doctor-experience {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
}

/* ========================================
   Gallery Section
   ======================================== */
.gallery {
    background-color: #A87C4F;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

.gallery-item {
    background-color: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.comparison {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 1rem;
}

.comparison-side {
    text-align: center;
}

.comparison-label {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
    margin-bottom: 0.5rem;
}

.comparison-side img {
    width: 100%;
    height: 16rem;
    object-fit: cover;
    border-radius: 0.5rem;
}

.gallery-title {
    padding: 1rem;
    text-align: center;
    border-top: 1px solid var(--color-border);
    font-weight: 600;
    color: var(--color-foreground);
}

/* ========================================
   Testimonials Section
   ======================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

.testimonial-card {
    background-color: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.star {
    font-size: 1.25rem;
}

.testimonial-text {
    color: var(--color-muted-foreground);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.testimonial-author {
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.author-name {
    font-weight: 600;
    color: var(--color-foreground);
    margin-bottom: 0.25rem;
}

.author-date {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
}

/* ========================================
   About Section
   ======================================== */
.about {
    background-color: rgba(235, 230, 223, 0.3);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
}

.about-paragraph {
    font-size: 1.125rem;
    color: var(--color-muted-foreground);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

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

.stat-number {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--color-muted-foreground);
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: #202020;
    color: var(--color-background);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.footer-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-text {
    color: rgba(250, 248, 245, 0.8);
}

.footer-heading {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links,
.footer-contact,
.footer-hours {
    list-style: none;
}

.footer-links li,
.footer-contact li,
.footer-hours li {
    margin-bottom: 0.5rem;
    color: rgba(250, 248, 245, 0.8);
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(250, 248, 245, 0.2);
    text-align: center;
    color: rgba(250, 248, 245, 0.6);
}

/* ========================================
   Floating Button
   ======================================== */
.floating-btn {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition);
}

.floating-btn:hover {
    transform: scale(1.1);
    background-color: var(--color-primary-dark);
}

.floating-icon {
    font-size: 1.5rem;
}

/* ========================================
   Modal
   ======================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background-color: var(--color-white);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.modal-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 1.5rem;
    color: var(--color-muted-foreground);
    cursor: pointer;
}

.modal-close:hover {
    color: var(--color-foreground);
}

.modal-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--color-foreground);
}

/* ========================================
   Form Styles
   ======================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-foreground);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--color-white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(201, 168, 106, 0.1);
}

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

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-lg {
        width: 100%;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .floating-btn {
        bottom: 1rem;
        left: 1rem;
        width: 50px;
        height: 50px;
    }
}

/* ===============================
   Birthday Form Section Styling
   =============================== */
.form-card {
    background-color: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg);
    max-width: 500px;
    margin: 0 auto;
    transition: var(--transition);
}

    .form-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }

.form-label {
    font-weight: 600;
    color: var(--color-foreground);
}

.form-input[type="date"] {
    cursor: pointer;
}

    .form-input[type="date"]::-webkit-calendar-picker-indicator {
        color: var(--color-primary);
        filter: invert(0.5);
        cursor: pointer;
    }



    /*//////////////////////*/
.success-message {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #dff0d8;
    color: #2e7031;
    border: 1px solid #c8e5bc;
    border-radius: var(--radius);
    text-align: center;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.6s ease forwards;
}


/* ========================================
   Mobile Navigation (Fix)
   ======================================== */
@media (max-width: 767px) {
    /* إخفاء القائمة في الموبايل بشكل افتراضي */
    .nav {
        display: none;
        flex-direction: column;
        background-color: var(--color-white);
        position: absolute;
        top: 80px;
        right: 0;
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--color-border);
        z-index: 999;
    }

        /* لما تضغط على زر المينيو تتفتح القائمة */
        .nav.active {
            display: flex;
            animation: fadeInUp 0.4s ease;
        }

    /* شكل زر المينيو */
    .mobile-menu-toggle {
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        width: 30px;
        height: 25px;
        z-index: 1000;
    }

        .mobile-menu-toggle span {
            width: 25px;
            height: 3px;
            background-color: var(--color-foreground);
            transition: all 0.3s ease;
        }

        /* لما تتفتح القائمة بيتحول الزر لـ X */
        .mobile-menu-toggle.active span:nth-child(1) {
            transform: rotate(45deg) translateY(8px);
        }

        .mobile-menu-toggle.active span:nth-child(2) {
            opacity: 0;
        }

        .mobile-menu-toggle.active span:nth-child(3) {
            transform: rotate(-45deg) translateY(-8px);
        }

    /* شكل اللينكات داخل المينيو */
    .nav-list {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-link {
        font-size: 1.2rem;
        color: var(--color-foreground);
        padding: 0.5rem 0;
    }

        .nav-link:hover,
        .nav-link.active {
            color: var(--color-primary);
        }
}
.footer-bottom {
    border-top: 1px solid #495057;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-media {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #9f7543;
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

    .social-link:hover {
        color: #9f7543;
        background: #f6f2ee;
        transform: translateY(-2px);
    }
.social-link {
    color: white;
}
.social-media {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}