:root {
    --primary-color: #002147;
    --secondary-color: #fd7e14;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #1a1a1a;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Language Switching */
body.lang-en .lang-cn { display: none !important; }
body.lang-cn .lang-en { display: none !important; }

/* Hide Google Translate Toolbar */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}
body {
    top: 0px !important;
}
#google_translate_element {
    display: none;
}
/* Ensure tooltip is hidden if annoying */
.goog-tooltip {
    display: none !important;
}
.goog-tooltip:hover {
    display: none !important;
}
.goog-text-highlight {
    background-color: transparent !important;
    border: none !important; 
    box-shadow: none !important;
}

/* WhatsApp Floating Button */
.floating-cta {
    position: fixed;
    right: 24px;
    bottom: calc(24px + env(safe-area-inset-bottom));
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.whatsapp-float {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.floating-cta .whatsapp-float {
    position: static;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #FFF;
    transform: scale(1.1);
}

.whatsapp-icon {
    margin-top: 2px; /* Slight adjustment for visual centering */
}

.sample-float {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--secondary-color);
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 2px 2px 3px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    line-height: 1;
    white-space: nowrap;
}

.sample-float:hover {
    background: #e36a09;
    transform: translateY(-1px);
    box-shadow: 2px 6px 14px rgba(0,0,0,0.18);
}

.sample-float:focus-visible,
.whatsapp-float:focus-visible {
    outline: 3px solid rgba(253, 126, 20, 0.35);
    outline-offset: 3px;
}

@media (max-width: 576px) {
    body {
        padding-bottom: 120px;
    }

    .floating-cta {
        right: 14px;
        bottom: calc(14px + env(safe-area-inset-bottom));
        gap: 8px;
    }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 28px;
    }

    .sample-float {
        padding: 9px 12px;
        font-size: 14px;
    }
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding-top: 1rem;
    padding-bottom: 1rem;
    background-color: white;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
}

.nav-link {
    color: var(--primary-color);
    font-weight: 500;
    margin: 0 5px;
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary-color) !important;
}

.btn-quote {
    background-color: var(--secondary-color);
    color: white !important;
    border-radius: 25px;
    padding: 8px 25px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-quote:hover {
    background-color: #e36a09;
    transform: translateY(-2px);
    color: white !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    /* height: 80vh; */
    /* min-height: 500px; */
    background-color: var(--primary-color);
    color: white;
}

.carousel-item {
    height: 80vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 33, 71, 0.5); /* Dark blue overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    z-index: 2;
    padding: 20px;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.hero-single {
    min-height: 78vh;
    display: flex;
    align-items: center;
    padding: 140px 0 90px;
    background: linear-gradient(rgba(0, 33, 71, 0.78), rgba(0, 33, 71, 0.78)), url('../assets/images/contact-bg.webp');
    background-size: cover;
    background-position: center;
}

.hero-single h1 {
    font-size: 3.1rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 18px;
}

.hero-single .hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 26px;
}

.btn-hero-primary {
    background-color: #00d084;
    color: #0b1f2a !important;
    border-radius: 28px;
    padding: 12px 28px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0, 208, 132, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-hero-primary:hover {
    background-color: #00bf79;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 208, 132, 0.35);
}

.trust-strip {
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.trust-strip .trust-title {
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.2px;
}

.trust-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding: 6px 2px;
    -webkit-overflow-scrolling: touch;
}

.trust-badge-item {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 999px;
    background: #fff;
    color: var(--primary-color);
    font-weight: 600;
    white-space: nowrap;
}

.trust-badge-item i {
    color: var(--secondary-color);
}

.pain-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 33, 71, 0.06);
    color: var(--primary-color);
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.lead-magnet-mockup {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0,0,0,0.12);
    background: radial-gradient(1200px 500px at 20% 0%, rgba(0, 208, 132, 0.25), rgba(0,0,0,0)) , linear-gradient(135deg, #0b2a4a, #00152e);
    color: #fff;
}

.lead-magnet-mockup .mockup-top {
    padding: 22px 22px 0;
}

.lead-magnet-mockup .mockup-title {
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 10px;
}

.lead-magnet-mockup .mockup-subtitle {
    opacity: 0.9;
    margin: 0 0 14px;
}

.lead-magnet-mockup .mockup-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    opacity: 0.92;
    font-weight: 600;
    font-size: 0.95rem;
}

.lead-magnet-mockup .mockup-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
}

.lead-magnet-mockup .mockup-bottom {
    padding: 18px 22px 22px;
}

.lead-magnet-mockup .mockup-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
}

.lead-magnet-mockup .mockup-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    font-size: 0.95rem;
}

.lead-magnet-mockup .mockup-table tr:last-child td {
    border-bottom: none;
}

.dropdown-menu.mega-menu {
    width: min(720px, calc(100vw - 2rem));
    padding: 16px;
}

.dropdown-menu.mega-menu .mega-title {
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 6px;
}

.dropdown-menu.mega-menu .mega-link {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.dropdown-menu.mega-menu .mega-link:hover {
    background: rgba(0, 33, 71, 0.06);
    color: var(--secondary-color);
}

@media (max-width: 991.98px) {
    .hero-single {
        min-height: auto;
        padding: 120px 0 70px;
    }
    .hero-single h1 {
        font-size: 2.25rem;
    }
    .hero-single .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* Cards & Sections */
.section-padding {
    padding: 80px 0;
}

.section-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.card {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* Product Catalog Card Styles */
.product-catalog-card {
    transition: all 0.3s ease;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05) !important;
}

.product-catalog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 33, 71, 0.08) !important;
}

.category-badge {
    display: inline-block;
    padding: 2px 10px;
    background: rgba(0, 33, 71, 0.05);
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.product-meta-info code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.tco-hint-link {
    transition: all 0.2s ease;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
}

.tco-hint-link:hover {
    color: var(--secondary-color) !important;
    background: rgba(253, 126, 20, 0.08);
    transform: scale(1.02);
}

.text-decoration-none:hover .card-title {
    color: var(--secondary-color) !important;
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.feature-icon-box {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
    height: 100%;
}

.feature-icon-box:hover {
    transform: translateY(-5px);
    background: var(--primary-color);
}

.feature-icon-box:hover h4, .feature-icon-box:hover p, .feature-icon-box:hover i {
    color: white !important;
}

.feature-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    transition: color 0.3s;
}

.bg-primary-custom {
    background-color: var(--primary-color);
    color: white;
}

/* Forms */
.form-control {
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(253, 126, 20, 0.25);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 20px;
}

footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 20px;
}

footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--secondary-color);
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    text-align: center;
    line-height: 35px;
    border-radius: 50%;
    margin-right: 10px;
}

.social-links a:hover {
    background: var(--secondary-color);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
}
