/* 
   MASTERPIECE COLLECTION - CORE DESIGN SYSTEM
   Standardized layout primitives for Navigation, Hero, and Footer.
*/

:root {
    --gold-primary: #FFB81C;
    --gold-light: #F4E5BC;
    --night-brown: #2b1b0e;
    --earth-brown: #2A1E18;
    --warm-charcoal: #1c1614;
    --pure-white: #FFFFFF;
    --text-cream: #E8DCC4;
    --gold-gradient: linear-gradient(135deg, #FFF5D9 0%, #FFB81C 50%, #D4AF37 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--night-brown);
    background-image:
        radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    color: var(--text-cream);
    font-family: 'Fauna One', serif;
    overflow-x: hidden;
    width: 100%;
    -webkit-text-size-adjust: 100%;
}

h1,
h2,
h3,
h4,
.btn-gold {
    font-family: 'Cinzel', serif;
    color: var(--pure-white);
    text-transform: uppercase;
}

.subtitle {
    font-family: 'Marcellus', serif;
    color: var(--gold-primary);
    letter-spacing: 4px;
    font-size: 14px;
    display: block;
    margin-bottom: 20px;
}

/* NAVIGATION - GLASS */
/* NAVIGATION - GLASS */
.master-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
    background: #2b1b0e;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.4s ease;
}

.master-nav.scrolled {
    background: rgba(43, 27, 14, 0.95);
    backdrop-filter: blur(15px);
    padding: 10px 5%;
}

.nav-brand img {
    height: 40px;
    transition: height 0.3s;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--pure-white);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1px;
    transition: color 0.3s;
    text-transform: uppercase;
    position: relative;
    font-weight: 600;
}

/* MOBILE MENU TOGGLE */
.mobile-toggle {
    display: none;
    font-size: 24px;
    color: var(--gold-primary);
    cursor: pointer;
}

@media (max-width: 991px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(43, 27, 14, 0.98);
        flex-direction: column;
        padding: 40px 0;
        clip-path: circle(0% at 100% 0);
        transition: clip-path 0.5s ease-in-out;
        pointer-events: none;
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-links.active {
        clip-path: circle(150% at 100% 0);
        pointer-events: all;
    }

    .mobile-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 32px !important;
        word-wrap: break-word;
    }

    .magazine-grid {
        display: flex;
        flex-direction: column;
    }

    .magazine-item,
    .magazine-item.featured,
    .magazine-item.split {
        grid-column: span 12;
        width: 100% !important;
    }

    .blog-container {
        flex-direction: column;
        padding: 0 15px;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background: var(--gold-primary);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold-primary);
}

.mobile-toggle {
    display: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 992px) {
    .master-nav {
        padding: 20px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #0F0F0F;
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }
}

/* CINEMATIC HERO PRIMITIVES */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #000;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 100;
    max-width: 900px;
    padding: 0 20px;
    text-align: center;
    width: 100%;
}

.hero-content h1 {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    font-family: 'Cinzel', serif;
    background: linear-gradient(to bottom, #FFF 0%, #FFB81C 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

/* MASTERPIECE MODAL SYSTEM */
.masterpiece-modal,
.booking-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.masterpiece-modal.show,
.booking-modal.show {
    display: flex;
    animation: fadeIn 0.4s ease;
}

.modal-content,
.login-card-revamp {
    background: #1a110a;
    border: 1px solid var(--gold-primary);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 50px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-content::-webkit-scrollbar {
    width: 5px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
}

.close-modal,
.close-login,
.story-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 30px;
    color: var(--gold-primary);
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
}

.close-modal:hover {
    transform: rotate(90deg);
    color: #fff;
}

.modal-title {
    font-family: 'Cinzel', serif;
    color: var(--gold-primary);
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 3px;
    font-size: 24px;
}

/* FORM CONTROLS */
.form-control,
.login-input {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 184, 28, 0.2) !important;
    color: #fff !important;
    padding: 12px 20px !important;
    border-radius: 0 !important;
    margin-bottom: 20px;
    font-family: 'Fauna One', serif;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--gold-primary) !important;
    box-shadow: none !important;
    outline: none;
}

label {
    font-family: 'Marcellus', serif;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--gold-primary);
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* MASTERPIECE FOOTER 3.0 */
.premium-footer {
    background: #150f0c;
    border-top: 3px solid var(--gold-primary);
    padding: 80px 0 0;
    color: var(--text-cream);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto 60px;
    padding: 0 40px;
}

.footer-logo {
    height: 70px;
    margin-bottom: 25px;
}

.footer-col h4 {
    color: var(--pure-white);
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 25px;
    font-family: 'Cinzel', serif;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--gold-primary);
    transform: translateX(10px);
}

.social-icon {
    width: 40px;
    height: 40px;
    border: 1px solid var(--gold-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--gold-primary);
    color: #000;
    transform: translateY(-5px);
}

.newsletter-form input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    padding: 15px;
    width: 100%;
    color: #fff;
    margin-bottom: 10px;
}

.btn-subscribe {
    width: 100%;
    padding: 15px;
    background: var(--gold-primary);
    border: none;
    color: #000;
    font-family: 'Cinzel';
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-subscribe:hover {
    background: #fff;
}

.designer-credit {
    margin-top: 15px;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Cinzel', serif;
    opacity: 0.7;
}

.designer-credit a {
    color: var(--gold-primary);
    text-decoration: none;
    transition: 0.3s;
}

.designer-credit a:hover {
    color: #fff;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 0;
    font-size: 13px;
    background: #110b08;
    color: #666;
}

/* BUTTONS */
.btn-gold {
    background: var(--gold-primary);
    color: var(--night-brown);
    border: 2px solid var(--gold-primary);
    padding: 12px 35px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    display: inline-block;
}

.btn-gold:hover {
    background: #fff;
    border-color: #fff;
    color: var(--night-brown);
}

/* ANIMATIONS */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1.2s cubic-bezier(0.2, 1, 0.3, 1) forwards 0.5s;
}

.slide-down {
    opacity: 0;
    transform: translateY(-30px);
    animation: fadeUp 1.2s cubic-bezier(0.2, 1, 0.3, 1) forwards 0.2s;
}

.fade-in {
    opacity: 0;
    animation: fadeUp 1.2s cubic-bezier(0.2, 1, 0.3, 1) forwards 0.8s;
}

/* --- MOBILE OPTIMIZATION & RESPONSIVENESS --- */
@media (max-width: 768px) {

    /* Hero Typography */
    .hero-content h1 {
        font-size: 36px !important;
        /* Reduced from 64px */
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 16px !important;
    }

    /* Stack Footer Logic - Override Grid */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 40px;
        text-align: center;
    }

    .footer-col {
        text-align: center !important;
        /* Force center alignment */
    }

    .footer-links a {
        justify-content: center;
        /* Center links */
    }

    .d-flex.gap-3 {
        justify-content: center;
        /* Center social icons */
    }

    /* Adjust Modal Sizing */
    .modal-content,
    .login-card-revamp {
        padding: 30px 20px;
        width: 95%;
        margin: 10px;
        max-height: 85vh;
    }

    /* Sidebar/Navigation Adjustments */
    .master-nav {
        padding: 15px 20px;
    }
}

/* --- PERFORMANCE OPTIMIZATION (Low RAM / Reduced Motion) --- */
@media (prefers-reduced-motion: reduce),
(max-width: 576px) {

    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-bg {
        /* Disable complex filters/transforms on mobile bg if heavy */
        filter: none !important;
        transform: none !important;
        animation: none !important;
    }

    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}