/* 
    MAALIKA - THEME SYSTEM 
    Mobile First Approach
*/

:root {
    --primary: #1a1a1a;
    --accent: #C5A059;
    /* Classic Gold */
    --accent-dark: #A68045;
    --bg-light: #FAFAFA;
    --bg-creme: #F7F3EC;
    --text-main: #333333;
    --text-muted: #666666;
    --white: #ffffff;
    --overlay: rgba(0, 0, 0, 0.4);

    --font-heading: 'Cinzel', serif;
    --font-body: 'Lato', sans-serif;

    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    --container: 1200px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    margin: 0 auto;
    max-width: var(--container);
}

.section {
    padding: var(--spacing-lg) 0;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    letter-spacing: 2px;
}

.section-title.left {
    text-align: left;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--accent);
    margin: 1rem auto 0;
}

.section-title.left::after {
    margin: 1rem 0 0;
}

.section-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    color: var(--text-muted);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 3px;
    font-weight: 700;
}

.nav-links {
    display: none;
    /* Mobile first: hidden */
}

.hamburger {
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--primary);
    margin: 5px 0;
    transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--white);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.5s ease-in-out;
}

.mobile-menu.active {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    cursor: pointer;
}

.mobile-nav-links li {
    margin: 1.5rem 0;
}

.mobile-nav-links a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary);
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 0 5%;
}

.sub-heading {
    display: block;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.cta-button {
    background: var(--accent);
    color: var(--white);
    padding: 1rem 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    border: none;
    width: 100%;
    max-width: 250px;
}

.secondary-link {
    border-bottom: 1px solid var(--white);
    padding-bottom: 5px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.product-card {
    background: var(--white);
    text-align: center;
    transition: var(--transition);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 350px;
    background: #f0f0f0;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.image-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    transition: var(--transition);
}

.product-card:hover .image-overlay {
    top: 0;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem 0;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.price {
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
}

.view-btn {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--primary);
    padding-bottom: 3px;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    cursor: pointer;
}

/* Heritage Section */
.heritage-section {
    background: var(--bg-creme);
}

.heritage-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.feature-list {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--accent);
    margin-top: 5px;
}

.feature-item h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Lookbook */
.lookbook-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.lookbook-item {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.lookbook-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lookbook-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 2rem;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--white);
}

/* Testimonials */
.testimonials-section {
    background: var(--primary);
    color: var(--white);
    text-align: center;
}

.testimonials-section .section-title::after {
    background: var(--accent);
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.quote-icon {
    font-size: 4rem;
    color: var(--accent);
    font-family: serif;
    line-height: 1;
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

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

.contact-details {
    margin: 2rem 0;
}

.contact-details li {
    margin-bottom: 1rem;
}

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

.social-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid transparent;
}

.social-links a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    outline: none;
    font-family: var(--font-body);
}

.submit-btn {
    background: var(--primary);
    color: var(--white);
    padding: 1rem;
    border: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--accent);
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid #eee;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-legal a {
    margin: 0 0.5rem;
}

/* Scroll Revel */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    /* JS Toggle */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 3rem 2rem;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }

    .navbar {
        padding: 1.5rem 5%;
    }

    .nav-links {
        display: flex;
        gap: 2rem;
    }

    .nav-links a {
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 1.5px;
    }

    .hamburger {
        display: none;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .hero-btns {
        flex-direction: row;
    }

    .cta-button {
        width: auto;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .heritage-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }

    .lookbook-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 400px;
    }

    .lookbook-item.taller {
        grid-row: span 1;
    }

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

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }

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

@media (min-width: 1024px) {
    .section {
        padding: var(--spacing-xl) 0;
    }
}