/* Custom CSS Variables */
:root {
    --screencult-red: #D22630;
    --screencult-red-hover: #b01f27;
    --dark-grey: #2c2c2c;
    --charcoal-grey: #3a3a3a;
    --mid-grey: #555555;
    --light-grey: #f4f4f4;
    --white: #ffffff;
    --font-main: 'Open Sans', sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--dark-grey);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-centre { text-align: center; } 
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.bg-light-grey { background-color: var(--light-grey); }
.bg-dark-grey { background-color: var(--dark-grey); color: var(--white); }

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.4rem;
    color: var(--dark-grey);
}

.bg-dark-grey h2 { color: var(--white); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--screencult-red);
    color: var(--white);
    border: 2px solid var(--screencult-red);
}

.btn-primary:hover {
    background-color: var(--screencult-red-hover);
    border-color: var(--screencult-red-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--dark-grey);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1.2rem 0; 
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

/* Class applied via JavaScript on scroll */
.navbar.navbar-scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    height: 55px; 
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

/* Shrink the logo when the navbar is scrolled */
.navbar-scrolled .brand-logo {
    height: 35px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--mid-grey);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--screencult-red);
}

/* Sections */
section {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--mid-grey);
    max-width: 800px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    position: relative;
    height: 75vh;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

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

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(44, 44, 44, 0.6); 
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.26rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: #e0e0e0;
}

/* Split Solutions Section */
.solutions-split {
    padding-top: 0;
    padding-bottom: 0; 
}

.solutions-header {
    background-color: #e6e6e6;
    padding-top: 6rem;
    padding-bottom: 2rem;
}
.solutions-header h2 {
    color: var(--dark-grey);
    margin-bottom: 0;
}

.split-container {
    display: flex;
    flex-wrap: wrap;
    min-height: 600px;
}

.split-panel {
    flex: 1 1 50%;
    display: flex;
    justify-content: center;
    padding: 4rem 2rem;
    color: var(--dark-grey);
    transition: transform 0.3s ease;
}

.traction-panel {
    background-color: #e6e6e6; 
}

.espresso-panel {
    background-color: #e6e6e6;
}

.panel-content {
    max-width: 450px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.align-bottom-btn {
    margin-top: auto;
    width: 100%;
    max-width: 280px;
    align-self: center;
}

.tagline {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Solution Master Logos */
.solution-logo {
    max-width: 224px;
    height: auto;
    margin: 0 auto 1.5rem auto;
    display: block;
    transition: transform 0.3s ease;
}

.solution-logo:hover {
    transform: scale(1.1);
}

/* Side-by-Side Logo Layout - FIXED */
.logo-split {
    display: flex;
    flex-direction: row; 
    gap: 2rem;
    margin: 2rem 0;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; 
}

.logo-item {
    flex: 1 1 100px; 
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sub-solution-logo {
    width: 100%;
    max-width: 100px; 
    height: auto;
    margin: 0 auto 0.8rem auto;
    display: block;
}

.sub-text {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #e0e0e0;
    margin: 0;
}

.feature-list {
    margin: 1.5rem 0 2.5rem;
}

.feature-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--white);
    opacity: 0.7;
}

/* About Section */
.about-grid {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Carousel */
.logo-carousel {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    cursor: grab;
    user-select: none;
    touch-action: pan-y; /* allows vertical page scroll, prevents horizontal */
}

.logo-carousel:active {
    cursor: grabbing;
}

.logo-track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.client-logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin: 0 3rem;
    pointer-events: none; /* prevents image drag interference */
    flex-shrink: 0;
}

/* Logo Grid View */
.logo-carousel.grid-view {
    overflow: visible;
    cursor: default;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.logo-carousel.grid-view:active {
    cursor: default;
}
.logo-carousel.grid-view .logo-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    width: 100%;
    justify-items: center;
    transform: none !important;
}
.logo-carousel.grid-view .client-logo {
    margin: 0;
    width: 75%;
    max-width: 140px;
    height: 140px;
}
.logo-carousel.grid-view .client-logo.duplicate {
    display: none;
}

/* Grids for Testimonials and Case Studies */
.grid-3-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-box, .case-study-box {
    background-color: var(--white);
    border: 1px solid #eaeaea;
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.testimonial-quote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-quote::before {
    content: "“";
    font-size: 4rem;
    color: var(--screencult-red);
    display: block;
    line-height: 0;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.testimonial-author { font-weight: bold; }
.testimonial-role { color: var(--mid-grey); font-size: 0.9rem; margin-bottom: 1.5rem; }
.testimonial-logo { max-width: 120px; height: auto; }

.video-container {
    position: relative;
    width: 100%;
    margin-top: 1rem;
    cursor: pointer;
}

.case-video-player {
    width: 100%;
    border-radius: 4px;
    display: block;
    outline: none;
    background-color: #000;
}

.play-btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(210, 38, 48, 0.85); /* Screencult Red with opacity */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
    pointer-events: none; /* Let clicks pass through to container */
}

.play-btn-overlay::after {
    content: "";
    display: block;
    margin-left: 5px;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent var(--white);
}

.video-container:hover .play-btn-overlay {
    background-color: var(--screencult-red);
}

/* Hide overlay when video is playing */
.video-container.is-playing .play-btn-overlay {
    display: none;
}

/* Video Lightbox Styles */
.video-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--white);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.video-controls {
    position: fixed;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    gap: 15px;
}

/* Contact Form */
.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--light-grey);
    padding: 3rem;
    border-radius: 8px;
}

