/* ACTAY Font Family - Bold for Homepage */
@font-face {
    font-family: 'ActayBold';
    src: url('fonts/ActayWide-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: block;
}

/* ACTAY Font Family - Regular for other pages */
@font-face {
    font-family: 'ActayRegular';
    src: url('fonts/Actay-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

:root {
    --primary-color: #ffffff;
    --secondary-color: #f2f2f2;
    --accent-color: #fff;
    --text-color: #ffffff;
    --overlay-color: rgba(0, 0, 0, 0.4);
    --hover-overlay-color: rgba(0, 0, 0, 0.1);
    --transition-speed: 0.6s;
    --font-main: 'ActayRegular';
    --font-bold: 'ActayBold';
}

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

body,
html {
    height: 100%;
    width: 100%;
    font-family: var(--font-main);
    background-color: #000;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 2px;
}

/* Lenis smooth scroll support */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

/* Allow scrolling by default, homepage locks it */
html {
    overflow-x: hidden;
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body {
    overflow-x: hidden;
}

/* Lock scrolling only for homepage */
body.homepage,
body.homepage html {
    overflow: hidden;
}

/* Homepage uses Bold font */
body.homepage {
    font-family: var(--font-bold);
    font-weight: 700;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #0a0a0a 0%, #000 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: loaderFadeOut 0.5s ease-out 3.5s forwards;
    pointer-events: none;
    overflow: hidden;
}



.loader-logo {
    width: 180px;
    height: auto;
    opacity: 0;
    transform: scale(0.8);
    animation: logoReveal 2.5s linear forwards;
    filter: drop-shadow(0 0 0px rgba(255, 255, 255, 0)) blur(0px);
}

@keyframes logoReveal {
    0% {
        opacity: 0;
        transform: scale(0.9);
        filter: blur(5px);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0px);
    }
}

@keyframes loaderFadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Homepage content fade-in */
body.homepage .nav-home,
body.homepage .showreel-container {
    opacity: 0;
    animation: contentFadeIn 1.5s ease-out 0.2s forwards;
}

@keyframes contentFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}



/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: #000;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

nav.scrolled {
    padding: 1rem 4rem;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.05);
    /* Disable difference on scroll for readability */
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-decoration: none;
}

.menu-btn {
    cursor: pointer;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
}

.menu-btn::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0%;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease;
}

.menu-btn:hover::after {
    width: 100%;
    left: 0;
    right: auto;
}

/* Split Screen Layout */
.container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
}

.split {
    position: relative;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: width var(--transition-speed) cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
}

.split img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-color);
    transition: background var(--transition-speed) ease;
}

.content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    white-space: nowrap;
    opacity: 0.8;
    transition: opacity 0.4s ease, transform 0.6s ease;
}

.split h1 {
    font-size: 5rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5em;
    margin-bottom: 0.25rem;
}

