/* ==========================================================================
   LIORA DESIGN STUDIO - DESIGN SYSTEM & STYLESHEET
   Theme: Dark Opulence (Moody Luxury)
   ========================================================================== */

/* 1. CSS VARIABLES & SYSTEM TOKENS */
:root {
    --bg-base: #111009; /* Very dark warm black */
    --bg-darker: #0D0D0D; /* Deep charcoal black */
    --surface-card: #1A1916; /* Dark warm charcoal */
    --surface-card-rgb: 26, 25, 22;
    
    --primary-gold: #C9A84C; /* Antique brass / muted gold */
    --primary-gold-rgb: 201, 168, 76;
    --secondary-champagne: #E8D5A3; /* Warm champagne */
    
    --text-primary: #F5F0E8; /* Off-white cream */
    --text-secondary: #A89F8C; /* Warm gray */
    --text-muted: #6B6557;
    
    --divider-gold: rgba(201, 168, 76, 0.25);
    --divider-gold-light: rgba(201, 168, 76, 0.1);
    
    --transition-lux: cubic-bezier(0.25, 1, 0.5, 1); /* Elegant decelerate curve */
    --transition-slow: 0.8s var(--transition-lux);
    --transition-medium: 0.4s var(--transition-lux);
    --transition-fast: 0.2s ease;
    
    --shadow-gold: 0 8px 32px rgba(201, 168, 76, 0.08);
    --shadow-gold-hover: 0 12px 40px rgba(201, 168, 76, 0.15);
}

/* 2. BASE RESET & TYPOGRAPHY */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hide default cursor to let luxury custom cursor shine (only on desktops) */
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-base);
    color: var(--text-primary);
    overflow-x: hidden;
}

body {
    font-family: 'Jost', sans-serif;
    line-height: 1.6;
    letter-spacing: 0.02em;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(201, 168, 76, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(232, 213, 163, 0.02) 0%, transparent 40%);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-champagne);
}

/* Fonts and Typographic Hierarchy */
.font-serif {
    font-family: 'Cormorant Garamond', serif;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: 0.03em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.2;
}

h3 {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    line-height: 1.3;
}

p {
    font-weight: 300;
    color: var(--text-secondary);
}

.text-gray {
    color: var(--text-secondary);
}

.text-gold {
    color: var(--primary-gold);
}

.text-champagne {
    color: var(--secondary-champagne);
}

.luxury-label {
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.35em;
    color: var(--primary-gold);
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 2rem;
}

.luxury-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--divider-gold) 20%, var(--divider-gold) 80%, transparent);
    margin: 0;
}

/* 3. CUSTOM MOUSE CURSOR */
.custom-cursor {
    width: 30px;
    height: 30px;
    border: 1px solid var(--primary-gold);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.custom-cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary-gold);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
}

.custom-cursor.hover {
    width: 50px;
    height: 50px;
    background-color: rgba(201, 168, 76, 0.1);
    border-color: var(--secondary-champagne);
}

.custom-cursor-dot.hover {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: var(--secondary-champagne);
}

@media (max-width: 1024px) {
    .custom-cursor, .custom-cursor-dot {
        display: none;
    }
    * {
        cursor: auto !important;
    }
}

/* 4. BUTTONS & INTERACTIVE ELEMENTS */
button, input, select, textarea, label {
    cursor: none;
}

.gold-btn {
    background-color: var(--primary-gold);
    color: var(--bg-darker);
    border: 1px solid var(--primary-gold);
    padding: 1rem 2.5rem;
    font-family: 'Raleway', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.gold-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-champagne);
    transform: translate(-50%, -50%) scale(0);
    transition: transform var(--transition-medium);
    z-index: -1;
    border-radius: 50%;
}

.gold-btn:hover {
    color: var(--bg-darker);
    box-shadow: var(--shadow-gold-hover);
}

.gold-btn:hover::before {
    transform: translate(-50%, -50%) scale(1.6);
    border-radius: 0;
}

.gold-btn-sm {
    background-color: var(--primary-gold);
    color: var(--bg-darker);
    border: 1px solid var(--primary-gold);
    padding: 0.6rem 1.5rem;
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all var(--transition-fast);
}

