/* ===================================
   YBS Cables - Modern Website Styles
   =================================== */

/* CSS Variables */
:root {
    /* Brand Colors - Vibrant Teal */
    --primary: #1A9D77;
    --primary-dark: #158563;
    --primary-light: #22B88A;
    --secondary: #1A1A2E;
    --secondary-light: #16213E;

    /* Category Colors */
    --audio-color: #1A9D77;
    --elevator-color: #0A7B7F;
    --industrial-color: #2D3436;
    --loadcell-color: #1E3A5F;

    /* Neutrals */
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;

    /* Accent */
    --success: #10B981;
    --warning: #F59E0B;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --section-padding: 100px;
    --container-width: 1200px;

    /* Transitions */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    /* Border Radius */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

.lead {
    font-size: 1.125rem;
    color: var(--gray-600);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--gray-800);
    border-color: var(--gray-300);
}

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

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

.btn-white:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

.btn-block {
    width: 100%;
}

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

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

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo img {
    height: 52px;
    width: auto;
}

.logo-ybs {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
}

.logo-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-menu a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-700);
    padding: 8px 0;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: none;
}

.dropdown > a {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown > a i {
    font-size: 0.625rem;
    transition: var(--transition);
}

.dropdown:hover > a i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 200px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.875rem;
}

.dropdown-menu li a:hover {
    background: var(--gray-50);
}

.nav-cta {
    margin-left: 16px;
}

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

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gray-800);
    transition: var(--transition);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: calc(100vh - 80px);
    max-height: 800px;
    display: flex;
    align-items: center;
    padding: 100px 20px 60px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 50%, var(--gray-100) 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(227, 30, 36, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(10, 123, 127, 0.05) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    max-width: 650px;
    z-index: 2;
    margin-left: calc((100vw - var(--container-width)) / 2 + 20px);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-badge i {
    font-size: 1rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 4.2vw, 3.5rem);
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-700) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

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

/* Hero Visual */
.hero-visual {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-animation {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 420px;
}

.cable-animation {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.15));
}

/* Cable strand animations */
.cable-strand {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: drawCable 2s ease-out forwards;
}

.cable-audio { animation-delay: 0s; }
.cable-audio-inner { animation-delay: 0.3s; stroke-dasharray: 600; stroke-dashoffset: 600; }
.cable-elevator { animation-delay: 0.4s; }
.cable-elevator-inner { animation-delay: 0.7s; stroke-dasharray: 600; stroke-dashoffset: 600; }
.cable-industrial { animation-delay: 0.8s; }
.cable-industrial-inner { animation-delay: 1.1s; stroke-dasharray: 600; stroke-dashoffset: 600; }

@keyframes drawCable {
    to { stroke-dashoffset: 0; }
}

/* Connector nodes pulse */
.node {
    opacity: 0;
    animation: nodeAppear 0.5s ease-out forwards, nodePulse 2s ease-in-out infinite;
}

.node-1 { animation-delay: 1.5s, 2s; }
.node-2 { animation-delay: 1.7s, 2.2s; }
.node-3 { animation-delay: 1.9s, 2.4s; }

