/* ==========================================
   WFX - Main Stylesheet
   ========================================== */

/* CSS Variables */
:root {
    /* Colors */
    --primary: #0052CC;
    --primary-dark: #003d99;
    --primary-light: #4d8fe0;
    --secondary: #00875A;
    --secondary-dark: #006644;
    --accent: #FF6B00;
    --accent-light: #ff8533;
    
    /* Neutrals */
    --dark: #0a1628;
    --dark-gray: #1a2942;
    --gray: #5c6c7c;
    --gray-light: #8c9bab;
    --light-gray: #e8ecf0;
    --off-white: #f5f7fa;
    --white: #ffffff;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0052CC 0%, #00875A 100%);
    --gradient-dark: linear-gradient(135deg, #0a1628 0%, #1a2942 100%);
    --gradient-accent: linear-gradient(135deg, #FF6B00 0%, #FF8533 100%);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    
    /* Spacing */
    --section-padding: 100px;
    --container-width: 1280px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

input, select, textarea {
    font-family: inherit;
    font-size: 1rem;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 82, 204, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 82, 204, 0.4);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

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

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

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

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary);
}

/* Secondary Light Button - For dark video backgrounds */
.btn-secondary-light {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    border: 2px solid var(--white);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-secondary-light:hover {
    background: var(--white);
    color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.5);
}

/* Primary Light Button - For dark backgrounds */
.btn-primary-light {
    background: var(--gradient-primary);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 82, 204, 0.5);
}

.btn-primary-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 82, 204, 0.7);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.05rem;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

/* Section Styles */
.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(0, 82, 204, 0.1) 0%, rgba(0, 135, 90, 0.1) 100%);
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 2.75rem;
    margin-bottom: 20px;
}

.section-description {
    font-size: 1.15rem;
    color: var(--gray);
    line-height: 1.7;
}

/* ==========================================
   Top Bar
   ========================================== */
.top-bar {
    background: var(--dark);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.85rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 24px;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-left i {
    color: var(--primary-light);
}

.top-bar-right {
    display: flex;
    gap: 20px;
}

.top-bar-right a {
    color: var(--gray-light);
    transition: var(--transition);
}

.top-bar-right a:hover {
    color: var(--white);
}

/* ==========================================
   Header & Navigation
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    gap: 20px;
    flex-wrap: nowrap;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-img {
    height: 32px;
    width: auto;
    max-width: none;
    object-fit: contain;
    object-position: left center;
    display: block;
}

@media (min-width: 768px) {
    .logo-img {
        height: 36px;
    }
}

@media (min-width: 1200px) {
    .logo-img {
        height: 40px;
    }
}

/* Footer Logo — small white border, large logo */
.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo .logo-img {
    height: auto;
    width: 200px;
    max-width: 100%;
    min-width: unset;
    filter: none;
    object-fit: contain;
    object-position: left center;
}

.footer-logo .logo-img.footer-logo-visible {
    filter: none;
    width: 200px;
    height: auto;
    max-width: 100%;
    background: white;
    padding: 10px 16px;
    border-radius: 8px;
    object-fit: contain;
    object-position: center;
}

@media (min-width: 768px) {
    .footer-logo .logo-img.footer-logo-visible {
        width: 220px;
        padding: 12px 18px;
    }
}

@media (min-width: 1200px) {
    .footer-logo .logo-img.footer-logo-visible {
        width: 240px;
        padding: 12px 20px;
    }
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--gradient-primary);
    border-radius: var(--radius);
    color: var(--white);
    font-size: 1.25rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.logo-highlight {
    color: var(--primary);
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-gray);
    border-radius: var(--radius);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--off-white);
}

.nav-link i {
    font-size: 0.7rem;
    transition: var(--transition);
}

.nav-item:hover .nav-link i {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 16px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu ul li a {
    display: block;
    padding: 12px 24px;
    color: var(--dark-gray);
    font-size: 0.95rem;
    transition: var(--transition);
}

.dropdown-menu ul li a:hover {
    background: var(--off-white);
    color: var(--primary);
}

/* Mega Menu */
.mega-menu {
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 900px;
    padding: 30px;
}

.nav-item:hover .mega-menu {
    transform: translateX(-50%) translateY(0);
}

.mega-menu-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.mega-menu-section h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
}

.mega-menu-section ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--dark-gray);
}

.mega-menu-section ul li a i {
    width: 20px;
    color: var(--primary);
}

