/* =========================================
   1. VARIABLES & RESET
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300;400;500;700&display=swap');

:root {
    /* Colors */
    --bg-dark: #000000;
    --bg-dark-alt: #050505;
    --bg-dark-client: #111111;
    --bg-light: #FFFFFF;
    --text-light: #FFFFFF;
    --text-dark: #000000;
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-muted-dark: #888888;
    --accent-gray: #666666;
    --border-light: rgba(255, 255, 255, 0.1);

    /* Layout */
    --max-width-grid: 1800px;
    --max-width-text: 900px;
    --header-height: 70px;
    --section-padding-v: 240px;
    --section-padding-h: 5%;
    --block-padding: 5rem;
    --block-padding-mobile: 4rem 2rem;

    /* Typography */
    --font-mono: 'Roboto Mono', monospace;
    /* Updated to Roboto Mono */
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-mono);
    color: var(--text-light);
    background-color: var(--bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Prevent scrolling on main page context */
body.home-page {
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

body.scrollable {
    overflow-y: auto;
    height: auto;
}

/* Redimensionnement utility */
.resize-animation-stopper * {
    animation: none !important;
    transition: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Links & Lists */
a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   2. GLOBAL COMPONENTS
   ========================================= */

/* Main Header */
.main-header {
    height: var(--header-height);
    background-color: var(--bg-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2005;
    /* Must be above overlay to keep burger button visible */
    border-bottom: 1px solid var(--border-light);
}

.logo-container {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: -1px;
    text-transform: lowercase;
}

.logo-subtitle {
    font-size: 0.7rem;
    opacity: 0.5;
    margin-top: -2px;
}

/* Primary Button */
.btn-primary {
    background-color: var(--text-dark);
    color: var(--text-light);
    border: none;
    padding: 1.2rem 2.5rem;
    font-family: var(--font-mono);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: lowercase;
    display: block;
    margin: 4rem auto 0;
    width: fit-content;
}

.btn-primary:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.btn-primary.white-bg {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.btn-primary.white-bg:hover {
    background-color: #eee;
}

/* White Text Block Layouts */
.text-block-white {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: var(--block-padding);
    width: fit-content;
    max-width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    text-align: left;
}

.text-block-white h1,
.text-block-white h2 {
    font-size: 2.22rem;
    margin-bottom: 1rem;
    font-weight: normal;
    letter-spacing: -0.5px;
}

.text-block-white h3 {
    font-size: 2.22rem;
    margin-bottom: 0.5rem;
    font-weight: normal;
    letter-spacing: -0.5px;
}

.text-block-white p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.text-block-white p:last-of-type {
    margin-bottom: 0;
}

/* 3-Column Grid System (Wedding & VFX Journey) */
.grid-system-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    max-width: var(--max-width-grid);
    margin: 0 auto;
}

/* Contact Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 8rem 4rem;
    position: relative;
    max-width: 600px;
    width: 90%;
    text-align: center;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.modal-content h3 {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
    font-weight: normal;
    text-transform: lowercase;
}

.modal-content .contact-email {
    font-family: var(--font-mono);
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: bold;
    letter-spacing: -1px;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    line-height: 1;
    padding: 0.5rem;
    transition: var(--transition);
}

.modal-close:hover {
    opacity: 0.5;
    transform: rotate(90deg);
}

.modal-overlay.active {
    display: flex;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 6rem 2rem;
    }
}

/* =========================================
   3. HOME PAGE (VIDEO BACKGROUND)
   ========================================= */

.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.bg-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 1;
}

.home-title-box {
    text-align: center;
    pointer-events: auto;
}

.home-title-box h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.home-title-box .subtitle {
    font-size: 1rem;
    opacity: 0.5;
    font-weight: normal;
}

/* Desktop Home Nav */
.home-desktop-nav {
    position: absolute;
    top: 50%;
    right: 3rem;
    transform: translateY(-50%);
    z-index: 2;
    text-align: right;
}

.home-desktop-nav li {
    margin-bottom: 1.5rem;
}

.home-desktop-nav li:last-child {
    margin-top: 4rem;
}

.home-desktop-nav a {
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* =========================================
   4. NAVIGATION & MOBILE MENU
   ========================================= */

/* Burger Button */
/* Language Switcher */
.lang-switcher {
    position: fixed;
    top: 1.5rem;
    right: 6.5rem;
    /* Slightly more space for the larger font */
    z-index: 2100;
    display: flex;
    align-items: center;
    /* V-centering with burger */
    height: 30px;
    /* Match burger height */
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: bold;
}

.home-page .lang-switcher {
    color: var(--text-light);
}

@media (min-width: 769px) {
    .home-page .lang-switcher {
        right: 3rem;
        /* Aligned with desktop menu */
    }
}

.scrollable .lang-switcher {
    color: var(--text-light);
    /* On black header, white text is good */
}

/* Adjust position if on subpage header */
.main-header .lang-switcher {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 6.5rem;
}

.lang-link {
    opacity: 0.5;
    transition: var(--transition);
    text-transform: uppercase !important;
}

.lang-link.active {
    opacity: 1;
    text-decoration: underline;
}

.lang-link:hover {
    opacity: 1;
}

/* Mobile-only switcher inside overlay */
.mobile-menu-overlay .lang-switcher {
    position: absolute;
    top: 5rem;
    right: 3rem;
    margin-top: 0;
    justify-content: flex-end;
    width: auto;
}

@media (max-width: 768px) {
    .main-header .lang-switcher {
        display: none;
    }
}

/* Burger Button */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 1.5rem;
    /* Match header height/position */
    right: 2rem;
    width: 30px;
    height: 30px;
    background-color: transparent;
    border: none;
    z-index: 2100;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    box-shadow: none;
    transition: var(--transition);
}

/* Ensure burger button is visible on scrollable pages (subpages) */
.scrollable .mobile-menu-btn {
    display: flex;
}

.burger-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-light);
    position: relative;
    pointer-events: none;
}

.burger-icon::before,
.burger-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: var(--text-light);
    transition: var(--transition);
}

