/*
Theme Name: Luma Media Theme
Theme URI: https://lumamedia.at
Author: Luma Media
Description: Official Version 1.0 Premium WordPress Theme for Luma Media. Includes high-end background videos, Calendly integration, and a modal-driven reference gallery.
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: hotel, luxury, social-media, agency, photography, video
Text Domain: luma-media
*/

:root {
    --primary: #1a1a1a;
    --secondary: #fdfaf6;
    --accent: #A64B29;
    /* Gold/Warm tone */
    --text: #333;
    --text-light: #666;
    --bg-warm: #f9f7f2;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --font-main: 'Myriad Pro', 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Myriad Pro', 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--secondary);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--primary);
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

section {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
    scroll-margin-top: 100px;
}

/* Pricing section has less bottom padding to work with custom-package margin */
.pricing {
    padding-bottom: 0;
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 5%;
    /* Narrower */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

header:hover {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header.scrolled {
    padding: 10px 5%;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
   
}

header.scrolled:hover {
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    font-family: var(--font-display);
    color: white;
    /* Contrast against background video */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

header.scrolled .logo {
    color: var(--primary);
    text-shadow: none;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    /* Visible against video */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

header.scrolled nav a {
    color: var(--text-light);
    text-shadow: none;
}

nav a:hover {
    color: var(--accent);
}

.mobile-nav-logo {
    display: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0;
    /* Remove global section padding */
    max-width: none;
    /* Remove global section max-width */
    width: 100%;
    overflow: hidden;
    color: white;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Darker overlay for better contrast */
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 24px;
    letter-spacing: -2px;
    color: white;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    align-content: center;
    scroll-margin-top: 0;
    padding-top: 100px;
    padding-bottom: 100px;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.vertical-media {
    background: var(--bg-warm);
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.vertical-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 2;
}

.vertical-media::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: linear-gradient(45deg, var(--accent), transparent);
    filter: blur(60px);
    opacity: 0.3;
    z-index: 1;
}

.about-image {
    max-width: 450px;
    margin: 0 auto;
}

/* References Section */
.references {
    text-align: center;
    background-color: white;
    scroll-margin-top: 100px;
    /* Shows title on desktop */
}

.references h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.reference-item {
    cursor: pointer;
    position: relative;
}

.reference-item:hover .vertical-media {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

/* Play hint overlay on hover */
.reference-item::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    font-size: 3rem;
    color: white;
    background: rgba(0, 0, 0, 0.45);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    z-index: 10;
    line-height: 70px;
    text-align: center;
    text-indent: 4px;
}

.reference-item:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Pricing Section */
.pricing {
    background-color: var(--bg-warm);
    text-align: center;
    scroll-margin-top: 100px;
}

.pricing h2 {
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    padding: 50px 40px;
    border-radius: 32px;
    transition: var(--transition);
    border: 2px solid var(--primary);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.pricing-card .price span {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
}

.pricing-card ul {
    margin-bottom: 40px;
    text-align: left;
    flex: 1;
}

.pricing-card .btn {
    align-self: center;
    margin-top: auto;
}

.pricing-card>ul>li>ul {
    display: none;
    /* Hide sub-items in the main view */
}

.pricing-card li {
    margin-bottom: 12px;
    color: var(--text-light);
    display: block;
    /* Changed to block to allow multi-line and nested lists */
    text-align: left;
}

.pricing-card li>span {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pricing-card li>span::before {
    content: '✓';
    color: var(--accent);
    font-weight: bold;
    flex-shrink: 0;
}

.pricing-card li ul {
    margin: 8px 0 8px 24px;
    list-style: none;
}

.pricing-card li ul li {
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.pricing-card li ul li::before {
    content: '–';
    color: var(--accent);
    margin-right: 8px;
    font-weight: bold;
}

/* CTA Section */
.cta {
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
    padding: 0;
    border-radius: 40px;
    margin: 80px auto 100px;
    max-width: 900px;
    aspect-ratio: 4 / 3;
    display: flex;
    justify-content: center;
    align-items: center;
    scroll-margin-top: 100px;
}

.cta-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    padding: 60px 5%;
    width: 100%;
}

.cta h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 24px;
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-size: 1.25rem;
}

.btn-secondary {
    background-color: white;
    color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--accent);
    color: white;
}

.calendly-trigger {
    display: block;
    margin-top: 20px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.5;
    transition: var(--transition);
}

.calendly-trigger:hover {
    opacity: 1;
    color: var(--accent);
}

/* Footer */
footer {
    padding: 40px 5%;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    font-weight: 700;
    flex: 1;
}

.impressum-link {
    font-size: 0.8rem;
    color: var(--text-light);
    opacity: 0.6;
    transition: var(--transition);
    text-align: center;
}

.impressum-link:hover {
    opacity: 1;
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
}

/* Mobile Navigation Toggle Styles */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2100;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: white;
    /* White for contrast against video */
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

header.scrolled .menu-toggle span,
.menu-toggle.active span {
    background-color: var(--primary);
    /* Dark for visibility over light background */
    box-shadow: none;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Animations */
.hide {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* Gallery Wrapper & Arrows */
.gallery-wrapper {
    position: relative;
    width: 100%;
}

.nav-arrow {
    display: none;
    /* Hidden by default (Desktop) */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.nav-arrow.prev {
    left: 10px;
}

.nav-arrow.next {
    right: 10px;
}

/* Responsive */
@media (max-width: 1200px) {
    .pricing-grid {
        gap: 24px;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .pricing-card {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .references {
        scroll-margin-top: 20px;
        /* Puts headline under fixed header on mobile */
    }

    header {
        padding: 20px 5%;
    }

    .menu-toggle {
        display: flex;
    }

    nav ul {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--secondary);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: var(--transition);
        justify-content: center;
        z-index: 1000;
        gap: 20px;
    }

    nav ul.active {
        left: 0;
    }

    nav a {
        font-size: 1.5rem;
        color: var(--primary);
        /* Black text for mobile menu */
        text-shadow: none;
    }

    .mobile-nav-logo {
        display: block;
        margin-bottom: 40px;
    }

    .mobile-nav-logo a {
        font-family: var(--font-display);
        font-weight: 700;
        font-size: 1.5rem;
        letter-spacing: -1px;
        color: var(--primary);
    }

    @media (max-width: 380px) {
        .logo {
            font-size: 1.1rem;
        }

        header {
            padding: 15px 4%;
        }

        .menu-toggle {
            gap: 4px;
        }

        .menu-toggle span {
            width: 20px;
        }
    }

    header .btn-primary {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 1.1rem;
    }

    section {
        padding: 60px 4%;
    }

    .nav-arrow {
        display: flex;
    }

    .references-grid,
    .pricing-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 20px 0;
        width: 100vw;
        margin-left: -4vw;
        /* Offset section padding */
        -webkit-overflow-scrolling: touch;
        scroll-padding: 0;
    }

    .references-grid::before,
    .references-grid::after,
    .pricing-grid::before,
    .pricing-grid::after {
        content: '';
        flex: 0 0 calc(10vw - 10px);
        /* (100vw - 80vw)/2 - half gap */
        pointer-events: none;
    }

    .reference-item,
    .pricing-card {
        flex: 0 0 80vw;
        scroll-snap-align: center;
    }

    .pricing-card {
        margin: 0;
        transform: scale(1) !important;
    }

    .cta {
        aspect-ratio: 3 / 4;
        padding: 40px 20px;
        margin: 40px 4%;
        width: 92%;
    }

    .cta h2 {
        font-size: 2rem;
    }

    footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Video Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    /* Lightened from 0.95 */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    opacity: 0;
    transition: opacity 0.4s ease;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    /* vertical aspect ratio */
    aspect-ratio: 9 / 16;
}

#modal-video {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    background: #000;
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition);
    z-index: 3001;
    line-height: 1;
}

.close-modal:hover {
    color: var(--accent);
    transform: scale(1.1);
}

/* Pricing Modal Specifics */
.pricing-modal-container {
    position: relative;
    width: 95%;
    max-width: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-modal-content {
    background: white;
    /* Match card background */
    height: auto;
    max-height: 85vh;
    aspect-ratio: auto;
    width: 100%;
    /* Fill container */
    max-width: 100%;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-radius: 32px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    border: none;
    /* Explicitly ensure no border in modal */
}

.pricing-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.pricing-modal-header h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.pricing-modal-header .price {
    font-size: 2.5rem;
    font-weight: 700;
}

.pricing-modal-body {
    flex-grow: 1;
}

.pricing-modal-body ul li ul {
    display: block !important;
    /* Show sub-items in modal */
}

.pricing-modal-body li {
    margin-bottom: 20px !important;
}

.pricing-modal-body li>span {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
}

.pricing-modal-footer {
    margin-top: 40px;
    text-align: center;
}

.pricing-modal-footer .btn {
    width: 100%;
}

.custom-pricing-package {
    background: white;
    padding: 30px 40px;
    border-radius: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 2px solid var(--primary);
    margin: 20px auto 0;
    /* Small top gap from cards; bottom gap controlled by CTA margin */
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.custom-pricing-package p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
}

.custom-pricing-package .btn {
    white-space: nowrap;
    margin-top: auto;
}

@media (max-width: 768px) {
    .custom-pricing-package {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        width: 80vw;
        /* Match the width of the scrolling pricing cards */
        max-width: 400px;
    }

}

/* Modal Navigation arrows */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 3002;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: var(--primary);
}

.modal-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    color: var(--accent);
}

.modal-nav.prev {
    left: -80px;
}

.modal-nav.next {
    right: -80px;
}

@media (max-width: 1024px) {
    .modal-nav {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .modal-nav.prev {
        left: -60px;
    }

    .modal-nav.next {
        right: -60px;
    }
}

@media (max-width: 768px) {
    .modal-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .pricing-modal-content {
        padding: 50px 25px;
        width: 95%;
    }

    .pricing-modal-header h3 {
        font-size: 2rem;
    }
}

.reference-item {
    cursor: pointer;
}

@media (max-width: 768px) {
    .close-modal {
        top: 20px;
        right: 25px;
        font-size: 40px;
    }
}