/* ====================================
   MAISON BELBARAKA - Traditional Moroccan Theme
   ==================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #2c1810;
    overflow-x: hidden;
    background: #fdf8f3;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

/* ====================================
   MOROCCAN COLOR PALETTE
   Primary: #8B2635 (Moroccan Red)
   Secondary: #D4AF37 (Gold)
   Accent: #1E5F74 (Moroccan Blue)
   Background: #FDF8F3 (Cream)
   ==================================== */

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, #8b2635 0%, #6b1d2a 100%);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 4px solid #d4af37;
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(139, 38, 53, 0.5);
}

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

.nav-logo h2 {
    color: #d4af37;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Amiri', serif;
    letter-spacing: 1px;
}

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

.nav-menu a {
    text-decoration: none;
    color: #fdf8f3;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-menu a:hover {
    color: #d4af37;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #d4af37;
    transition: width 0.3s ease;
}

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

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

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #d4af37;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #fdf8f3 0%, #f5ebe0 100%);
    padding: 100px 20px 50px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 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='%238b2635' 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");
    opacity: 0.5;
}

.hero-content {
    flex: 1;
    max-width: 550px;
    z-index: 2;
    position: relative;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.moroccan-ornament {
    color: #d4af37;
    font-size: 2rem;
    margin: 1rem 0;
}

.hero-title {
    font-size: 3.5rem;
    color: #8b2635;
    margin-bottom: 1rem;
    font-family: 'Amiri', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #5a3e2b;
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-image {
    flex: 1;
    position: relative;
    animation: fadeInRight 1s ease-out;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    height: 450px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(139, 38, 53, 0.3);
    border: 5px solid #d4af37;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #8b2635 0%, #a0364a 100%);
    color: #d4af37;
    border: 2px solid #d4af37;
    box-shadow: 0 4px 15px rgba(139, 38, 53, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 38, 53, 0.5);
    background: linear-gradient(135deg, #a0364a 0%, #8b2635 100%);
}

.btn-secondary {
    background: transparent;
    color: #8b2635;
    border: 2px solid #8b2635;
}

.btn-secondary:hover {
    background: #8b2635;
    color: #d4af37;
    transform: translateY(-3px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    display: inline-block;
    color: #d4af37;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-size: 2.8rem;
    color: #8b2635;
    margin-bottom: 1rem;
    font-family: 'Amiri', serif;
}

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

.moroccan-divider::before,
.moroccan-divider::after {
    content: '';
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.moroccan-divider span {
    color: #d4af37;
    font-size: 1.2rem;
}

/* About Section */
.about {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #8b2635, #d4af37, #8b2635);
}

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

.about-text h3 {
    font-size: 2rem;
    color: #8b2635;
    margin-bottom: 1.5rem;
    font-family: 'Amiri', serif;
}

.about-text p {
    font-size: 1.05rem;
    color: #5a3e2b;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: linear-gradient(135deg, #fdf8f3, #f5ebe0);
    border-radius: 8px;
    border: 1px solid #d4af37;
}

.about-feature i {
    color: #8b2635;
    font-size: 1.2rem;
}

.about-feature span {
    font-size: 0.9rem;
    color: #5a3e2b;
    font-weight: 500;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(139, 38, 53, 0.2);
}

.about-image .image-frame {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border: 4px solid #d4af37;
    border-radius: 15px;
    z-index: -1;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: linear-gradient(135deg, #8b2635 0%, #6b1d2a 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: #d4af37;
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: #d4af37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 1.8rem;
    color: #8b2635;
}

.feature-card h4 {
    color: #d4af37;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-family: 'Amiri', serif;
}

.feature-card p {
    color: #fdf8f3;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Rooms Section */
.rooms {
    padding: 100px 0;
    background: linear-gradient(135deg, #fdf8f3 0%, #f5ebe0 100%);
}

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

.room-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(139, 38, 53, 0.15);
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.room-card:hover {
    transform: translateY(-10px);
    border-color: #d4af37;
    box-shadow: 0 20px 50px rgba(139, 38, 53, 0.25);
}

.room-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.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-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 38, 53, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.room-card:hover .room-overlay {
    opacity: 1;
}

.room-content {
    padding: 2rem;
}

.room-content h3 {
    font-size: 1.5rem;
    color: #8b2635;
    margin-bottom: 1rem;
    font-family: 'Amiri', serif;
}

.room-content p {
    color: #5a3e2b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.room-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.room-features span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #5a3e2b;
    background: #fdf8f3;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid #d4af37;
}

.room-features i {
    color: #8b2635;
    font-size: 0.9rem;
}

/* Amenities Section */
.amenities {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
}

.amenities::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #8b2635, #d4af37, #8b2635);
}

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

.amenity-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, #fdf8f3 0%, #f5ebe0 100%);
    border-radius: 15px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.amenity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #d4af37;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.amenity-card:hover::before {
    transform: scaleX(1);
}

.amenity-card:hover {
    transform: translateY(-8px);
    border-color: #d4af37;
    box-shadow: 0 15px 35px rgba(139, 38, 53, 0.2);
}

.amenity-card i {
    font-size: 3rem;
    color: #8b2635;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.amenity-card:hover i {
    color: #d4af37;
    transform: scale(1.1);
}

.amenity-card h3 {
    font-size: 1.3rem;
    color: #8b2635;
    margin-bottom: 1rem;
    font-family: 'Amiri', serif;
}

.amenity-card p {
    color: #5a3e2b;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Gallery Section */
.gallery {
    padding: 100px 0;
    background: linear-gradient(135deg, #fdf8f3 0%, #f5ebe0 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item:hover {
    border-color: #d4af37;
    box-shadow: 0 15px 35px rgba(139, 38, 53, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #8b2635, #d4af37, #8b2635);
}

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

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-item i {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #8b2635 0%, #a0364a 100%);
    color: #d4af37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-item h4 {
    color: #8b2635;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-family: 'Amiri', serif;
}

.contact-item p {
    color: #5a3e2b;
    font-size: 0.95rem;
}

.contact-cta {
    background: linear-gradient(135deg, #fdf8f3 0%, #f5ebe0 100%);
    padding: 3rem;
    border-radius: 15px;
    border: 3px solid #d4af37;
    text-align: center;
}

.contact-cta h3 {
    color: #8b2635;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-family: 'Amiri', serif;
}

.contact-cta p {
    color: #5a3e2b;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #8b2635 0%, #6b1d2a 100%);
    color: #fdf8f3;
    padding: 60px 0 30px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: #d4af37;
}

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

.footer-section h3,
.footer-section h4 {
    color: #d4af37;
    margin-bottom: 1.5rem;
    font-family: 'Amiri', serif;
}

.footer-section h3 {
    font-size: 1.5rem;
}

.footer-section p {
    color: #f5ebe0;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

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

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #f5ebe0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: #d4af37;
    padding-left: 5px;
}

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

.social-links a {
    width: 45px;
    height: 45px;
    background: #d4af37;
    color: #8b2635;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-links a:hover {
    transform: translateY(-3px) rotate(360deg);
    background: #f5ebe0;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    color: #f5ebe0;
    font-size: 0.9rem;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item.large {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, #8b2635 0%, #6b1d2a 100%);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        border-bottom: 4px solid #d4af37;
    }

    .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(9px) rotate(45deg);
    }

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

    .hero {
        flex-direction: column;
        padding: 120px 20px 50px;
    }

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

    .hero-image {
        margin-top: 2rem;
    }

    .hero-image img {
        height: 350px;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .rooms-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .contact-cta {
        padding: 2rem;
    }
}

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

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

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

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .about-features {
        flex-direction: column;
    }

    .room-features {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-buttons,
    .footer,
    .btn {
        display: none;
    }
}
