:root {
    --primary: #8B0000;
    /* Maroon Red */
    --primary-dark: #660000;
    --primary-light: #FDF2F2;
    --text-dark: #111827;
    --text-gray: #4B5563;
    --white: #FFFFFF;
    --bg-light: #F9FAFB;
    --border: #E5E7EB;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-outline-dark {
    border: 2px solid #000;
    color: #000;
    background: transparent;
}

.btn-outline-dark:hover {
    background-color: #f3f4f6;
    transform: translateY(-2px);
}

.btn-outline-dark svg {
    fill: #000;
}

.service-heading-small {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 0;
    border: none;
    width: 100%;
}

.service-heading-small::after {
    display: none;
    /* Removed trailing line for symmetric box look */
}

.service-grid-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    margin-top: 1.5rem;
    max-width: 550px;
    /* Prevents stretching on laptop */
    width: 100%;
}

.service-box-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border: 0.5px solid rgba(0, 0, 0, 0.05);
    text-decoration: none;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.5);
    /* Slight glass effect on transparent bg */
}

/* Review Marquee */
.review-marquee-wrapper {
    display: block;
    /* Visible on all screens now */
    width: 100%;
    overflow: hidden;
    background: transparent;
    padding: 0.5rem 0;
    /* Reduced height */
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    z-index: 5;
    margin-top: 0.5rem;
    /* Closer to text on desktop */
}

.hero .container {
    display: flex;
    flex-direction: column;
}

.reviews-desktop-grid {
    display: none;
    /* Hide static grid in favor of marquee */
}

@media (max-width: 991px) {
    .reviews-desktop-grid {
        display: none;
    }

    .review-marquee-wrapper {
        display: block !important;
        padding: 0.5rem 0 !important;
    }

    .services-marquee-mobile {
        display: none !important;
        /* Completely removed as requested */
    }

    .services-desktop-grid {
        display: none !important;
        /* Keeps focus on hero buttons */
    }

    .testimonials {
        padding: 3rem 0 !important;
    }

    .section-header {
        margin-bottom: 2rem !important;
    }

    .review-marquee-wrapper {
        order: -1 !important;
        /* Forces it to the very top in mobile */
        margin-top: 0 !important;
        margin-bottom: 1rem !important;
        /* Reduced from 2rem */
        /* Added more space below when on top */
    }

    .marquee-top-adjust {
        margin-top: 1.5rem !important;
        /* Fallback for tablet if needed */
    }

    .review-chip {
        min-height: auto !important;
        padding: 0.5rem 0.75rem !important;
        flex-direction: row !important;
        text-align: left !important;
        justify-content: flex-start !important;
        min-width: 260px !important;
        gap: 0.75rem !important;
        border-radius: 0.75rem !important;
    }

    .review-chip .review-img {
        width: 40px !important;
        height: 40px !important;
        flex-shrink: 0 !important;
    }

    .review-chip .review-meta {
        margin-top: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }

    .review-chip .review-meta h5 {
        margin: 0 !important;
        font-size: 0.8rem !important;
        line-height: 1.2 !important;
    }

    .review-chip .reviewer-label {
        display: none !important;
    }

    .review-chip .review-text {
        font-size: 0.65rem !important;
        -webkit-line-clamp: 1 !important;
        line-clamp: 1 !important;
        margin: 0 !important;
        opacity: 0.8 !important;
    }

    .laptop-only {
        display: none !important;
    }

}

/* mobile marquee speed */
.review-marquee-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: marquee 18s linear infinite;
    margin-top: 0.5rem;
    /* Increased speed to match client feel */
}

.review-chip {
    background: #fff;
    padding: 0.85rem 1.25rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border: 1px solid var(--border);
    max-width: 350px;
    transition: var(--transition);

}

.reviewer-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 0.2rem;
    display: block;
}

.review-img {
    width: 45px;
    /* Reduced for shorter cards */
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

.review-meta h5 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
    color: var(--text-dark);
    margin-top: 0;
}

.review-text {
    font-size: 0.8rem;
    color: var(--text-gray);
    font-style: italic;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Standard property */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trust-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-bottom: 1rem;
}

