/* ============================================================
   VILLA YOLO — SHARED STYLES
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Jost:wght@300;400;500;600&display=swap');

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #b8953e;
    --gold-light: #c9a84c;
    --gold-dark: #96782e;
    --cream: #f6f1e9;
    --cream-light: #fbf8f3;
    --dark: #1f1d1a;
    --charcoal: #2a2724;
    --text: #5a564f;
    --white: #ffffff;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Jost', sans-serif;
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
}
img { display: block; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }
.delay-7 { transition-delay: 0.7s; }
.delay-8 { transition-delay: 0.8s; }

/* ============================================================
   HEADER
   ============================================================ */
header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 100;
    padding: 20px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}
header.scrolled {
    background: rgba(20, 20, 20, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 12px 50px;
    box-shadow: 0 2px 30px rgba(0,0,0,0.3);
}
/* Dark header variant for pages with light page-hero */
header.header-dark {
    background: rgba(20, 20, 20, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.logo { flex-shrink: 0; }
.logo img {
    height: 80px;
    border-radius: 8px;
    transition: height 0.4s;
}
header.scrolled .logo img { height: 55px; }

nav {
    display: flex;
    align-items: center;
    gap: 30px;
}
nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
    position: relative;
    transition: color 0.3s;
}
nav a:not(.nav-btn)::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 50%;
    width: 0; height: 1px;
    background: var(--gold-light);
    transition: width 0.3s, left 0.3s;
}
nav a:not(.nav-btn):hover::after { width: 100%; left: 0; }
nav a:hover { color: var(--gold-light); }
nav a.active-link { color: var(--gold-light); }
nav a.active-link::after { width: 100%; left: 0; }

.nav-btn {
    border: 1px solid var(--gold-light);
    padding: 10px 22px;
    color: var(--gold-light) !important;
    font-size: 12px !important;
    letter-spacing: 2px;
    transition: all 0.3s;
}
.nav-btn:hover {
    background: var(--gold-light);
    color: var(--dark) !important;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 200;
    background: none;
    border: none;
    padding: 5px;
}
.menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--white);
    transition: 0.35s;
}

.nav-close {
    display: none;
    position: absolute;
    top: 25px; right: 25px;
    color: var(--white);
    font-size: 36px;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    padding: 16px 38px;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(184, 149, 62, 0.35);
}

.btn-outline {
    display: inline-block;
    border: 1.5px solid var(--gold);
    color: var(--gold);
    padding: 14px 34px;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    background: transparent;
    text-align: center;
    cursor: pointer;
}
.btn-outline:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(184, 149, 62, 0.25);
}

.btn-outline-white {
    display: inline-block;
    border: 1.5px solid rgba(255,255,255,0.5);
    color: var(--white);
    padding: 14px 34px;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    background: transparent;
    text-align: center;
}
.btn-outline-white:hover {
    background: var(--white);
    color: var(--dark);
    transform: translateY(-2px);
}

.btn-center { display: flex; justify-content: center; }

/* ============================================================
   PAGE HERO (sub-pages)
   ============================================================ */
.page-hero {
    position: relative;
    height: 50vh;
    min-height: 420px;
    padding-top: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: -2;
}
.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.35) 100%);
    z-index: -1;
}
.page-hero-content {
    position: relative;
    z-index: 1;
}
.page-hero-label {
    font-size: 13px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 18px;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeUp 0.7s 0.3s forwards;
}
.page-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 600;
    color: var(--white);
    line-height: 1.15;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 0.5s forwards;
}
.page-hero-title em {
    color: var(--gold-light);
    font-style: italic;
}
.page-hero-divider {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 22px auto 0;
    opacity: 0;
    animation: fadeUp 0.7s 0.7s forwards;
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.94);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.35s;
}
.lightbox.active { display: flex; opacity: 1; }
.lightbox img {
    max-width: 88vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    transform: scale(0.92);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.lightbox.active img { transform: scale(1); }
.lightbox-close {
    position: absolute;
    top: 25px; right: 35px;
    color: var(--white);
    font-size: 40px;
    cursor: pointer;
    background: none;
    border: none;
    transition: transform 0.3s, color 0.3s;
    z-index: 10;
}
.lightbox-close:hover { transform: rotate(90deg); color: var(--gold-light); }
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: 48px;
    cursor: pointer;
    background: rgba(255,255,255,0.06);
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    transition: color 0.3s, background 0.3s;
    user-select: none;
}
.lightbox-nav:hover { color: var(--gold-light); background: rgba(255,255,255,0.12); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    letter-spacing: 3px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--dark); color: var(--white); position: relative; overflow: hidden; width: 100%; }

