/* CSS Document for MaYa Creative Boutique */

/* =========================================
   1. CSS VARIABLES & RESET
   ========================================= */
   :root {
    --color-cream: #FCFBF9;
    --color-white: #FFFFFF;
    --color-black: #1A1A1A;
    --color-gray: #4A4A4A;
    --color-dusty-pink: #F4C2C2;
    --color-rose-gold: #B76E79;
    --color-rose-gold-light: #D5949C;
    --color-gold: #D4AF37;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-logo: 'Great Vibes', cursive;
    
    --transition-smooth: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-cream);
    color: var(--color-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .title, .subtitle {
    font-family: var(--font-heading);
    color: var(--color-black);
    font-weight: 400;
}

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

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}

/* =========================================
   2. LOADER
   ========================================= */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease-in-out, visibility 1s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-logo {
    width: 250px;
    height: auto;
    opacity: 0;
    animation: fadeInLogo 2s ease forwards;
}

.loader-line {
    width: 0%;
    height: 1px;
    background-color: var(--color-rose-gold);
    margin-top: 30px;
    animation: drawLine 2s ease forwards 0.5s;
}

@keyframes fadeInLogo {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes drawLine {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* =========================================
   3. NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    transition: var(--transition-smooth);
    background: transparent;
}

.navbar.scrolled {
    background: var(--color-white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 15px 0;
}

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

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-logo {
    margin: 0;
}

.nav-logo img {
    height: 90px;
    transition: var(--transition-smooth);
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.1));
}

.navbar.scrolled .nav-logo img {
    height: 60px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-black);
    position: relative;
}

.navbar:not(.scrolled) .nav-links a {
    color: var(--color-white);
    text-shadow: 0px 1px 4px rgba(0,0,0,0.5);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--color-rose-gold);
    transition: var(--transition-smooth);
}

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

.navbar:not(.scrolled) .nav-links a::after {
    background-color: var(--color-white);
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%; /* Extra height for parallax */
    background-position: center;
    background-size: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(26,26,26,0.5), rgba(26,26,26,0.8));
    z-index: -1;
}

.hero-content {
    color: var(--color-white);
    max-width: 800px;
    padding: 0 20px;
    text-shadow: 0px 2px 5px rgba(0,0,0,0.6);
}

.hero-content .subtitle {
    display: block;
    font-family: var(--font-logo);
    font-size: 3rem;
    color: var(--color-gold);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.hero-content .title {
    font-size: 5rem;
    color: var(--color-white);
    margin-bottom: 30px;
    line-height: 1.1;
}

.hero-content .description {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--color-rose-gold);
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    background-color: var(--color-rose-gold-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(183, 110, 121, 0.3);
}

/* =========================================
   5. COLLECTION SECTION
   ========================================= */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.divider {
    width: 60px;
    height: 2px;
    background-color: var(--color-rose-gold);
    margin: 0 auto 20px auto;
}

.section-title p {
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    grid-auto-rows: 400px;
}

.span-col-2 {
    grid-column: span 2;
}

.text-rose-gold {
    color: var(--color-rose-gold) !important;
}

.text-gold {
    background: linear-gradient(110deg, #BF953F 0%, #FCF6BA 25%, #B38728 50%, #FBF5B7 75%, #AA771C 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--color-gold); /* Fallback */
}

.font-logo {
    font-family: var(--font-logo) !important;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    display: block; /* To apply block link */
}

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

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(213, 148, 156, 0.9));
    padding: 30px;
    transition: bottom 0.5s ease;
    text-align: center;
}

.gallery-overlay h3 {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

.gallery-overlay p {
    color: var(--color-cream);
    font-size: 1rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

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

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.gallery-item:hover .item-text {
    transform: translateY(0);
}

/* =========================================
   6. ABOUT SECTION
   ========================================= */
.about {
    background-color: var(--color-white);
}

.container-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image .img-wrapper {
    position: relative;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    width: 80%;
    max-width: 400px;
    height: auto;
    display: block;
    filter: drop-shadow(0px 10px 20px rgba(183, 110, 121, 0.15));
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.divider.align-left {
    margin: 0 0 30px 0;
}

.about-text p {
    margin-bottom: 20px;
    font-weight: 300;
}

.about-text .signature {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-rose-gold);
    margin-top: 40px;
    font-style: italic;
}

/* =========================================
   FOOTER SECTION
   ========================================= */
.footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding-top: 140px;
    padding-bottom: 50px;
}

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

.footer-brand {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-brand img {
    width: 220px;
    margin-bottom: 25px;
    filter: drop-shadow(0px 0px 10px rgba(255,255,255,0.3));
}

.footer-brand p {
    color: var(--color-gold);
    line-height: 1.2;
    margin-top: -10px;
}

.footer h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--color-gold);
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    color: var(--color-rose-gold-light);
    font-family: var(--font-body);
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
}

.footer-links ul li a:hover {
    color: var(--color-gold);
}

.footer-contact p {
    color: var(--color-rose-gold-light);
    font-family: var(--font-body);
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 1px solid var(--color-rose-gold-light);
    border-radius: 50%;
    color: var(--color-rose-gold-light);
    font-size: 1.4rem;
    transition: var(--transition-smooth);
}

.social-icons a:hover {
    background-color: var(--color-rose-gold-light);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0px 5px 15px rgba(213, 148, 156, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: #777;
}

/* =========================================
   8. ANIMATIONS & REVEALS
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal.delay-1 { transition-delay: 0.2s; }
.reveal.delay-2 { transition-delay: 0.4s; }

/* =========================================
   9. RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
    .hero-content .title {
        font-size: 3.5rem;
    }
    .span-col-2 {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Needs a hamburger menu for full implementation */
    }
    .hero-content .title {
        font-size: 2.8rem;
    }
}