.contact-form {
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--screencult-red);
}

/* Footer (Espresso Engage Style) */
.site-footer {
    background-color: var(--dark-grey);
    padding: 60px 0 20px;
    font-family: var(--font-main);
    color: var(--white);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
    text-align: left;
}

/* Top Section */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.footer-right-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.footer-right-col .footer-logo {
    max-width: 97.5px;
}

.footer-solutions-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-solutions-heading {
    font-weight: 700;
    color: var(--white);
    font-size: 16px;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.footer-solutions-heading:hover {
    color: var(--screencult-red);
}

.footer-solution-link {
    color: #ccc;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-solution-link:hover {
    color: var(--screencult-red);
}

.footer-title {
    font-size: 47px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--white);
}

.footer-tagline {
    font-size: 26.88px;
    color: #ccc;
    margin: 0;
}

/* Dotted Divider */
.footer-divider-dotted {
    border: 0;
    border-top: 2px dotted var(--mid-grey);
    margin: 40px 0;
    width: 80px;
}

/* Middle Section */
.footer-middle {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    margin-bottom: 40px;
}

/* Middle Section Right */
.footer-middle-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    justify-content: space-between;
}

/* Links Grid */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 0;
}

.footer-link-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-link-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.footer-link {
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--screencult-red);
    text-decoration: none;
}

.footer-link-desc {
    font-size: 14px;
    color: #ccc;
    line-height: 1.4;
    margin: 0;
}

/* Bottom Bar */
.footer-bottom {
    display: block;
    text-align: center;
    border-top: 1px solid var(--mid-grey);
    padding-top: 20px;
    font-size: 14px;
    color: #ccc;
}

.copyright {
    color: #ccc;
}

.back-to-top {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.back-to-top:hover {
    color: var(--screencult-red);
}

/* Responsive Design */
@media (max-width: 900px) {
    .split-panel {
        flex: 1 1 100%;
        padding: 4rem 10%;
    }
    .solutions-header {
        background-color: #e6e6e6;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .solution-logo { max-width: 176px; }
    .footer-middle { flex-direction: column; align-items: flex-start; gap: 30px; }
        .footer-middle-right { align-items: flex-start; text-align: left; gap: 30px; }
    .footer-links { align-items: flex-start; text-align: left; }
}