/* Cinematic CTA band */
.footer-hero { position: relative; padding: 140px 40px; text-align: center; overflow: hidden; }
.footer-hero-bg {
    position: absolute; inset: -60px 0;
    background-size: cover; background-position: center;
    z-index: 0;
}
.footer-hero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(15,13,11,0.74) 0%, rgba(15,13,11,0.82) 100%);
    z-index: 1;
}
.footer-hero-content { position: relative; z-index: 2; max-width: 660px; margin: 0 auto; }
.footer-hero-kicker { display: inline-block; font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: var(--gold-light); margin-bottom: 20px; font-weight: 500; }
.footer-hero-title { font-family: 'Playfair Display', serif; font-size: clamp(34px, 5vw, 56px); font-weight: 600; line-height: 1.12; color: var(--white); margin-bottom: 20px; }
.footer-hero-title em { color: var(--gold-light); font-style: italic; font-weight: 500; }
.footer-hero-text { font-family: 'Cormorant Garamond', serif; font-size: clamp(18px, 2vw, 22px); color: rgba(255,255,255,0.82); margin-bottom: 36px; line-height: 1.6; }

/* btn used inside footer hero */
.btn-footer {
    display: inline-block;
    background: var(--gold); color: var(--white);
    padding: 16px 40px; text-decoration: none;
    font-size: 12.5px; letter-spacing: 2.5px; text-transform: uppercase; font-weight: 500;
    transition: all 0.4s var(--ease); position: relative; overflow: hidden;
}
.btn-footer::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
    transition: left 0.55s;
}
.btn-footer:hover::before { left: 100%; }
.btn-footer:hover { background: var(--gold-dark); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(184, 149, 62, 0.4); }

/* Columns */
.footer-columns {
    position: relative;
    display: grid;
    grid-template-columns: 1.7fr 0.9fr 1.3fr;
    gap: 50px;
    padding: 72px 80px 56px;
}
.footer-columns::before {
    content: ''; position: absolute; top: 0; left: 80px; right: 80px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184,149,62,0.55), transparent);
}
.footer-col-title {
    font-family: 'Playfair Display', serif;
    font-size: 16px; font-weight: 600; color: var(--white);
    margin-bottom: 22px; letter-spacing: 0.5px;
    position: relative; padding-bottom: 12px;
}
.footer-col-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--gold); }
.footer-logo-img { height: 86px; border-radius: 8px; margin-bottom: 20px; transition: transform 0.3s; }
.footer-logo-img:hover { transform: scale(1.05); }
.footer-brand-text { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.85; max-width: 320px; font-weight: 300; margin-bottom: 24px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; transition: color 0.3s, transform 0.3s; display: inline-block; }
.footer-links a:hover { color: var(--gold-light); transform: translateX(5px); }
.footer-contact-list { display: flex; flex-direction: column; gap: 15px; }
.footer-contact-item { display: flex; align-items: center; gap: 12px; font-size: 14px; color: rgba(255,255,255,0.7); transition: transform 0.3s; }
.footer-contact-item:hover { transform: translateX(5px); }
.footer-contact-item svg { width: 18px; height: 18px; stroke: var(--gold-light); fill: none; stroke-width: 1.5; flex-shrink: 0; }
.footer-contact-item a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.3s; }
.footer-contact-item a:hover { color: var(--gold-light); }