.modern-chip {
    background: rgba(139, 0, 0, 0.05);
    color: var(--primary);
    padding: 0.4rem 1.2rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(139, 0, 0, 0.1);
    transition: var(--transition);
}

.modern-chip:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.05);
}

.service-box-item {
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    transition: var(--transition);
    position: relative;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.service-box-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    filter: brightness(1.1);
}

.service-box-item.green-type {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    color: white !important;
}

.service-box-item.red-type {
    background: linear-gradient(135deg, #8B0000 0%, #660000 100%) !important;
    color: white !important;
}

.service-box-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 0.75rem;
    flex-shrink: 0;
    color: white !important;
}

.service-box-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: transparent;
}

.service-box-text {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.delivery-ribbon {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(90deg, #F9FAFB 0%, #fff 100%);
    padding: 0.75rem 1.25rem;
    border-left: 4px solid #10B981;
    border-radius: 0 8px 8px 0;
    margin-top: 1.5rem;
    color: #065F46;
    font-weight: 700;
    font-size: 0.95rem;
}

@media (max-width: 640px) {
    .service-grid-box {
        grid-template-columns: 1fr;
    }
}

.check-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.check-item span {
    color: #10B981;
    font-size: 1.25rem;
}

.service-list {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    flex-wrap: wrap;
    color: var(--text-gray);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.service-item svg {
    width: 18px;
    height: 18px;
    fill: var(--primary);
}

.service-item-urgent {
    color: var(--primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.service-icon-emoji {
    font-size: 1.1rem;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    box-shadow: 0 4px 6px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(37, 211, 102, 0.3);
}

.btn-email {
    background-color: #000000;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-email:hover {
    background-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.btn-call {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 6px rgba(139, 0, 0, 0.2);
}

.btn-call:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(139, 0, 0, 0.3);
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    transition: var(--transition);
}

nav.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 45px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    font-family: 'Outfit', sans-serif;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--text-gray);
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
}

.nav-links .btn {
    color: var(--white) !important;
}

.nav-links a:hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--white);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: var(--transition);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
}

.mobile-menu .btn {
    color: var(--white) !important;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
}

.overlay.active {
    display: block;
}

/* Hero Section */
.hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--white) 0%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 0, 0, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    /* Much bigger image! */
    align-items: center;
    gap: 3rem;
    /* Increased gap to help push right */
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    line-height: 1.1;
    color: #000;
}

.hero-text h1 span.desktop-line {
    display: inline;
    white-space: normal;
}

@media (min-width: 992px) {
    .hero-text h1 span.desktop-line {
        display: block;
        white-space: nowrap;
    }

    .hero-text h1 {
        font-size: 2.8rem !important;
        /* Smaller size to keep 2 lines in narrower space */
    }

    .hero-image {
        transform: translate(30px, 40px);
        /* Moved to the right and below */
    }
}

.hero-text h1 span.red-accent {
    color: var(--primary);
    /* Red */
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 400px;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 1.5rem;
    display: block;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1);
}

.hero-mobile-badge {
    display: none;
    text-align: center;
    margin-bottom: 0.5rem;
}

.hero-mobile-title {
    font-size: 1.25rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    margin-bottom: 1rem;
    display: block;
}

.hero-mobile-title span {
    color: var(--primary);
}

.hero-image img {
    width: 100%;
    border-radius: 1.5rem;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1);
}

.stats-floating {
    position: relative;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    padding: 1rem 1.5rem;
    border-radius: 1.25rem;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    border: 1px solid var(--border);
    z-index: 10;
    width: 100%;
    justify-content: space-around;
    margin-bottom: 1.5rem;
    box-shadow: none;
}

.hero-image {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0;
}

