/*
Theme Name: صيدلية الجرابة
Description: قالب ووردبريس حديث ومتجاوب مصمم خصيصاً لصيدلية الجرابة. يتميز بتصميم أنيق ودعم كامل للغة العربية.
Author: Manus AI
Version: 2.1
License: GPL v2 or later
Text Domain: aljaraba-pharmacy
Domain Path: /languages
Tags: pharmacy, medical, healthcare, arabic, rtl, responsive, modern
*/

/* Reset and Base Styles */
:root {
    --primary-color: #249b9d;
    --secondary-color: #16797f;
    --text-color: #333;
    --bg-color: #ffffff;
    --section-bg: #f8fffe;
    --card-bg: #ffffff;
    --border-color: #f0f0f0;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    direction: rtl;
    text-align: right;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px var(--shadow-color);
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.brand-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0;
}

.brand-text p {
    font-size: 0.9rem;
    color: #727577;
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

/* Dark Mode Toggle */
.dark-mode-toggle {
    margin-left: 20px;
}

.dark-mode-btn {
    background: none;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

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

/* Dark Mode Styles */
body.dark-mode {
    --text-color: #ffffff;
    --bg-color: #1a1a1a;
    --section-bg: #2d2d2d;
    --card-bg: #3a3a3a;
    --border-color: #555;
    --shadow-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .header {
    background: rgba(26, 26, 26, 0.95);
    border-bottom: 1px solid var(--border-color);
}

body.dark-mode .hero {
    background: linear-gradient(rgba(26, 26, 26, 0.8), rgba(26, 26, 26, 0.8)), url('assets/images/00IMGL4074.jpg');
    background-size: cover;
    background-position: center;
}

body.dark-mode .about,
body.dark-mode .contact,
body.dark-mode .services {
    background: var(--section-bg);
    color: var(--text-color);
}

body.dark-mode .service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

body.dark-mode .contact-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

body.dark-mode .footer {
    background: #1a1a1a;
    color: var(--text-color);
}

body.dark-mode .about-main-image {
    box-shadow: 0 10px 30px var(--shadow-color);
}

body.dark-mode .feature {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

body.dark-mode .image-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #249b9d;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #249b9d;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--section-bg) 0%, #e8f7f7 100%);
    padding-top: 100px;
    transition: background 0.3s ease;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(36, 155, 157, 0.1) 0%, rgba(22, 121, 127, 0.1) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.8;
    opacity: 0.8;
}

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

.btn {
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #249b9d;
    color: white;
    border-color: #249b9d;
}

.btn-primary:hover {
    background: #16797f;
    border-color: #16797f;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(36, 155, 157, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #249b9d;
    border-color: #249b9d;
}

.btn-secondary:hover {
    background: #249b9d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(36, 155, 157, 0.3);
}

.hero-image {
    text-align: center;
}

.hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.hero-img:hover {
    transform: scale(1.05);
}

/* Services Section */
.services {
    padding: 100px 0;
    background: white;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #249b9d;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #727577;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(36, 155, 157, 0.15);
    border-color: #249b9d;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #249b9d, #16797f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.service-card p {
    color: #727577;
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fffe 0%, #e8f7f7 100%);
}

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

.about-description {
    font-size: 1.2rem;
    color: #727577;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-features {
    display: grid;
    gap: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateX(-5px);
}

.feature i {
    color: #249b9d;
    font-size: 1.2rem;
}

.feature span {
    font-weight: 500;
    color: #333;
}

.about-image {
    text-align: center;
}

.image-container {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.about-logo {
    max-width: 300px;
    height: auto;
}

/* About Image Section */
.about-image-section {
    margin-top: 3rem;
    text-align: center;
    padding: 0 20px;
}

.about-main-image {
    max-width: 100%;
    height: auto;
    width: auto;
    max-height: 800px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-main-image:hover {
    transform: scale(1.02);
}

/* Responsive Design for About Image */
@media (max-width: 1200px) {
    .about-main-image {
        max-height: 600px;
    }
}

@media (max-width: 768px) {
    .about-image-section {
        margin-top: 2rem;
        padding: 0 15px;
    }
    
    .about-main-image {
        max-height: 500px;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .about-image-section {
        margin-top: 1.5rem;
        padding: 0 10px;
    }
    
    .about-main-image {
        max-height: 400px;
        border-radius: 8px;
    }
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: grid;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8fffe;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-item:hover {
    border-color: #249b9d;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(36, 155, 157, 0.1);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #249b9d, #16797f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-details h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-details p {
    margin: 0;
}

.contact-details a {
    color: #249b9d;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #16797f;
}

.social-links {
    text-align: center;
}

.social-links h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 2rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
}

.social-icon.facebook {
    background: #1877f2;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.tiktok {
    background: #000;
}

.social-icon.whatsapp {
    background: #25d366;
}

.social-icon.phone {
    background: #249b9d;
}

/* Footer */
.footer {
    background: #249b9d;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-text p {
    opacity: 0.9;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-section i {
    margin-left: 0.5rem;
    width: 15px;
}

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

.footer-bottom p {
    opacity: 0.8;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

