:root {
    --primary-blue: #0066CC;
    --primary-dark-blue: #004C99;
    --dark: #1A1A1A;
    --white: #FFFFFF;
    --light-blue: #E6F0FF;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
}

/* Header & Navigation */
header {
    background: rgba(0, 0, 0, 0.95);
    padding: 0.8rem 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: block;
}

.mobile-logo {
    display: none; /* Hide mobile logo by default */
}

.header-cta {
    display: none;
}

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

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.8rem;
    font-size: 1.1rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

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

.nav-links .cta-button {
    padding: 0.8rem 1.5rem;
    margin-left: 1rem;
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;  /* Hide by default on desktop */
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    margin: -0.5rem;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .logo {
        display: none; /* Hide logo in header on mobile */
    }

    .header-cta {
        display: block; /* Show CTA on mobile */
    }

    .header-cta .cta-button {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
        margin: 0;
        white-space: nowrap;
    }

    nav {
        justify-content: space-between;
        gap: 1rem;
    }

    .mobile-menu-btn {
        order: -1; /* Move menu button to the left */
    }

    header {
        padding: 0.8rem 1rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 1.2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 98;
        height: 100vh;
        display: flex;
        align-items: center;
    }

    .nav-links .mobile-logo {
        display: none; /* Hide by default on mobile */
    }

    .nav-links.active .mobile-logo {
        display: block; /* Only show when mobile menu is active */
        margin-bottom: 2rem;
    }

    .nav-links .mobile-logo img {
        height: 40px;
        width: auto;
        margin: 0 auto;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        display: flex;
        width: 100%;
        text-align: center;
        padding: 1.2rem;
        font-size: 1.4rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        justify-content: center;
        align-items: center;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        margin: 0;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-links .cta-button {
        margin: 1rem 0;
        padding: 1.2rem;
        width: 100%;
        font-size: 1.4rem;
        border-radius: 8px;
        background: var(--primary-blue);  /* Keep CTA distinct */
    }

    /* Improve touch targets */
    .nav-links a,
    .mobile-menu-btn,
    .cta-button {
        min-height: 56px;  /* Increased from 44px */
        min-width: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;  /* Remove tap highlight */
    }

    /* Active/Hover states for better feedback */
    .nav-links a:active,
    .nav-links a:focus {
        background: rgba(255, 255, 255, 0.1);
    }

    .mobile-menu-btn {
        position: relative;
        z-index: 99;  /* Above the menu */
    }

    /* Ensure header stays on top */
    header {
        position: fixed;
        z-index: 99;
        background: rgba(0, 0, 0, 0.98);
    }

    .logo-img {
        height: 32px;
        width: auto;
    }
}

.cta-button {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.cta-button:hover {
    background: var(--primary-dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
}

.button-icon {
    height: 20px;
    width: 20px;
    filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
    .button-icon {
        height: 18px;
        width: 18px;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('images/Renders/Eyelevel_Entrance_Cam_1_Final_4k-min-min.webp') center/cover;
    display: flex;
    align-items: center;
    padding: 6rem 2rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--white);
}

.hero h1, .hero h2 {
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
    font-family: 'Montserrat', sans-serif;
    color: var(--white);
}

.hero h2 {
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.red {
    color: #0022ff;
    font-style: italic;
    font-weight: 500;
}

.hero p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: var(--white);
}

/* Remove form styles */
@media (max-width: 768px) {
    .hero h1, .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 0.85rem;
    }
}

.explainer {
    padding: 4rem 0 0 0;
    text-align: center;
    background: var(--white);
    overflow: hidden;
}

.explainer h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    padding: 0 1.5rem 2rem 1.5rem;
}

.video-container {
    width: 100%;
    position: relative;
    aspect-ratio: 1016/350;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.video-placeholder {
    position: relative;
    width: 100%;
    height: auto;
    background: var(--dark);
    aspect-ratio: 16/9;
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    pointer-events: none;
    z-index: 3;
}

.video-text h3 {
    color: #E41E31;
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: none;
}

.render-stages {
    display: flex;
    justify-content: center;
    gap: 6rem;
    margin-top: 1rem;
}

.stage {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #E41E31;
    font-weight: 500;
    font-size: 0.9rem;
}

.arrow {
    width: 20px;
    height: 20px;
}

.play-btn {
    width: 60px;
    height: 60px;
    background: rgba(228, 30, 49, 0.9);
}

@media (max-width: 768px) {
    .explainer {
        padding: 3rem 0 0 0;
    }
    
    .explainer h2 {
        font-size: 2rem;
        padding: 0 1rem 1.5rem 1rem;
        margin: 0;
    }

    .video-container {
        aspect-ratio: 16/9;
        margin: 0;
        height: auto;
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }

    .service-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .video-text h3 {
        font-size: 1.6rem;
    }
    
    .render-stages {
        gap: 2rem;
    }
    
    .stage {
        font-size: 0.8rem;
    }
    
    .play-btn {
        width: 50px;
        height: 50px;
    }
}

.trust {
    padding: 6rem 2rem;
    background: var(--white);
    text-align: center;
    scroll-margin-top: 80px;
}

.trust h2 {
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 4rem;
    letter-spacing: 0.5px;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem;
    align-items: center;
}

.logo-grid img {
    width: 100%;
    height: 75px;
    object-fit: contain;
    filter: grayscale(100%) brightness(0) opacity(45%);
    transition: all 0.4s ease;
}

.logo-grid img:hover {
    filter: grayscale(0%) brightness(1) opacity(100%);
    transform: translateY(-4px);
}

.logo-grid img:last-child {
    grid-column: span 2;
    height: 120px;
}

.logo-grid img[alt="Casawyn"] {
    filter: grayscale(100%) brightness(0) opacity(45%);
}

.logo-grid img[alt="Casawyn"]:hover {
    filter: grayscale(0%) brightness(1) opacity(100%);
    transform: translateY(-4px);
}

@media (max-width: 768px) {
    .trust {
        padding: 4rem 1rem;
    }

    .trust h2 {
        font-size: 2rem;
        margin-bottom: 3rem;
    }

    .logo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem 2rem;
        padding: 2rem;
    }
    
    .logo-grid img {
        height: 75px;  /* Increased height */
        filter: grayscale(100%) brightness(0) opacity(65%);  /* Increased opacity */
    }

    /* Keep specific logos at original size */
    .logo-grid img[alt="AIRE"],
    .logo-grid img[alt="Azure"],
    .logo-grid img[alt="KW Elite"],
    .logo-grid img[src*="1-e1697153296251-no-bg"] {
        height: 45px;
    }
}

@media (max-width: 480px) {
    .logo-grid {
        gap: 2.5rem 1.5rem;
        padding: 1.5rem;
    }
    
    .logo-grid img {
        height: 65px;  /* Increased from previous value */
        filter: grayscale(100%) brightness(0) opacity(75%);  /* Even more opacity */
    }

    /* Keep specific logos at original size */
    .logo-grid img[alt="AIRE"],
    .logo-grid img[alt="Azure"],
    .logo-grid img[alt="KW Elite"],
    .logo-grid img[src*="1-e1697153296251-no-bg"] {
        height: 40px;
    }
}

.services {
    width: 100%;
    background: var(--white);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
}

.service {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 0;
    cursor: pointer;
}

.service-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.service img, .service-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
    transform: scale(1.01); /* Slight scale to ensure no white edges */
}