.burger-icon::before {
    top: -8px;
}

.burger-icon::after {
    top: 8px;
}

/* Base Mobile Overlay */
.mobile-menu-overlay {
    position: fixed;
    background-color: var(--bg-dark-alt);
    z-index: 1050;
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Home Menu (Slide from right, same as subpages) */
.home-page .mobile-menu-overlay {
    top: 0;
    right: 0;
    width: 100%;
    /* Full width on mobile home makes sense, or match subpage 400px */
    max-width: 400px;
    /* Match subpage style */
    height: 100vh;
    padding: 0 3rem;
    border-left: 1px solid var(--border-light);
    transform: translateX(100%);
    background-color: var(--bg-dark-alt);
    /* Ensure background is set */
    align-items: center;
    /* Center content vertically/horizontally */
}

/* Ensure Home Page nav aligns correctly in the sidebar */
.home-page .mobile-nav {
    text-align: right;
    width: 100%;
}

.home-page .mobile-nav ul li {
    display: block;
    margin-bottom: 1.5rem;
}

.home-page .mobile-nav ul li::after {
    content: none;
}


/* Subpage Menu (Slide from right) */
.scrollable .mobile-menu-overlay {
    top: 0;
    right: 0;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    padding: 0 3rem;
    border-left: 1px solid var(--border-light);
    transform: translateX(100%);
}

.mobile-menu-overlay.active {
    transform: translate(0, 0);
}

/* Mobile Nav Links */
.mobile-nav {
    width: 100%;
    text-align: center;
}

.scrollable .mobile-nav {
    text-align: right;
}

.mobile-nav ul li {
    display: inline;
}

.scrollable .mobile-nav ul li {
    display: block;
    margin-bottom: 1.5rem;
}

.mobile-nav ul li::after {
    content: " \2022 ";
    margin: 0 0.5rem;
}

.scrollable .mobile-nav ul li::after {
    content: none;
}

.mobile-nav a {
    font-size: 1.2rem;
    text-transform: lowercase;
}

.mobile-nav a.active {
    font-weight: bold;
}

.mobile-contact {
    margin-top: 4rem;
}

.scrollable .contact-link {
    margin-top: 4rem;
}

/* Burger Animation */
.mobile-menu-btn.active .burger-icon {
    background-color: transparent;
}

.mobile-menu-btn.active .burger-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-btn.active .burger-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

/* =========================================
   5. PAGE SECTIONS (HERO, INTRO, JOURNEY)
   ========================================= */

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding-top: var(--header-height);
}

.hero-bg {
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100% - 140px);
    background-size: cover;
    background-position: center;
    z-index: -1;
    overflow: hidden;
}