.gold-btn-sm:hover {
    background-color: var(--secondary-champagne);
    border-color: var(--secondary-champagne);
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.2);
}

.outline-btn {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--divider-gold);
    padding: 1rem 2.5rem;
    font-family: 'Raleway', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all var(--transition-medium);
}

.outline-btn:hover {
    border-color: var(--primary-gold);
    background-color: rgba(201, 168, 76, 0.05);
}

.outline-btn-sm {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--divider-gold);
    padding: 0.5rem 1.2rem;
    font-family: 'Raleway', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all var(--transition-fast);
}

.outline-btn-sm:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

/* 5. FLOATING HEADER / NAVIGATION */
.floating-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all var(--transition-medium);
}

.floating-header.scrolled {
    padding: 1rem 0;
    background-color: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--divider-gold-light);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1;
}

.logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.logo-sub {
    font-family: 'Raleway', sans-serif;
    font-size: 0.6rem;
    font-weight: 300;
    letter-spacing: 0.55em;
    color: var(--primary-gold);
    margin-top: 2px;
}

.logo-link:hover .logo-text {
    color: var(--secondary-champagne);
}

.desktop-nav {
    display: flex;
    gap: 2.5rem;
}

.nav-item {
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-gold);
    transition: width var(--transition-medium);
}

.nav-item:hover {
    color: var(--text-primary);
}

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

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    padding: 5px;
}

.mobile-toggle .bar {
    width: 24px;
    height: 1px;
    background-color: var(--text-primary);
    transition: all var(--transition-fast);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--bg-darker);
    border-left: 1px solid var(--divider-gold);
    z-index: 999;
    padding: 8rem 3rem 3rem;
    transition: right var(--transition-medium);
}

.mobile-nav-drawer.active {
    right: 0;
}

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

.mobile-nav-item {
    font-family: 'Raleway', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    text-decoration: none;
}

.mobile-nav-item:hover {
    color: var(--primary-gold);
}

@media (max-width: 900px) {
    .desktop-nav, .nav-cta {
        display: none;
    }
    .mobile-toggle {
        display: flex;
    }
    .mobile-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .mobile-toggle.active .bar:nth-child(2) {
        transform: translateY(-0px) rotate(-45deg);
    }
}

/* 6. FLOATING WELCOME MODAL INVITE */
.floating-invite-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-medium);
}

.floating-invite-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.luxury-card {
    background-color: var(--surface-card);
    border: 1px solid var(--divider-gold);
    border-radius: 4px;
    padding: 3.5rem 3rem;
    position: relative;
    box-shadow: var(--shadow-gold);
    background-image: linear-gradient(135deg, rgba(201, 168, 76, 0.02) 0%, transparent 100%);
}

.invite-card {
    width: 90%;
    max-width: 580px;
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-slow);
}

.floating-invite-overlay.active .invite-card {
    transform: scale(1) translateY(0);
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem;
    transition: color var(--transition-fast);
}

.close-btn:hover {
    color: var(--primary-gold);
}

.invite-header h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.invite-card p {
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
}

.invite-cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

@media (max-width: 600px) {
    .invite-cta-group {
        flex-direction: column;
    }
}

/* 7. HERO SECTION */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: 6rem;
    background-image: url('assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(17, 16, 9, 0.6) 0%, var(--bg-base) 95%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.hero-title {
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Stats Ribbon Infinite Scrolling Ticker */
.stats-ticker-container {
    position: absolute;
    bottom: 3rem;
    left: 0;
    width: 100%;
    z-index: 3;
    background-color: rgba(17, 16, 9, 0.85);
    border-top: 1px solid var(--divider-gold-light);
    border-bottom: 1px solid var(--divider-gold-light);
    padding: 1rem 0;
    overflow: hidden;
}

.stats-ticker-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: scroll-ticker 20s linear infinite;
}

.stats-item {
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    padding: 0 3rem;
}

.stats-item strong {
    color: var(--primary-gold);
    font-weight: 500;
}

.stats-dot {
    width: 5px;
    height: 5px;
    background-color: var(--primary-gold);
    border-radius: 50%;
    opacity: 0.6;
}

@keyframes scroll-ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* 8. ABOUT SECTION */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: start;
}

