/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&family=Playfair+Display:wght@400;600;700&family=Cairo:wght@300;400;600;700&family=Amiri:wght@400;700&display=swap');

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

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* Arabic Typography */
body.arabic {
    font-family: 'Amiri', serif;
    font-size: 17px;
    line-height: 1.8;
}

body.arabic h1,
body.arabic h2,
body.arabic h3,
body.arabic h4,
body.arabic h5,
body.arabic h6,
body.arabic .nav-link,
body.arabic button,
body.arabic .btn,
body.arabic .event-type-btn {
    font-family: 'Cairo', sans-serif;
}

/* Color Variables */
:root {
    --primary-blue: #1e3a8a;
    --warm-gray: #6b7280;
    --moroccan-gold: #f8d16f;
    --clean-white: #ffffff;
    --light-gray: #f8fafc;
    --dark-gray: #1f2937;
    --green-whatsapp: #25d366;
    --hover-blue: #1e40af;
}

/* Language Toggle */
.ar-text {
    display: none;
    direction: rtl;
    text-align: right;
}

body.arabic .fr-text {
    display: none;
}

body.arabic .ar-text {
    display: block;
}

body.arabic {
    direction: rtl;
}

body.arabic .container,
body.arabic .nav-container,
body.arabic .hero-container {
    direction: rtl;
}

/* RTL Phone Numbers */
body.arabic .contact-item p,
body.arabic .footer-section p {
    direction: ltr;
    text-align: right;
}

body.arabic .footer-bottom {
    direction: rtl;
    text-align: center !important;
}

body.arabic .footer-bottom p,
body.arabic .footer-bottom .footer-disclaimer {
    direction: rtl !important;
    text-align: center !important;
}

/* Enhanced Booking System Styles */

/* Booking Tabs */
.booking-tabs {
    display: flex;
    margin-bottom: 2rem;
    background: var(--light-gray);
    border-radius: 12px;
    padding: 4px;
}

.tab-button {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--warm-gray);
}

.tab-button.active {
    background: var(--clean-white);
    color: var(--primary-blue);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Progress Indicator */
.progress-container {
    margin-bottom: 3rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--light-gray);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--moroccan-gold));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-fill.step-1 { width: 20%; }
.progress-fill.step-2 { width: 40%; }
.progress-fill.step-3 { width: 60%; }
.progress-fill.step-4 { width: 80%; }
.progress-fill.step-5 { width: 100%; }

.steps-indicator {
    display: flex;
    justify-content: space-between;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--warm-gray);
    transition: all 0.3s ease;
}

.step.active {
    background: var(--primary-blue);
    color: white;
}

.step.completed {
    background: var(--moroccan-gold);
    color: white;
}

/* Appointment Types */
.appointment-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.appointment-type {
    background: var(--clean-white);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.appointment-type:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.15);
}

.appointment-type.selected {
    border-color: var(--primary-blue);
    background: rgba(30, 58, 138, 0.05);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.2);
}

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

.price-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.price-badge.free {
    background: #22c55e;
}

.price-badge.paid {
    background: var(--moroccan-gold);
}

/* Location Options */
.location-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.location-type {
    background: var(--clean-white);
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.location-type:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.location-type.selected {
    border-color: var(--primary-blue);
    background: rgba(30, 58, 138, 0.1);
}

.location-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

.location-type small {
    display: block;
    color: var(--warm-gray);
    margin-top: 0.5rem;
}

/* Form Steps */
.form-step {
    display: none;
    min-height: 400px;
}

.form-step.active {
    display: block;
}

.form-step h3 {
    margin-bottom: 2rem;
    color: var(--primary-blue);
    text-align: center;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.2);
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #ef4444;
}

.form-group input.valid,
.form-group textarea.valid {
    border-color: #22c55e;
}

.field-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--warm-gray);
    pointer-events: none;
}

.field-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Personal Info Grid */
.personal-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.char-counter {
    text-align: right;
    font-size: 0.875rem;
    color: var(--warm-gray);
    margin-top: 0.25rem;
}