.mega-menu-section ul li a:hover {
    color: var(--primary);
    background: none;
}

.mega-menu-featured {
    background: var(--off-white);
    border-radius: var(--radius);
    padding: 20px;
}

.mega-menu-featured img {
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.mega-menu-featured h4 {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 8px;
    border: none;
    padding: 0;
    text-transform: none;
    letter-spacing: 0;
}

.mega-menu-featured p {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 12px;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.nav-actions .btn {
    white-space: nowrap;
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 100px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

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

/* YouTube iframe scaled to cover the hero (16:9 fills any aspect ratio).
   pointer-events:none keeps it non-interactive — it's a background. */
.hero-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 56.25vw;       /* 16:9 from width */
    min-height: 100vh;
    min-width: 177.78vh;   /* 16:9 from height */
    pointer-events: none;
    border: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* No tint — the video shows at full clarity. Text readability is handled
       by text-shadow on the hero title/description instead of a dark overlay. */
    background: transparent;
}

.hero-content {
    position: relative;
    max-width: 800px;
}

.hero-badge {
    margin-bottom: 24px;
}

.hero-badge span {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(0, 135, 90, 0.2);
    color: #4ade80;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.hero-title {
    font-size: 3.75rem;
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #4ade80 50%, #60a5fa 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 50px;
}

.hero-trust {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-trust span {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.trust-logos {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.trust-logos img {
    height: 28px;
    filter: brightness(0) invert(1);
    opacity: 0.5;
    transition: var(--transition);
}

.trust-logos img:hover {
    opacity: 0.8;
}

.trust-logo-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition);
    padding: 8px 0;
}

.trust-logo-text:hover {
    color: rgba(255, 255, 255, 1);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.hero-scroll a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-scroll i {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(8px); }
    60% { transform: translateY(4px); }
}

/* ==========================================
   Trusted By Section
   ========================================== */
.trusted-by {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fc 0%, #eef1f7 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.trusted-by-content {
    text-align: center;
}

.trusted-by-label {
    display: block;
    font-size: 1rem;
    color: var(--gray);
    font-weight: 500;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.trusted-by-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px 40px;
}

.trust-logo-item {
    /* Visual treatment: emulates a "grayscale logo wall" using typography only.
       When real customer logos (with permission) are added, replace the text
       with <img> tags using filter: grayscale(1) opacity(0.65); */
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: #4b5563;       /* desaturated slate gray, mimicking dimmed brand logos */
    opacity: 0.75;
    transition: var(--transition);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    padding: 8px 4px;
    border-bottom: 2px solid transparent;
}

.trust-logo-item:hover {
    opacity: 1;
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Support for actual logo images. Usage:
   <a href="..." class="trust-logo-item trust-logo-img"><img src="logos/molex.png" alt="Molex"></a>
   Apply only AFTER obtaining usage permission from the customer. */
.trust-logo-item.trust-logo-img {
    padding: 0;
    border-bottom: none;
}
.trust-logo-item.trust-logo-img img {
    height: 40px;
    width: auto;
    filter: grayscale(1);
    opacity: 0.65;
    transition: var(--transition);
}
.trust-logo-item.trust-logo-img:hover img {
    filter: grayscale(0);
    opacity: 1;
}

@media (max-width: 768px) {
    .trusted-by {
        padding: 40px 0;
    }
    
    .trusted-by-label {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .trusted-by-logos {
        gap: 15px 25px;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 20px;
    }
    
    .trust-logo-item {
        font-size: 1rem;
    }
}

/* ==========================================
   Services Section
   ========================================== */
.services {
    padding: var(--section-padding) 0;
    background: var(--off-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    display: none;
}

.service-content {
    flex: 1;
    padding: 30px;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--dark);
}

.service-content p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-features {
    margin-bottom: 24px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--dark-gray);
}

.service-features li i {
    color: var(--secondary);
    font-size: 0.85rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary);
}

.service-link:hover {
    gap: 12px;
}

.service-image {
    width: 100%;
    height: 200px;
    flex-shrink: 0;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services-cta {
    text-align: center;
    margin-top: 80px;
    background: var(--off-white);
    padding: 90px 60px;
    border-radius: var(--radius-lg);
}

.services-cta p {
    color: var(--dark);
    margin-bottom: 35px;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.services-cta .btn {
    font-size: 1.25rem;
    padding: 20px 45px;
    font-weight: 600;
}

/* ==========================================
   Quote Section
   ========================================== */
.quote-section {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.quote-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.quote-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.quote-content > p {
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 40px;
}

.quote-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.quote-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.quote-feature i {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--off-white);
    color: var(--primary);
    font-size: 1.25rem;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.quote-feature h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.quote-feature p {
    font-size: 0.9rem;
    color: var(--gray);
}

.supported-formats span {
    display: block;
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 12px;
}

.format-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.format-tags span {
    padding: 6px 14px;
    background: var(--off-white);
    color: var(--dark-gray);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 50px;
}

/* Quote Form */
.quote-form-wrapper {
    background: var(--off-white);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.upload-zone {
    background: var(--white);
    border: 2px dashed var(--light-gray);
    border-radius: var(--radius-lg);
    padding: 50px 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 30px;
}

.upload-zone:hover {
    border-color: var(--primary);
    background: rgba(0, 82, 204, 0.02);
}

.upload-zone.dragover {
    border-color: var(--primary);
    background: rgba(0, 82, 204, 0.05);
}

.upload-zone i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.upload-zone h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.upload-zone p {
    color: var(--gray);
    margin-bottom: 16px;
}

.upload-hint {
    font-size: 0.8rem;
    color: var(--gray-light);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    background: var(--white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* ==========================================
   Process Section
   ========================================== */
.process {
    padding: var(--section-padding) 0;
    background: var(--gradient-dark);
    color: var(--white);
}

.process .section-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.process .section-title {
    color: var(--white);
}

.process .section-description {
    color: rgba(255, 255, 255, 0.7);
}

.process-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
}

.process-step {
    flex: 1;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    font-size: 1.75rem;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 82, 204, 0.3);
}

.step-content h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.step-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

.process-connector {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
    margin-top: 120px;
    flex-shrink: 0;
}

/* ==========================================
   Materials Section
   ========================================== */
.materials {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.materials-tabs {
    max-width: 1000px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray);
    background: var(--off-white);
    border-radius: 50px;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.material-card {
    background: var(--off-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: var(--transition);
    position: relative;
}

.material-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.material-card h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.material-card p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.5;
}

.material-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    background: var(--gradient-accent);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 50px;
}

.materials-cta {
    text-align: center;
    margin-top: 50px;
    padding: 50px 30px;
    background: var(--dark);
    border-radius: var(--radius-lg);
}

.materials-cta p {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
}

.materials-cta .btn {
    font-size: 1.1rem;
    padding: 16px 32px;
}

/* ==========================================
   Industries Section
   ========================================== */
.industries {
    padding: var(--section-padding) 0;
    background: var(--off-white);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.industry-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.industry-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.industry-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.industry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 22, 40, 0.6) 100%);
}

.industry-content {
    padding: 30px;
    position: relative;
}

.industry-content .industry-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 16px;
    margin-top: -55px;
    position: relative;
    box-shadow: var(--shadow);
}

.industry-content > .industry-link i {
    width: auto !important;
    height: auto !important;
    display: inline !important;
    background: none !important;
    margin: 0 !important;
    margin-top: 0 !important;
    box-shadow: none !important;
}

.industry-content h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.industry-content > p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.industry-content ul {
    margin-bottom: 20px;
}

.industry-content ul li {
    position: relative;
    padding-left: 16px;
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-bottom: 6px;
}

.industry-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--secondary);
    border-radius: 50%;
}

.industry-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.industry-link i.fa-arrow-right {
    width: auto !important;
    height: auto !important;
    display: inline !important;
    background: none !important;
    color: var(--primary) !important;
    font-size: 0.85rem !important;
    border-radius: 0 !important;
    margin: 0 !important;
    margin-top: 0 !important;
    box-shadow: none !important;
    position: static !important;
}

.industry-link:hover {
    gap: 12px;
}

/* ==========================================
   Why Us Section
   ========================================== */
.why-us {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.why-us-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: start;
}

.why-us-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.why-us-content > p {
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 40px;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature-item {
    display: flex;
    gap: 20px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--off-white);
    color: var(--primary);
    font-size: 1.5rem;
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.feature-text p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.why-us-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: var(--off-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    background: var(--gradient-primary);
    color: var(--white);
    transform: translateY(-5px);
}

.stat-card:hover .stat-icon,
.stat-card:hover .stat-value,
.stat-card:hover .stat-label {
    color: var(--white);
}

.stat-card .stat-icon {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.stat-card .stat-value {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: 0.9rem;
    color: var(--gray);
}

/* ==========================================
   Certifications Section
   ========================================== */
.certifications {
    padding: 80px 0;
    background: var(--dark);
}

.certifications-content {
    text-align: center;
}

.certifications-content h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 50px;
    font-weight: 700;
}

.cert-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    flex-wrap: wrap;
}

.cert-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.cert-item img {
    height: 70px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.cert-item span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 500;
}

.cert-text {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white) !important;
    opacity: 1;
    letter-spacing: 2px;
}

/* ==========================================
   Factory Tour Section
   ========================================== */
.factory-tour {
    padding: var(--section-padding) 0;
    background: var(--off-white);
}

.tour-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.tour-item {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.tour-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 30px;
    background: var(--gradient-primary);
    color: var(--white);
}

.tour-header i {
    font-size: 1.5rem;
}

.tour-header h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin: 0;
}