.about-image-frame {
    position: relative;
    padding: 1.5rem;
}

.lux-border-corners::before,
.lux-border-corners::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border-color: var(--primary-gold);
    border-style: solid;
}

.lux-border-corners::before {
    top: 0;
    left: 0;
    border-width: 1px 0 0 1px;
}

.lux-border-corners::after {
    bottom: 0;
    right: 0;
    border-width: 0 1px 1px 0;
}

.about-portrait {
    width: 100%;
    height: auto;
    filter: sepia(10%) contrast(105%) brightness(95%);
    transition: transform var(--transition-medium);
}

.about-image-frame:hover .about-portrait {
    transform: scale(1.02);
}

.image-label {
    font-family: 'Raleway', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-top: 1rem;
    text-align: right;
}

.about-text-content .section-title {
    margin-bottom: 2rem;
}

.story-body p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* Core Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3.5rem;
}

.value-card {
    background-color: var(--surface-card);
    border: 1px solid var(--divider-gold-light);
    padding: 2rem;
    transition: border-color var(--transition-medium), box-shadow var(--transition-medium);
}

.value-card:hover {
    border-color: var(--divider-gold);
    box-shadow: var(--shadow-gold);
}

.value-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--divider-gold);
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    border-radius: 50%;
}

.value-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.value-card p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Awards Section */
.awards-container {
    margin-top: 4rem;
    border-top: 1px solid var(--divider-gold-light);
    padding-top: 2.5rem;
}

.small-title {
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.awards-list {
    list-style: none;
}

.awards-list li {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.awards-list li:last-child {
    border-bottom: none;
}

.award-year {
    font-family: 'Raleway', sans-serif;
    color: var(--primary-gold);
    font-weight: 300;
}

.award-name {
    font-weight: 300;
    color: var(--text-primary);
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 600px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* 9. SERVICES SECTION & PACKAGES */
.section-intro {
    max-width: 700px;
    margin-bottom: 5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* ---- SERVICES: CINEMATIC HORIZONTAL ACCORDION ---- */
.services-accordion {
    display: flex;
    height: 580px;
    gap: 2px;
    overflow: hidden;
    border: 1px solid var(--divider-gold-light);
}

.accordion-panel {
    position: relative;
    flex: 0.6;
    overflow: hidden;
    transition: flex 0.9s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s ease;
    border-right: 1px solid var(--divider-gold-light);
    background-color: var(--surface-card);
}

.accordion-panel:last-child {
    border-right: none;
}

/* Hover + JS active state expand */
.accordion-panel:hover,
.accordion-panel.is-active {
    flex: 4;
}

/* Background image layer */
.panel-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    filter: brightness(0.35) saturate(0.6);
    transition: opacity 0.8s ease, filter 0.8s ease;
    z-index: 0;
}

.accordion-panel:hover .panel-bg,
.accordion-panel.is-active .panel-bg {
    opacity: 1;
    filter: brightness(0.45) saturate(0.8);
}

/* Collapsed state: vertical number + rotated title */
.panel-collapsed-view {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.accordion-panel:hover .panel-collapsed-view,
.accordion-panel.is-active .panel-collapsed-view {
    opacity: 0;
}

.panel-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    color: rgba(201, 168, 76, 0.25);
    line-height: 1;
    transition: color 0.4s ease;
}

.accordion-panel:hover .panel-num {
    color: rgba(201, 168, 76, 0.5);
}

.panel-title-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-family: 'Raleway', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--text-secondary);
    text-transform: uppercase;
    white-space: nowrap;
}

/* Giant watermark number in expanded panel */
.panel-service-num-bg {
    position: absolute;
    top: -1rem;
    right: 1rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 14rem;
    line-height: 1;
    color: rgba(201, 168, 76, 0.06);
    z-index: 1;
    pointer-events: none;
    transition: color 0.6s ease;
    user-select: none;
}

.accordion-panel:hover .panel-service-num-bg,
.accordion-panel.is-active .panel-service-num-bg {
    color: rgba(201, 168, 76, 0.1);
}

/* Expanded content slides up from the bottom */
.panel-expanded-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem;
    z-index: 3;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
    background: linear-gradient(
        to top,
        rgba(13, 13, 9, 0.97) 0%,
        rgba(13, 13, 9, 0.75) 55%,
        transparent 100%
    );
    pointer-events: none;
}