/* Calendar */
.calendar-container {
    background: var(--clean-white);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--primary-blue);
    color: white;
}

.calendar-nav {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.calendar-nav:hover {
    background: rgba(255,255,255,0.1);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e5e7eb;
    padding: 1px;
}

.calendar-day {
    background: var(--clean-white);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day:hover:not(.unavailable) {
    background: rgba(30, 58, 138, 0.1);
}

.calendar-day.selected {
    background: var(--primary-blue);
    color: white;
}

.calendar-day.unavailable {
    background: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}

/* Time Slots */
.time-slots-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.time-slot {
    background: var(--clean-white);
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.time-slot:hover:not(.unavailable) {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.time-slot.selected {
    border-color: var(--primary-blue);
    background: var(--primary-blue);
    color: white;
}

.time-slot.unavailable {
    background: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}

/* Booking Summary */
.booking-summary {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.booking-summary h4 {
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.summary-item:last-child {
    border-bottom: none;
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-width: 120px;
}

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

.btn-primary:hover:not(:disabled) {
    background: var(--hover-blue);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--warm-gray);
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

/* Confirmation */
.confirmation-container {
    text-align: center;
    padding: 3rem 2rem;
}

.confirmation-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.confirmation-details {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: left;
}

.confirmation-details p {
    margin-bottom: 0.5rem;
}

.confirmation-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Cal.com Integration */
.cal-iframe-container {
    margin-top: 2rem;
}

.cal-event-types {
    margin-bottom: 2rem;
}

.event-type-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.event-type-btn {
    background: var(--clean-white);
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.event-type-btn:hover {
    border-color: var(--primary-blue);
}

.event-type-btn.active {
    border-color: var(--primary-blue);
    background: rgba(30, 58, 138, 0.1);
}

.cal-iframe {
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Validation Errors */
.validation-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .appointment-types {
        grid-template-columns: 1fr;
    }

    .location-options {
        grid-template-columns: 1fr;
    }

    .personal-info-grid {
        grid-template-columns: 1fr;
    }

    .time-slots-container {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .form-navigation {
        flex-direction: column;
    }

    .confirmation-actions {
        flex-direction: column;
    }

    .event-type-buttons {
        grid-template-columns: 1fr;
    }
}

/* RTL Support for Booking */
body.arabic .appointment-types,
body.arabic .location-options,
body.arabic .personal-info-grid {
    direction: rtl;
}

body.arabic .field-icon {
    right: auto;
    left: 1rem;
}

body.arabic .char-counter {
    text-align: left;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

/* Navigation */
.navbar {
    background: var(--clean-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

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

.nav-logo .logo-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

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

.nav-logo a {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}


.nav-logo h2 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin: 0;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 700;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 1.05rem;
}

.nav-link:hover {
    color: var(--primary-blue);
    background: var(--light-gray);
}

.language-toggle button {
    background: #f8d16f;
    color: var(--primary-blue);
    border: none;
    padding: 0.6rem 1.3rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(248, 209, 111, 0.4);
    font-family: 'Cairo', sans-serif;
}

.language-toggle button:hover {
    background: #f5c54d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(248, 209, 111, 0.5);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--clean-white) 100%);
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

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

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

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

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--warm-gray);
    margin-bottom: 1rem;
}

.hero-features {
    font-size: 1.2rem;
    color: #c99736;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-stats {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.hero-promises {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.promise {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    color: var(--dark-gray);
}

.promise i {
    color: var(--moroccan-gold);
    font-size: 1.2rem;
}

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

.cta-button {
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-button.primary {
    background: var(--primary-blue);
    color: white;
}

.cta-button.primary:hover {
    background: var(--hover-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

.cta-button.whatsapp {
    background: var(--green-whatsapp);
    color: white;
}

.cta-button.whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

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

.lawyer-portrait {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    /* Remove box-shadow for transparent background */
    /* box-shadow: 0 20px 40px rgba(0,0,0,0.1); */
    /* Add subtle glow effect for transparent PNG */
    filter: drop-shadow(0 10px 30px rgba(30, 58, 138, 0.15));
    background: transparent;
}

/* Mobile image between title and subtitle */
.hero-mobile-image {
    display: none;
}

.lawyer-portrait-mobile {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary-blue);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.2);
    margin: 1.5rem auto;
}

.availability-status {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--clean-white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.status-dot {
    width: 12px;
    height: 12px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 3rem;
}

/* Why Choose Section */
.why-choose {
    padding: 80px 0;
    background: var(--clean-white);
}

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

.feature-card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

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

.feature-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--warm-gray);
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--light-gray);
}

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

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-gray);
}

.credentials {
    margin-top: 2rem;
}

.credential {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--dark-gray);
}

.credential i {
    color: var(--moroccan-gold);
    font-size: 1.2rem;
    width: 20px;
}

.office-photo {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Expertise Section */
.expertise {
    padding: 80px 0;
    background: var(--clean-white);
}

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

.expertise-card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.expertise-card:hover {
    transform: translateY(-10px);
    border-color: var(--moroccan-gold);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.expertise-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-blue), var(--hover-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.expertise-icon i {
    font-size: 2.5rem;
    color: white;
}

.expertise-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.expertise-card p {
    color: var(--warm-gray);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--light-gray);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info-side {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-intro {
    font-size: 1.05rem;
    color: var(--warm-gray);
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-detail-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--clean-white);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-detail-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--hover-blue));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 1.3rem;
}

.contact-text h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-text p {
    color: var(--warm-gray);
    margin: 0;
}

.contact-text a {
    color: var(--warm-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: var(--moroccan-gold);
}

.contact-cta {
    margin-top: 1rem;
}

.contact-map-side {
    position: sticky;
    top: 100px;
}

.map-container {
    width: 100%;
    height: 600px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--clean-white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-item i {
    color: var(--moroccan-gold);
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

.contact-item h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--warm-gray);
    margin: 0;
}

/* Contact Form */
.contact-form {
    background: var(--clean-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--clean-white);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.2);
    border-color: var(--primary-blue);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label {
    color: var(--primary-blue);
}

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

.submit-btn {
    width: 100%;
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--hover-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

/* Footer */
.footer {
    background: var(--dark-gray);
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-logo {
    text-align: left;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

body.arabic .footer-logo {
    text-align: right;
}

.footer-section h3,
.footer-section h4 {
    color: var(--moroccan-gold);
    margin-bottom: 1rem;
}

.footer-section p {
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--moroccan-gold);
    transform: translateY(-2px);
}

.social-links a.x-logo svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-address p,
.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-address i,
.footer-contact i {
    color: var(--moroccan-gold);
    width: 16px;
    text-align: center;
}

.footer-legal {
    border-top: 1px solid #4b5563;
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.legal-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--moroccan-gold);
}

.footer-bottom {
    text-align: center !important;
    padding-top: 1rem;
    color: #9ca3af;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.footer-bottom p {
    text-align: center !important;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0.5rem 0;
}

.footer-disclaimer {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    opacity: 0.8;
    text-align: center !important;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

body.arabic .footer-bottom {
    text-align: center !important;
    justify-content: center !important;
    direction: rtl;
}

body.arabic .footer-bottom p {
    text-align: center !important;
    justify-content: center !important;
}

body.arabic .footer-disclaimer {
    text-align: center !important;
    justify-content: center !important;
}

.footer-credit {
    font-size: 0.85rem;
    margin-top: 0.8rem;
    opacity: 0.7;
}

.footer-credit a {
    color: var(--moroccan-gold);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.footer-credit a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 3px solid var(--primary-blue);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    gap: 2rem;
}

.cookie-message {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.cookie-message i {
    font-size: 2rem;
    color: var(--moroccan-gold);
    flex-shrink: 0;
}

.cookie-text h4 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.cookie-text p {
    margin: 0;
    color: var(--dark-gray);
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

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

.cookie-btn.accept:hover {
    background: var(--hover-blue);
    transform: translateY(-2px);
}

.cookie-btn.decline {
    background: transparent;
    color: var(--warm-gray);
    border: 2px solid var(--warm-gray);
}

.cookie-btn.decline:hover {
    background: var(--warm-gray);
    color: white;
}

.cookie-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.cookie-link:hover {
    color: var(--hover-blue);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        text-align: center;
    }
    
    .cookie-message {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    .cookie-btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--clean-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

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

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

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

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    /* Show mobile image between title and subtitle on mobile */
    .hero-mobile-image {
        display: block;
    }

    /* Hide desktop image on mobile */
    .hero-image {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

    .cta-button {
        width: 100%;
        justify-content: center;
        max-width: 300px;
    }

    .features-grid,
    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .feature-card,
    .expertise-card {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

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

.feature-card,
.expertise-card,
.contact-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Skip Links */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-blue);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    font-weight: 600;
}

.skip-link:focus {
    top: 6px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #000080;
        --dark-gray: #000000;
        --warm-gray: #333333;
    }
}
/* Focus styles are now handled globally above */

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    animation: bounce 2s infinite;
}

.whatsapp-float a {
    width: 60px;
    height: 60px;
    background: var(--green-whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-float i {
    font-size: 1.8rem;
    color: white;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Articles Section */
.articles {
    padding: 80px 0;
    background: var(--clean-white);
}

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

.articles-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--clean-white) 100%);
    position: relative;
}

.testimonials-carousel {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.testimonials-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.testimonial-card {
    display: none;
    background: var(--clean-white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
    min-height: 300px;
    transition: all 0.5s ease;
}

.testimonial-card.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

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

.stars {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
}

.stars i {
    color: var(--moroccan-gold);
    font-size: 1.2rem;
}

.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    font-style: italic;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-blue);
    position: absolute;
    top: -20px;
    left: -20px;
    font-family: serif;
    opacity: 0.3;
}

.testimonial-text::after {
    content: '"';
    font-size: 4rem;
    color: var(--primary-blue);
    position: absolute;
    bottom: -40px;
    right: -20px;
    font-family: serif;
    opacity: 0.3;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-info {
    text-align: center;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.3rem;
}

.author-case {
    color: var(--warm-gray);
    font-size: 0.9rem;
    margin: 0;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.carousel-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.carousel-btn:hover {
    background: var(--hover-blue);
    transform: scale(1.1);
}

.carousel-btn:disabled {
    background: var(--warm-gray);
    cursor: not-allowed;
    transform: none;
}

.carousel-dots {
    display: flex;
    gap: 0.8rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--warm-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.carousel-dot.active {
    background: var(--primary-blue);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: var(--moroccan-gold);
}

.article-card {
    background: var(--clean-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.article-image {
    height: 200px;
    overflow: hidden;
}

.article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.article-content {
    padding: 1.5rem;
}

.article-category {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.article-title {
    font-size: 1.3rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-excerpt {
    color: var(--warm-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.article-date {
    color: var(--warm-gray);
    font-size: 0.9rem;
}

.read-more {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--hover-blue);
}

/* Testimonials Mobile Responsive */
@media (max-width: 768px) {
    .testimonial-card {
        padding: 2rem 1.5rem;
        min-height: 250px;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .testimonial-text::before,
    .testimonial-text::after {
        font-size: 3rem;
    }
    
    .testimonial-text::before {
        top: -15px;
        left: -10px;
    }
    
    .testimonial-text::after {
        bottom: -30px;
        right: -10px;
    }
    
    .carousel-controls {
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Mobile Responsive for Articles */
@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .nav-logo .logo-img {
        width: 55px;
        height: 55px;
    }

    .nav-logo h2 {
        font-size: 1.2rem;
    }

    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-float a {
        width: 50px;
        height: 50px;
    }

    .whatsapp-float i {
        font-size: 1.5rem;
    }

    /* Contact Section Mobile Styles */
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info-side {
        gap: 1.5rem;
    }

    .contact-detail-item {
        padding: 1.2rem;
        gap: 1.2rem;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .map-container {
        height: 400px;
    }

    .contact-cta {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-cta,
    .contact-form,
    .footer,
    .whatsapp-float {
        display: none;
    }
}