/**
 * La Petite Kasbah - Homepage Styles
 * Version: 1.0
 * Optimized for performance and SEO
 */

/* ===============================================
   FONTS & BASE STYLES
   =============================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ===============================================
   HERO SECTION
   =============================================== */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('/assets/images/home/home-hero.webp') center/cover;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.6));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 20px;
    max-width: 900px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease;
    font-family: 'Playfair Display', serif;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: 2rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease 0.2s backwards;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

/* ===============================================
   BUTTONS
   =============================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #C75B39 0%, #D4A853 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(199, 91, 57, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(199, 91, 57, 0.5);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #1D5C4D;
}

.btn-outline {
    border: 2px solid #1D5C4D;
    color: #1D5C4D;
    background: transparent;
}

.btn-outline:hover {
    background: #1D5C4D;
    color: white;
}

.btn-white {
    background: white;
    color: #C75B39;
}

.btn-white:hover {
    background: #f5f5f5;
    transform: translateY(-3px);
}

/* ===============================================
   AWARDS SECTION
   =============================================== */
.awards {
    background: #FAF7F2;
    padding: 4rem 2rem;
}

.awards-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.award-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.award-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.award-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #C75B39 0%, #D4A853 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.award-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1D5C4D;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.award-subtitle {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===============================================
   SECTION HEADERS
   =============================================== */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(199, 91, 57, 0.1);
    color: #C75B39;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #1D5C4D;
    margin-bottom: 1rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.section-description {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ===============================================
   ROOMS SECTION
   =============================================== */
.rooms-section {
    padding: 5rem 2rem;
    background: white;
}

.rooms-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.room-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.room-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.room-card:hover .room-image img {
    transform: scale(1.1);
}

.room-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #C75B39;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.room-content {
    padding: 1.5rem;
}

.room-title {
    font-size: 1.5rem;
    color: #1D5C4D;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.room-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.room-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.room-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1D5C4D;
}

.room-price span {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
}

.room-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.room-rating i {
    color: #FFB800;
}

.view-all {
    text-align: center;
    margin-top: 3rem;
}

/* ===============================================
   AMENITIES SECTION
   =============================================== */
.amenities-section {
    background: linear-gradient(135deg, #1D5C4D 0%, #164539 100%);
    padding: 5rem 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}
#amenities-title{
    color: white;
}
.amenities-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.amenities-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.amenity-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.amenity-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-5px);
}

.amenity-icon {
    width: 60px;
    height: 60px;
    background: rgba(212, 168, 83, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.amenity-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.amenity-description {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* ===============================================
   DESERT EXPERIENCE SECTION
   =============================================== */
.desert-section {
    position: relative;
    padding: 8rem 2rem;
    background: url('/assets/images/desert.webp') center/cover fixed;
    color: white;
}

.desert-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.5));
}
#desert-title{
    color: white;
}
.desert-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* ===============================================
   REVIEWS SECTION
   =============================================== */
.reviews-section {
    padding: 5rem 2rem;
    background: #FAF7F2;
}

.reviews-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.review-stars {
    color: #FFB800;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.review-text {
    color: #333;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.review-info h4 {
    font-size: 1rem;
    color: #1D5C4D;
    margin: 0 0 0.25rem 0;
    font-family: 'Playfair Display', serif;
}

.review-info p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

.rating-summary {
    max-width: 500px;
    margin: 3rem auto 0;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.rating-number {
    font-size: 3rem;
    font-weight: 700;
    color: #1D5C4D;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.rating-stars {
    color: #FFB800;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.rating-count {
    color: #666;
    font-size: 0.95rem;
}

/* ===============================================
   CTA SECTION
   =============================================== */
.cta-section {
    background: linear-gradient(135deg, #C75B39 0%, #D4A853 100%);
    padding: 5rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

/* ===============================================
   WHATSAPP FLOATING BUTTON
   =============================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

/* ===============================================
   ANIMATIONS
   =============================================== */
@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.05); 
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */
@media (max-width: 768px) {
    .hero {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .awards-grid,
    .rooms-grid,
    .amenities-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .desert-section {
        padding: 5rem 2rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .room-card {
        border-radius: 15px;
    }
    
    .award-card,
    .amenity-card,
    .review-card {
        padding: 1.5rem;
    }
}

/* ===============================================
   PRINT STYLES
   =============================================== */
@media print {
    .whatsapp-float,
    .hero-buttons,
    .btn {
        display: none !important;
    }
    
    .hero {
        height: auto;
        min-height: 300px;
    }
}