.accordion-panel:hover .panel-expanded-content,
.accordion-panel.is-active .panel-expanded-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.panel-icon {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(201, 168, 76, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.panel-icon i {
    width: 20px;
    height: 20px;
}

.panel-expanded-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panel-expanded-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.panel-expanded-content .outline-btn {
    font-size: 0.7rem;
    padding: 0.65rem 1.5rem;
}

@media (max-width: 900px) {
    .services-accordion {
        flex-direction: column;
        height: auto;
    }
    .accordion-panel {
        flex: 1 !important;
        min-height: 200px;
    }
    .panel-collapsed-view {
        flex-direction: row;
        justify-content: flex-start;
        padding: 2rem;
        gap: 1.5rem;
    }
    .panel-title-vertical {
        writing-mode: horizontal-tb;
        transform: none;
    }
    .panel-expanded-content {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    .panel-collapsed-view {
        display: none;
    }
    .panel-bg {
        opacity: 1;
    }
}

/* ---- PACKAGES: 3D FLIP CARDS ---- */
.packages-container {
    margin-top: 8rem;
    border-top: 1px solid var(--divider-gold);
    padding-top: 6rem;
}

.packages-header {
    text-align: center;
    margin-bottom: 5rem;
}

.packages-header h3 {
    font-size: 2.5rem;
}

/* Flip Grid */
.packages-flip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    perspective: 2000px;
}

/* Individual Card wrapper */
.flip-card {
    height: 500px;
    perspective: 1200px;
    position: relative;
}

.flip-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.85s cubic-bezier(0.25, 1, 0.5, 1);
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* Front & Back base */
.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border: 1px solid var(--divider-gold-light);
    background-color: var(--surface-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3.5rem 2.5rem;
    overflow: hidden;
}

/* Front Decorative Gold Glow */
.flip-card-front::before {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.06) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: transform 0.6s ease;
}

.flip-card:hover .flip-card-front::before {
    transform: translate(-50%, -50%) scale(1.3);
}

/* Back is flipped & styled differently */
.flip-card-back {
    transform: rotateY(180deg);
    border-color: var(--primary-gold);
    background-image: linear-gradient(145deg, rgba(201, 168, 76, 0.06) 0%, transparent 60%);
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    overflow-y: auto;
    padding-top: 2.5rem;
}

/* Featured card overrides */
.flip-card.featured-flip .flip-card-front {
    border-color: var(--primary-gold);
    background-image: linear-gradient(160deg, rgba(201, 168, 76, 0.06) 0%, transparent 60%);
}

.flip-card.featured-flip .flip-card-inner {
    box-shadow: 0 0 60px rgba(201, 168, 76, 0.08);
}

/* Floating animation on middle card */
@keyframes float-gentle {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}

.flip-card.featured-flip {
    animation: float-gentle 6s ease-in-out infinite;
}

.flip-card.featured-flip:hover {
    animation-play-state: paused;
}

/* Badge */
.flip-badge {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background-color: var(--primary-gold);
    color: var(--bg-darker);
    font-family: 'Raleway', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    padding: 0.3rem 0.7rem;
    z-index: 5;
}

/* Front decorative ring icon */
.flip-deco-circle {
    width: 110px;
    height: 110px;
    border: 1px solid var(--divider-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    position: relative;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.flip-deco-circle::before {
    content: '';
    position: absolute;
    width: 82px;
    height: 82px;
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 50%;
}

.flip-deco-circle i {
    color: var(--primary-gold);
    width: 32px;
    height: 32px;
}

.flip-card:hover .flip-deco-circle {
    border-color: var(--primary-gold);
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.15);
}

.flip-card-front h3 {
    font-size: 1.85rem;
    margin-bottom: 1rem;
}

.flip-card-front p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 220px;
    line-height: 1.5;
}

.flip-hint {
    font-family: 'Raleway', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    color: var(--primary-gold);
    text-transform: uppercase;
    border: 1px solid var(--divider-gold);
    padding: 0.45rem 1rem;
    margin-top: auto;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.flip-card:hover .flip-hint {
    background-color: var(--primary-gold);
    color: var(--bg-darker);
}

/* Back content */
.flip-back-header {
    width: 100%;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--divider-gold-light);
}

.package-title-back {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.65rem;
    color: var(--secondary-champagne);
    margin-bottom: 0.4rem;
}

.package-desc-back {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.flip-features-list {
    list-style: none;
    width: 100%;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.flip-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.9rem;
}

.flip-features-list li i {
    color: var(--primary-gold);
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    margin-top: 3px;
}

.package-cta {
    width: 100%;
    margin-top: auto;
    padding-top: 1.5rem;
}

.packages-disclaimer {
    margin-top: 3rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

@media (max-width: 1100px) {
    .packages-flip-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
        max-width: 480px;
        margin: 0 auto;
    }
    .flip-card.featured-flip {
        animation: none;
    }
}



/* 10. PORTFOLIO SECTION */
.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.portfolio-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--divider-gold-light);
    color: var(--text-secondary);
    padding: 0.6rem 1.5rem;
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
    color: var(--bg-darker);
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
}