.split p {
    font-size: 1rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-left: -1.8em;
    margin-top: -0.5rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.split .btn {
    margin-top: 2rem;
    margin-left: -1.4em;
    padding: 1rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    font-size: 0.8rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.2s;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

/* Hover States */
.split:hover {
    width: 65%;
    /* Expand active side */
}

/* When one is hovered, the sibling shrinks */
.container:hover .split:not(:hover) {
    width: 35%;
}

.split:hover img {
    transform: scale(1.1);
    /* Subtle zoom */
}

.split:hover .overlay {
    background: var(--hover-overlay-color);
    /* Brighten up */
}

.split:hover .content {
    opacity: 1;
    transform: translate(-50%, -55%);
}

.split:hover p,
.split:hover .btn {
    opacity: 1;
    transform: translateY(0);
}

/* ... Previous styles ... */

/* Mobile Responsiveness */
/* Mobile Responsiveness */
@media (max-width: 768px) {

    /* DISABLE MIX BLEND MODE for Nav on Mobile to ensure visibility */
    nav {
        mix-blend-mode: normal !important;
        background: #000;
        padding: 1.5rem 2rem;
    }

    /* Intro Page Stacking */
    .container {
        flex-direction: column;
    }

    .split {
        width: 100%;
        height: 50vh;
        /* Explicit 50% viewport height */
    }

    .split:hover {
        width: 100%;
        height: 50vh;
        /* No hover expansion */
    }

    .container:hover .split:not(:hover) {
        width: 100%;
        height: 50vh;
        /* No shrink */
    }

    .split h1 {
        font-size: 2.5rem;
        /* Reduced from 3rem to fit 50vh better */
        letter-spacing: 0.15em;
        /* Slightly tighter */
        margin-bottom: 0.5rem;
    }

    .split p {
        font-size: 0.85rem;
        /* Compact description */
        margin-left: 0;
        opacity: 1;
        transform: none;
        line-height: 1.4;
        margin-bottom: 1.5rem;
        white-space: normal !important;
        max-width: 100%;
    }

    .split .btn {
        margin-left: 0;
        opacity: 1;
        transform: none;
        padding: 0.8rem 1.5rem;
        /* Slightly smaller button */
        font-size: 0.75rem;
    }

    .content {
        transform: translate(-50%, -50%);
        width: 90%;
        /* Wider container for text safely */
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Strict centering */
        justify-content: center;
        white-space: normal !important;
    }

    /* MENU OVERLAY - High Z-Index, Black Background */
    .menu-items {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #000 !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 99999;
        /* Highest Z */
        mix-blend-mode: normal !important;
        /* Prevent parent blend inheritance */
    }

    .menu-items.active {
        transform: translateY(0);
    }

    .menu-items a {
        font-size: 1.5rem !important;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
        color: #fff !important;
        /* Force white text */
    }

    .menu-items.active a {
        opacity: 1;
        transform: translateY(0);
    }

    /* BURGER ICON - High contrast */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        cursor: pointer;
        z-index: 10001;
        /* Above EVERYTHING */
        position: relative;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #fff;
        /* Force white */
        transition: all 0.3s ease;
        box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
        /* Shadow for visibility on light bg */
    }

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

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

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

    /* Global Typography & Spacing - Force overrides over inline styles */
    .section,
    .grid,
    .page-header {
        padding: 3rem 1.5rem !important;
        /* Reduced padding */
    }

    footer {
        padding: 3rem 1.5rem !important;
        margin-top: 2rem !important;
    }

    /* Footer Grid Override */
    footer>div {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
        text-align: center !important;
        /* Center footer content */
    }

    .footer-col {
        margin-bottom: 1.5rem !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    /* Fix Header alignment */
    .page-header h1 {
        font-size: 2.2rem !important;
        /* Slightly smaller to prevent wrapping issues */
        line-height: 1.2 !important;
        margin-bottom: 0.5rem !important;
        word-wrap: break-word;
        /* Ensure no overflow */
    }

    .page-header {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .hero-content h1 {
        font-size: 2.5rem !important;
    }

    /* Force Cards Vertical Stack */
    .card {
        flex-direction: column !important;
        height: auto !important;
    }

    .card img {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 1rem;
    }

    .card>div {
        width: 100% !important;
    }

    /* Team Grid Stack */
    .team-grid {
        flex-wrap: wrap !important;
        flex-direction: column !important;
    }

    .member {
        width: 100% !important;
        margin-bottom: 2rem;
    }
}

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* --- Shared Page Styles --- */
.page-container {
    padding-top: 100px;
    min-height: 100vh;
    background-color: #050505;
    color: var(--text-color);
    overflow-y: auto;
    /* Enable scroll for long pages */
}

/* Page Headers */
.page-header {
    padding: 1.5rem 4rem;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    color: #888;
    max-width: 600px;
    margin: 0 auto;
    letter-spacing: 0.1em;
}

/* Grid Layouts */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    transition: transform 0.3s ease, background 0.3s ease;
    cursor: default;
    border-radius: 10px;
}

a.card {
    cursor: pointer;
}

a.card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: normal;
    font-weight: 700;
    text-transform: none;
    color: var(--primary-color);
}

.card p {
    color: #aaa;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Section Styles */
.section {
    padding: 3rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
    border-left: 2px solid var(--accent-color);
    padding-left: 1rem;
}

/* Global Typography Stabilizers */
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span {
    font-variant-ligatures: none;
    -webkit-font-variant-ligatures: none;
    font-feature-settings: "kern" 1, "liga" 0, "clig" 0;
    -webkit-font-feature-settings: "kern" 1, "liga" 0, "clig" 0;
    text-rendering: geometricPrecision;
    /* Better than optimizeLegibility for baseline stability */
    vertical-align: baseline;
}

.text-block {
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #ccc;
    font-size: 1.1rem;
    vertical-align: baseline;
}

.text-block h3 {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    /* Slightly reduced for better alignment */
    line-height: 1.2;
}

/* Footer */
footer {
    padding: 4rem;
    background: #000;
    border-top: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.footer-col {
    flex: 1;
    min-width: 250px;
    margin-bottom: 2rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: #fff;
}

.footer-col a {
    display: block;
    color: #888;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #fff;
}

/* Location Specifics */
.hero-image {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    opacity: 0.7;
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.team-grid {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: nowrap;
    /* Force single row */
    overflow: hidden;
}

.member {
    flex: 1;
    min-width: 0;
    /* Allow shrinking */
    text-align: left;
}

.member img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    /* Ensure proportional scaling */
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s, transform 0.5s;
    background: #222;
    margin-bottom: 1rem;
}

.member:hover img {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.member h3 {
    margin-top: 0.5rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.2;
}

.member p {
    color: #666;
    font-size: 0.8rem;
    line-height: 1.3;
}

/* --- Why Choose Us Page Styles --- */

/* Small Hero for Internal Pages */
.hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-small {
    min-height: 40vh;
    padding-top: 100px;
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 900px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 1.5rem;
    color: #fff;
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #aaa;
    letter-spacing: 0.05em;
}

/* Talent Names List */
.talent-names {
    font-size: 1.3rem;
    line-height: 2;
    color: #888;
    letter-spacing: 0.02em;
}

/* Talent Section Placeholder */
.talent-section {
    background: rgba(255, 255, 255, 0.02);
    border-top: 2px solid rgba(255, 255, 255, 0.15);
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

.talent-grid-placeholder {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #666;
    font-style: italic;
}

/* Testimonials Section */
.testimonials-section {
    background: #080808;
}

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

/* Testimonial Quote Card Styles (matching light theme structure) */
.testimonial-card {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: none;
}

.testimonial-card img {
    width: 180px;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.testimonial-card .testimonial-text {
    flex: 1;
    min-width: 280px;
    position: relative;
}

.testimonial-card .quote-open,
.testimonial-card .quote-close {
    font-family: Georgia, serif;
    font-size: 4rem;
    font-weight: bold;
    color: #fff;
    line-height: 1;
    display: block;
}

.testimonial-card .quote-open {
    margin-bottom: 0.5rem;
}

.testimonial-card .quote-close {
    text-align: right;
    margin-top: 0.5rem;
}

.testimonial-card .testimonial-quote {
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 0;
    color: #ccc;
}

.testimonial-card .testimonial-name {
    font-weight: bold;
    color: #fff;
}

.testimonial-card .testimonial-role {
    color: #888;
    font-size: 0.9rem;
}

/* Partners Section */
.partners-section {
    background: #050505;
}

.partners-grid-placeholder {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #666;
    font-style: italic;
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links li a {
    color: var(--primary-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-links li a.active {
    color: var(--accent-color);
}

/* Footer improvements */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo img {
    height: 40px;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-copyright {
    color: #666;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        letter-spacing: 0.15em;
    }

    .nav-links {
        display: none;
    }
}

/* --- Masonry Gallery --- */
.masonry-grid {
    column-count: 3;
    column-gap: 1.5rem;
    padding: 2rem 0;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.8s ease;
}

.masonry-item img.loaded {
    opacity: 1;
}

.masonry-item:hover img {
    transform: scale(1.03);
}

@media (max-width: 900px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .masonry-grid {
        column-count: 1;
    }
}

/* --- Homepage Showreel --- */
.showreel-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showreel-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showreel-placeholder {
    color: #555;
    font-style: italic;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    z-index: 10;
}

/* Homepage Centered Navigation */
.nav-home {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    z-index: 100;
    background: transparent;
    transition: background 0.3s ease;
}

.nav-home.scrolled {
    background: rgba(0, 0, 0, 0.8);
}

.nav-home .nav-country {
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 0.2em;
    font-size: 0.9rem;
    text-transform: uppercase;
    position: relative;
    transition: opacity 0.3s ease;
}

.nav-home .nav-country::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0%;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease;
}

.nav-home .nav-country:hover::after {
    width: 100%;
    left: 0;
    right: auto;
}

.nav-home .nav-logo img {
    width: 120px;
    height: auto;
}

/* --- Facilities Placeholder Image --- */
.facility-placeholder {
    width: 100%;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-style: italic;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.facility-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    display: block;
}

@media (max-width: 768px) {
    .nav-home {
        padding: 1.5rem 2rem;
        gap: 1.5rem;
    }

    .nav-home .nav-logo img {
        width: 80px;
    }

    .nav-home .nav-country {
        font-size: 0.75rem;
        letter-spacing: 0.15em;
    }
}

/* Contact page: disable card hover animation (6.1) */
.section a.card {
    transition: box-shadow 0.3s ease;
}

.section a.card:hover {
    transform: none;
}

/* ===== Press Grid (7.0) ===== */
.press-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Projects preview grid (small vertical poster tiles at top of projects.html) */
.projects-previews {
    --preview-width: 100px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}
.projects-preview-item {
    display: block;
    width: var(--preview-width);
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 4px;
    background: rgba(255,255,255,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}
.projects-preview-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.projects-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* "Show More" link (newpage → press) */
.show-more-link {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    text-transform: uppercase;
    border-bottom: 1px solid #fff;
    padding-bottom: 0.3rem;
}
body.theme-light .show-more-link {
    color: #111;
    border-bottom-color: #111;
}

/* Featured press grid (newpage): same card size, but last incomplete row is centered */
#featured-press-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
#featured-press-grid .press-card {
    flex: 0 0 calc((100% - 4rem) / 3);
    max-width: 380px;
    height: auto;
    align-self: stretch;
}
@media (max-width: 900px) {
    #featured-press-grid .press-card {
        flex: 0 0 calc((100% - 2rem) / 2);
        max-width: none;
    }
}
@media (max-width: 600px) {
    #featured-press-grid .press-card {
        flex: 0 0 100%;
    }
}

.press-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.press-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.press-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.press-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.press-card-image span {
    color: #555;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.press-card-body {
    padding: 1.2rem 1.4rem 1.4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.press-card-body h3 {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.6rem;
    color: #fff;
}

.press-card-source {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.2rem;
}

.press-card-date {
    font-size: 0.8rem;
    color: #666;
}

@media (max-width: 900px) {
    .press-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ===== Malta / Latvia nav context switcher ===== */
.nav-ctx-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
nav .nav-ctx-malta,
nav .nav-ctx-latvia {
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    font-family: var(--font-main);
    cursor: pointer;
    white-space: nowrap;
    opacity: 0.55;
    transition: opacity 0.2s;
}
nav .nav-ctx-malta:hover,
nav .nav-ctx-latvia:hover {
    opacity: 1;
}
html[data-ctx="malta"] nav .nav-ctx-malta,
html[data-ctx="latvia"] nav .nav-ctx-latvia {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Underline current page link in main nav — pure CSS (no FOUC) */
body[data-page="projects"]          nav .menu-items a[href="projects.html"],
body[data-page="talents-partners"]  nav .menu-items a[href="talents-partners.html"],
body[data-page^="facilities"]       nav .menu-items a[href^="facilities"],
body[data-page^="services"]         nav .menu-items a[href^="services"],
body[data-page^="locations"]        nav .menu-items a[href^="locations"],
body[data-page="press"]             nav .menu-items a[href="press.html"],
body[data-page="contact"]           nav .menu-items a[href="contact.html"] {
    text-decoration: underline !important;
    text-underline-offset: 4px;
}
body.theme-light:not(.homepage) nav .nav-ctx-malta,
body.theme-light:not(.homepage) nav .nav-ctx-latvia {
    color: #111;
}

/* ===== Theme Toggle Button (8.0) ===== */
.theme-toggle {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    position: relative;
    top: -7px;
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.4s ease;
    font: inherit;
    line-height: 0;
    -webkit-tap-highlight-color: transparent;
}

.theme-toggle:hover {
    opacity: 1;
    transform: rotate(15deg);
}

.theme-toggle:focus {
    outline: none;
}

.theme-toggle:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 4px;
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}

.theme-toggle .icon-moon {
    display: none;
}

body.theme-light .theme-toggle {
    color: #3C3C3C;
}

body.theme-light .theme-toggle .icon-sun {
    display: none;
}

body.theme-light .theme-toggle .icon-moon {
    display: block;
}

/* ===== Light Theme Overrides (homepage excluded) ===== */
body.theme-light:not(.homepage) {
    --primary-color: #3C3C3C;
    --secondary-color: #3C3C3C;
    --accent-color: #3C3C3C;
    --text-color: #3C3C3C;
    background-color: #F5F5F5;
    color: #3C3C3C;
}

body.theme-light:not(.homepage) nav {
    background: #F5F5F5;
}

body.theme-light:not(.homepage) nav.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

body.theme-light:not(.homepage) nav a {
    color: #3C3C3C !important;
}

body.theme-light:not(.homepage) .menu-btn::after,
body.theme-light:not(.homepage) .nav-links li a::after {
    background: #3C3C3C;
}

body.theme-light:not(.homepage) .page-container {
    background-color: #F5F5F5;
    color: #3C3C3C;
}

body.theme-light:not(.homepage) .page-header {
    border-bottom-color: rgba(0, 0, 0, 0.12);
}

body.theme-light:not(.homepage) .page-header p {
    color: #666;
}

body.theme-light:not(.homepage) .text-block {
    color: #444;
}

body.theme-light:not(.homepage) .section h2 {
    border-left-color: #3C3C3C;
}

body.theme-light:not(.homepage) .card {
    background: rgba(0, 0, 0, 0.04);
}

body.theme-light:not(.homepage) a.card:hover {
    background: rgba(0, 0, 0, 0.08);
}

body.theme-light:not(.homepage) .card h3 {
    color: #3C3C3C;
}

body.theme-light:not(.homepage) .card p {
    color: #555;
}

body.theme-light:not(.homepage) footer {
    background: #F5F5F5;
    border-top-color: rgba(0, 0, 0, 0.12);
}

body.theme-light:not(.homepage) .footer-col h4 {
    color: #3C3C3C;
}

body.theme-light:not(.homepage) .footer-col a,
body.theme-light:not(.homepage) .footer-links a {
    color: #666;
}

body.theme-light:not(.homepage) .footer-col a:hover,
body.theme-light:not(.homepage) .footer-links a:hover {
    color: #3C3C3C;
}

body.theme-light:not(.homepage) .footer-copyright {
    color: #888;
}

body.theme-light:not(.homepage) .hero {
    background: linear-gradient(135deg, #FAFAFA 0%, #EEEEEE 50%, #FAFAFA 100%);
}

body.theme-light:not(.homepage) .hero::before {
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.03) 0%, transparent 70%);
}

body.theme-light:not(.homepage) .hero-content h1 {
    color: #3C3C3C;
}

body.theme-light:not(.homepage) .hero-subtitle {
    color: #555;
}

body.theme-light:not(.homepage) .talent-names {
    color: #555;
}

body.theme-light:not(.homepage) .talent-section {
    background: rgba(0, 0, 0, 0.02);
    border-top-color: rgba(0, 0, 0, 0.12);
    border-bottom-color: rgba(0, 0, 0, 0.12);
}

body.theme-light:not(.homepage) .talent-grid-placeholder {
    border-color: rgba(0, 0, 0, 0.15);
    color: #888;
}

body.theme-light:not(.homepage) .testimonials-section {
    background: #FAFAFA;
}

body.theme-light:not(.homepage) .testimonial-card {
    background: rgba(0, 0, 0, 0.03);
}

body.theme-light:not(.homepage) .testimonial-card .quote-open,
body.theme-light:not(.homepage) .testimonial-card .quote-close,
body.theme-light:not(.homepage) .testimonial-card .testimonial-name {
    color: #3C3C3C;
}

body.theme-light:not(.homepage) .testimonial-card .testimonial-quote {
    color: #444;
}

body.theme-light:not(.homepage) .testimonial-card .testimonial-role {
    color: #666;
}

body.theme-light:not(.homepage) .partners-section {
    background: #F5F5F5;
}

body.theme-light:not(.homepage) .partners-grid-placeholder {
    border-color: rgba(0, 0, 0, 0.15);
    color: #888;
}

body.theme-light:not(.homepage) .member p {
    color: #888;
}

body.theme-light:not(.homepage) .member img {
    background: #ddd;
}

body.theme-light:not(.homepage) .press-card {
    background: rgba(0, 0, 0, 0.04);
}

body.theme-light:not(.homepage) .press-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

body.theme-light:not(.homepage) .press-card-image {
    background: rgba(0, 0, 0, 0.06);
}

body.theme-light:not(.homepage) .press-card-image span {
    color: #888;
}

body.theme-light:not(.homepage) .press-card-body h3 {
    color: #3C3C3C;
}

body.theme-light:not(.homepage) .press-card-source {
    color: #666;
}

body.theme-light:not(.homepage) .press-card-date {
    color: #888;
}

/* LIAA banners: dark versions on dark theme, light versions on light theme */
.liaa-light { display: none; }
body.theme-light:not(.homepage) .liaa-dark  { display: none; }
body.theme-light:not(.homepage) .liaa-light { display: block; }

body.theme-light:not(.homepage) .facility-placeholder {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
    color: #888;
}

body.theme-light:not(.homepage) .showreel-placeholder {
    color: #888;
}

@media (max-width: 768px) {
    body.theme-light:not(.homepage) nav {
        background: #F5F5F5 !important;
    }

    body.theme-light:not(.homepage) .menu-items {
        background: #F5F5F5 !important;
    }

    body.theme-light:not(.homepage) .menu-items a {
        color: #3C3C3C !important;
    }

    body.theme-light:not(.homepage) .mobile-menu-toggle span {
        background-color: #3C3C3C;
        box-shadow: none;
    }
}

/* ===== Light theme: inline style overrides + logo/partner inversion (8.1) =====
   Pages have hard-coded inline `style="color: #fff"` / `color: #ccc` on strong/
   h1-h4/p/div elements (project meta labels, facilities headings, footer
   sections, etc). Inline styles beat normal CSS, so we need !important attribute
   selectors to win. Same pattern for the rare inline `color: white`. */

body.theme-light:not(.homepage) [style*="color: #fff"],
body.theme-light:not(.homepage) [style*="color:#fff"],
body.theme-light:not(.homepage) [style*="color: white"],
body.theme-light:not(.homepage) [style*="color:white"] {
    color: #3C3C3C !important;
}

body.theme-light:not(.homepage) [style*="color: #ccc"],
body.theme-light:not(.homepage) [style*="color:#ccc"] {
    color: #444 !important;
}

body.theme-light:not(.homepage) [style*="color: #aaa"],
body.theme-light:not(.homepage) [style*="color:#aaa"] {
    color: #555 !important;
}

body.theme-light:not(.homepage) [style*="color: #888"],
body.theme-light:not(.homepage) [style*="color:#888"] {
    color: #666 !important;
}

body.theme-light:not(.homepage) [style*="color: #666"],
body.theme-light:not(.homepage) [style*="color:#666"] {
    color: #777 !important;
}

/* Footer and other dark-bg inline containers — keep readable on light bg. */
body.theme-light:not(.homepage) footer[style*="border-top"] {
    border-top-color: rgba(0, 0, 0, 0.15) !important;
}

/* Brand logo: white PNG on light bg becomes invisible. Invert to near-black. */
body.theme-light:not(.homepage) img[src$="logo-white.png"] {
    filter: brightness(0);
}

/* Partner logos have inline `filter: brightness(0) invert(1)` (makes them
   white for dark theme). Override the whole filter chain with !important
   so they become solid black on light theme. */
body.theme-light:not(.homepage) img[src*="/partners/"] {
    filter: brightness(0) !important;
}