.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 10%;
}

.hero-bottom-bar {
    height: var(--header-height);
    background-color: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    cursor: pointer;
}

.scroll-icon {
    width: 24px;
    height: 24px;
    filter: invert(1);
    transition: transform 0.3s ease;
}

.hero-scroll-link:hover .scroll-icon {
    transform: translateY(5px);
}

/* Intro Section */
.intro-section {
    position: relative;
    width: 100%;
    padding: var(--section-padding-v) 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.intro-text-block {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: var(--block-padding);
    max-width: var(--max-width-text);
    width: 90%;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.intro-text-block h3 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-weight: normal;
    letter-spacing: -0.5px;
}

.intro-text-block h3 strong {
    font-weight: bold;
}

.intro-text-block h3 s {
    opacity: 0.5;
}

.intro-text-block p {
    margin-bottom: 1.5rem;
}

.intro-text-block p:last-of-type {
    margin-bottom: 0;
}

/* Global Subtitle Styles */
.section-subtitle,
.card-subtitle,
.service-subtitle,
.subtitle-italic {
    font-style: italic;
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 2.5rem;
    display: block;
    text-align: left;
}

/* =========================================
   6. VFX PAGE SPECIFIC
   ========================================= */

.vfx-page .intro-section {
    padding: 0;
    min-height: 400px;
}

.vfx-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: grid;
    overflow: hidden;
}

.vfx-grid-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vfx-page .intro-text-block {
    position: relative;
    z-index: 1;
}

.vfx-page .intro-text p {
    color: #333;
}

/* Journey Section */
.journey-section {
    background-color: var(--bg-dark);
    padding: 120px 5%;
    color: var(--text-light);
    text-align: center;
}

.journey-main-title {
    font-size: 2.5rem;
    margin-bottom: 80px;
    font-weight: normal;
}

.journey-card {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: var(--block-padding);
    display: flex;
    flex-direction: column;
    text-align: left;
    height: 100%;
}

.card-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.card-subtitle {
    font-style: italic;
    font-size: 1rem;
    opacity: 0.7;
    margin-bottom: 2rem;
}

.card-body {
    flex-grow: 1;
    text-align: left;
}

.card-separator {
    font-size: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.card-films {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--text-muted-dark);
    line-height: 1.6;
    text-align: center;
}

/* =========================================
   7. WEDDING PAGE SPECIFIC
   ========================================= */

body.wedding-page .hero-bg {
    background-color: #000;
}

body.wedding-page .hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('static/wedding/hero-wedding.webp');
    background-size: cover;
    background-position: center;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
    pointer-events: none;
}

body.wedding-page .hero-bg.video-loaded::after {
    opacity: 0;
}

body.vfx-page .hero-bg {
    background-image: url('static/vfx/hero-background.webp');
}

body.event-page .hero-bg {
    background-color: #000;
}

body.event-page .hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('static/event/event_hero_LQ.webp');
    background-size: cover;
    background-position: center;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
    pointer-events: none;
}

body.event-page .hero-bg.video-loaded::after {
    opacity: 0;
}

.intro-section.wedding-intro {
    background-image: url('static/wedding/intro-wedding.webp');
}

.intro-section.event-intro {
    background-image: url('static/event/event_intro_LQ.webp');
    position: relative;
    overflow: hidden;
}

/* Gradient transition to the next section */
.intro-section.event-intro::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: linear-gradient(to bottom, transparent, #1f1f1f);
    z-index: 1;
    pointer-events: none;
}

/* Ensure text block is above the gradient */
.intro-section.event-intro .intro-text-block {
    position: relative;
    z-index: 2;
}

/* New Features Section for Event Page */
.event-features-section {
    background-color: #1f1f1f;
    padding: var(--section-padding-v) var(--section-padding-h) 120px;
    color: var(--text-light);
    position: relative;
}

.features-header {
    text-align: center;
    margin-bottom: 100px;
}

.features-header h2 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.features-header p {
    font-size: 1.2rem;
    font-style: italic;
    opacity: 0.6;
}

.event-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    max-width: var(--max-width-grid);
    margin: 0 auto;
}

.feature-column {
    display: flex;
    flex-direction: column;
}

.feature-logo {
    width: 50px;
    height: auto;
    margin-bottom: 2rem;
    align-self: center;
}