.stat-item {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Ticker / Scrolling Service */
.ticker-section {
    background-color: var(--primary);
    padding: 1rem 0;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-content {
    display: inline-block;
    animation: ticker 30s linear infinite;
}

.ticker-content span {
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    margin-right: 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Content sections: translation types, documents, languages, steps, FAQ */
.jtc-section {
    padding: 80px 0;
}

.jtc-section.alt {
    background-color: var(--bg-light);
}

.jtc-kicker {
    display: block;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.jtc-card-q {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.jtc-card-cta {
    display: inline-block;
    margin-top: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
}

.jtc-card-cta:hover {
    text-decoration: underline;
}

.jtc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.jtc-chip {
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--text-dark);
    padding: 0.45rem 1rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
}

a.jtc-chip:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.jtc-chip.soft {
    background: var(--primary-light);
    border-color: transparent;
    color: var(--primary);
}

.jtc-subhead {
    text-align: center;
    font-size: 1.15rem;
    margin: 2.5rem 0 1rem;
}

.jtc-doc-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.jtc-doc-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.75rem;
}

.jtc-doc-box h3 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.jtc-doc-box li {
    padding: 0.35rem 0 0.35rem 1.4rem;
    position: relative;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.jtc-doc-box li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 800;
}

.jtc-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    counter-reset: step;
}

.jtc-step {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.75rem;
}

.jtc-step::before {
    counter-increment: step;
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    margin-bottom: 1rem;
}

.jtc-step h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.jtc-step p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.jtc-faq {
    max-width: 850px;
    margin: 0 auto;
}

.jtc-faq details {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0 1.25rem;
}

.jtc-faq summary {
    cursor: pointer;
    font-weight: 700;
    padding: 1rem 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
}

.jtc-faq summary::-webkit-details-marker {
    display: none;
}

.jtc-faq summary::after {
    content: "+";
    color: var(--primary);
    font-size: 1.4rem;
    line-height: 1;
}

.jtc-faq details[open] summary::after {
    content: "–";
}

.jtc-faq details p {
    padding: 0 0 1.1rem;
    color: var(--text-gray);
}

.jtc-cta-band {
    text-align: center;
    margin-top: 2.5rem;
}

@media (max-width: 640px) {
    .jtc-section {
        padding: 50px 0;
    }
}

/* Why Us Section */
.why-us {
    padding: 100px 0;
}

.why-us-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.why-us-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.why-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-icon {
    color: var(--primary);
    font-size: 1.5rem;
}

.feature-item h4 {
    font-size: 1.1rem;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Clients Section */
.clients {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.client-logos {
    display: flex;
    align-items: center;
    gap: 5rem;
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
    padding: 1rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.client-logos::-webkit-scrollbar {
    display: none;
}

.client-marquee-container {
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.client-logos img {
    height: 70px;
    filter: none !important;
    opacity: 1 !important;
    transition: var(--transition);
    flex-shrink: 0;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.client-logos:hover {
    animation-play-state: paused;
}

/* About Us Section */
.about {
    padding: 50px 0;
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-gray);
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
}

.stars {
    color: #FBBF24;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.author-info p {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
}

.c-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.c-text h4 {
    margin-bottom: 0.25rem;
}

.c-text p {
    color: var(--text-gray);
}

.map-container {
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    height: 450px;
}

/* Footer */
footer {
    background: linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 100%);
    color: var(--text-dark);
    padding: 100px 0 50px;
    border-top: 1px solid var(--border);
}

.footer-top-text {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.footer-heading {
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.footer-subheading {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 5rem;
    max-width: 600px;
    margin-left: 0;
    margin-right: auto;
}

.footer-contact-container {
    text-align: left;
}

.footer-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 6rem;
}

.footer-col-new {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 3rem 1.5rem;
    background: var(--white);
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: center;
}

.footer-col-new:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

.footer-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.footer-col-new h4 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    font-family: 'Outfit';
}

.footer-col-new p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.footer-col-new a {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: underline;
    text-underline-offset: 4px;
    word-break: break-all;
}

.footer-col-new a:hover {
    color: var(--primary);
}

.footer-bottom-new {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding-top: 50px;
    border-top: 1px solid var(--border);
}

.footer-logo-small {
    height: 50px;
    margin-bottom: 0.5rem;
}

.footer-social-new {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-social-new a {
    font-size: 1.5rem;
    color: var(--text-gray);
    transition: var(--transition);
}

.footer-social-new a:hover {
    color: var(--primary);
    transform: scale(1.2);
}

.footer-copy {
    font-size: 0.95rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* Floating Actions Bar */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2000;
}

.float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    text-decoration: none;
    position: relative;
}

.float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.float-whatsapp {
    background-color: #25D366;
}

.float-call {
    background-color: var(--primary);
}

.float-email {
    background-color: #000000;
}

.float-btn svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.float-btn .tooltip {
    position: absolute;
    right: 70px;
    background: #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    white-space: nowrap;
    pointer-events: none;
}

.float-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

@keyframes float-bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.float-whatsapp {
    animation: float-bounce 3s infinite;
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-content {
        gap: 2rem;
    }

    .stats-floating {
        position: absolute;
        padding: 1rem 1.25rem;
        gap: 1.5rem;

        bottom: 1rem;
        flex-direction: row;
        margin-bottom: 0;
        width: fit-content;
        justify-content: flex-start;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .hero-image {
        display: block;
    }
}

@media (max-width: 991px) {
    .service-heading-small {
        text-align: left;
        justify-content: flex-start;
        width: 100%;
        font-size: 1.75rem !important;
        letter-spacing: -0.5px !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
        margin-top: 0 !important;
        /* Reduced for tighter feel */
        margin-bottom: 1rem !important;
        /* Reduced for tighter feel */
        color: var(--primary) !important;
        text-transform: none !important;
    }

    .hero-text h1 {
        font-size: 2.8rem;
        text-align: center;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image {
        order: -1;
        /* Image first on tablet/mobile */
        margin-top: 0;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 40px 0 20px !important;
        /* Further reduced for tighter mobile layout */
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-text {
        display: contents;
    }

    .hero-image {
        display: contents;
    }

    .hero-image img {
        margin-top: -1.75rem !important;
        /* Pull image up on mobile */
    }

    .hero-text h1 {
        display: none !important;
        /* Hide original top headline on mobile */
    }

    .mobile-only-headline {
        display: block !important;
        font-size: 1.55rem !important;
        /* Slightly smaller to prevent 4-line breaks */
        line-height: 1.25 !important;
        margin-top: -1.75rem !important;
        /* Negative margin to pull closer */
        margin-bottom: 0.75rem !important;
        text-align: left !important;
        font-weight: 800 !important;
        color: #000 !important;
        /* Black for first part */
        max-width: 100% !important;
        /* Increased to use full screen width */
    }

    .mobile-red-text {
        color: var(--primary) !important;
        /* Red for second part */
    }

    /* Mobile Service Grid to Buttons */
    .service-grid-box {
        grid-template-columns: 1fr !important;
        /* Stack as buttons */
        gap: 0.75rem !important;
        background: transparent !important;
        backdrop-filter: none !important;
        border: none !important;
        padding: 0 !important;
        margin-top: 0.5rem !important;
    }

    .service-box-item {
        border-radius: 1rem !important;
        border: none !important;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
        padding: 1.25rem 1.5rem !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 1rem !important;
        transition: var(--transition) !important;
        position: relative !important;
    }

    .service-box-item::after {
        content: '→';
        position: absolute;
        right: 1.5rem;
        color: white;
        font-size: 1.2rem;
        font-weight: bold;
        opacity: 0.8;
    }

    .service-box-item:active {
        transform: scale(0.96) !important;
        filter: brightness(1.1);
    }

    .service-box-icon {
        width: 36px !important;
        height: 36px !important;
        background: rgba(255, 255, 255, 0.25) !important;
        backdrop-filter: blur(5px);
        border-radius: 0.75rem !important;
        order: 0 !important;
        /* Icon first */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .service-box-icon svg {
        width: 22px !important;
        height: 22px !important;
        stroke: #fff !important;
        fill: transparent !important;
        /* Fix for Online (Globe) icon visibility */
    }

    .service-box-icon span {
        color: white !important;
        /* Fix for '24H' text icon */
    }

    .service-box-text {
        font-size: 1.1rem !important;
        font-weight: 800 !important;
        color: white !important;
        letter-spacing: -0.2px;
    }

    .green-type {
        background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    }

    .red-type {
        background: linear-gradient(135deg, #8B0000 0%, #660000 100%) !important;
    }

    .stats-floating {
        position: relative !important;
        padding: 0.5rem 0.75rem !important;
        gap: 0.5rem !important;
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        justify-content: space-around !important;
        background: white !important;
        margin-top: 0.5rem !important;
        /* Pull stats closer to image/marquee */
        border-radius: 0.75rem !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
        z-index: 5 !important;
    }

    .stats-floating .stat-num {
        font-size: 1.15rem !important;
        font-weight: 800 !important;
    }

    .stats-floating .stat-label {
        font-size: 0.75rem !important;
    }

    .hero-image img {
        order: 3;
        display: block;
        max-width: 100%;
        margin: 0 0 1.5rem 0;
    }

    .hero-highlights {
        order: 4;
        align-items: flex-start !important;
        margin-top: 0 !important;
    }

    .hero-highlights>div {
        justify-content: flex-start !important;
    }

    .hero-ctas {
        order: 5;
        justify-content: flex-start !important;
    }

    .hero-text p {
        order: 6;
        text-align: left;
        margin-bottom: 0 !important;
        /* Reduced for tighter mobile feel */
    }


    .about-image {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 1rem !important;
    }

    .why-us-content {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .hero-mobile-badge {
        display: none !important;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .footer-contact-container {
        text-align: center !important;
    }

    .footer-subheading {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .footer-grid-new {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1rem !important;
        text-align: left !important;
    }

    .footer-col-premium {
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
    }

    .footer-icon-circle {
        width: 32px !important;
        height: 32px !important;
        border-radius: 8px !important;
        margin-bottom: 0.5rem !important;
    }

    .footer-icon-circle svg {
        width: 16px !important;
        height: 16px !important;
    }

    .footer-col-premium h4 {
        font-size: 0.9rem !important;
    }

    .footer-col-premium p {
        font-size: 0.7rem !important;
        line-height: 1.2 !important;
        display: block !important;
        /* Keep text but small */
    }

    .footer-col-premium a span,
    .footer-col-premium a,
    .footer-col-premium address,
    .footer-col-premium .contact-link {
        font-size: 0.8rem !important;
        font-weight: 700 !important;
    }

    .footer-col-premium p {
        font-size: 0.65rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.25rem !important;
    }

    .footer-grid-new {
        gap: 0.75rem !important;
    }

    .whatsapp-card {
        padding: 1rem !important;
        background: #F0FFF4 !important;
        /* Soft Green */
        border: 1px solid #C6F6D5 !important;
        border-radius: 1rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.75rem !important;
        color: #2F855A !important;
        font-weight: 700 !important;
        text-decoration: none !important;
        margin-top: -0.5rem !important;
        margin-bottom: 2rem !important;
        font-size: 0.95rem !important;
    }

    .whatsapp-card:active {
        background: #C6F6D5 !important;
        transform: scale(0.98);
    }

    /* Laptop Manual Scroll Reset */
    .client-logos {
        animation: marquee 20s linear infinite !important;
        width: max-content !important;
        justify-content: flex-start !important;
        overflow-x: visible !important;
    }

    .client-marquee-container {
        overflow: hidden !important;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    /* Mobile Horizontal Scrolls */
    .client-logos {
        display: flex !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        gap: 2rem !important;
        padding: 1rem !important;
        justify-content: flex-start !important;
        scrollbar-width: none;
        /* Firefox */
    }

    .client-logos::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .client-logos img {
        flex: 0 0 auto;
        height: 50px;
    }

    .services-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: 1rem !important;
        padding: 1rem !important;
        scrollbar-width: none;
    }

    .services-grid::-webkit-scrollbar {
        display: none;
    }

    .service-card {
        flex: 0 0 65%;
        scroll-snap-align: center;
        padding: 1rem !important;
    }

    .service-card h3 {
        font-size: 1rem !important;
    }

    .service-card p {
        font-size: 0.8rem !important;
    }

    .service-icon {
        width: 40px !important;
        height: 40px !important;
        margin-bottom: 1rem !important;
    }

    .service-icon svg {
        width: 24px !important;
        height: 24px !important;
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* FINAL MOBILE OVERRIDES (Fixed Height & Clamping) */
@media (max-width: 991px) {
    .testimonials-marquee .review-marquee-track {
        align-items: flex-start !important;
        display: flex !important;
        gap: 1.5rem !important;
    }

    /* Highly specific selector with fixed dimensions */
    section#reviews .testimonials-marquee .review-chip {
        min-width: 310px !important;
        height: 120px !important;
        min-height: 120px !important;
        padding: 12px 16px !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        background: white !important;
        border: 1px solid var(--border) !important;
        border-radius: 12px !important;
        overflow: hidden !important;
    }

    section#reviews .testimonials-marquee .review-meta h5 {
        font-size: 0.95rem !important;
        margin-bottom: 2px !important;
        margin-top: 0 !important;
        line-height: 1.2 !important;
    }

    section#reviews .testimonials-marquee .review-text {
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        /* Limits text to 3 lines */
        line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        font-size: 0.82rem !important;
        line-height: 1.4 !important;
        overflow: hidden !important;
        white-space: normal !important;
        opacity: 0.9 !important;
        color: #4B5563 !important;
    }
}

/* Landing pages (sworn, certified, languages, ...) */
.jtc-page-hero {
    padding: 140px 0 60px;
    background: var(--primary-light);
}

.jtc-page-hero h1 {
    font-size: 2.6rem;
    margin-bottom: 1rem;
    max-width: 800px;
}

.jtc-crumbs {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.jtc-crumbs a {
    color: var(--primary);
    font-weight: 600;
}

.jtc-lead {
    font-size: 1.15rem;
    color: var(--text-gray);
    max-width: 700px;
    margin-bottom: 1.5rem;
}

.jtc-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.jtc-hero-chips {
    justify-content: flex-start;
}

.jtc-prose {
    max-width: 800px;
}

.jtc-prose h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.jtc-prose p {
    color: var(--text-gray);
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.jtc-quote {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.jtc-quote .jtc-stars {
    color: #FBBF24;
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.jtc-quote blockquote {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.jtc-quote figcaption {
    font-weight: 700;
    color: var(--primary);
}

@media (max-width: 640px) {
    .jtc-page-hero {
        padding: 110px 0 40px;
    }

    .jtc-page-hero h1 {
        font-size: 1.9rem;
    }
}

.btn .wa-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Marquees (clients + services). JS duplicates the items, CSS scrolls half the track. */
.marquee {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
}

.marquee-track.is-running {
    animation: marquee-scroll var(--marquee-speed, 20s) linear infinite;
}

.marquee:hover .marquee-track.is-running {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    to {
        transform: translateX(-50%);
    }
}

/* margin (not gap) keeps the -50% loop point exact */
.client-track {
    --marquee-speed: 14s;
    padding: 1rem 0;
}

.client-track img {
    height: 70px;
    width: auto;
    margin-right: 4rem;
    flex: 0 0 auto;
}

.service-track {
    --marquee-speed: 26s;
    align-items: stretch;
    padding: 1rem 0;
}

.marquee-card {
    flex: 0 0 300px;
    width: 300px;
    margin-right: 1.5rem;
    padding: 1.75rem;
    white-space: normal;
}

.marquee-card:hover {
    transform: none;
}

@media (max-width: 768px) {
    .client-track img {
        height: 50px;
        margin-right: 2.5rem;
    }

    .marquee-card {
        flex-basis: 260px;
        width: 260px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .marquee {
        overflow-x: auto;
    }

    .marquee-track.is-running {
        animation: none;
    }
}

.footer-links {
    margin-top: 3rem;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

.footer-links strong {
    width: 100%;
    margin-bottom: 0.25rem;
}

.footer-links a {
    opacity: 0.85;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.jtc-faq-sub {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--primary);
    margin-bottom: 0.4rem;
}

.jtc-faq-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    color: #128C4A;
    text-decoration: underline;
}

.jtc-faq-link:hover {
    color: #0b6b37;
}

.jtc-faq-link .wa-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Keep the header on one line between the mobile-menu breakpoint and wide desktop */
.nav-links a {
    white-space: nowrap;
}

@media (min-width: 992px) and (max-width: 1250px) {
    .nav-links {
        gap: 1rem;
    }

    .nav-links .btn-email {
        display: none;
    }
}
