/* ==========================================================================
   منتجع الصفوة - Safwa Resort Official Website Stylesheet
   Designed for High Luxury UX & Meta Business Verification Compliance
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Cairo:wght@300;400;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --primary-dark: #071e17;
    --primary-emerald: #0d2b22;
    --emerald-light: #164336;
    --emerald-accent: #215c4b;
    --gold-primary: #d4af37;
    --gold-light: #f3e3a4;
    --gold-dark: #aa861d;
    --gold-gradient: linear-gradient(135deg, #f3e3a4 0%, #d4af37 50%, #aa861d 100%);
    --bg-light: #faf9f5;
    --bg-card: #ffffff;
    --text-main: #1d2925;
    --text-muted: #5c6c66;
    --text-light: #e8f0ed;
    --border-color: rgba(212, 175, 55, 0.25);
    --border-subtle: rgba(0, 0, 0, 0.08);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-deep: 0 20px 40px rgba(7, 30, 23, 0.25);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

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

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

body {
    font-family: 'Plus Jakarta Sans', 'Cairo', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography Helpers */
h1, h2, h3, .font-serif {
    font-family: 'Playfair Display', 'Amiri', serif;
}

.arabic-text {
    font-family: 'Cairo', 'Amiri', sans-serif;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Verification Highlight Banner */
.verification-bar {
    background: var(--primary-dark);
    color: var(--gold-light);
    font-size: 0.85rem;
    padding: 0.5rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    letter-spacing: 0.5px;
}

.verification-bar strong {
    color: #fff;
    background: rgba(212, 175, 55, 0.2);
    padding: 2px 10px;
    border-radius: 20px;
    border: 1px solid var(--gold-primary);
    margin: 0 5px;
}

/* Header & Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(13, 43, 34, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
}

.brand-icon {
    width: 44px;
    height: 44px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.brand-titles {
    display: flex;
    flex-direction: column;
}

.brand-name-main {
    font-family: 'Cairo', 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.brand-name-sub {
    font-size: 0.75rem;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

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

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 4px 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-gradient);
    transition: var(--transition);
}

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

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

.btn-primary {
    background: var(--gold-gradient);
    color: var(--primary-dark);
    padding: 0.75rem 1.6rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--gold-light);
    padding: 0.75rem 1.6rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid var(--gold-primary);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.15);
    color: #fff;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(7, 30, 23, 0.65) 0%, rgba(13, 43, 34, 0.85) 100%),
                url('images/hero.jpg') center/cover no-repeat;
    color: #ffffff;
    padding: 4rem 0 6rem 0;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.badge-legal {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--gold-primary);
    color: var(--gold-light);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
}

.hero-title-ar {
    font-size: 3.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.2rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero-title-en {
    font-size: 2.8rem;
    font-weight: 400;
    color: var(--gold-light);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 720px;
    margin: 0 auto 2.5rem auto;
    font-weight: 300;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

/* Booking Bar Floating Widget */
.booking-widget {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-deep);
    border: 1px solid var(--border-color);
    max-width: 1000px;
    margin: 0 auto;
    color: var(--text-main);
}

.booking-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) 160px;
    gap: 1rem;
    align-items: center;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    background: #fdfdfd;
    color: var(--text-main);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* Section Common */
.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 3.5rem auto;
}

.section-subtitle {
    color: var(--gold-dark);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 2.4rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    line-height: 1.25;
}

.section-description {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Legal & Business Overview Card */
.legal-card-section {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 3rem;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.legal-card-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--gold-gradient);
}

.legal-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.legal-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(13, 43, 34, 0.06);
    color: var(--primary-emerald);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.legal-title {
    font-size: 1.8rem;
    color: var(--primary-emerald);
    margin-bottom: 1rem;
}

.business-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

.business-specs-table th, 
.business-specs-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.95rem;
}

.business-specs-table th {
    color: var(--text-muted);
    font-weight: 600;
    width: 40%;
}

.business-specs-table td {
    color: var(--primary-dark);
    font-weight: 700;
}

/* Accommodations Section */
.accommodations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.villa-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.villa-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-deep);
    border-color: var(--gold-primary);
}

.villa-image-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
    background-color: var(--primary-emerald);
}

.villa-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.villa-card:hover .villa-image {
    transform: scale(1.08);
}

.villa-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(7, 30, 23, 0.85);
    backdrop-filter: blur(6px);
    color: var(--gold-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.villa-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.villa-title {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.villa-legal-owner {
    font-size: 0.8rem;
    color: var(--gold-dark);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.villa-features {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.villa-features span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.villa-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.villa-price {
    display: flex;
    flex-direction: column;
}

.price-amount {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-emerald);
}

.price-unit {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Amenities Section */
.amenities-bg {
    background: var(--primary-emerald);
    color: #ffffff;
    position: relative;
}

.amenities-bg .section-title {
    color: #ffffff;
}

.amenities-bg .section-description {
    color: rgba(255, 255, 255, 0.8);
}

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

.amenity-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.amenity-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: var(--gold-primary);
}

.amenity-icon {
    width: 60px;
    height: 60px;
    background: var(--gold-gradient);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.25rem auto;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.amenity-title {
    font-size: 1.2rem;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
}

.amenity-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info-card {
    background: var(--primary-emerald);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-deep);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--gold-primary);
    color: var(--gold-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.1rem;
    color: var(--gold-light);
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.contact-form-wrapper {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-subtle);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group-full {
    margin-bottom: 1.25rem;
}

.form-group-full label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-main);
}

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

/* Footer Section */
.footer {
    background: var(--primary-dark);
    color: var(--text-light);
    padding: 5rem 0 2rem 0;
    border-top: 1px solid var(--border-color);
}

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

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 1rem;
    max-width: 320px;
}

.legal-entity-highlight {
    margin-top: 1.25rem;
    background: rgba(212, 175, 55, 0.1);
    border-left: 3px solid var(--gold-primary);
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--gold-light);
}

.footer-title {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gold-primary);
}

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

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

.footer-links a, .footer-links button {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    text-align: left;
}

.footer-links a:hover, .footer-links button:hover {
    color: var(--gold-primary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.legal-statement-footer {
    color: var(--gold-light);
    font-weight: 600;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 30, 23, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    padding: 1.5rem;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    max-width: 750px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2.5rem;
    box-shadow: var(--shadow-deep);
    border: 1px solid var(--border-color);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(0,0,0,0.05);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--primary-emerald);
    color: #fff;
}

.modal-header h3 {
    color: var(--primary-emerald);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.modal-body {
    margin-top: 1.5rem;
    color: var(--text-main);
    font-size: 0.95rem;
}

.modal-body h4 {
    color: var(--primary-dark);
    margin: 1.25rem 0 0.5rem 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 75px);
        background: var(--primary-dark);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
    }
    .nav-menu.active {
        left: 0;
    }
    .mobile-toggle {
        display: block;
    }
    .legal-info-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-title-ar {
        font-size: 2.4rem;
    }
    .hero-title-en {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .booking-form {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}