.feature-column h3 {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.feature-hook {
    font-family: var(--font-mono);
    font-style: italic;
    font-size: 1.1rem;
    opacity: 0.7;
    margin-bottom: 2.5rem;
    min-height: 4em;
    line-height: 1.4;
}

.feature-image {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    margin-bottom: 2.5rem;
    filter: grayscale(0.2) brightness(0.9);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.feature-column:hover .feature-image {
    transform: scale(1.02);
    filter: grayscale(0) brightness(1);
}

.feature-column p {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .event-features-grid {
        grid-template-columns: 1fr;
        gap: 100px;
        padding: 0 5%;
    }

    .feature-hook {
        min-height: auto;
    }
}

/* Kind Words / Testimonials Grid */
.kind-words-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    gap: 0;
    width: 100%;
}

.kind-word-item {
    width: 100%;
    aspect-ratio: 2.38 / 1;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-light);
    cursor: default;
}

.kind-word-item.no-pointer {
    cursor: default;
}

.kind-word-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
}

@media (hover: hover) {
    .kind-word-item:hover img {
        opacity: 0.05;
    }
}

.kind-word-item.active img {
    opacity: 0.05;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition);
    text-align: center;
    color: var(--text-dark);
    pointer-events: none;
}

@media (hover: hover) {
    .kind-word-item:hover .overlay {
        opacity: 1;
    }
}

.kind-word-item.active .overlay {
    opacity: 1;
}

.overlay-btn {
    background-color: #1a1a1a;
    color: var(--text-light);
    padding: 1.2rem 2.5rem;
    display: block;
    margin: 2.5rem auto 0;
    width: fit-content;
    pointer-events: auto;
    font-family: var(--font-mono);
    text-transform: lowercase;
    transition: var(--transition);
}

.overlay-btn:hover {
    background-color: #333;
    transform: translateY(-2px);
}

/* Services Header */
.services-header-section {
    position: relative;
    height: 100vh;
    max-height: 1200px;
    width: 100%;
    background-image: url('static/wedding/services.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
}

.services-header-content {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.services-text-block {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: var(--block-padding);
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.services-text-block * {
    text-align: inherit;
}

.services-grid-section {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 8rem 5rem;
}

.service-column {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.service-column h3 {
    margin-bottom: 0.5rem;
}

.service-intro {
    margin-bottom: 3rem;
}

.service-image {
    width: 100%;
    aspect-ratio: 2.35 / 1;
    overflow: hidden;
    margin-bottom: 3rem;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-details {
    text-align: left;
    margin-bottom: 1rem;
}

.detail-item {
    margin-bottom: 2.5rem;
}

.detail-item h4 {
    margin-bottom: 0.5rem;
}

.detail-item p {
    margin-bottom: 0;
}

/* End of Events Grid styles removed */

/* =========================================
   8. CLIENT PAGE SPECIFIC
   ========================================= */

body.client-page {
    background-color: var(--bg-dark-client);
    color: var(--text-light);
    overflow-y: auto;
    position: relative;
}

.client-title h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.client-date {
    display: block;
    font-size: 0.9rem;
    opacity: 0.5;
    letter-spacing: 1px;
}

.client-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 140px);
    /* Changed height to min-height to avoid cut-off */
    padding: 2rem;
    margin-top: 70px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 2200px;
    /* Re-enlarged to 1400px */
    margin: 6rem auto 0;
    padding-bottom: 25%;
    /* Fixed 16:9 ratio */
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive Mobile for Client Page */
@media (max-width: 768px) {
    .client-main {
        height: auto;
        min-height: calc(100vh - 140px);
        padding: 40px 1.5rem;
        overflow: visible;
    }

    .video-wrapper {
        max-width: 100%;
        margin-top: 2rem;
        padding-bottom: 56.25%;
        /* 16:9 on mobile */
    }
}

/* =========================================
   11. AND MORE PAGE (LAB GRID)
   ========================================= */

.and-more-container {
    padding-top: var(--header-height);
    background-color: var(--bg-dark);
}

.and-more-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    grid-auto-rows: 300px;
    grid-auto-flow: dense;
    gap: 0;
    padding: 3rem;
    max-width: var(--max-width-grid);
    margin: 0 auto;
}

.lab-item {
    position: relative;
    overflow: hidden;
    background-color: #111;
    cursor: pointer;
}

/* S - 1x1 default */
.lab-item.size-S {
    grid-column: span 1;
    grid-row: span 1;
}

/* W - 2x1 (Wide - 2 col, 1 row) */
.lab-item.size-W {
    grid-column: span 2;
    grid-row: span 1;
}

/* V - 1x2 (Vertical - 1 col, 2 rows) */
.lab-item.size-V {
    grid-column: span 1;
    grid-row: span 2;
}

/* L - 2x2 (Large) */
.lab-item.size-L {
    grid-column: span 2;
    grid-row: span 2;
}

.lab-item img,
.lab-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.8s ease;
}

.lab-item:hover img,
.lab-item:hover video {
    transform: scale(1.05);
    filter: blur(8px) brightness(0.4);
}

.lab-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.lab-tag {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.15rem;
    opacity: 0.6;
}

.lab-title {
    display: block;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: -0.5px;
}

.lab-hover-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 3;
    pointer-events: none;
}

.lab-item:hover .lab-hover-content {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
    /* Allow clicking links on hover */
}

.lab-link {
    text-decoration: underline;
    font-weight: bold;
    color: white;
    transition: opacity 0.3s ease;
}

.lab-link:hover {
    opacity: 0.6;
}

.play-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.play-icon::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid white;
    margin-left: 5px;
}