.video-container,
.ar-container {
    padding: 20px;
    min-height: 400px;
}

.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 360px;
    background: var(--dark);
    border-radius: var(--radius-lg);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.video-placeholder:hover {
    background: var(--dark-gray);
}

.video-placeholder i {
    font-size: 4rem;
    margin-bottom: 16px;
    color: var(--primary-light);
}

.video-placeholder p {
    font-size: 1rem;
    opacity: 0.8;
}

.video-placeholder .video-note {
    margin-top: 20px;
    font-size: 0.85rem;
    opacity: 0.6;
}

.ar-container iframe {
    border-radius: var(--radius-lg);
    width: 100%;
    height: 400px;
}

@media (max-width: 1024px) {
    .tour-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .video-container,
    .ar-container {
        padding: 15px;
        min-height: 300px;
    }
    
    .video-placeholder {
        height: 280px;
    }
    
    .ar-container iframe {
        height: 300px;
    }
}

/* ==========================================
   Testimonials Section
   ========================================== */
.testimonials {
    padding: var(--section-padding) 0;
    background: var(--off-white);
}

.testimonials-wrapper {
    overflow: hidden;
    width: 100%;
}

.testimonials-slider {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 20px);
    min-width: calc(33.333% - 20px);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

@media (max-width: 1200px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 15px);
        min-width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
}