@keyframes nodeAppear {
    from { opacity: 0; transform: scale(0); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes nodePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Copper core glow */
.copper-core {
    opacity: 0;
    animation: coreGlow 0.3s ease-out forwards, coreShine 3s ease-in-out infinite;
}

.copper-core:nth-child(4) { animation-delay: 1.6s, 2.1s; }
.copper-core:nth-child(5) { animation-delay: 1.8s, 2.3s; }
.copper-core:nth-child(6) { animation-delay: 2s, 2.5s; }

@keyframes coreGlow {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes coreShine {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.5); }
}

/* Floating industry icons */
.floating-icons {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.float-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    opacity: 0;
    animation: iconFloat 4s ease-in-out infinite, iconAppear 0.5s ease-out forwards;
}

.icon-audio {
    background: linear-gradient(135deg, #1A9D77, #158563);
    top: 5%;
    left: 25%;
    animation-delay: 2s, 2s;
}

.icon-elevator {
    background: linear-gradient(135deg, #158563, #0F6B4F);
    top: 15%;
    right: 15%;
    animation-delay: 2.3s, 2.3s;
}

.icon-industrial {
    background: linear-gradient(135deg, #64748B, #475569);
    top: 5%;
    right: 5%;
    animation-delay: 2.6s, 2.6s;
}

@keyframes iconAppear {
    from { opacity: 0; transform: scale(0) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Quality badge */
.quality-badge {
    position: absolute;
    bottom: 15%;
    right: 10%;
    background: white;
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    text-align: center;
    opacity: 0;
    animation: badgeSlide 0.6s ease-out 2.5s forwards;
}

.badge-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}

.badge-text {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes badgeSlide {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Legacy support for pages still using image */
.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.hero-cable-img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

/* ===================================
   Trust Bar
   =================================== */
.trust-bar {
    background: var(--secondary);
    padding: 20px 0;
}

.trust-items {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-300);
    font-size: 0.875rem;
    font-weight: 500;
}

.trust-item i {
    color: var(--primary);
    font-size: 1rem;
}

/* ===================================
   Section Styles
   =================================== */
section {
    padding: var(--section-padding) 0;
}

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

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    color: var(--gray-600);
    font-size: 1.125rem;
}

/* ===================================
   Product Categories
   =================================== */
.product-categories {
    background: var(--gray-50);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1200px) and (min-width: 1025px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); }
}

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

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

.category-icon {
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon i {
    font-size: 4rem;
    color: var(--white);
}

.category-audio .category-icon { background: linear-gradient(135deg, var(--audio-color), #158563); }
.category-elevator .category-icon { background: linear-gradient(135deg, var(--elevator-color), #065f63); }
.category-industrial .category-icon { background: linear-gradient(135deg, var(--industrial-color), #1a1a1a); }
.category-loadcell .category-icon { background: linear-gradient(135deg, var(--loadcell-color), var(--secondary-light)); }

.category-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-content h3 {
    margin-bottom: 12px;
}

.category-content > p {
    color: var(--gray-600);
    margin-bottom: 20px;
}

.category-features {
    margin-bottom: 24px;
    flex: 1;
}

.category-features li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 0.9375rem;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-100);
}

.category-features li:last-child {
    border-bottom: none;
}

.category-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

.category-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary);
    margin-top: auto;
}

.category-link i {
    transition: var(--transition);
}

.category-card:hover .category-link i {
    transform: translateX(4px);
}

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

.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.why-us-content h2 {
    margin-bottom: 20px;
}

.why-us-content .lead {
    margin-bottom: 40px;
}

.features-list {
    display: grid;
    gap: 24px;
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

.feature-text h4 ,

.feature-text h3 {
    margin-bottom: 6px;
}

.feature-text p {
    font-size: 0.9375rem;
    color: var(--gray-600);
}

/* Testing Showcase */
.why-us-visual {
    display: flex;
    justify-content: center;
}

.testing-showcase {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    border-radius: var(--radius-xl);
    padding: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.testing-showcase::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(227, 30, 36, 0.1) 0%, transparent 70%);
}

.test-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: var(--primary);
    color: var(--white);
    padding: 40px 60px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    position: relative;
}

.test-number {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
}

.test-label {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.test-info h4 {
    color: var(--white);
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.test-info p {
    color: var(--gray-400);
    font-size: 0.9375rem;
    max-width: 350px;
    margin: 0 auto;
}

/* ===================================
   Industries Section
   =================================== */
.industries {
    background: var(--gray-50);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
}

.industry-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.industry-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.industry-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.industry-card h4 ,

.industry-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.industry-card p {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* ===================================
   CTA Section
   =================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 80px 0;
}

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

.cta-content h2 {
    color: var(--white);
    margin-bottom: 16px;
}

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

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===================================
   Product Finder / Showcase
   =================================== */
.product-finder {
    background: var(--white);
}

.products-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.product-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--success);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
}

.product-image {
    width: 100%;
    height: 160px;
    background: var(--gray-900);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.product-image i {
    font-size: 2rem;
    color: var(--primary);
}

.product-card h4 ,

.product-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.product-card p {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-bottom: 16px;
    min-height: 40px;
}

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

.mt-4 {
    margin-top: 40px;
}

/* ===================================
   Contact Teaser
   =================================== */
.contact-teaser {
    background: var(--gray-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info-card h3,
.quick-inquiry h3 {
    margin-bottom: 24px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    gap: 16px;
}

.contact-item i {
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin: 0;
}

.contact-item a {
    color: var(--primary);
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Inquiry Form */
.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 0.9375rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background: var(--white);
    transition: var(--transition);
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.1);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--secondary);
    color: var(--gray-400);
    padding: 80px 0 0;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

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

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

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

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

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

.cert-badge {
    background: rgba(255,255,255,0.1);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

.footer-links h4 ,

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

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9375rem;
    color: var(--gray-400);
}

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

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

.footer-bottom p {
    font-size: 0.875rem;
}

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

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

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

/* ===================================
   WhatsApp Float
   =================================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.75rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .hero-content {
        margin-left: 20px;
        max-width: 500px;
    }

    .hero-visual {
        width: 40%;
        opacity: 0.7;
    }

    .hero-animation {
        max-width: 350px;
        height: 350px;
    }

    .float-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .quality-badge {
        padding: 12px 18px;
    }

    .badge-number {
        font-size: 1.25rem;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        flex-direction: row;
    }

    .category-icon {
        width: 200px;
        flex-shrink: 0;
    }

    .why-us-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 60px;
    }

    .industries-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .products-showcase {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    /* Mobile Navigation */
    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

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

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

    .nav-menu a {
        display: block;
        padding: 16px;
        border-bottom: 1px solid var(--gray-100);
    }

    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        background: var(--gray-50);
        border-radius: var(--radius);
        margin: 8px 0;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
    }

    .nav-cta {
        display: none;
    }

    /* Hero Mobile */
    .hero {
        min-height: auto;
        padding: 120px 20px 60px;
    }

    .hero-content {
        margin-left: 0;
        max-width: 100%;
    }

    .hero-visual {
        display: none;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    /* Trust Bar Mobile */
    .trust-items {
        justify-content: center;
    }

    .trust-item span {
        display: none;
    }

    .trust-item i {
        font-size: 1.5rem;
    }

    /* Category Cards Mobile */
    .category-card {
        flex-direction: column;
    }

    .category-icon {
        width: 100%;
        padding: 30px;
    }

    .category-icon i {
        font-size: 3rem;
    }

    /* Industries Mobile */
    .industries-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Products Mobile */
    .products-showcase {
        grid-template-columns: 1fr;
    }

    /* Contact Mobile */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

/* ===================================
   Light page header (matches the homepage hero):
   white-to-grey background with a soft brand-green glow.
   Used on every inner page. `section.page-header` outranks the older
   dark header rules in products.css / about.css / contact.css and the
   per-page colour rules (.audio-header, .elevator-header, ...).
   =================================== */
section.page-header {
    position: relative;
    overflow: hidden;
    /* fades to plain white at the bottom, so there's no visible edge */
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
    color: var(--gray-900);
    padding-bottom: 32px;
}

section.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 30%, rgba(26, 157, 119, 0.12) 0%, rgba(26, 157, 119, 0) 38%);
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
    pointer-events: none;
}

section.page-header .container {
    position: relative;
}

section.page-header h1 {
    color: var(--gray-900);
}

section.page-header p {
    color: var(--gray-600);
}

section.page-header .breadcrumb,
section.page-header .breadcrumb a {
    color: var(--gray-500);
}

section.page-header .breadcrumb a:hover {
    color: var(--primary);
}

section.page-header .breadcrumb span {
    color: var(--gray-700);
}

section.page-header p a {
    color: var(--primary) !important;
}

/* where the next section is light grey, stay light grey so the two run together */
section.page-header:has(+ .quality-badge-section),
section.page-header:has(+ .products-overview) {
    background: var(--gray-50);
}

/* Contact: the info cards overlap the header by 60px, so keep room for them */
section.page-header.contact-header {
    padding-bottom: 110px;
}

/* ===================================
   Meet us at ISEE 2026 (homepage), styled after the show poster
   =================================== */
.expo-section {
    padding: 72px 0 0;
}

.expo-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 56px;
    border-radius: 20px;
    color: #E8F3EC;
    background:
        radial-gradient(circle at 18% 12%, rgba(181, 226, 122, 0.18) 0%, rgba(181, 226, 122, 0) 45%),
        radial-gradient(circle at 95% 100%, rgba(26, 157, 119, 0.35) 0%, rgba(26, 157, 119, 0) 50%),
        linear-gradient(135deg, #0E3A2B 0%, #145A40 60%, #0F4331 100%);
    box-shadow: 0 24px 60px rgba(15, 67, 49, 0.25);
}

.expo-eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #B5E27A;
    margin-bottom: 14px;
}

.expo-title {
    font-size: clamp(3rem, 7vw, 5.75rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin: 0 0 22px;
    background: linear-gradient(180deg, #E4F5A8 0%, #8FCB6B 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #B5E27A;
}

.expo-title span {
    display: block;
    font-size: 0.55em;
    letter-spacing: 0;
    -webkit-text-fill-color: #FFFFFF;
    color: #FFFFFF;
}

.expo-main p {
    color: #C9DDD1;
    font-size: 1.0625rem;
    max-width: 560px;
    margin-bottom: 28px;
}

.expo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.expo-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
}

.expo-btn-primary {
    background: #B5E27A;
    color: #0E3A2B;
}

.expo-btn-primary:hover {
    background: #C9EE95;
    color: #0E3A2B;
}

.expo-btn-ghost {
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    color: #FFFFFF;
}

.expo-btn-ghost:hover {
    border-color: #FFFFFF;
    color: #FFFFFF;
}

.expo-panel {
    border: 1px solid rgba(181, 226, 122, 0.45);
    border-radius: 16px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.04);
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 20px;
}

.expo-panel > :not(.expo-qr) {
    grid-column: 1;
}

.expo-year {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #B5E27A;
    font-size: 1.75rem;
    font-weight: 700;
}

.expo-year::after {
    content: "";
    flex: 1;
    height: 2px;
    background: rgba(181, 226, 122, 0.6);
}

.expo-days {
    display: flex;
    gap: 8px;
    margin: 10px 0 6px;
}

.expo-days span {
    min-width: 58px;
    padding: 6px 0;
    border: 2px solid #B5E27A;
    border-radius: 4px;
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.2;
}

.expo-month {
    letter-spacing: 8px;
    text-transform: uppercase;
    font-weight: 700;
    color: #B5E27A;
    font-size: 0.9375rem;
}

.expo-hours {
    color: #C9DDD1;
    font-size: 0.875rem;
    margin: 6px 0 18px;
}

.expo-venue {
    padding-top: 16px;
    border-top: 1px solid rgba(181, 226, 122, 0.3);
    color: #C9DDD1;
    font-size: 0.875rem;
    line-height: 1.6;
}

.expo-venue strong {
    display: block;
    color: #FFFFFF;
    font-size: 1rem;
}

.expo-stall {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    color: #C9DDD1;
    font-weight: 600;
}

.expo-stall .expo-stall-no {
    display: inline-block;
    background: #B5E27A;
    color: #0E3A2B;
    font-size: 0.9375rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.expo-qr {
    grid-column: 2;
    grid-row: 1 / span 6;
    align-self: end;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    font-size: 0.75rem;
    color: #C9DDD1;
    line-height: 1.3;
}

.expo-qr-code {
    display: block;
    width: 112px;
    height: 112px;
    padding: 8px;
    background: #FFFFFF;
    border-radius: 8px;
}

.expo-qr-code svg {
    display: block;
    width: 100%;
    height: 100%;
}

.tbc {
    color: #B45309;
    background: #FEF3C7;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .expo-card {
        grid-template-columns: 1fr;
        padding: 40px;
        gap: 32px;
    }
}

@media (max-width: 600px) {
    .expo-section { padding-top: 48px; }
    .expo-card { padding: 28px 22px; border-radius: 16px; }
    .expo-panel { grid-template-columns: 1fr; padding: 22px; }
    .expo-qr { display: none; }           /* on a phone, the Register button is the easier path */
    .expo-days span { min-width: 52px; font-size: 1.5rem; }
    .expo-month { letter-spacing: 6px; }
}

/* ===================================
   Enquiry form messages
   =================================== */
.form-hp {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.form-status {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    line-height: 1.5;
    border-left: 4px solid;
}

.form-status--success { background: #ECFDF5; color: #065F46; border-color: #10B981; }
.form-status--info    { background: #EFF6FF; color: #1E3A8A; border-color: #3B82F6; }
.form-status--error   { background: #FEF2F2; color: #991B1B; border-color: #EF4444; }
.form-status a { color: inherit; font-weight: 600; text-decoration: underline; }

/* ===================================
   Dropdowns: same height and look as the text fields
   (browsers ignore padding on native selects unless their default look is switched off)
   =================================== */
.inquiry-form select,
.quote-form select,
.dealer-form select {
    -webkit-appearance: none;
    appearance: none;
    height: 49px;            /* same as the text fields */
    padding-top: 0;
    padding-bottom: 0;
    padding-right: 44px;
    background-color: var(--white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    cursor: pointer;
}

/* show the "Select…" prompt in the same grey as the other placeholders */
.inquiry-form select:invalid,
.quote-form select:invalid,
.dealer-form select:invalid {
    color: var(--gray-400);
}

.inquiry-form select option,
.quote-form select option,
.dealer-form select option {
    color: var(--gray-900);
}

/* focus ring in brand green (was a leftover red) */
.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
    box-shadow: 0 0 0 3px rgba(26, 157, 119, 0.15);
}

/* ===================================
   Products dropdown: soft highlight instead of the nav underline
   =================================== */
.dropdown-menu {
    min-width: 230px;
    padding: 8px;
}

.dropdown-menu li a {
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--gray-700);
}

.dropdown-menu li a.active::after {
    display: none;                       /* the underline belongs to the top-level links only */
}

.dropdown-menu li a:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.dropdown-menu li a.active {
    background: rgba(26, 157, 119, 0.10);
    color: var(--primary-dark);
    font-weight: 600;
}

.dropdown-menu li:last-child {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--gray-100);
}

/* ===================================
   Small phones (≤ 480px): flex-test box on the homepage
   =================================== */
@media (max-width: 480px) {
    .industry-card { padding: 24px 12px; }
    .industry-card h4 ,
    .industry-card h3 { font-size: 0.9375rem; overflow-wrap: anywhere; hyphens: auto; }
    .hero-stats { flex-wrap: wrap; row-gap: 16px; }
    .testing-showcase { padding: 32px 20px; }
    .test-badge { padding: 24px 28px; }
    .test-number { font-size: 2.75rem; }
}

/* Very narrow screens (e.g. foldable cover displays): let long single words in headings wrap
   instead of pushing the page sideways. No effect when the word fits. */
h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

@media (max-width: 320px) {
    .category-title { font-size: 1.35rem; gap: 10px; }
    .industry-detail-content h3 ,
    .industry-detail-content h2 { font-size: 1.2rem; overflow-wrap: anywhere; hyphens: auto; }
}

/* ===================================
   Readability (WCAG AA contrast): slightly deeper greens where text sits on them
   =================================== */
:root {
    --primary-text: #13795B;   /* brand green for text on white / light grey */
}
.btn-primary,
.nav-cta,
button.btn-primary {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}
.btn-primary:hover,
.nav-cta:hover {
    background: #106B4D;
    border-color: #106B4D;
}
.section-label,
.btn-white,
.contact-teaser a,
.category-link,
.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-text);
}
.btn-success,
.whatsapp-float {
    background: #0F7A40;
    border-color: #0F7A40;
}
.btn-success:hover,
.whatsapp-float:hover {
    background: #0B6534;
}
.product-code {
    color: var(--gray-600);
}

/* Very small screens (foldable cover displays): keep the logo clear of the menu button */
@media (max-width: 340px) {
    .logo img { height: 42px; }
}

/* Heading order (accessibility): some card headings were retagged one level up
   (h4 -> h3, h3 -> h2) so pages never skip a level. These keep their original size. */
:where(.accordion-header) h3, :where(.cert-card) h3, :where(.choose-item) h3, :where(.dealer-benefit) h3, :where(.download-info) h3, :where(.facility-feature) h3, :where(.feature-text) h3, :where(.footer-links) h3, :where(.industry-card) h3, :where(.popular-card) h3, :where(.product-card) h3, :where(.product-img-info) h3, :where(.test-card) h3 { font-size: 1.25rem; }
:where(.contact-card) h2, :where(.featured-product-info) h2, :where(.industry-detail-content) h2, :where(.quality-content) h2 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* Text for screen readers only (e.g. the header of the "Get Quote" column in spec tables) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Home hero (desktop): smaller type and a narrower text column, so there is
   clear space between the text and the cable animation on the right */
@media (min-width: 769px) {
    .hero h1 { font-size: clamp(2.25rem, 3.4vw, 3rem); }
    .hero-subtitle { font-size: 1.0625rem; }
    .stat-number { font-size: 1.75rem; }
}
@media (min-width: 1025px) {
    .hero-content { max-width: 540px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content { max-width: 460px; }
}

/* Top menu on tablets and small laptops: keep every item on one line */
.nav-menu a,
.nav-cta {
    white-space: nowrap;
}
@media (min-width: 769px) and (max-width: 1100px) {
    .logo img { height: 44px; }
    .nav-menu { gap: 20px; }
    .nav-menu a { font-size: 0.875rem; }
    .nav-cta { margin-left: 8px; padding: 10px 18px; }
}
@media (min-width: 769px) and (max-width: 900px) {
    .logo { flex-shrink: 0; }
    .logo img { height: 38px; }
    .nav-menu { gap: 14px; }
    .nav-menu a { font-size: 0.8125rem; }
    .nav-cta { padding: 9px 14px; font-size: 0.8125rem; }
}

/* ===================================
   Phones and small tablets (≤ 768px): open Products menu in place, smaller logo
   =================================== */
@media (max-width: 768px) {
    /* a tap also triggers :hover on phones; cancel the desktop centring so the list isn't pushed off-screen */
    .dropdown:hover .dropdown-menu,
    .dropdown.active .dropdown-menu,
    .dropdown-menu {
        transform: none;
        left: auto;
        min-width: 0;
        width: 100%;
    }
    .dropdown:hover .dropdown-menu {
        opacity: 0;
        visibility: hidden;
    }
    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
    }
    .dropdown-menu li a {
        padding: 12px 16px;
        border-bottom: 0;
    }
    /* "Products" opens the page; the arrow button beside it opens the submenu */
    .dropdown {
        display: flex;
        flex-wrap: wrap;
    }
    .dropdown > a {
        flex: 1;
    }
    .dropdown > a i {
        display: none;
    }
    .dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 56px;
        background: none;
        border: 0;
        border-bottom: 1px solid var(--gray-100);
        color: inherit;
        cursor: pointer;
    }
    .dropdown-toggle i {
        font-size: 0.75rem;
        transition: var(--transition);
    }
    .dropdown.active .dropdown-toggle i {
        transform: rotate(180deg);
    }
    .dropdown-menu {
        flex-basis: 100%;
    }
    .logo img { height: 40px; }
}

@media (max-width: 400px) {
    .logo img { height: 34px; }
}

/* ===================================
   Phones (≤ 768px): show the hero animation under the text
   =================================== */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        align-items: stretch;
        max-height: none;
        min-height: 0;
        overflow: visible;
    }
    .hero-visual {
        display: flex;
        position: static;
        transform: none;
        width: 100%;
        height: auto;
        opacity: 1;
        justify-content: center;
        margin-top: 32px;
    }
    .hero-visual .ic {
        max-width: 380px;
        margin: 0 auto;
    }
}

/* ===================================
   Phones (≤ 600px): comfortable reading sizes
   =================================== */
@media (max-width: 600px) {
    :root { --section-padding: 48px; }
    body { font-size: 15px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.625rem; }
    h3 { font-size: 1.3rem; }
    h4 { font-size: 1.1rem; }
    .hero { padding-top: 96px; padding-bottom: 40px; }
    .hero h1 { font-size: 2rem; line-height: 1.15; margin-bottom: 16px; }
    .hero-subtitle, .lead, .section-header p, .page-header p { font-size: 1rem; line-height: 1.6; }
    .hero-subtitle { margin-bottom: 24px; }
    .hero-badge { font-size: 0.8125rem; padding: 6px 12px; }
    .section-header { margin-bottom: 32px; }
    .section-label { font-size: 0.75rem; letter-spacing: 1.5px; }
    .page-header { padding: 110px 0 36px; }
    .page-header h1 { font-size: 2rem; }
    .category-title { font-size: 1.4rem; }
    .btn-lg { padding: 13px 22px; font-size: 0.9375rem; }

    /* hero stats: three even columns on one line */
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
    .stat-number { font-size: 1.4rem; }
    .stat-label { font-size: 0.75rem; line-height: 1.3; }

    /* trust bar: keep the labels, in a tidy centred wrap */
    .trust-bar { padding: 16px 0; }
    .trust-items {
        justify-content: center;
        gap: 10px 18px;
    }
    .trust-item span {
        display: inline;
        font-size: 0.8125rem;
    }
    .trust-item i { font-size: 0.9375rem; }

    /* ISEE card */
    .expo-title { font-size: 2.6rem; }
    .expo-main p { font-size: 0.9375rem; }
}

/* Trust bar keeps its labels on tablets too */
@media (max-width: 768px) {
    .trust-items { justify-content: center; gap: 10px 22px; }
    .trust-item span { display: inline; font-size: 0.8125rem; }
    .trust-item i { font-size: 0.9375rem; }
}

/* Scrollable tables: keep hidden screen-reader labels inside the scroll box */
.products-table,
.product-specs-table,
.table-scroll {
    position: relative;
}

/* Small privacy note under forms, and the footer's privacy link */
.form-disclaimer {
    font-size: 0.8125rem;
    color: var(--gray-500);
    text-align: center;
    margin-top: 8px;
}
.form-disclaimer a { color: var(--primary-text); text-decoration: underline; }
.footer-bottom p a { color: inherit; text-decoration: underline; }

/* ===================================
   Phone polish (≤ 600px): bigger tap targets, shorter category cards,
   smaller floating WhatsApp button
   =================================== */
@media (max-width: 768px) {
    .mobile-toggle { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
}
@media (max-width: 600px) {
    /* footer, breadcrumb and small text links: at least ~40px tall to tap */
    .footer-links li a,
    .footer-links a { display: inline-block; padding: 9px 0; }
    .footer-links li { margin-bottom: 0; }
    .breadcrumb a { display: inline-block; padding: 10px 2px; }
    .contact-teaser a,
    .footer-bottom a,
    .download-card a,
    .resource-card a { display: inline-block; padding-block: 8px; }
    form input[type="checkbox"] { width: 22px !important; height: 22px !important; flex-shrink: 0; }

    /* category cards: slimmer icon band so the page is shorter to scroll */
    .category-icon { padding: 18px; }
    .category-icon i { font-size: 2rem; }
    .category-content { padding: 22px 20px; }
    .category-features li { padding: 6px 0 6px 18px; }

    /* floating WhatsApp: smaller and tucked into the corner */
    .whatsapp-float { width: 52px; height: 52px; right: 16px; bottom: 16px; font-size: 1.5rem; }

    /* small badges readable */
    .popular-badge, .badge-popular { font-size: 0.75rem; }
}

/* Phones: two-up popular products and a two-column footer (shorter page) */
@media (max-width: 600px) {
    .products-showcase {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .products-showcase .product-image { height: 130px; }
    .products-showcase .product-info { padding: 14px 12px; }
    .products-showcase .product-info h4 { font-size: 0.9375rem; line-height: 1.3; }
    .products-showcase .product-info p { font-size: 0.8125rem; }
    .products-showcase .btn { width: 100%; justify-content: center; padding: 10px 8px; font-size: 0.8125rem; }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 20px;
        padding-bottom: 36px;
    }
    .footer-brand { grid-column: 1 / -1; }
    .footer { padding-top: 48px; }
}

/* Links to the factory tour video on the About page */
.tour-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    font-weight: 600;
    color: var(--primary-text);
}
.tour-link i { font-size: 1.25rem; }
.tour-link:hover { text-decoration: underline; }
.tour-link-inline { color: var(--primary-text); font-weight: 600; text-decoration: underline; }

/* ===================================
   ISEE card on phones: compact (dates on one line, no big "2026" row)
   =================================== */
@media (max-width: 600px) {
    .expo-section { padding-top: 32px; }
    .expo-card { padding: 22px 18px; gap: 18px; border-radius: 14px; }
    .expo-eyebrow { font-size: 0.6875rem; letter-spacing: 2px; margin-bottom: 8px; }
    .expo-title { font-size: 2rem; margin-bottom: 12px; }
    .expo-main p { font-size: 0.875rem; line-height: 1.55; margin-bottom: 16px; }
    .expo-actions { gap: 8px; }
    .expo-btn { min-height: 42px; padding: 0 14px; font-size: 0.875rem; }

    .expo-panel { padding: 14px 16px; border-radius: 12px; }
    .expo-year { display: none; }
    .expo-days { margin: 0; gap: 6px; align-items: center; flex-wrap: wrap; }
    .expo-days span { min-width: 0; padding: 3px 8px; font-size: 1.125rem; border-width: 1.5px; }
    .expo-days::after { content: "DEC 2026"; color: #B5E27A; font-weight: 700; letter-spacing: 2px; font-size: 0.875rem; margin-left: 6px; }
    .expo-month { display: none; }
    .expo-hours { font-size: 0.8125rem; margin: 8px 0 12px; }
    .expo-venue { padding-top: 12px; font-size: 0.8125rem; line-height: 1.5; }
    .expo-venue strong { font-size: 0.9375rem; }
    .expo-stall { margin-top: 8px; }
}

/* ===================================
   Phones (≤ 768px): home hero order and category carousel
   =================================== */
@media (max-width: 768px) {
    /* Hero: badge, heading, then the cable animation, then the text, buttons and stats */
    .hero-content { display: contents; }
    .hero-content > *,
    .hero-visual { position: relative; z-index: 2; }
    .hero-badge { order: 1; align-self: flex-start; }
    .hero h1 { order: 2; }
    .hero-visual { order: 3; margin: 0 0 20px; }
    .hero-subtitle { order: 4; }
    .hero-cta { order: 5; }
    .hero-stats { order: 6; }

    /* Product categories: swipeable carousel, next card peeking in */
    .category-grid {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 20px;
        margin: 0 -20px;
        padding: 4px 20px 16px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .category-grid::-webkit-scrollbar { display: none; }
    .category-grid .category-card {
        flex: 0 0 82%;
        scroll-snap-align: start;
        opacity: 1 !important;          /* no scroll-in fade inside the carousel */
        transform: none !important;
    }
    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 4px;
    }
    .carousel-dots button {
        width: 8px;
        height: 8px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: var(--gray-300);
        cursor: pointer;
        transition: width 0.2s ease, background 0.2s ease;
    }
    .carousel-dots button[aria-current="true"] {
        width: 22px;
        border-radius: 4px;
        background: var(--primary-text);
    }
}
@media (min-width: 769px) {
    .carousel-dots { display: none; }
}

/* ===================================
   ISEE card: shorter on tablets and phones
   =================================== */
.expo-short { display: none; }

@media (max-width: 1024px) {
    /* the year is already in "ISEE 2026" above: show it beside the dates instead of on its own line */
    .expo-year { display: none; }
    .expo-days { align-items: center; flex-wrap: wrap; }
    .expo-days::after { content: "DEC 2026"; color: #B5E27A; font-weight: 700; letter-spacing: 2px; font-size: 0.875rem; margin-left: 8px; }
    .expo-month { display: none; }
}

@media (max-width: 600px) {
    .expo-section { padding-top: 28px; }
    .expo-card { display: flex; flex-direction: column; align-items: stretch; text-align: left; gap: 0; padding: 20px 18px; }
    .expo-main { display: contents; }
    .expo-eyebrow { order: 1; margin-bottom: 6px; }
    .expo-title { order: 2; font-size: 1.625rem; line-height: 1.1; margin-bottom: 8px; }
    .expo-title span { display: inline; font-size: 1em; }
    .expo-main p { display: none; }
    .expo-main p.expo-short { display: block; order: 3; margin-bottom: 14px; }

    /* dates, hours and venue as plain rows, no inner box */
    .expo-panel { order: 4; display: block; padding: 0; border: 0; background: none; margin-bottom: 16px; }
    .expo-hours { margin: 6px 0 10px; }
    .expo-venue { padding-top: 10px; font-size: 0.8125rem; line-height: 1.45; }
    .expo-venue strong { font-size: 0.875rem; }
    .expo-stall { margin-top: 8px; }

    /* both buttons on one row, calendar link underneath */
    .expo-actions { order: 5; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .expo-btn { justify-content: center; padding: 0 10px; font-size: 0.8125rem; gap: 6px; }
}

/* Trust bar on phones: two tidy columns, icons in a fixed-width slot so labels line up */
@media (max-width: 600px) {
    .trust-items {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 16px;
        max-width: 380px;
        margin: 0 auto;
    }
    .trust-item { gap: 8px; }
    .trust-item i { width: 18px; text-align: center; flex-shrink: 0; }
    .trust-item span { line-height: 1.3; }
}

/* Home "Why YBS": factory tour video */
.home-tour { margin: 0; width: 100%; max-width: 560px; }
.home-tour video {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    background: #000;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}
.home-tour figcaption { margin-top: 12px; font-size: 0.875rem; color: var(--gray-600); line-height: 1.6; }

/* Elevator page: EN 50214 text beside the 30,000 flex-cycles card */
.flex-test-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
}
.flex-test-text h2 { margin: 8px 0 16px; }
.flex-test-text p { color: var(--gray-600); line-height: 1.7; margin-bottom: 24px; }
.test-info h3 { color: var(--white); margin-bottom: 12px; font-size: 1.25rem; }
@media (max-width: 900px) {
    .flex-test-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
.home-tour .section-label { display: block; margin-bottom: 6px; }
.home-tour-title { font-size: 1.5rem; margin: 0 0 16px; }
@media (max-width: 600px) { .home-tour-title { font-size: 1.3rem; } }

/* ISEE card on phones: plain text summary, one accent colour */
.expo-compact { display: none; }
@media (max-width: 600px) {
    .expo-panel { display: none; }
    .expo-main p.expo-short { display: none; }
    .expo-compact { display: block; order: 3; margin-bottom: 16px; }
    .expo-main .expo-compact p { display: block; margin: 0 0 4px; font-size: 0.875rem; line-height: 1.5; color: #C9DDD1; }
    .expo-main .expo-compact p.expo-compact-stall { margin-top: 8px; font-weight: 700; color: #FFFFFF; font-size: 0.9375rem; }
    .expo-title { margin-bottom: 10px; }
}

/* Real product photo grid (Elevator page) */
.product-photos { padding: 60px 0 20px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.photo-card { margin: 0; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; }
.photo-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #fff; }
.photo-card figcaption { padding: 12px 14px; font-size: 0.875rem; font-weight: 600; color: var(--gray-700); line-height: 1.4; }
@media (max-width: 768px) {
    .product-photos { padding: 40px 0 8px; }
    .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .photo-card figcaption { padding: 8px 10px; font-size: 0.8125rem; }
}
/* Elevator page: reverse bend test diagram */
.flex-test-diagram { margin: 0 0 24px; }
.flex-test-diagram img { display: block; width: 100%; max-width: 460px; height: auto; border-radius: var(--radius-md); }
.flex-test-diagram figcaption { margin-top: 8px; font-size: 0.8125rem; color: var(--gray-500); line-height: 1.5; max-width: 460px; }
/* Real cable photos shot on white: white image boxes instead of the dark ones */
:is(.featured-img-wrapper, .category-large-image, .popular-image, .product-image):has(img[src$="single-core-wires.jpg"], img[src$="flat-ribbon-cable.jpg"]) {
    background: #fff;
}