.lab-text-hover {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-light);
    font-style: italic;
}

/* Video Modal Specifics */
.video-modal .modal-content {
    background-color: transparent;
    padding: 0;
    max-width: 95vw;
    width: 1400px;
    box-shadow: none;
}

.video-modal .modal-close {
    color: white;
    top: -4rem;
    right: 0;
}

.video-container-iframe {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-container-iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Mobile Hover support */
.lab-item.mobile-hover img,
.lab-item.mobile-hover video {
    transform: scale(1.05);
    filter: blur(8px) brightness(0.4);
}

.lab-item.mobile-hover .lab-hover-content {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

@media (max-width: 1024px) {
    .and-more-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0;
    }
}

@media (max-width: 600px) {
    .and-more-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
        padding: 0;
    }

    .lab-item.size-W,
    .lab-item.size-V,
    .lab-item.size-L {
        grid-column: span 1;
        grid-row: span 1;
    }

    /* Keep vertical items vertical on mobile if needed, but 1 col is safer */
    .lab-item.size-V {
        grid-row: span 2;
    }
}

/* =========================================
   13. CONTACT PAGE (REDESIGN V2)
   ========================================= */

body.contact-page {
    background-color: var(--bg-dark);
    /* Restore dark background for Consistency */
}

.contact-container-v2 {
    min-height: calc(100vh - var(--header-height));
    background-color: var(--bg-light);
    /* White background ONLY for the content section */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 120px 5% 80px;
    color: var(--text-dark);
}

.contact-wrapper-v2 {
    display: flex;
    max-width: 1000px;
    width: 100%;
    gap: 4rem;
    align-items: stretch;
    /* Stretch to match height */
}

.contact-image-col {
    flex: 0 0 350px;
}

.contact-photo {
    width: 100%;
    height: 100%;
    /* Fill container height */
    object-fit: cover;
    /* Maintain aspect ratio via cropping */
    display: block;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.contact-info-col {
    flex: 1;
}

.contact-info-col .contact-name {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    line-height: 1.1;
}

.contact-info-col .contact-subtitle {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--accent-gray);
    margin-bottom: 2rem;
}

.contact-bio p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    color: #444;
}

.contact-bio .contact-location {
    font-weight: bold;
    margin-top: 2rem;
    color: var(--text-dark);
}