/* Upload Integration Form inside Portfolio */
.upload-teaser-card {
    background-color: rgba(26, 25, 22, 0.5);
    border: 1px dashed var(--divider-gold);
    border-radius: 4px;
    padding: 2rem;
    margin-bottom: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.upload-info {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.upload-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.upload-info h4 {
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
}

.upload-info p {
    font-size: 0.9rem;
}

.upload-action-wrap {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.file-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-gold);
    color: var(--bg-darker);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.file-upload-label:hover {
    background-color: var(--secondary-champagne);
}

.hidden-input {
    display: none;
}

.luxury-select {
    background-color: var(--bg-darker);
    border: 1px solid var(--divider-gold);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    font-family: 'Raleway', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    outline: none;
    transition: border-color var(--transition-fast);
}

.luxury-select:focus {
    border-color: var(--secondary-champagne);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
    background-color: var(--surface-card);
    transition: border-color var(--transition-medium);
    border: 1px solid var(--divider-gold-light);
    perspective: 1000px;
    transform-style: preserve-3d;
}

.portfolio-img-wrap {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    filter: brightness(0.9) contrast(1.02);
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(13, 13, 13, 0.95) 0%, rgba(13, 13, 13, 0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    opacity: 0;
    transition: opacity var(--transition-medium);
    z-index: 2;
}

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

.portfolio-tag {
    font-family: 'Raleway', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--primary-gold);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.portfolio-overlay h3 {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
}

.portfolio-overlay p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

@media (max-width: 1024px) {
    .portfolio-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .upload-teaser-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .upload-action-wrap {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }
}

/* 11. TESTIMONIALS SECTION */
.testimonials-slider-container {
    max-width: 900px;
    margin: 4rem auto 0;
    position: relative;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform var(--transition-slow);
}

.testimonial-card {
    min-width: 100%;
    padding: 4rem 2rem;
    text-align: center;
    opacity: 0.2;
    transition: opacity var(--transition-medium);
}

.testimonial-card.active {
    opacity: 1;
}

.stars {
    color: var(--primary-gold);
    letter-spacing: 0.2em;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.testimonial-card blockquote {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
}

.testimonial-card cite {
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    font-style: normal;
    color: var(--primary-gold);
    text-transform: uppercase;
}

/* Slider Controls */
.slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 1rem;
}

.slider-control-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem;
    transition: color var(--transition-fast);
}

.slider-control-btn:hover {
    color: var(--primary-gold);
}

.slider-dots {
    display: flex;
    gap: 1rem;
}

.slider-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-muted);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.slider-dot.active {
    background-color: var(--primary-gold);
    transform: scale(1.5);
}

/* 12. BOOKING / CONSULTATION FORM SECTION */
.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: center;
}

.booking-callout .section-title {
    margin-bottom: 2rem;
}

.booking-callout .section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 3.5rem;
}

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

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.benefit-item i {
    width: 24px;
    height: 24px;
}

.benefit-item span {
    font-size: 1rem;
    font-weight: 300;
}

/* Booking Form Elements */
.booking-form-wrap {
    position: relative;
    overflow: hidden;
}