.testimonial-content {
    padding: 40px;
}

.stars {
    color: #fbbf24;
    font-size: 1rem;
    margin-bottom: 20px;
}

.testimonial-content > p {
    font-size: 1.05rem;
    color: var(--dark-gray);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-author img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.testimonial-author span {
    font-size: 0.85rem;
    color: var(--gray);
}

.testimonial-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.nav-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 50%;
    color: var(--dark);
    transition: var(--transition);
}

.nav-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.nav-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    background: var(--light-gray);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 5px;
}

/* ==========================================
   News Section
   ========================================== */
.news {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    align-items: stretch;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.news-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-card.featured .news-image {
    height: 100%;
    min-height: 280px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.news-category {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 50px;
}

.news-content {
    padding: 30px;
}

.news-date {
    display: block;
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 12px;
}

.news-content h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-content p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.news-link:hover {
    gap: 12px;
}

.news-cta {
    text-align: center;
    margin-top: 50px;
}

/* ==========================================
   CTA Section
   ========================================== */
.cta-section {
    position: relative;
    padding: 100px 0;
    background: var(--gradient-primary);
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.75rem;
    color: var(--white);
    margin-bottom: 20px;
}

.cta-content > p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.cta-contact {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-contact span {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.phone-number {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding-top: 80px;
}

.footer-main {
    display: grid;
    grid-template-columns: 380px 1fr 250px;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: block;
    margin-bottom: 25px;
}

.footer-logo .logo-icon {
    background: var(--gradient-primary);
}

.footer-logo .logo-text {
    color: var(--white);
}

.footer-brand > p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

/* 6 icons in a 3-column grid → 2 rows, with larger circular buttons. */
.footer-social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 200px;
}
.footer-social-grid a {
    width: 52px;
    height: 52px;
    font-size: 1.35rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.hours-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    padding: 3px 0;
}
.hours-list li span:first-child {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}
.hours-list li.hours-tz {
    display: block;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
    font-style: italic;
}

.footer-column h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--white);
}

.footer-contact h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-contact address {
    font-style: normal;
}

.footer-contact address p {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.footer-contact address p i {
    color: var(--primary-light);
    margin-top: 4px;
}

.footer-contact address a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact address a:hover {
    color: var(--white);
}

.footer-hours {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-hours h5 {
    color: var(--white);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.footer-hours p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-certifications {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-certifications > span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.cert-badge {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* ==========================================
   Responsive Styles
   ========================================== */
@media (max-width: 1200px) {
    .mega-menu {
        width: 750px;
    }
    
    .mega-menu-content {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .mega-menu-featured {
        display: none;
    }
    
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card.featured {
        grid-column: auto;
    }
    
    .quote-wrapper {
        grid-template-columns: 1fr;
    }
    
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-us-wrapper {
        grid-template-columns: 1fr;
    }
    
    .why-us-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .testimonial-card {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 70px;
    }
    
    .top-bar {
        display: none;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 30px 30px;
        box-shadow: var(--shadow-xl);
        transition: var(--transition);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid var(--light-gray);
    }

    /* Mobile dropdown/mega-menu — tap to expand, hidden by default.
       Hover doesn't exist on touch — we wire explicit click handlers via JS. */
    .dropdown-menu,
    .mega-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        margin: 0;
        background: var(--off-white);
        border-radius: 0;
        transition: max-height 0.3s ease-out;
    }

    .nav-item.mobile-open .dropdown-menu,
    .nav-item.mobile-open .mega-menu {
        max-height: 1500px;  /* large enough to fit content; transitions smoothly */
        padding: 8px 0 16px 16px;
    }

    /* Show a chevron indicator on parents of dropdowns/mega-menus */
    .nav-item:has(.dropdown-menu) > .nav-link::after,
    .nav-item:has(.mega-menu) > .nav-link::after {
        content: '\f078';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 0.75rem;
        margin-left: auto;
        padding-left: 12px;
        color: var(--gray);
        transition: transform 0.2s;
    }
    .nav-item.mobile-open > .nav-link::after {
        transform: rotate(180deg);
    }

    /* Mega-menu mobile layout — single column, sections stack with breathing room */
    .mega-menu-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mega-menu-section h4 {
        font-size: 0.8rem;
        margin-top: 8px;
        margin-bottom: 8px;
        padding-bottom: 6px;
    }

    /* Mega-menu links → 48px tap targets per Apple HIG */
    .mega-menu-section ul li a,
    .dropdown-menu a {
        min-height: 48px;
        padding: 12px 8px;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    /* Hide the visual "featured" promo image on mobile (saves vertical space) */
    .mega-menu-featured {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .nav-actions .btn {
        display: none;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .stat-item {
        flex: 1 1 40%;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .trust-logos {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-card {
        flex-direction: column;
    }
    
    .service-image,
    .service-card:not(.featured) .service-image {
        width: 100%;
        height: 200px;
    }
    
    .process-timeline {
        flex-direction: column;
        gap: 40px;
    }
    
    .process-connector {
        display: none;
    }
    
    .materials-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .industries-grid {
        grid-template-columns: 1fr;
    }
    
    .why-us-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-slider {
        flex-direction: column;
    }
    
    .testimonial-card {
        flex: none;
        width: 100%;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-card.featured {
        grid-row: auto;
        grid-column: auto;
        grid-template-columns: 1fr;
    }
    .news-card.featured .news-image {
        min-height: 200px;
        height: 200px;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .cta-actions .btn {
        width: 100%;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-certifications {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 1.875rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .stat-item {
        flex: 1 1 100%;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
    }
    
    .materials-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .cert-logos {
        gap: 30px;
    }
}

/* ==========================================
   Animation Classes
   ========================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered animations */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ==========================================
   Enhanced Responsive Design
   ========================================== */

/* Extra large screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    .hero-title {
        font-size: 4.5rem;
    }
}

/* Large screens */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-title {
        font-size: 3rem;
    }
}

/* Medium screens - tablets */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-description {
        font-size: 1rem;
    }
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    .stat-item {
        flex: 0 0 45%;
    }
    .quote-wrapper {
        grid-template-columns: 1fr;
    }
    .why-us-wrapper {
        grid-template-columns: 1fr;
    }
    .tour-grid {
        grid-template-columns: 1fr;
    }
}

/* Small screens - mobile landscape */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .industries-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .trust-logos {
        gap: 20px;
    }
    .trust-logo-text {
        font-size: 0.9rem;
    }
    .section-title {
        font-size: 1.75rem;
    }
    .services-cta p,
    .materials-cta p {
        font-size: 1.6rem;
    }
    .cert-text {
        font-size: 1.5rem;
    }
    .certifications-content h3 {
        font-size: 1.5rem;
    }
}

/* Extra small screens - mobile portrait */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    .hero-stats {
        gap: 15px;
    }
    .stat-item {
        flex: 0 0 100%;
    }
    .stat-number {
        font-size: 1.5rem;
    }
    .service-content {
        padding: 20px;
    }
    .industry-content {
        padding: 20px;
    }
    .section-padding {
        padding: 60px 0;
    }
    .trust-logos {
        flex-direction: column;
        gap: 15px;
    }
}

/* ==========================================
   Language Switcher
   ========================================== */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: 8px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.lang-switcher a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0;
    border: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.lang-switcher a.lang-en {
    background: transparent;
    color: var(--gray);
    border-right: 1px solid var(--light-gray);
}

.lang-switcher a.lang-zh {
    background: transparent;
    color: var(--gray);
}

.lang-switcher a.active {
    background: var(--primary);
    color: white;
}

.lang-switcher a:hover:not(.active) {
    background: var(--off-white);
    color: var(--primary);
}

@media (max-width: 991px) {
    .lang-switcher {
        margin-left: 0;
        margin-top: 15px;
        justify-content: center;
    }
}

/* ==========================================
   Chinese Language Support
   ========================================== */
html[lang="zh-CN"] body,
html[lang="zh-CN"] .nav-link,
html[lang="zh-CN"] .btn,
html[lang="zh-CN"] h1,
html[lang="zh-CN"] h2,
html[lang="zh-CN"] h3,
html[lang="zh-CN"] h4,
html[lang="zh-CN"] h5,
html[lang="zh-CN"] h6,
html[lang="zh-CN"] p,
html[lang="zh-CN"] span,
html[lang="zh-CN"] a {
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', -apple-system, BlinkMacSystemFont, sans-serif;
}

html[lang="zh-CN"] .hero-title {
    font-size: 3rem;
    line-height: 1.3;
}

@media (max-width: 768px) {
    html[lang="zh-CN"] .hero-title {
        font-size: 2rem;
    }
}

/* ============================================================================
   Mobile Touch-Target Compliance (Apple HIG + WCAG 2.5.5 Level AAA)
   ============================================================================
   All interactive elements on touch devices should be at least 44x44 CSS pixels
   (Apple HIG) / 48x48 dp (Material Design). This prevents misclicks on dense
   navigation, especially on iPhone Pro Max and large-screen Android devices.
*/
@media (max-width: 768px), (pointer: coarse) {
    /* Primary navigation links */
    .nav-link,
    .mega-menu-link,
    .mobile-nav-link,
    .mega-menu a {
        min-height: 48px;
        display: flex;
        align-items: center;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    /* All buttons (anchor or button element) */
    .btn,
    button.btn,
    a.btn,
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        min-height: 48px;
        padding-top: 14px;
        padding-bottom: 14px;
        line-height: 1.4;
    }

    /* Smaller "btn-sm" variants stay tappable */
    .btn-sm,
    .btn-icon {
        min-height: 40px;
        min-width: 40px;
    }

    /* Form inputs and selects */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="url"],
    input[type="password"],
    input[type="number"],
    input[type="search"],
    select,
    textarea {
        min-height: 48px;
        font-size: 16px;  /* Prevents iOS Safari from zooming on focus */
    }
    textarea {
        min-height: 96px;
    }

    /* Footer links and social icons */
    footer a,
    .footer-links a,
    .social-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* Mobile sticky quick-contact (call/WhatsApp) — always visible */
    .mobile-quick-contact {
        position: fixed;
        bottom: 16px;
        right: 16px;
        z-index: 100;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .mobile-quick-contact a {
        width: 56px;
        height: 56px;
        border-radius: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        text-decoration: none;
        box-shadow: 0 4px 12px rgba(0,0,0,0.25);
        transition: transform 0.15s;
    }
    .mobile-quick-contact a:active {
        transform: scale(0.94);
    }
    .mobile-quick-contact .qc-call    { background: var(--primary); }
    .mobile-quick-contact .qc-mail    { background: #16a34a; }
    .mobile-quick-contact .qc-upload  { background: #d97706; }
    .mobile-quick-contact a i {
        font-size: 1.4rem;
    }
}

/* Hide the floating quick-contact on desktop */
@media (min-width: 769px) {
    .mobile-quick-contact {
        display: none;
    }
}

/* ============================================================================
   WhatsApp floating button + QR popup (all viewports)
   ============================================================================ */
.whatsapp-widget {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 200;
}
.whatsapp-float {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 22px rgba(37, 211, 102, 0.6);
    color: white;
}
.whatsapp-float:active {
    transform: scale(0.95);
}
.whatsapp-float i {
    font-size: 2rem;
}
/* Subtle pulse ring */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 30px;
    background: #25D366;
    opacity: 0.5;
    z-index: -1;
    animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse {
    0%   { transform: scale(1);   opacity: 0.5; }
    70%  { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1.5); opacity: 0; }
}
/* QR popup */
.whatsapp-popup {
    position: absolute;
    bottom: 74px;
    left: 0;
    width: 240px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    padding: 18px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.96);
    transform-origin: bottom left;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.whatsapp-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.whatsapp-popup h4 {
    margin: 0 0 12px;
    font-size: 0.95rem;
    color: #1a1a2e;
}
.whatsapp-popup img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}
.whatsapp-popup p {
    margin: 12px 0 0;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.5;
}
.whatsapp-popup p a {
    color: #128C7E;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}
.whatsapp-popup p a:hover { text-decoration: underline; }
.whatsapp-popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    cursor: pointer;
    color: #64748b;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.whatsapp-popup-close:hover { background: #e2e8f0; }

@media (max-width: 768px) {
    .whatsapp-widget {
        bottom: 16px;
        left: 16px;
    }
    .whatsapp-float {
        width: 56px;
        height: 56px;
    }
    .whatsapp-float::before { width: 56px; height: 56px; }
    .whatsapp-float i { font-size: 1.8rem; }
}
@media (prefers-reduced-motion: reduce) {
    .whatsapp-float::before { animation: none; }
}


/* ============================================================================
   WhatsApp QR in footer / contact section
   ============================================================================ */
.whatsapp-qr-block {
    margin-top: 16px;
}
.whatsapp-qr-block h5 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.whatsapp-qr-block h5 i { color: #25D366; }
.whatsapp-qr-block img {
    width: 150px;
    height: auto;
    border-radius: 8px;
    background: #fff;
    padding: 6px;
    display: block;
}
.whatsapp-qr-block p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    margin-top: 6px;
    max-width: 180px;
}


/* ============================================================================
   Content Protection (Public Pages Only)
   ============================================================================
   Disables text selection, drag, and image dragging on public marketing pages.
   This is a casual deterrent, NOT real security — anyone determined can still
   view source, use DevTools, or screenshot. The goal is to prevent
   unsophisticated copy-paste of marketing copy and product images.

   IMPORTANT exceptions (allowing selection/copy):
     - All form inputs and textareas (users must type/paste in quote form)
     - Anything tagged .copyable (use sparingly: emails, phones, addresses)
     - The entire /admin/ section (handled by NOT loading copy-protect.js there)
   ============================================================================ */

body.copy-protected {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Inputs ALWAYS keep selection — the quote form has to work */
body.copy-protected input,
body.copy-protected textarea,
body.copy-protected select,
body.copy-protected [contenteditable="true"],
body.copy-protected .copyable,
body.copy-protected .copyable * {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    -webkit-touch-callout: default !important;
}

/* Disable selection-color so users don't see fragments while trying */
body.copy-protected ::selection {
    background: transparent;
    color: inherit;
}
body.copy-protected ::-moz-selection {
    background: transparent;
    color: inherit;
}
/* Inputs still get a visible selection so users can edit text */
body.copy-protected input::selection,
body.copy-protected textarea::selection,
body.copy-protected .copyable ::selection {
    background: rgba(0, 82, 204, 0.25);
    color: inherit;
}

/* Block drag-and-save on images and videos */
body.copy-protected img,
body.copy-protected video {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: auto;  /* keep clickable */
}

/* Toast shown when user tries to copy/right-click */
.copy-protect-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(10, 22, 40, 0.95);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: var(--font-body);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
    max-width: 90vw;
    text-align: center;
}
.copy-protect-toast.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ============================================================================
   720yun VR Facade hover state
   ============================================================================ */
.vr-facade {
    transition: transform 0.2s ease;
}
.vr-facade:hover > div:nth-child(2) > div:first-child,
.vr-facade:focus-visible > div:nth-child(2) > div:first-child {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.25);
}
.vr-facade:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 4px;
}
