/*
Theme Name: ROKETHOUSE
Theme URI: https://rokethouse.com
Author: William Westaway
Author URI: https://rokethouse.com
Description: Premium film-studio theme for Devon-based production company with video lightbox
Version: 3.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rokethouse
*/

/* ===================================
   CSS VARIABLES
   =================================== */
:root {
    --max-width: 1180px;
    --padding: 20px;
    --fg: #0e0e0f;
    --muted: #6f6f73;
    --bg: #0b0b0c;
    --card-bg: #111214;
    --line: #1c1d21;
    --accent: #c8f31d;
    --soft-bg: rgba(255,255,255,.06);
    --transition: 0.2s ease;
}

/* ===================================
   BASE RESET & FOUNDATION
   =================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: #e9eaec;
    font: 400 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #e9eaec;
    text-decoration: none;
    transition: opacity var(--transition);
}

a:hover {
    opacity: .85;
}

.container {
    max-width: var(--max-width);
    padding: 0 var(--padding);
    margin: 0 auto;
    width: 100%;
}

/* ===================================
   HEADER - STICKY NAVIGATION
   =================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11, 11, 12, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px var(--padding);
    gap: 32px;
}

/* Mobile: Center logo, hide nav */
@media (max-width: 768px) {
    .header-inner {
        justify-content: center;
    }
    
    .site-nav {
        display: none !important;
    }
}

.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo,
.custom-logo,
.brand img {
    height: 31px !important;
    width: auto !important;
    display: block;
    max-height: 31px !important;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    white-space: nowrap;
    transition: background var(--transition), color var(--transition);
}


.nav-cta {
    display: inline-block;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 500;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 8px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.nav-cta:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #2a2c33;
    opacity: 1;
}










.nav-cta {
    display: inline-block;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    background: linear-gradient(135deg, #1a1b1f 0%, #141519 100%);
    border: 1px solid var(--line);
    border-radius: 8px;
    white-space: nowrap;
    transition: all var(--transition);
}

.nav-cta:hover {
    background: linear-gradient(135deg, #1f2025 0%, #17181d 100%);
    border-color: #2a2c33;
    transform: translateY(-1px);
    opacity: 1;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    position: relative;
    width: 100%;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.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;
    filter: contrast(1.08) saturate(1.1) brightness(0.95);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 11, 12, 0.4) 0%, rgba(11, 11, 12, 0.5) 100%);
    z-index: 1;
}

.hero .overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 100px var(--padding);
    width: 100%;
}

.hero h1 {
    font-size: clamp(38px, 6vw, 72px);
    font-weight: 700;
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.hero p {
    color: #c6c7cc;
    font-size: clamp(16px, 2vw, 19px);
    max-width: 780px;
    margin: 0 auto 32px;
    line-height: 1.5;
}

.hero .buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .04);
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .08);
    border-color: #2a2c33;
    opacity: 1;
}