.luxury-form {
    position: relative;
    z-index: 1;
}

.form-progress-bar {
    width: calc(100% + 6rem);
    height: 3px;
    background-color: var(--bg-darker);
    position: absolute;
    top: -3.5rem;
    left: -3rem;
}

.form-progress-indicator {
    height: 100%;
    width: 0%;
    background-color: var(--primary-gold);
    transition: width var(--transition-medium);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.form-group input, 
.form-group textarea, 
.form-group select {
    background-color: rgba(13, 13, 13, 0.4);
    border: none;
    border-bottom: 1px solid var(--divider-gold);
    padding: 0.8rem 0;
    color: var(--text-primary);
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.form-group input:focus, 
.form-group textarea:focus, 
.form-group select:focus {
    border-color: var(--secondary-champagne);
    background-color: rgba(201, 168, 76, 0.02);
}

/* Checkbox tags styling */
.checkbox-tags-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.checkbox-tag {
    position: relative;
}

.checkbox-tag input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-tag span {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--divider-gold-light);
    border-radius: 20px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.checkbox-tag input:checked + span {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--bg-darker);
    font-weight: 500;
}

.cta-submit-wrap {
    margin-top: 1.5rem;
}

.w-full {
    width: 100%;
}

/* Date Input Styling Override */
.form-group input[type="datetime-local"] {
    color-scheme: dark;
}

/* Success Overlay */
.form-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--surface-card);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-medium);
}

.form-success-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.success-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 2rem;
}

.success-content h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.success-content p {
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
}

@media (max-width: 1024px) {
    .booking-grid {
        grid-template-columns: 1fr;
        gap: 5rem;
    }
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-group.full-width {
        grid-column: span 1;
    }
    .checkbox-tags-group {
        flex-direction: column;
    }
}

/* 13. FOOTER / CONTACT SECTION */
.footer-section {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--divider-gold-light);
    padding-top: 8rem;
    padding-bottom: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

.brand-col .logo-text {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.brand-tagline {
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    max-width: 280px;
}

.business-hours strong {
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--primary-gold);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-title {
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: var(--primary-gold);
    margin-bottom: 2.5rem;
}

.footer-address {
    font-style: normal;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

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

.contact-link i {
    width: 18px;
    height: 18px;
}

/* Connect Cards */
.social-links-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.connect-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background-color: var(--surface-card);
    border: 1px solid var(--divider-gold-light);
    padding: 1.2rem 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.connect-card:hover {
    border-color: var(--primary-gold);
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.05);
}

.connect-card i {
    width: 24px;
    height: 24px;
}

.connect-card h5 {
    font-family: 'Raleway', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.connect-card span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Luxury Map Mock */
.luxury-map-mock {
    width: 100%;
    height: 180px;
    background-color: var(--surface-card);
    border: 1px solid var(--divider-gold-light);
    background-image: 
        radial-gradient(circle at 50% 50%, var(--divider-gold-light) 0%, transparent 70%),
        linear-gradient(rgba(201, 168, 76, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 168, 76, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 20px 20px, 20px 20px;
    position: relative;
    overflow: hidden;
}

.map-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.map-overlay i {
    width: 28px;
    height: 28px;
}

.map-overlay span {
    font-family: 'Raleway', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    text-transform: uppercase;
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 6rem;
    border-top: 1px solid var(--divider-gold-light);
    padding-top: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.85rem;
}

.footer-secondary-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-secondary-links a {
    font-size: 0.85rem;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.separator {
    color: var(--text-muted);
}

@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* 14. BOOKING MODAL */
.booking-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(15px);
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-medium);
}

.booking-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.booking-modal-content {
    width: 90%;
    max-width: 750px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 4rem 3rem;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-slow);
}

.booking-modal-overlay.active .booking-modal-content {
    transform: scale(1) translateY(0);
}

.modal-title {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    text-align: center;
}

/* 15. SCROLL-REVEAL SYSTEM DEFINITIONS */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s var(--transition-lux), transform 1.2s var(--transition-lux);
}

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

/* Animate-Bounce Utility */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}
.animate-bounce {
    animation: bounce 2s infinite ease-in-out;
}