/* Newsletter */
.footer-news-text { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.75; margin-bottom: 18px; font-weight: 300; }
.footer-news-form { display: flex; align-items: stretch; max-width: 300px; border: 1px solid rgba(255,255,255,0.18); border-radius: 4px; overflow: hidden; transition: border-color 0.3s; background: rgba(255,255,255,0.03); }
.footer-news-form:focus-within { border-color: var(--gold); }
.footer-news-form input { flex: 1; min-width: 0; background: transparent; border: none; outline: none; color: var(--white); font-family: 'Jost', sans-serif; font-size: 13px; padding: 12px 14px; }
.footer-news-form input::placeholder { color: rgba(255,255,255,0.4); }
.footer-news-form button { background: var(--gold); border: none; cursor: pointer; color: var(--white); font-size: 18px; line-height: 1; padding: 0 18px; transition: background 0.3s; }
.footer-news-form button:hover { background: var(--gold-dark); }
.footer-news-ok { font-size: 13px; color: var(--gold-light); margin-top: 12px; min-height: 18px; }
.footer-socials { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.footer-ig-handle { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; letter-spacing: 0.3px; transition: color 0.3s; }
.footer-ig-handle:hover { color: var(--gold-light); }
.footer-social { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; transition: all 0.4s; text-decoration: none; }
.footer-social:hover { border-color: var(--gold); background: rgba(184, 149, 62, 0.1); transform: translateY(-4px); }
.footer-social svg { width: 18px; height: 18px; stroke: rgba(255,255,255,0.6); fill: none; stroke-width: 1.5; }
.footer-social:hover svg { stroke: var(--gold-light); }

.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding: 22px 80px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 13px; color: rgba(255,255,255,0.35);
}
.footer-bottom-links { display: flex; gap: 26px; }
.footer-bottom-links a { color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.3s; }
.footer-bottom-links a:hover { color: var(--gold-light); }
.footer-credit { color: rgba(255,255,255,0.35); }
.footer-credit a { color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.3s; }
.footer-credit a:hover { color: var(--gold-light); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    header { padding: 20px 30px; }
    header.scrolled { padding: 12px 30px; }
    nav { gap: 20px; }
    nav a { font-size: 12px; letter-spacing: 1.5px; }
    .footer-columns { padding: 60px 40px 48px; gap: 38px; }
    .footer-columns::before { left: 40px; right: 40px; }
    .footer-bottom { padding: 22px 40px; }
    .page-hero-title { font-size: 46px; }
}

@media (max-width: 1024px) {
    .footer-columns { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 768px) {
    header { padding: 15px 20px; }
    header.scrolled { padding: 10px 20px; }
    .logo img { height: 60px; }
    header.scrolled .logo img { height: 45px; }

    nav {
        display: none;
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100vh;
        background: rgba(0,0,0,0.96);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        z-index: 150;
    }
    nav.active { display: flex; }
    nav a { font-size: 17px; letter-spacing: 3px; }
    .nav-close { display: block; }
    .menu-toggle { display: flex; }

    .footer-hero { padding: 90px 25px; }
    .footer-columns { grid-template-columns: 1fr; gap: 36px; padding: 48px 25px; text-align: center; }
    .footer-columns::before { left: 25px; right: 25px; }
    .footer-col-title { display: inline-block; }
    .footer-col-title::after { left: 50%; transform: translateX(-50%); }
    .footer-brand-text { max-width: 100%; margin: 0 auto 24px; }
    .footer-links, .footer-contact-list { align-items: center; }
    .footer-socials { justify-content: center; }
    .footer-news-text { max-width: 320px; margin-left: auto; margin-right: auto; }
    .footer-news-form { margin: 0 auto; }
    .footer-bottom { padding: 22px 25px; }

    .page-hero { height: 40vh; min-height: 300px; }
    .page-hero-title { font-size: 34px; }

    .btn-primary, .btn-outline, .btn-outline-white, .btn-footer {
        padding: 13px 28px;
        font-size: 11px;
        letter-spacing: 2px;
    }

    .lightbox-nav { font-size: 32px; padding: 8px 12px; }
    .lightbox-close { font-size: 32px; top: 15px; right: 20px; }
}

@media (max-width: 480px) {
    .page-hero-title { font-size: 28px; }
    .page-hero-label { font-size: 11px; letter-spacing: 3px; }
    .footer-logo img { height: 65px; }
}

/* ============================================================
   SHARED JS INIT (call initShared() on each page)
   ============================================================ */
