/* ===== CSS Variables ===== */
:root {
    --primary: #1a6902;
    --primary-light: #2a8c12;
    --primary-dark: #125001;
    --primary-lighter: #e8f5e8;
    --secondary: #4CAF50;
    --accent: #ff9200;
    --text: #2d3748;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    --light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --error: #e53e3e;
    --success: #38a169;
    --warning: #d69e2e;
    --shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: var(--white);
    line-height: 1.7;
    color: var(--text);
    font-weight: 400;
    overflow-x: hidden;
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.d-none { display: none !important; }
.d-block { display: block; }
.d-flex { display: flex; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* ===== CSS Variables ===== */
:root {
    --primary: #1a6902;
    --primary-light: #2a8c12;
    --primary-dark: #125001;
    --primary-lighter: #e8f5e8;
    --accent: #ff9200;
    --secondary: #4CAF50;
    --text: #2d3748;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    --light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: var(--white);
    line-height: 1.7;
    color: var(--text);
    font-weight: 400;
    overflow-x: hidden;
}

/* ===== Header Styles ===== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
}

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

.logo {
    height: 36px;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 12px;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

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

.nav-links a:hover:after {
    width: 100%;
}

/* ===== Button Styles ===== */
.btn {
    padding: 10px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 10px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
}

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

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

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, #539d56 0%, #1a6902 100%);
    color: var(--white);
    padding: 150px 30px;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.03"><polygon fill="white" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.accent-badge {
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-content {
    max-width: 650px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 32px;
    opacity: 0.95;
    font-weight: 400;
}

.hero-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== General Section Styles ===== */
.section {
    padding: 80px 0;
}

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

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 48px;
    color: var(--primary);
    font-weight: 700;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -12px;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 2px;
}

/* ===== Services Section ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 48px;
}

.service-card {
    background: var(--white);
    padding: 20px 15px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

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

.service-icon {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 20px;
    background: var(--primary-lighter);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    background: var(--primary);
    color: var(--white);
}

.service-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 600;
}

.service-card p {
    color: var(--text-light);
    font-size: 12px;
    line-height: 1.5;
}

/* ===== Zoom Section ===== */
.zoom-section {
    background: linear-gradient(135deg, #fff8f0 0%, #ffeddc 100%);
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin: 40px 0;
    text-align: center;
}

.zoom-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.zoom-section h3 {
    color: var(--accent);
    margin-bottom: 15px;
}

.zoom-section p {
    color: var(--text);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* ===== Appointment Section ===== */
.appointment-section {
    background: linear-gradient(135deg, #f0f7f0 0%, #e8f5e8 100%);
}

.appointment-card {
    background: var(--white);
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.appointment-card h3 {
    color: var(--primary);
    margin-bottom: 20px;
}

.appointment-card p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.appointment-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.step {
    text-align: center;
    padding: 20px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: 700;
    font-size: 1.2rem;
}

.step h4 {
    margin-bottom: 8px;
}

.step p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 0;
}

.appointment-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Payment Methods ===== */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.payment-method {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.payment-method:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.payment-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.payment-method h4 {
    margin-bottom: 8px;
}

.payment-method p {
    color: var(--text-light);
    font-size: 14px;
}

/* ===== Success Stories ===== */
.stories-section {
    background: var(--light);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.story-card {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.story-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.story-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.story-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    margin-left: 16px;
}

.story-header h3 {
    margin-bottom: 4px;
}

.story-header p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 0;
}

.story-content {
    line-height: 1.7;
    color: var(--text-light);
    font-size: 14px;
    font-style: italic;
}

/* ===== Team Section ===== */
.team-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
}

.team-card {
    background: var(--white);
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--border);
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    border-color: var(--primary-lighter);
    transform: translateY(-5px);
}

.team-card:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
    margin: 0 auto 20px;
    border: 4px solid var(--white);
    box-shadow: var(--shadow);
}

.team-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 700;
}

.team-role {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1rem;
    font-weight: 600;
}

.team-bio {
    line-height: 1.7;
    margin-bottom: 24px;
    color: var(--text-light);
    flex-grow: 1;
}

.certifications {
    background: var(--primary-lighter);
    padding: 20px;
    border-radius: var(--radius);
    margin-top: 24px;
    text-align: right;
}

.certifications h4 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1rem;
}

.certifications ul {
    list-style: none;
}

.certifications li {
    margin-bottom: 6px;
    color: var(--text-light);
    font-size: 14px;
    position: relative;
    padding-right: 16px;
}

.certifications li:before {
    content: '•';
    color: var(--primary);
    position: absolute;
    right: 0;
}

/* ===== Food Shop Section ===== */
.foodshop-section {
    background: linear-gradient(135deg, #fff0f0 0%, #ffe0e0 100%);
    border-top: 3px solid var(--accent);
    border-bottom: 3px solid var(--accent);
}

.foodshop-section .section-title {
    position: relative;
    display: inline-block;
}

.new-badge {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-right: 15px;
    vertical-align: middle;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(229, 62, 62, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
    }
}

.foodshop-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    border: 2px dashed var(--accent);
}

.foodshop-text h3 {
    color: var(--primary);
    margin-bottom: 20px;
}

.foodshop-text p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.foodshop-features {
    margin-top: 20px;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
}

.feature i {
    color: var(--accent);
    font-size: 1.2rem;
}

.feature span {
    color: var(--text);
}

.foodshop-button {
    margin-top: 30px;
}

.foodshop-button .btn {
    background: linear-gradient(135deg, var(--accent) 0%, #ff6b00 100%);
    font-size: 1.1rem;
    padding: 15px 30px;
}

.foodshop-button .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 146, 0, 0.4);
}

.foodshop-image .placeholder-image {
    background: var(--primary-lighter);
    height: 300px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.foodshop-image .placeholder-image i {
    font-size: 4rem;
}

/* ===== Contact Section ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.contact-method {
    text-align: center;
    padding: 32px 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.contact-method:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    background: var(--primary-lighter);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.contact-method h3 {
    margin-bottom: 8px;
}

.contact-method p {
    color: var(--text-light);
    margin-bottom: 16px;
}

.whatsapp-btn {
    background: #25D366;
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 600;
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
}

.footer-about p {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.6;
}

.footer-links h4 {
    margin-bottom: 20px;
    color: var(--secondary);
    font-size: 1.1rem;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--white);
    padding-right: 8px;
}

.copyright {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
    font-size: 14px;
}

.copyright a {
    color: var(--secondary);
    text-decoration: none;
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

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

/* ===== Mobile Responsive ===== */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        right: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        border-top: 1px solid var(--border);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .auth-buttons {
        display: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .service-card, .story-card, .contact-method {
        padding: 24px 20px;
    }
    
    .team-card, .appointment-card {
        padding: 32px 24px;
    }
    
    .appointment-steps {
        grid-template-columns: 1fr;
    }
    
    .zoom-section {
        padding: 30px 20px;
    }
    
    .foodshop-content {
        grid-template-columns: 1fr;
        padding: 24px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .new-badge {
        display: block;
        margin: 10px auto;
        text-align: center;
        width: fit-content;
    }
}

@media (max-width: 480px) {
    .appointment-steps {
        grid-template-columns: 1fr;
    }
    
    .appointment-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .appointment-buttons .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .team-grid {
        gap: 16px;
    }
}