/* SPF Website Styles - Premium Edition */
:root {
    --primary-color: #00a693;
    --primary-dark: #008f7d;
    --primary-light: #e6f6f4;
    --secondary-color: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --success-bg: #dcfce7;
    --success-text: #166534;
    --error-bg: #fee2e2;
    --error-text: #991b1b;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'Cairo', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--secondary-color);
}

/* Typography */
h1,
h2,
h3,
h4,
.font-heading {
    font-family: 'Cairo', sans-serif;
    line-height: 1.2;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.text-white {
    color: var(--white);
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 2rem;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 4rem 0;
}

.bg-white {
    background-color: var(--white);
}

.bg-secondary {
    background-color: var(--secondary-color);
}

/* Grid System */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.md-flex {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .md-flex {
        flex-direction: row;
    }

    .md-w-1-2 {
        width: 50%;
    }
}

/* Specific Component: Band Card */
.band-card {
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    margin-bottom: 4rem;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.band-card:hover {
    transform: translateY(-5px);
}

.band-image-container {
    position: relative;
    height: 400px;
    overflow: hidden;
}

@media(min-width: 768px) {
    .band-image-container {
        height: auto;
        min-height: 100%;
    }
}

.band-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.band-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.band-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.prose {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    white-space: pre-line;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Booking Form */
.booking-form-card {
    background: var(--white);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    margin-top: -2rem;
    position: relative;
    z-index: 10;
}

.form-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.field-group {
    margin-bottom: 1.5rem;
}

.field-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #f8fafc;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 166, 147, 0.1);
}

/* File Input */
.file-input {
    padding: 0.5rem;
    background: white;
}

input[type=file]::file-selector-button {
    margin-right: 1rem;
    background: var(--primary-light);
    color: var(--primary-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: var(--error-bg);
    color: var(--error-text);
    border: 1px solid #fecaca;
}

/* Navigation & Footer (Keep existing base styles but refine) */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 80px;
    gap: 3rem;
}

.logo img {
    height: 48px;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover,
nav a.active {
    color: var(--primary-color);
}

/* Dropdown Navigation */
.dropdown {
    position: relative;
    padding-bottom: 20px;
    /* Bridge gap for hover */
    margin-bottom: -20px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    /* Center relative to parent */
    transform: translateX(-50%);
    background: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow-xl);
    border-radius: 12px;
    padding: 0.5rem 0;
    z-index: 1000;
    border: 1px solid var(--border-color);
    margin-top: 10px;
    /* Slight offset */
}

/* Arrow indicator */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--white);
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
}

/* Invisible bridge to prevent menu from closing when moving cursor over the gap */
.dropdown-menu::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    padding-left: 1.75rem;
    /* Slight slide notification */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Team Section Styles */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.profile-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.profile-card:hover {
    transform: translateY(-5px);
}

.profile-img-container {
    height: 320px;
    overflow: hidden;
    background-color: #f1f5f9;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

.profile-card:hover .profile-img {
    transform: scale(1.05);
}

.profile-content {
    padding: 1.5rem;
}

.profile-content h3,
.profile-content h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.profile-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Home Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--text-dark) 0%, #0f172a 100%);
    color: var(--white);
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(0, 166, 147, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(to right, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: -4rem;
    position: relative;
    z-index: 10;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

footer h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

footer a {
    color: #94a3b8;
    text-decoration: none;
}

footer a:hover {
    color: var(--white);
}

/* RTL Tweaks */
[dir="rtl"] .band-content {
    text-align: right;
}

[dir="rtl"] .ml-2 {
    margin-right: 0.5rem;
    margin-left: 0;
}

[dir="rtl"] input[type=file]::file-selector-button {
    margin-left: 1rem;
    margin-right: 0;
}
/* Responsive / Mobile Styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 200;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger Animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px);
}

@media (max-width: 768px) {
    .nav-container {
        justify-content: space-between;
        padding: 0 1.5rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px; /* Header height */
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        transform: translateX(-100%); /* Hidden by default (LTR) */
        transition: transform 0.3s ease-in-out;
        padding: 2rem;
        overflow-y: auto;
        box-shadow: var(--shadow-xl);
    }
    
    [dir="rtl"] .nav-menu {
        transform: translateX(100%); /* Hidden (RTL) */
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    /* Mobile Dropdown */
    .dropdown {
        width: 100%;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
        transform: none;
        background: #f8fafc;
        margin-top: 0.5rem;
    }

    .dropdown-menu.show {
        display: block;
        animation: none;
    }
    
    .dropdown-menu::after,
    .dropdown-menu::before {
        display: none;
    }

    /* General Layout Adjustments */
    .hero-title {
        font-size: 2.5rem;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .nav-container {
        gap: 0; 
    }
}

/* Calendar Styles */
.calendar-container {
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: #ffffff;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    background-color: var(--gray-100);
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    cursor: pointer;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    text-align: center;
}

.calendar-day {
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.cal-available {
    background-color: #dcfce7;
    color: #166534;
    cursor: pointer;
}

.cal-available:hover {
    background-color: #bbf7d0;
}

.cal-unavailable {
    background-color: #fee2e2;
    color: #991b1b;
    cursor: not-allowed;
    opacity: 0.8;
}

.cal-past {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.cal-selected {
    border: 2px solid var(--primary-color);
    background-color: #d1fae5;
    font-weight: 700;
}