.service:hover img, .service:hover .service-video {
    transform: scale(1.05);
}

.service h3 {
    position: absolute;
    bottom: 3rem;
    left: 0;
    width: 100%;
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    z-index: 2;
}

.service::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    z-index: 1;
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.service:hover .service-overlay {
    opacity: 1;
}

.service-overlay p {
    font-size: 1.4rem;
    max-width: 80%;
    text-align: center;
    line-height: 1.6;
    font-weight: 300;
}

@media (max-width: 1400px) {
    .service {
        height: 500px;
    }
    
    .service h3 {
        font-size: 2.2rem;
        bottom: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service {
        height: 450px;
    }
    
    .service h3 {
        font-size: 2rem;
        bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .service {
        height: 400px;
    }
    
    .service h3 {
        font-size: 1.8rem;
        bottom: 1rem;
    }
    
    .service-overlay p {
        font-size: 1.2rem;
    }
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}

.stat h4 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat p {
    font-size: 1rem;
    color: var(--dark);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 3rem 1rem;
    }
    
    .stat h4 {
        font-size: 2rem;
    }
    
    .stat p {
        font-size: 0.9rem;
    }
}

.portfolio {
    width: 100%;
    background: var(--white);
    padding: 4rem 0 0 0;
    position: relative;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-blue);
    opacity: 0.8;
}

