/**
 * Goodly Theme Custom Styles
 * Based on Figma Design
 */

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

body {
    font-family: 'Inter', sans-serif;
    color: #0d0d0d;
    background-color: #ffffff;
    line-height: 1.7;
}

/* Header Styles */
.site-header {
    height: 74px;
    background-color: #ffffff;
    border-bottom: 1px solid #ebebeb;
    position: sticky;
    top: 0;
    z-index: 1000; /* Above backdrop, below menu when open */
    width: 100%;
}

.header-container {
    height: 74px;
    max-width: 1150px;
    margin: 0 auto;
    padding: 0;
}

.header-inner {
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 48px;
    max-width: 1150px;
    margin: 0 auto;
    position: relative;
}

.header-inner::after {
    content: '';
    flex: 1;
}

/* Hamburger Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.menu-toggle .menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.menu-toggle .hamburger-icon {
    width: 100%;
    height: 100%;
    display: block;
}

.menu-toggle .menu-close {
    display: none;
    font-size: 28px;
    color: #0d0d0d;
    font-weight: 300;
    line-height: 1;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.menu-toggle.menu-open .menu-icon {
    display: none !important;
}

.menu-toggle.menu-open .menu-close {
    display: flex !important;
}

.logo-container {
    flex: 1;
    display: flex;
    align-items: center;
}

.logo {
    height: 45px;
    width: 84px;
    position: relative;
    overflow: hidden;
}

.logo-icon {
    position: absolute;
    height: 42.1px;
    width: 75px;
    left: 50%;
    top: calc(50% - 0.16px);
    transform: translate(-50%, -50%);
}

.logo-icon img,
.logo-icon .custom-logo-link {
    width: 100%;
    height: 100%;
    display: block;
}

.logo-icon .custom-logo-link {
    text-decoration: none;
    border: none;
}

.logo-icon .custom-logo-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.logo-text {
    position: absolute;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 200;
    font-size: 11.665px;
    line-height: 1.7;
    color: #707070;
    left: calc(50% - 19.5px);
    top: calc(50% + 3.09px);
    white-space: nowrap;
    letter-spacing: 0.4666px;
}

/* Navigation Menu */
.main-navigation {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-menu {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.7;
    color: #0d0d0d;
    letter-spacing: -0.48px;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: #0d0d0d;
    text-decoration: none;
    white-space: nowrap;
}

.nav-menu a:hover {
    opacity: 0.7;
}

.header-cta {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.btn-get-in-touch {
    border: 1px solid #0d0d0d;
    padding: 14px 24px;
    border-radius: 32px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.7;
    color: #0d0d0d;
    letter-spacing: -0.42px;
    white-space: nowrap;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-get-in-touch:hover {
    background-color: #0d0d0d;
    color: #ffffff;
}

/* Hero Section */
.hero-section {
    background-color: #ffffff;
    width: 100%;
    z-index: 2;
    position: relative;
}

.hero-container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 56px 48px;
    border-bottom: 1px solid #ebebeb;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    width: 100%;
    position: relative;
}

/* Hero Image - Simple Version (kept for backward compatibility) */
.hero-image-simple {
    width: 100%;
    max-width: 700px;
    position: relative;
    overflow: hidden;
}

.hero-main-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Hero Card Stack Animation */
.hero-card-stack {
    width: 100%;
    height: 350px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background-color: transparent;
}

.hero-card-stack .carousel-wrapper {
    position: absolute;
    width: 1456px;
    height: 792px;
    top: 80%;
    left: 50%;
    transform-origin: center center;
    /* Center horizontally - offset by half the max card left offset (240px / 2 = 120px) to center the stack */
    transform: translate(calc(-50% + 90px), -50%) scale(0.75);
}

.hero-card-stack .carousel-card {
    position: absolute;
    width: 848.712px;
    height: 521.6px;
    transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                bottom 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity, left, bottom;
    transform: translateY(0);
}

.hero-card-stack .carousel-card.exiting {
    opacity: 0;
    transform: translateY(-200px);
}

.hero-card-stack .card-frame {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 848.712px;
    height: 521.6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card-stack .card-frame-inner {
    transform: skewX(10.81deg);
}

.hero-card-stack .card-frame-box {
    width: 747.249px;
    height: 531.377px;
    background: white;
    position: relative;
}

.hero-card-stack .card-image {
    position: absolute;
    transform: skewX(10.81deg);
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: block;
    /* Programmatic resize: scale full-size images to fit card (848×521) */
    object-fit: cover;
    object-position: center;
}


/* Hero Card Stack Bottom Overlay */
.hero-card-stack-overlay {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero-card-stack-overlay .hero-overlay-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive scaling for card stack */
@media screen and (min-width: 1921px) {
    .hero-card-stack .carousel-wrapper { transform: translate(calc(-50% + 96px), -50%) scale(0.8); }
}

@media screen and (max-width: 1920px) {
    .hero-card-stack .carousel-wrapper { transform: translate(calc(-50% + 90px), -50%) scale(0.75); }
}

@media screen and (max-width: 1680px) {
    .hero-card-stack .carousel-wrapper { transform: translate(calc(-50% + 90px), -50%) scale(0.75); }
}

@media screen and (max-width: 1440px) {
    .hero-card-stack .carousel-wrapper { transform: translate(calc(-50% + 78px), -50%) scale(0.65); }
}

@media screen and (max-width: 1200px) {
    .hero-card-stack .carousel-wrapper { transform: translate(calc(-50% + 66px), -50%) scale(0.55); }
}

@media screen and (max-width: 992px) {
    .hero-card-stack .carousel-wrapper { 
        transform: translate(calc(-50% + 60px), -50%) scale(0.50); 
    }
    .hero-card-stack { height: 350px; }
}

/* Responsive Hero Image */
@media (max-width: 768px) {
    
    .hero-image-simple .hero-bottom-blur {
        height: 100px;
    }
    
    /* Card Stack Responsive */
    .hero-card-stack {
        height: 264px;
    }
    
    .hero-card-stack .carousel-wrapper {
        /* Scale for mobile - centered with proportional offset */
        transform: translate(calc(-50% + 48px), -50%) scale(0.40);
    }
    
    .hero-card-stack-overlay {
        max-width: 100vw; /* 790px * 0.7 scale */
        height: 164px; /* 234px * 0.7 scale */
    }
}

@media (max-width: 576px) {
    /* Scale for small mobile - centered with proportional offset */
    .hero-card-stack .carousel-wrapper { 
        transform: translate(calc(-50% + 42px), -50%) scale(0.35); 
    }
    .hero-card-stack { height: 150px; }
}

@media (max-width: 480px) {
    .hero-image-simple .hero-bottom-blur {
        height: 80px;
    }
    
    .hero-card-stack {
        height: 150px;
    }
    
    .hero-card-stack-overlay {
        max-width: 100vw; /* 790px * 0.4 scale */
        height: 94px; /* 234px * 0.4 scale */
    }
}

@media screen and (max-width: 767px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 16px;
        padding: 0px 16px 0px 16px; /* Match header padding */
    }
    
    .hero-cta {
        width: 100%;
    }
    
    .btn-book-call {
        width: 100%;
        text-align: center;
        display: block;
    }
    
    .footer-copyright {
        white-space: normal !important; /* Allow wrapping on small mobile */
    }
}

/* Legacy Hero Images (kept for backward compatibility) */
.hero-images {
    height: 304px;
    width: 790px;
    max-width: 100%;
    position: relative;
    overflow: visible;
    margin: 0 auto;
}

.hero-bg-vector {
    position: absolute;
    bottom: -264.46px;
    left: -10%;
    width: 120%;
    max-width: 885.01px;
    height: auto;
    min-height: 434.637px;
    z-index: 0;
}

.hero-bg-vector img {
    width: 100%;
    height: auto;
    display: block;
}

.image-mask-group {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

/* Layer 1 - Executive Summary */
.mask-group-1 {
    bottom: -96.76px;
    left: 40.97px;
    position: absolute;
    z-index: 1;
}

.mask-group-1 .desktop-frame {
    width: 391.002px;
    height: 278.046px;
    background-color: #ffffff;
    /* border: 0.845px solid #c6c6c6; */
    border-radius: 8.868px;
    box-shadow: -8.552px 22.171px 21.759px 0px rgba(0, 0, 0, 0.1);
    transform: skewX(10.81deg);
    position: relative;
}

.mask-group-1 .desktop-content {
    position: absolute;
    bottom: -77.43px;
    left: 12.56px;
    width: 371.826px;
    height: 200.237px;
    transform: skewX(10.81deg);
    overflow: hidden;
    transform-origin: bottom left;
}

.mask-group-1 .desktop-content img {
    width: 120%;
    height: 120%;
    object-fit: cover;
    object-position: center center;
    position: absolute;
    top: -10%;
    left: -10%;
    display: block;
}

.mask-group-1 .ellipse-65 {
    position: absolute;
    left: 22.01px;
    top: 169.56px;
    width: 71.015px;
    height: 16.631px;
    mix-blend-mode: hard-light;
    opacity: 0.3;
}

.mask-group-1 .ellipse-65 img {
    width: 100%;
    height: 100%;
    display: block;
}

.mask-group-1 .ellipse-65 img,
.mask-group-2 .ellipse-64 img,
.mask-group-4 .ellipse-59 img {
    opacity: 0.5;
}

/* Layer 2 - Recruitment */
.mask-group-2 {
    bottom: -73.76px;
    left: 110.24px;
    position: absolute;
    z-index: 2;
}

.mask-group-2 .desktop-frame {
    width: 411.159px;
    height: 292.38px;
    background-color: #ffffff;
    /* border: 0.889px solid #c6c6c6; */
    border-radius: 9.326px;
    box-shadow: -8.992px 23.314px 22.881px 0px rgba(0, 0, 0, 0.1);
    transform: skewX(10.81deg);
    position: relative;
}

.mask-group-2 .desktop-content {
    position: absolute;
    bottom: -11.65px;
    left: 12.87px;
    width: 391.826px;
    height: 218.237px;
    transform: skewX(10.81deg);
    overflow: hidden;
    transform-origin: bottom left;
}

.mask-group-2 .desktop-content img {
    width: 120%;
    height: 120%;
    object-fit: cover;
    object-position: center center;
    position: absolute;
    top: -10%;
    left: -10%;
    display: block;
}

.mask-group-2 .ellipse-64 {
    position: absolute;
    left: 17.76px;
    top: 92px;
    width: 72px;
    height: 24px;
    mix-blend-mode: hard-light;
    opacity: 0.3;
}

.mask-group-2 .ellipse-64 img {
    width: 100%;
    height: 100%;
}

/* Layer 3 - Billing */
.mask-group-3 {
    bottom: -72.54px;
    left: 184.49px;
    position: absolute;
    z-index: 3;
}

.mask-group-3 .desktop-frame {
    width: 466.71px;
    height: 331.883px;
    background-color: #ffffff;
    /* border: 1.009px solid #c6c6c6; */
    border-radius: 10.585px;
    box-shadow: -10.207px 26.464px 25.972px 0px rgba(0, 0, 0, 0.1);
    transform: skewX(10.81deg);
    position: relative;
}

.mask-group-3 .desktop-content {
    position: absolute;
    bottom: -6.58px;
    left: 14.61px;
    width: 444.766px;
    height: 252.349px;
    transform: skewX(10.81deg);
    overflow: hidden;
    transform-origin: bottom left;
}

.mask-group-3 .desktop-content img {
    width: 120%;
    height: 120%;
    object-fit: cover;
    object-position: center center;
    position: absolute;
    top: -10%;
    left: -10%;
    display: block;
}

.mask-group-3 .ellipse-60 {
    position: absolute;
    width: 182.59px;
    height: 23.805px;
    mix-blend-mode: hard-light;
    opacity: 0.2;
}

.mask-group-3 .ellipse-60-1 {
    left: 66.01px;
    top: 159.35px;
}

.mask-group-3 .ellipse-60-2 {
    left: 75.01px;
    top: 190.35px;
}

.mask-group-3 .ellipse-60-3 {
    left: 75.01px;
    top: 221.35px;
}

.mask-group-3 .ellipse-60-4 {
    left: 75.01px;
    top: 252.35px;
}

/* Layer 4 - Training */
.mask-group-4 {
    bottom: -22.76px;
    left: 260.49px;
    position: absolute;
    z-index: 4;
}

.mask-group-4 .desktop-frame {
    width: 461.394px;
    height: 328.102px;
    background-color: #ffffff;
    /* border: 0.997px solid #c6c6c6; */
    border-radius: 10.465px;
    box-shadow: -10.091px 26.162px 25.676px 0px rgba(0, 0, 0, 0.1);
    transform: skewX(10.81deg);
    position: relative;
}

.mask-group-4 .desktop-content {
    position: absolute;
    bottom: 46.69px;
    left: 13.13px;
    width: 440.878px;
    height: 246.673px;
    transform: skewX(10.81deg);
    overflow: hidden;
    transform-origin: bottom left;
}

.mask-group-4 .desktop-content img {
    width: 120%;
    height: 120%;
    object-fit: cover;
    object-position: center center;
    position: absolute;
    top: -10%;
    left: -10%;
    display: block;
}

.mask-group-4 .ellipse-59 {
    position: absolute;
    left: 210.01px;
    top: 99.35px;
    width: 182.59px;
    height: 23.805px;
    mix-blend-mode: hard-light;
    opacity: 0.3;
}

.mask-group-4 .ellipse-59 img {
    width: 100%;
    height: 100%;
}

/* Bottom Blur Effect */
.hero-bottom-blur {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.95) 20%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0.5) 75%, rgba(255, 255, 255, 0) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 5;
    pointer-events: none;
}

.hero-image-simple .hero-bottom-blur {
    height: 200px;
}

/* Hero Heading */
.hero-heading {
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 56px;
    line-height: 1.2;
    color: #0d0d0d;
    text-align: center;
    letter-spacing: -3.2px;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Hero Features */
.hero-features {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.feature-item {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.check-icon {
    width: 24px;
    height: 24px;
    overflow: hidden;
    flex-shrink: 0;
}

.check-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

.feature-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.7;
    color: #0d0d0d;
    letter-spacing: -0.72px;
    white-space: nowrap;
}

/* CTA Button */
.hero-cta {
    margin-top: 0;
    position: relative;
    z-index: 1;
}

.btn-book-call {
    background-color: #0d0d0d;
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 32px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.7;
    letter-spacing: -0.6px;
    white-space: nowrap;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-book-call:hover {
    background-color: #333333;
}

/* Clients Section */
.clients-section {
    width: 100%;
    padding: 32px 0;
}

.clients-container {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 1073px;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

.clients-label {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 161px;
    border-radius: 10px;
}

.clients-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.7;
    color: #0d0d0d;
    letter-spacing: -0.54px;
    text-align: center;
    width: 100%;
    margin: 0;
}

.clients-logos {
    flex: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    min-height: 70px;
}

.clients-carousel-track {
    display: flex;
    align-items: center;
    animation: scroll-left 30s linear infinite;
    will-change: transform;
}

.clients-carousel-track:hover {
    animation-play-state: paused;
}

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

.client-logo {
    padding: 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    border-radius: 10px;
    flex-shrink: 0;
}

.client-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.blur-left,
.blur-right {
    position: absolute;
    background-color: #ffffff;
    filter: blur(25px);
    height: 140px;
    width: 148px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.blur-left {
    left: -60px;
}

.blur-right {
    right: -60px;
    width: 143px;
}

/* Page Styles */

.page-content {
    width: 100%;
}

.page-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #ebebeb;
}

.page-title {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 1.2;
    color: #0d0d0d;
    margin: 0;
    letter-spacing: -2.4px;
}

.page-entry-content {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: #0d0d0d;
}

.page-entry-content h2 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.3;
    color: #0d0d0d;
    margin: 40px 0 20px;
    letter-spacing: -1.8px;
}

.page-entry-content h3 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 1.3;
    color: #0d0d0d;
    margin: 32px 0 16px;
    letter-spacing: -1.4px;
}

.page-entry-content p {
    margin: 0 0 20px;
}

.page-entry-content ul,
.page-entry-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.page-entry-content li {
    margin: 10px 0;
}

.page-entry-content a {
    color: #0d0d0d;
    text-decoration: underline;
}

.page-entry-content a:hover {
    color: #333333;
}

.page-links {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #ebebeb;
    border-bottom: 1px solid #ebebeb;
}

.page-links a {
    display: inline-block;
    margin: 0 8px;
    padding: 8px 16px;
    background-color: #f5f5f5;
    border-radius: 4px;
    text-decoration: none;
}

.page-links a:hover {
    background-color: #e0e0e0;
}

/* Footer Styles */
.site-footer {
    background-color: #ffffff;
    border-top: 1px solid #ebebeb;
    width: 100%;
    z-index: 1;
    position: relative;
}

.footer-container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0;
}

.footer-inner {
    max-width: 1150px;
    margin: 0 auto;
    padding: 56px 0px;
}

.footer-content {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: #0d0d0d;
    letter-spacing: -0.48px;
    width: 100%;
    padding: 0px 48px;
}

.footer-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer-links a {
    color: #0d0d0d;
    text-decoration: none;
    white-space: nowrap;
}

.footer-links a:hover {
    opacity: 0.7;
}

.footer-copyright {
    margin: 0;
    white-space: nowrap; /* No wrap on desktop and tablets */
}

/* Menu Backdrop */
.menu-backdrop {
    display: none;
    position: fixed;
    top: 75px; /* Match menu top position */
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-backdrop.active {
    display: block;
    opacity: 1;
}

/* Mobile Menu Styles */
.main-navigation.menu-open {
    display: block !important;
    position: fixed;
    top: 75px; /* Just below header */
    left: 0;
    width: 90vw;
    height: calc(100% - 75px);
    background-color: #ffffff;
    z-index: 999;
    padding: 20px;
    overflow-y: auto;
}

.main-navigation.menu-open .nav-menu {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
}

.main-navigation.menu-open .nav-menu li {
    width: 100%;
}

.main-navigation.menu-open .nav-menu a {
    font-size: 18px;
    display: block;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 0;
    }
    
    .header-inner {
        padding: 16px 16px 14px 16px;
        flex-wrap: wrap;
    }
    
    .menu-toggle {
        display: flex;
        order: 1;
        margin-right: auto;
    }
    
    .logo-container {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        order: 2;
    }
    
    .header-cta {
        order: 3;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        border-bottom: 1px solid #ebebeb;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .menu-backdrop.active {
        display: block;
    }
    
    .main-navigation.menu-open {
        display: block;
        position: fixed;
        top: 75px; /* Just below header (16px top + 45px logo + 14px bottom = ~75px) */
        left: 0;
        width: 90vw;
        height: calc(100% - 75px);
        background-color: #ffffff;
        z-index: 999;
        padding: 20px;
        overflow-y: auto;
        animation: slideIn 0.3s ease-out;
    }
    
    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateX(-100%);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    .menu-toggle.menu-open {
        position: fixed;
        top: 14px;
        left: 16px;
        z-index: 1001;
        background-color: rgba(255, 255, 255, 0.9);
        border-radius: 4px;
    }
    
    .menu-toggle.menu-open .menu-close {
        display: flex !important;
        font-size: 32px;
        color: #0d0d0d;
        font-weight: 300;
    }
    
    .header-cta {
        display: none;
    }
    
    .header-inner::after {
        display: none; /* Hide third flex item on mobile */
    }
    
    body:not(.home) .site-footer {
        margin-bottom: 160.6px;
    }
    
    .hero-container {
        padding: 48px 16px;
    }
    
    .hero-images {
        height: auto;
        min-height: 150px;
        max-height: 300px;
        width: 100%;
        overflow: hidden;
    }
    
    .hero-bg-vector {
        display: none;
    }
    
    .hero-bottom-blur {
        height: 60px;
    }
    
    .image-mask-group {
        position: relative;
        width: 100% !important;
        max-width: 100%;
        left: 0 !important;
        bottom: 0 !important;
        margin-bottom: 15px;
    }
    
    .mask-group-1,
    .mask-group-2,
    .mask-group-3,
    .mask-group-4 {
        position: relative;
        width: 85% !important;
        max-width: 100%;
        left: 7.5% !important;
        bottom: 0 !important;
        margin: 0 auto 15px;
    }
    
    .mask-group-1 .desktop-frame,
    .mask-group-2 .desktop-frame,
    .mask-group-3 .desktop-frame,
    .mask-group-4 .desktop-frame {
        width: 100% !important;
        height: auto !important;
        transform: skewX(0deg);
    }
    
    .mask-group-1 .desktop-content,
    .mask-group-2 .desktop-content,
    .mask-group-3 .desktop-content,
    .mask-group-4 .desktop-content {
        width: 100% !important;
        height: auto !important;
        left: 0 !important;
        bottom: 0 !important;
        transform: skewX(0deg);
        position: relative !important;
    }
    
    .mask-group-1 .desktop-content img,
    .mask-group-2 .desktop-content img,
    .mask-group-3 .desktop-content img,
    .mask-group-4 .desktop-content img {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover;
    }
    
    .mask-group-3 .ellipse-60,
    .mask-group-1 .ellipse-65,
    .mask-group-2 .ellipse-64,
    .mask-group-4 .ellipse-59 {
        display: none;
    }
    
    .hero-title {
        font-size: 32px;
        letter-spacing: -1.6px;
    }
    
    .hero-features {
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
    }
    
    .clients-container {
        flex-direction: column;
        width: 100%;
    }
    
    .clients-logos {
        width: 100%;
        overflow: hidden;
    }
    
    .clients-carousel-track {
        animation-duration: 20s; /* Faster on mobile */
    }
    
    .client-logo {
        width: 120px;
        min-width: 120px;
        height: 60px; /* Consistent height on mobile */
    }
    
    .client-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }
    
    .footer-content {
        /* flex-direction: column; */
        gap: 24px;
        text-align: center;
        padding: 0px 16px 0px 16px; /* Match header padding */
    }
    
    .footer-links {
        flex-wrap: nowrap;
        align-items: center;
        width: 100%;
        justify-content: center;
    }
    
    .footer-copyright {
        width: 100%;
        white-space: nowrap; /* Allow wrapping on mobile */
    }
    
    .page-title {
        font-size: 32px;
        letter-spacing: -1.6px;
    }
    
    .page-entry-content {
        font-size: 16px;
    }
    
    .page-entry-content h2 {
        font-size: 28px;
        letter-spacing: -1.4px;
    }
    
    .page-entry-content h3 {
        font-size: 24px;
        letter-spacing: -1.2px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .header-inner {
        padding: 16px 16px 14px 16px;
    }
    
    .footer-content {
        padding: 0px 16px 0px 16px; /* Match header padding on tablets */
    }
    
    .hero-container {
        padding: 0 64px 40px;
    }
    
    .hero-title {
        font-size: 48px;
        letter-spacing: -2px;
    }
    
    /* Make card stack animation larger on tablets - centered with proportional offset */
    .hero-card-stack .carousel-wrapper {
        transform: translate(calc(-50% + 100px), -50%) scale(0.50);
    }
    
    .hero-images {
        height: auto;
        min-height: 250px;
        max-height: 350px;
        width: 100%;
        overflow: hidden;
    }
    
    .hero-bottom-blur {
        height: 80px;
    }
    
    .mask-group-1,
    .mask-group-2,
    .mask-group-3,
    .mask-group-4 {
        width: 50% !important;
    }
    
    .mask-group-1 {
        left: 3% !important;
    }
    
    .mask-group-2 {
        left: 10% !important;
    }
    
    .mask-group-3 {
        left: 17% !important;
    }
    
    .mask-group-4 {
        left: 24% !important;
    }
}

/* Site Main */
.site-main {
    min-height: 60vh;
}

.entry-content {
    max-width: 1150px;
    margin: 0 auto;
    padding: 40px 48px;
}

.entry-content p {
    margin-bottom: 1.5em;
}

