/* ===================================
   NOMA - Luxurious Moroccan Design
   =================================== */

/* CSS Variables - Refined Luxury Palette */
:root {
    --royal-blue: #1E3A5F;
    --soft-blue: #4A90A4;
    --rose-pink: #E8A4A2;
    --deep-pink: #C25A74;
    --champagne: #F5E6D3;
    --gold: #D4AF37;
    --rich-gold: #C19A2E;
    --cream: #FAF7F2;
    --warm-beige: #E8D5C4;
    --charcoal: #2C2C2C;
    --soft-gray: #6B6B6B;
    --light: #FFFFFF;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--charcoal);
    line-height: 1.8;
    background-color: var(--cream);
    letter-spacing: 0.3px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: 1px;
}

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

/* ===================================
   Navigation
   =================================== */
.navbar {
    background: rgba(30, 58, 95, 0.95);
    backdrop-filter: blur(20px);
    padding: 1.2rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand .logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 6px;
    text-transform: uppercase;
}

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

.nav-link {
    color: var(--champagne);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--gold);
    transition: 0.3s;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 70px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--soft-blue) 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(232, 164, 162, 0.08) 0%, transparent 50%);
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('Pic_Zellij_8.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    mix-blend-mode: overlay;
}

.hero-content {
    text-align: center;
    color: var(--light);
    z-index: 2;
    animation: fadeInUp 1.2s ease;
    max-width: 900px;
}

.hero-title {
    font-size: 7rem;
    margin-bottom: 1.5rem;
    color: var(--gold);
    letter-spacing: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 30px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    font-weight: 300;
    color: var(--champagne);
    letter-spacing: 3px;
}

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

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 16px 50px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--gold);
    color: var(--royal-blue);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background: var(--rich-gold);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.5);
}

/* ===================================
   Section Styles
   =================================== */
section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 3.5rem;
    color: var(--royal-blue);
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 2px;
}

.title-underline {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--rose-pink));
    margin: 0 auto;
    border-radius: 2px;
}

/* ===================================
   About Section
   =================================== */
.about {
    background: linear-gradient(to bottom, var(--cream), var(--champagne));
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: url('Pic_Zellij_9.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    pointer-events: none;
}

.about-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 1;
}

.about-text p {
    font-size: 1.4rem;
    line-height: 2;
    color: var(--soft-gray);
    font-weight: 300;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-top: 80px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 50px 30px;
    background: var(--light);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    border-top: 3px solid var(--gold);
}

.stat-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.stat-item h3 {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--soft-blue), var(--royal-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-weight: 700;
}

.stat-item p {
    font-size: 1.1rem;
    color: var(--soft-gray);
    letter-spacing: 1px;
}

/* ===================================
   Purpose Section
   =================================== */
.purpose {
    background: var(--light);
    position: relative;
    overflow: hidden;
}

.purpose::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background-image: url('Pic_Zellij_5.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    pointer-events: none;
}

.purpose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.purpose-card {
    background: linear-gradient(135deg, rgba(74, 144, 164, 0.05), rgba(232, 164, 162, 0.05));
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(212, 175, 55, 0.15);
    position: relative;
    overflow: hidden;
}

.purpose-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--soft-blue), var(--rose-pink), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.purpose-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, rgba(74, 144, 164, 0.08), rgba(232, 164, 162, 0.08));
}

.purpose-card h3 {
    color: var(--royal-blue);
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 600;
}

.purpose-card p {
    color: var(--soft-gray);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* ===================================
   Help Section
   =================================== */
.help {
    background: linear-gradient(to bottom, var(--champagne), var(--warm-beige));
    position: relative;
}

.help::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: url('Pic_Zellij_6.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    pointer-events: none;
}

.help-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.service-item {
    padding: 50px 40px;
    background: var(--light);
    border-radius: 20px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border-left: 4px solid var(--gold);
}

.service-item:hover {
    transform: translateX(10px);
    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.12);
    border-left-color: var(--soft-blue);
}

.service-item h4 {
    color: var(--royal-blue);
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

.service-item p {
    color: var(--soft-gray);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* ===================================
   Location/Map Section
   =================================== */
.location {
    background: var(--light);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

.location-info {
    background: linear-gradient(135deg, var(--champagne), var(--warm-beige));
    padding: 60px 50px;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.location-info::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url('Pic_Zellij_4.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.12;
    border-radius: 25px;
}

.location-info h3 {
    color: var(--royal-blue);
    margin-bottom: 35px;
    font-size: 2rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.location-info p {
    margin-bottom: 25px;
    color: var(--soft-gray);
    line-height: 2;
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}

.location-hours {
    color: var(--charcoal) !important;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.map-container {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    border: 2px solid var(--gold);
}

.map-container iframe {
    display: block;
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    background: linear-gradient(135deg, var(--royal-blue), var(--soft-blue));
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('Pic_Zellij_7.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    mix-blend-mode: overlay;
}

.contact .section-title {
    color: var(--gold);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    position: relative;
    z-index: 1;
}

.contact-info h3 {
    color: var(--champagne);
    margin-bottom: 40px;
    font-size: 2.2rem;
    font-weight: 600;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-method h4 {
    color: var(--gold);
    margin-bottom: 10px;
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.contact-method p {
    color: var(--champagne);
    font-size: 1.05rem;
}

.contact-form {
    background: rgba(255, 255, 255, 0.98);
    padding: 60px 50px;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--royal-blue);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--warm-beige);
    border-radius: 12px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--cream);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--light);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.15);
}

.contact-form .btn {
    width: 100%;
    margin-top: 15px;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: linear-gradient(135deg, var(--charcoal), var(--royal-blue));
    color: var(--champagne);
    padding: 80px 0 30px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('Pic_Zellij_9.jpg');
    background-size: cover;
    opacity: 0.03;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.footer-section h3,
.footer-section h4 {
    color: var(--gold);
    margin-bottom: 25px;
    font-weight: 600;
    letter-spacing: 1px;
}

.footer-section p {
    margin-bottom: 12px;
    line-height: 2;
    font-size: 0.95rem;
}

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

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: var(--champagne);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

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

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 968px) {
    .container {
        padding: 0 30px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(30, 58, 95, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.4s;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        padding: 40px 0;
        gap: 2rem;
    }

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

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 4.5rem;
        letter-spacing: 10px;
    }

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

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

    section {
        padding: 80px 0;
    }

    .location-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .purpose-grid,
    .help-services {
        grid-template-columns: 1fr;
    }
}

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

    .hero {
        height: 80vh;
    }

    .hero-title {
        font-size: 3rem;
        letter-spacing: 8px;
    }

    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
    }

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

    section {
        padding: 60px 0;
    }

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

    .stat-item h3 {
        font-size: 3rem;
    }

    .nav-brand .logo-text {
        font-size: 1.8rem;
        letter-spacing: 4px;
    }

    .contact-form,
    .location-info {
        padding: 40px 30px;
    }
}