.portfolio h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--dark);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
}

.portfolio-item {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
    transform: scale(1.01);
}

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

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
    color: var(--white);
    display: flex;
    align-items: flex-end;
    padding: 1.2rem;
    opacity: 0;
    transition: all 0.8s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    background: rgba(0,0,0,0.5);
}

.project-info {
    text-align: left;
    transform: translateY(10px);
    transition: transform 0.3s ease;
    padding-left: 0.5rem;
}

.portfolio-item:hover .project-info {
    transform: translateY(0);
}

.project-info h4 {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.15rem;
    letter-spacing: 0.5px;
}

.project-info .client {
    font-size: 0.7rem;
    margin-bottom: 0.1rem;
    opacity: 0.9;
}

.project-info .location {
    font-size: 0.65rem;
    opacity: 0.8;
}

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

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-item {
        height: 300px;
    }
    
    .project-info h4 {
        font-size: 1.5rem;
    }
}

.cta {
    text-align: center;
    padding: 6rem 2rem;
    background: var(--dark);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: center;
}

.cta h2 {
    margin: 0;
    font-size: 3rem;
    font-weight: 500;
}

footer {
    background: #000000;
    color: var(--white);
    padding: 4rem 2rem;
}

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

.legal a {
    color: var(--white);
    text-decoration: none;
    display: block;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Additional Styles */
.portfolio-grid img:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.form-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

/* Mobile Enhancements */
@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }
}

/* Logo Styling */
.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
}

/* Ensure logos maintain quality */
.logo-img, .footer-logo {
    object-fit: contain;
    object-position: left;
}

@media (max-width: 768px) {
    .logo-img {
        height: 32px;
    }
    
    .footer-logo {
        height: 40px;
    }
}

.consultation-bar {
    background: var(--primary-dark-blue);
    text-align: center;
    padding: 1rem;
    font-size: 1.1rem;
    color: var(--white);
    border: none;
}

.consultation-bar .highlight {
    color: var(--white);
    font-weight: 600;
}

@media (max-width: 768px) {
    .cta {
        padding: 4rem 1.5rem;
        gap: 1.5rem;
        flex-direction: column;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
}

/* Remove modal styles */
.modal,
.modal.active,
.modal-content,
.close-modal,
.quote-form,
.radio-group {
    display: none;
}

/* Font optimization */
@font-face {
    font-family: 'Montserrat';
    font-display: swap;
    src: local('Montserrat');
}

/* Remove unused styles */
.video-text,
.render-stages,
.stage,
.arrow,
.play-btn {
    display: none;
}

/* Optimize image loading */
img {
    content-visibility: auto;
}

/* Add efficient cache headers */
/* Add to your server config:
Cache-Control: public, max-age=31536000, immutable
for static assets like images, CSS, and JS */

/* Ensure minimum touch target size */
@media (max-width: 900px) {
    .nav-links a,
    .mobile-menu-btn,
    .cta-button {
        min-height: 44px;
        min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    }

    .nav-links {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
}

/* Service Video Optimization */
.service-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Ensure video loads with high priority and plays seamlessly */
video[autoplay] {
    opacity: 1;
}

@media (max-width: 768px) {
    .explainer {
        padding: 0;
    }
    
    .explainer h2 {
        padding: 1rem;
        margin: 0;
        font-size: 2rem;
    }
}

/* Add this in your head section */
@media (prefers-reduced-motion: no-preference) {
    .service-video {
        transition: transform 0.6s ease;
    }
}

.floating-email {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 99;
    background: var(--primary-blue);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.floating-email:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    background: var(--primary-dark-blue);
}

.floating-email svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

@media (max-width: 768px) {
    .floating-email {
        bottom: 1.5rem;
        left: 1.5rem;
        width: 50px;
        height: 50px;
}

    .floating-email svg {
        width: 20px;
        height: 20px;
    }
} 