.btn.primary {
    background: linear-gradient(135deg, #1a1b1f 0%, #141519 100%);
    border-color: #2a2c33;
}

.btn.primary:hover {
    background: linear-gradient(135deg, #1f2025 0%, #17181d 100%);
    border-color: #353740;
}

.btn .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===================================
   SECTIONS
   =================================== */
.section {
    padding: 80px 0;
    border-bottom: 1px solid var(--line);
}

.section h2 {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

.section p.lead {
    color: #b7b8bd;
    font-size: 18px;
    margin: 0 auto 36px;
    max-width: 700px;
    text-align: center;
}

/* ===================================
   GRIDS
   =================================== */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

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

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

/* ===================================
   CARDS
   =================================== */
.card {
    background: linear-gradient(145deg, #141519 0%, #0f1012 100%);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .3);
    transition: all 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, .4);
    border-color: #2a2c33;
}

.card h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #fff;
}

.card .muted {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

/* ===================================
   WORK GRID
   =================================== */
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

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

.work-item {
    display: block;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: #0f1012;
    transition: all 0.2s ease;
}

.work-item:hover {
    transform: translateY(-4px);
    border-color: #2a2c33;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
}

.work-item .thumb {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #1a1b1f 0%, #15161a 100%);
    display: block;
    overflow: hidden;
    position: relative;
}

.work-item .thumb::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-item:hover .thumb::after {
    opacity: 1;
}

.work-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.work-item:hover .thumb img {
    transform: scale(1.05);
}

.work-item .meta {
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.work-item .meta .title {
    font-weight: 600;
    font-size: 16px;
    flex: 1;
}

.work-item .meta .tag {
    font-size: 13px;
    color: #a4a6ad;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    white-space: nowrap;
}

/* ===================================
   LOGO CAROUSEL
   =================================== */
/* Logo Carousel Container */
.logo-carousel-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.logo-strip-wrap {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(135deg, #141519 0%, #0f1012 100%);
    padding: 20px 0;
}

.logo-strip {
    display: flex;
    align-items: center;
    gap: 48px;
    min-height: 100px;
    animation: logoscroll 40s linear infinite;
    will-change: transform;
}

/* Reverse direction for second row */
.logo-strip-wrap.reverse .logo-strip {
    animation: logoscroll-reverse 40s linear infinite;
}

.logo-strip-wrap:hover .logo-strip {
    animation-play-state: paused;
}

.logo-strip img {
    height: 70px;
    width: auto;
    filter: grayscale(100%) contrast(1.1) brightness(0.85);
    opacity: 0.8;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.logo-strip img:hover {
    opacity: 1;
    filter: grayscale(0%) contrast(1) brightness(1);
    transform: translateY(-3px);
}

.logo-strip-wrap .fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    pointer-events: none;
    z-index: 10;
}

.logo-strip-wrap .fade.left {
    left: 0;
    background: linear-gradient(to right, #0f1012, rgba(15, 16, 18, 0));
}

.logo-strip-wrap .fade.right {
    right: 0;
    background: linear-gradient(to left, #0f1012, rgba(15, 16, 18, 0));
}

@keyframes logoscroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes logoscroll-reverse {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo-strip {
        gap: 32px;
        animation-duration: 30s;
    }
    
    .logo-strip-wrap.reverse .logo-strip {
        animation-duration: 30s;
    }
    
    .logo-strip img {
        height: 50px;
    }
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    padding: 48px 0;
    color: #9a9ca3;
    text-align: center;
    border-top: 1px solid var(--line);
}

.footer small {
    display: block;
    opacity: 0.8;
    font-size: 14px;
}

/* ===================================
   PAGE-SPECIFIC STYLES
   =================================== */
.page-hero {
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 700;
    margin-bottom: 16px;
}

.page-hero p {
    color: #b7b8bd;
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
}

.split-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

@media (max-width: 900px) {
    .split-panel {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.split-image {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .3);
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.split-content h3 {
    color: var(--accent);
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 600;
}

.split-content p {
    color: #c6c7cc;
    line-height: 1.7;
    margin-bottom: 12px;
}

/* Video Player */
.video-wrapper {
    position: relative;
    margin: 24px 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #000;
}

.video-wrapper video,
.video-wrapper iframe {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

/* Content */
.content {
    color: #c6c7cc;
    line-height: 1.7;
}

.content h2,
.content h3 {
    color: #fff;
    margin-top: 32px;
    margin-bottom: 16px;
}

.content p {
    margin-bottom: 16px;
}

.content ul,
.content ol {
    margin: 16px 0;
    padding-left: 24px;
    color: #c6c7cc;
}

.content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.content a {
    color: var(--accent);
    text-decoration: underline;
}

.content a:hover {
    opacity: 0.8;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, #1a1b1f 0%, #141519 100%);
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}

.cta-link:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #1f2025 0%, #17181d 100%);
    border-color: #353740;
    opacity: 1;
}

.mb-sm { margin-bottom: 16px; }
.mb-md { margin-bottom: 32px; }
.mb-lg { margin-bottom: 60px; }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 60px; }

/* Loading State */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Section Dark Background */
.section-dark {
    background: #15161a;
}

/* Studio Gallery Responsive */
@media (max-width: 900px) {
    .split-panel {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Make studio gallery 2 columns on tablet */
    section .container > div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    /* Make studio gallery single column on mobile */
    section .container > div[style*="grid-template-columns: repeat(3, 1fr)"],
    section .container > div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
}

/* ===================================
   TEXTURED BACKGROUNDS FOR STRIPS
   =================================== */
.textured-bg {
    background-image: url('https://rokethouse.com/wp-content/uploads/2025/11/TEXTURE_Roket-scaled.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.logo-strip-wrap.textured-bg {
    background: linear-gradient(135deg, rgba(20, 21, 25, 0.9) 0%, rgba(15, 16, 18, 0.9) 100%), 
                url('https://rokethouse.com/wp-content/uploads/2025/11/TEXTURE_Roket-scaled.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.section.textured-bg {
    background-image: url('https://rokethouse.com/wp-content/uploads/2025/11/TEXTURE_Roket-scaled.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(11, 11, 12, 0.85);
    background-blend-mode: overlay;
}

/* ===================================
   RESPONSIVE IMPROVEMENTS FOR ABOUT PAGE
   =================================== */
@media (max-width: 900px) {
    /* About page two-column grids to single column */
    section .container > div[style*="grid-template-columns: 1fr 1fr"],
    section .container > div[style*="grid-template-columns: 1.2fr 0.8fr"] {
        grid-template-columns: 1fr !important;
    }
}