.contact-social-section {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.contact-method i {
    font-size: 1.4rem;
    opacity: 0.8;
}

.contact-method a {
    font-weight: bold;
    text-decoration: underline;
    transition: var(--transition);
}

.contact-method a:hover {
    opacity: 0.6;
}

/* Responsive Tablettes / Petit Desktop */
@media (max-width: 1024px) {
    .contact-wrapper-v2 {
        gap: 3rem;
    }

    .contact-image-col {
        flex: 0 0 300px;
    }
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .contact-container-v2 {
        padding: 100px 1.5rem 60px;
    }

    .contact-wrapper-v2 {
        flex-direction: column;
        text-align: left;
        /* Align text to left, not center */
        gap: 2rem;
    }

    .contact-image-col {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        /* Full width */
    }

    .contact-image-col img {
        width: 100%;
        /* Ensure image fills the container */
        height: auto;
    }

    .contact-info-col .contact-name {
        font-size: 1.8rem;
        /* Reduced Title Size */
        line-height: 1.2;
    }

    .contact-info-col .contact-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .contact-bio p {
        font-size: 0.9rem;
        /* Reduced Text Size */
    }

    .contact-social-section {
        align-items: flex-start;
        /* Justify left */
        margin-top: 2rem;
    }

    .contact-method {
        justify-content: flex-start;
        /* Justify left */
    }
}

/* =========================================
   12. FOOTER & UTILS
   ========================================= */

.wedding-footer {
    height: var(--header-height);
    background-color: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    border-top: 1px solid var(--border-light);
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* =========================================
   10. RESPONSIVE QUERIES
   ========================================= */

@media (max-width: 1350px) {

    .grid-system-3col,
    .services-grid,
    .journey-grid {
        grid-template-columns: 1fr;
        gap: 5rem;
    }

    .service-column,
    .journey-card {
        max-width: 750px;
        margin: 0 auto;
    }
}

/* Medium Desktop Refinement: Prevent columns from becoming too thin with large margins */
@media (min-width: 1025px) and (max-width: 1600px) {
    .grid-system-3col {
        gap: 2rem;
    }

    .journey-card,
    .service-column {
        padding: 3rem 2rem;
    }
}

@media (max-width: 1024px) {
    .services-grid-section {
        padding: 5rem 2rem;
    }

    .journey-section {
        padding: 80px 20px;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 0 1.5rem;
    }

    .home-desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .intro-section {
        padding: 80px 0;
    }

    .intro-text-block,
    .text-block-white,
    .journey-card,
    .services-text-block {
        padding: var(--block-padding-mobile);
    }

    h1 {
        font-size: 2.5rem;
    }

    /* Reduce hero text size on mobile to prevent overflow */
    .hero-content h1,
    .hero-content h2,
    .text-block-white h1,
    .text-block-white h2 {
        font-size: 1.8rem;
        /* Smaller than desktop */
        margin-bottom: 0.5rem;
    }

    .hero-content p,
    .text-block-white p {
        font-size: 0.9rem;
    }

    .card-title {
        font-size: 1.8rem;
    }

    .video-wrapper {
        width: 100vw;
        max-width: none;
    }

    /* Fix Kind Words grid on mobile */
    .kind-words-grid {
        grid-template-columns: 1fr;
        /* Full width items */
    }

    .kind-word-item {
        width: 100%;
        aspect-ratio: auto;
        /* Allow height to grow based on content */
        min-height: 400px;
        /* Ensure enough height for long text + image cropping */
        height: auto;
    }

    /* Reduce spacing on Event page for mobile */
    /* Reduce spacing on Event page for mobile */
    .event-features-section {
        padding-top: 4rem;
        /* Drastically reduced from desktop padding */
    }

    /* Hero Section Mobile Layout Change */
    .hero-section {
        height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .hero-bg {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        flex: 1;
        /* Grow to fill space between header and text block */
        z-index: 1;
    }

    .hero-content {
        flex: none;
        /* Don't stretch */
        padding: 0;
        display: block;
        height: auto;
    }

    .hero-content .text-block-white {
        width: 100%;
        max-width: 100%;
        box-shadow: none;
        padding: 3rem 1.5rem;
        /* Specific polish for hero block */
    }

    /* Limit Wedding grid to 10 items on mobile: Hide items after the 9th, but keep the VERY LAST one (Contact Card) */
    .kind-words-grid .kind-word-item:nth-child(n+10):not(:last-child) {
        display: none !important;
    }
}

/* Email Copy Flow */
.email-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    cursor: pointer;
    position: relative;
    transition: opacity 0.3s ease;
    width: fit-content;
    margin: 0 auto;
}

.email-container:hover .contact-email {
    opacity: 0.7;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    color: var(--text-dark);
    opacity: 0.4;
    transition: all 0.3s ease;
}

.email-container:hover .copy-btn {
    opacity: 1;
    transform: scale(1.1);
}

.copy-icon {
    width: 1.2rem;
    height: 1.2rem;
}

.copy-feedback {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translate(-50%, 10px);
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    pointer-events: none;
    font-family: var(--font-mono);
}

.copy-feedback.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -15px);
}