/* ==========================================================================
   BayBot Dynamics - Modern Redesign
   ========================================================================== */

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

:root {
    /* Colors - Based on original theme */
    --primary-color: #0066cc;
    --primary-dark: #004c99;
    --primary-light: #3385d6;
    --secondary-color: #00cc88;
    --secondary-dark: #009966;
    --accent-color: #ff6b35;
    
    /* Neutrals */
    --dark-bg: #0a0e1a;
    --dark-blue: #1a2332;
    --dark-gray: #2d3748;
    --medium-gray: #4a5568;
    --light-gray: #cbd5e0;
    --lighter-gray: #e2e8f0;
    --white: #ffffff;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Effects */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

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

body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    color: var(--dark-bg);
    margin-bottom: var(--spacing-md);
}

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

p {
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

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

a:hover {
    color: var(--primary-dark);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

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

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

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

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

.btn-outline {
    background-color: transparent;
    color: var(--dark-bg);
    border-color: var(--dark-bg);
}

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

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

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

.btn-lg {
    padding: 1.125rem 2.25rem;
    font-size: 1.125rem;
}

.w-full {
    width: 100%;
    justify-content: center;
}

/* Section Styles */
section {
    padding: var(--spacing-3xl) 0;
    position: relative;
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.section-label.light {
    color: var(--secondary-color);
}

.section-title {
    margin-bottom: var(--spacing-md);
}

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

.section-description {
    font-size: 1.125rem;
    color: var(--medium-gray);
    max-width: 800px;
    margin-bottom: var(--spacing-lg);
}

.section-description.light {
    color: rgba(255, 255, 255, 0.9);
}

.section-header {
    margin-bottom: var(--spacing-2xl);
}

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

.text-center .section-description {
    margin-left: auto;
    margin-right: auto;
}

/* Grid Layouts */
.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-2xl);
    align-items: center;
}

.section-grid.reverse {
    direction: rtl;
}

.section-grid.reverse > * {
    direction: ltr;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--dark-bg), var(--dark-blue));
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: linear-gradient(135deg, var(--dark-bg), var(--dark-blue));
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--white);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    list-style: none;
    margin: 0;
}

.nav-links a {
    color: var(--white);
    font-weight: var(--font-weight-medium);
    padding: var(--spacing-xs) 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-base);
}

.nav-links a:hover::after {
    width: 100%;
}

.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    isolation: isolate;
    z-index: 1001;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base);
    list-style: none;
}

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

.dropdown li {
    margin: 0;
}

.dropdown a {
    color: var(--dark-bg);
    display: block;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
}

.dropdown a:hover {
    background-color: var(--lighter-gray);
}

.dropdown a::after {
    display: none;
}

.nav-links .fas {
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

/* Page Header */
.page-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    text-align: center;
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: var(--spacing-sm);
}

.page-header p {
    font-size: 1.25rem;
    color: var(--medium-gray);
    margin-bottom: 0;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 100px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-shape-left,
.hero-shape-right {
    position: absolute;
    width: 40%;
    height: auto;
    opacity: 0.3;
}

.hero-shape-left {
    left: 0;
    top: 10%;
}

.hero-shape-right {
    right: 0;
    bottom: 10%;
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.hero-content {
    max-width: 640px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.hero-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.hero-product-image {
    max-height: 480px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 26px 40px rgba(10, 14, 26, 0.22));
}

.hero-media-caption {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: var(--font-weight-semibold);
    font-size: 0.9375rem;
}

.hero-media-caption:hover {
    gap: 0.7rem;
}

/* Only the homepage hero's buttons align left; .hero-cta is reused inside
   centred sections elsewhere, so the rule is scoped to the hero grid. */
.hero-grid .hero-cta {
    justify-content: flex-start;
}

@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    /* Robot above the text on narrow screens, as in the original layout */
    .hero-media {
        order: -1;
    }

    .hero-grid .hero-cta {
        justify-content: center;
    }

    .hero-product-image {
        max-height: 260px;
    }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: var(--font-weight-extrabold);
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--medium-gray);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-full);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 8px;
}

.scroll-indicator span {
    width: 6px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: var(--radius-full);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(15px); opacity: 0.5; }
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

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

/* About Section */
.about-section {
    background-color: var(--white);
}

.about-images {
    position: relative;
}

.image-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.about-image-main {
    grid-column: 1 / -1;
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.about-image-secondary {
    width: 80%;
    justify-self: end;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: calc(var(--spacing-xl) * -1);
}

.feature-highlight {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background-color: var(--lighter-gray);
    border-radius: var(--radius-lg);
    margin: var(--spacing-xl) 0;
}

.feature-icon img {
    width: 60px;
    height: 60px;
}

.feature-text h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.feature-text p {
    margin-bottom: 0;
    color: var(--medium-gray);
}

/* Industries Section */
.industries-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--lighter-gray) 100%);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.industry-card {
    background-color: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

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

.industry-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

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

.industry-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.industry-card p {
    color: var(--medium-gray);
    margin-bottom: var(--spacing-md);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
}

.card-link:hover {
    gap: var(--spacing-sm);
}

.section-cta {
    text-align: center;
    margin-top: var(--spacing-xl);
}

/* Why Choose Section */
.why-choose-section {
    background: linear-gradient(135deg, var(--dark-bg), var(--dark-blue));
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.why-choose-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.shape-left,
.shape-right {
    position: absolute;
    width: 35%;
    height: auto;
    opacity: 0.1;
}

.shape-left {
    left: 0;
    top: 0;
}

.shape-right {
    right: 0;
    bottom: 0;
}

.features-list {
    list-style: none;
    margin: var(--spacing-xl) 0;
}

.features-list li {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.features-list i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.features-list h4 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xs);
}

.features-list p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.why-choose-image .feature-image {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

/* FAQ Section */
.faq-section {
    background-color: var(--white);
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.accordion-item {
    background-color: var(--lighter-gray);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    color: var(--dark-bg);
    text-align: left;
    transition: background-color var(--transition-fast);
}

.accordion-header:hover {
    background-color: var(--light-gray);
}

.accordion-header i {
    transition: transform var(--transition-base);
    color: var(--primary-color);
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-content p {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    color: var(--medium-gray);
    margin-bottom: 0;
}

/* Contact Form */
.contact-card {
    background-color: var(--lighter-gray);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.contact-card h3 {
    margin-bottom: var(--spacing-sm);
}

.contact-card > p {
    color: var(--medium-gray);
    margin-bottom: var(--spacing-lg);
}

.contact-form {
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: border-color var(--transition-fast);
    background-color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

/* Phone number field (intl-tel-input country dropdown) */
.form-group .iti {
    width: 100%;
}

.form-group .iti input {
    width: 100%;
}

.form-group .iti__selected-flag {
    padding: 0 var(--spacing-sm);
}

/* Chat Widget */
.chat-card {
    display: flex;
    flex-direction: column;
    min-height: 480px;
}

.chat-intro {
    margin: auto 0;
    text-align: center;
}

.chat-intro .btn {
    margin-top: var(--spacing-md);
}

.chat-fallback {
    margin: var(--spacing-md) 0 0;
    font-size: 0.9rem;
    color: var(--medium-gray);
}

.chat-lead-form h3 {
    margin-bottom: var(--spacing-sm);
}

.chat-lead-form > p {
    color: var(--medium-gray);
    margin-bottom: var(--spacing-lg);
}

.chat-lead-back {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: var(--spacing-sm);
    background: none;
    border: none;
    color: var(--medium-gray);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: var(--font-primary);
}

.chat-lead-back:hover {
    color: var(--dark-gray);
}

.chat-window {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 480px;
    margin: calc(var(--spacing-xl) * -1);
    padding: 0;
}

.chat-window[hidden] {
    display: none;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: var(--dark-bg);
    color: var(--white);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.chat-header-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: var(--font-weight-semibold);
}

.chat-header-title i {
    color: var(--secondary-color);
}

.chat-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.1rem;
    cursor: pointer;
    padding: var(--spacing-xs);
    line-height: 1;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.chat-close:hover {
    opacity: 1;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    background-color: var(--white);
}

.chat-bubble {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    line-height: 1.45;
    font-size: 0.95rem;
    white-space: pre-wrap;
}

.chat-bubble.user {
    align-self: flex-end;
    background-color: var(--primary-color);
    color: var(--white);
    border-bottom-right-radius: var(--radius-sm);
}

.chat-bubble.assistant {
    align-self: flex-start;
    background-color: var(--lighter-gray);
    color: var(--dark-gray);
    border-bottom-left-radius: var(--radius-sm);
}

.chat-bubble.error {
    align-self: flex-start;
    background-color: #fdecea;
    color: #b3261e;
    border-bottom-left-radius: var(--radius-sm);
}

.chat-typing {
    display: inline-flex;
    gap: 4px;
    align-self: flex-start;
    background-color: var(--lighter-gray);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    border-bottom-left-radius: var(--radius-sm);
}

.chat-typing span {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background-color: var(--medium-gray);
    animation: chatTypingBounce 1.2s infinite ease-in-out;
}

.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes chatTypingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-4px); opacity: 1; }
}

.chat-input-row {
    display: flex;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm);
    border-top: 1px solid var(--lighter-gray);
    background-color: var(--white);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.chat-input-row input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-family: var(--font-primary);
}

.chat-input-row input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.chat-send {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: none;
    border-radius: var(--radius-full);
    background-color: var(--primary-color);
    color: var(--white);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.chat-send:hover {
    background-color: var(--primary-dark);
}

.chat-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.chat-status {
    padding: 0 var(--spacing-lg) var(--spacing-sm);
    margin: 0;
    font-size: 0.85rem;
    color: var(--accent-color);
    background-color: var(--white);
}

.chat-status:empty {
    display: none;
}

.faq-image-wrapper {
    margin-top: var(--spacing-lg);
    text-align: center;
}

.faq-decorative-image {
    max-width: 200px;
    margin: 0 auto;
    opacity: 0.3;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-bg), var(--dark-blue));
    color: var(--white);
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.footer-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.footer-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0.1;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
    position: relative;
    z-index: 1;
}

.footer-logo img {
    height: 50px;
    margin-bottom: var(--spacing-md);
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-lg);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

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

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
    font-size: 1.125rem;
}

.footer-links,
.footer-contact {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: color var(--transition-fast);
}

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

.footer-contact i {
    color: var(--secondary-color);
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

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

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

/* ==========================================================================
   Inner Pages & Shared Components
   ========================================================================== */

/* Anchor targets land below the fixed navbar instead of under it */
section[id] {
    scroll-margin-top: 90px;
}

/* Keyboard focus - visible only for keyboard users, not mouse clicks */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 3px;
}

/* Skip link - hidden until focused */
.skip-link {
    position: absolute;
    top: -100px;
    left: var(--spacing-md);
    z-index: 2000;
    padding: var(--spacing-xs) var(--spacing-md);
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-semibold);
}

.skip-link:focus {
    top: var(--spacing-sm);
    color: var(--white);
}

/* Current page in the nav */
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    width: 100%;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    font-size: 0.875rem;
    color: var(--medium-gray);
    margin-bottom: var(--spacing-sm);
}

.breadcrumb a {
    color: var(--medium-gray);
}

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

.breadcrumb [aria-current="page"] {
    color: var(--dark-bg);
    font-weight: var(--font-weight-medium);
}

/* Whole-card links on the industries and products overviews */
.industry-card-link {
    display: block;
    color: inherit;
}

.industry-card-link:hover {
    color: inherit;
}

/* Check list used in detail sections */
.check-list {
    list-style: none;
    margin: var(--spacing-lg) 0;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    color: var(--dark-gray);
}

.check-list i {
    color: var(--secondary-color);
    margin-top: 0.3rem;
    flex-shrink: 0;
}

.check-list.light li {
    color: rgba(255, 255, 255, 0.9);
}

/* Per-site pricing note on product sections */
.spec-note {
    font-size: 0.9375rem;
    color: var(--medium-gray);
    border-left: 3px solid var(--secondary-color);
    padding-left: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.spec-note.light {
    color: rgba(255, 255, 255, 0.8);
}

.spec-note.light a {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Closing call-to-action band */
.cta-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Two-column contact / demo / parts layout */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: start;
}

.contact-info-list {
    list-style: none;
    display: grid;
    gap: var(--spacing-md);
}

.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background-color: var(--lighter-gray);
    border-radius: var(--radius-lg);
}

.contact-info-list h3 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--medium-gray);
    margin-bottom: 0.25rem;
}

.contact-info-list a,
.contact-info-list p {
    font-size: 1.0625rem;
    font-weight: var(--font-weight-semibold);
    color: var(--dark-bg);
    margin-bottom: 0;
    word-break: break-word;
}

.contact-info-list a:hover {
    color: var(--primary-color);
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
}

/* Form labels and selects */
.form-group label,
.form-group legend {
    display: block;
    font-size: 0.9375rem;
    font-weight: var(--font-weight-semibold);
    color: var(--dark-bg);
    margin-bottom: 0.375rem;
}

.form-group .optional {
    font-weight: var(--font-weight-regular);
    color: var(--medium-gray);
}

.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-primary);
    background-color: var(--white);
    color: var(--dark-bg);
    transition: border-color var(--transition-fast);
}

.form-group select:focus {
    border-color: var(--primary-color);
}

.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
    border-color: #d93025;
}

/* Demo type radio cards */
.radio-group {
    border: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

.radio-group legend {
    grid-column: 1 / -1;
}

.radio-card {
    position: relative;
    cursor: pointer;
}

.radio-card input {
    position: absolute;
    opacity: 0;
}

.radio-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    height: 100%;
    padding: var(--spacing-md);
    background-color: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.radio-card-body i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.radio-card-title {
    font-weight: var(--font-weight-semibold);
    color: var(--dark-bg);
}

.radio-card-sub {
    font-size: 0.8125rem;
    color: var(--medium-gray);
}

.radio-card input:checked + .radio-card-body {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.radio-card input:focus-visible + .radio-card-body {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

/* Form submission feedback */
.form-status {
    margin: var(--spacing-sm) 0 0;
    font-size: 0.9375rem;
    text-align: center;
}

.form-status:empty {
    display: none;
}

.form-status.is-success {
    color: var(--secondary-dark);
}

.form-status.is-error {
    color: #d93025;
}

/* Empty state (blog) */
.empty-state {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.empty-state-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    font-size: 2rem;
}

.empty-state p {
    color: var(--medium-gray);
    font-size: 1.0625rem;
}

.empty-state .hero-cta {
    margin-top: var(--spacing-xl);
}

/* Notices */
.notice {
    display: flex;
    gap: var(--spacing-md);
    max-width: 820px;
    margin: 0 auto var(--spacing-2xl);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 2px solid;
}

.notice > i {
    font-size: 1.5rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.notice h2 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.notice p:last-child {
    margin-bottom: 0;
}

.notice-warning {
    background-color: #fff8e6;
    border-color: #f0b429;
    color: #5c4000;
}

.notice-warning > i,
.notice-warning h2 {
    color: #8a5a00;
}

.notice-action {
    font-weight: var(--font-weight-semibold);
}

/* Legal / long-form prose */
.legal-content {
    max-width: 820px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.375rem;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-sm);
}

.legal-meta {
    color: var(--medium-gray);
    font-size: 0.9375rem;
}

.legal-placeholder {
    padding: var(--spacing-md);
    background-color: var(--lighter-gray);
    border-left: 3px dashed var(--medium-gray);
    border-radius: var(--radius-sm);
    color: var(--medium-gray);
    font-style: italic;
}

.legal-placeholder-label {
    font-style: normal;
    font-weight: var(--font-weight-semibold);
    color: var(--dark-gray);
}

.legal-rule {
    border: none;
    border-top: 1px solid var(--light-gray);
    margin: var(--spacing-2xl) 0 var(--spacing-lg);
}

/* Hero product shot at the top of each products.html category section.
   Model photos are transparent cut-outs, so no box shadow or radius (those
   would draw a visible rectangle around the robot); a drop-shadow follows
   the robot's outline instead. contain keeps the photo whole and uncropped. */
.section-product-media {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.section-product-image {
    max-height: 420px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(10, 14, 26, 0.18));
}

.why-choose-section .section-product-image {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
}

/* Robot model cards - generated into products.html by tools/build_models.py */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
    position: relative;
    z-index: 1;
}

.model-card {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border: 1px solid var(--lighter-gray);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    color: var(--dark-gray);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.model-card-media {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
}

/* contain, never cover: product photos are shown whole, uncropped */
.model-card-media img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.model-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: var(--spacing-lg);
}

.model-card h3 {
    font-size: 1.375rem;
    margin-bottom: 0.25rem;
}

.model-badge {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--white);
    background-color: var(--secondary-color);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-xs);
}

.model-tagline {
    color: var(--primary-color);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-sm);
}

.model-card p {
    color: var(--medium-gray);
}

.model-features {
    list-style: none;
    margin-bottom: var(--spacing-md);
}

.model-features li {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: 0.375rem;
}

.model-features i {
    color: var(--secondary-color);
    margin-top: 0.3rem;
    font-size: 0.8rem;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
    margin-bottom: var(--spacing-lg);
}

.spec-table th,
.spec-table td {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--lighter-gray);
    text-align: left;
    vertical-align: top;
}

.spec-table th {
    font-weight: var(--font-weight-medium);
    color: var(--medium-gray);
    width: 45%;
    padding-right: var(--spacing-sm);
}

.spec-table td {
    color: var(--dark-bg);
    font-weight: var(--font-weight-semibold);
}

.model-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: auto;
}

.model-actions .btn {
    padding: 0.7rem 1.4rem;
    font-size: 0.9375rem;
}

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

/* Card name and photo link to the model's detail page */
a.model-card-media {
    color: inherit;
}

.model-card h3 a {
    color: var(--dark-bg);
}

.model-card h3 a:hover {
    color: var(--primary-color);
}

.model-flags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
}

.model-flags .model-badge {
    margin-bottom: 0;
}

.model-video-flag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
    background-color: rgba(0, 102, 204, 0.08);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
}

/* ==========================================================================
   Product detail pages (product-<id>.html, generated by tools/build_models.py)
   ========================================================================== */

/* Long-form CMS text: only p, ul, ol, li, strong, em and br survive sanitising */
.rich-text p:last-child,
.rich-text ul:last-child,
.rich-text ol:last-child {
    margin-bottom: 0;
}

.rich-text ul,
.rich-text ol {
    padding-left: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.rich-text li {
    margin-bottom: 0.375rem;
}

.rich-text strong {
    color: var(--dark-bg);
    font-weight: var(--font-weight-semibold);
}

.product-hero {
    padding: 120px 0 var(--spacing-3xl);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.breadcrumb-left {
    justify-content: flex-start;
    margin-bottom: var(--spacing-xl);
}

.product-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.product-hero-text h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    margin-bottom: var(--spacing-xs);
}

.product-hero-title {
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    font-weight: var(--font-weight-medium);
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.product-hero-summary {
    font-size: 1.0625rem;
    color: var(--medium-gray);
    margin-bottom: var(--spacing-lg);
}

.product-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.product-hero-media {
    display: flex;
    justify-content: center;
}

.product-hero-media img {
    max-height: 480px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 24px 36px rgba(10, 14, 26, 0.2));
}

/* Video: click-to-load YouTube embed */
.product-video-section {
    background: linear-gradient(135deg, var(--dark-bg), var(--dark-blue));
}

.video-embed {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background-color: #000;
    box-shadow: var(--shadow-xl);
}

.video-embed-poster,
.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-embed-poster {
    display: block;
    cursor: pointer;
}

/* hqdefault thumbnails are 4:3 with letterbox bars; cover crops the bars */
.video-embed-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow), opacity var(--transition-base);
}

.video-embed-poster:hover img {
    transform: scale(1.03);
    opacity: 0.85;
}

.video-embed-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 84px;
    height: 84px;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    font-size: 1.75rem;
    padding-left: 6px;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.5);
    transition: transform var(--transition-base);
}

.video-embed-poster:hover .video-embed-play,
.video-embed-poster:focus-visible .video-embed-play {
    transform: translate(-50%, -50%) scale(1.08);
}

.video-embed-poster:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: -3px;
}

/* Overview */
.product-overview {
    max-width: 860px;
    margin: 0 auto;
}

.product-overview .section-description {
    max-width: none;
}

.industry-chips h3 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--medium-gray);
    margin: var(--spacing-lg) 0 var(--spacing-sm);
}

.industry-chips ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.industry-chips li {
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    background-color: var(--lighter-gray);
    color: var(--dark-bg);
    font-size: 0.9375rem;
    font-weight: var(--font-weight-medium);
}

/* Features */
.product-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.product-feature {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background-color: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.product-feature-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: var(--white);
}

.product-feature h3 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xs);
}

.product-feature .rich-text {
    color: var(--medium-gray);
}

/* Functions: alternating image/text rows */
.product-function {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    margin-bottom: var(--spacing-3xl);
}

.product-function:last-child {
    margin-bottom: 0;
}

.product-function-textonly {
    grid-template-columns: 1fr;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.product-function-media img {
    width: 100%;
    max-height: 440px;
    object-fit: contain;
    border-radius: var(--radius-xl);
}

.product-function-text h3 {
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
}

.product-function-text .rich-text {
    color: var(--medium-gray);
    font-size: 1.0625rem;
}

/* Specifications */
.spec-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1100px;
    margin: 0 auto;
}

.spec-block {
    padding: var(--spacing-lg);
    background-color: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary-color);
}

.spec-block h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.spec-block .rich-text {
    color: var(--dark-gray);
}

@media (max-width: 968px) {
    .product-hero-grid,
    .product-function {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    /* Photo first on narrow screens, whichever side it sat on */
    .product-hero-media,
    .product-function-media {
        order: -1;
    }

    .product-hero-media img {
        max-height: 320px;
    }
}

@media (max-width: 400px) {
    .spec-blocks,
    .product-feature-grid {
        grid-template-columns: 1fr;
    }
}

/* Respect a reduced-motion preference across every animation on the site */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .fade-in-up {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    :root {
        --spacing-3xl: 4rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--dark-bg);
        flex-direction: column;
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: var(--spacing-sm) 0;
    }
    
    .nav-menu .dropdown {
        background-color: transparent;
    }

    .nav-menu .dropdown a {
        color: var(--white);
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: var(--spacing-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-base);
    }
    
    .has-dropdown.active .dropdown {
        max-height: 500px;
    }
    
    .nav-menu .btn {
        width: 100%;
        margin-top: var(--spacing-md);
    }
    
    .section-grid.reverse {
        direction: ltr;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .image-wrapper {
        grid-template-columns: 1fr;
    }
    
    .about-image-secondary {
        width: 100%;
        margin-top: var(--spacing-md);
    }
}

@media (max-width: 640px) {
    .industries-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .section-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .radio-group {
        grid-template-columns: 1fr;
    }

    .notice {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-section,
    .back-to-top,
    .scroll-indicator {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* ==========================================================================
   Blue & White Translucent Theme
   Page-level blue-to-white gradient; white sections and cards become
   translucent glass so the gradient shows through. Screen only - print
   stays white. To revert, delete this block.
   ========================================================================== */
@media screen {
    :root {
        --page-blue: #b3d1ff;
        --page-blue-soft: #dceaff;
        --glass: rgba(255, 255, 255, 0.55);
        --glass-strong: rgba(255, 255, 255, 0.72);
        --glass-blue: rgba(220, 234, 255, 0.55);
    }

    body {
        background-color: var(--page-blue-soft);
    }

    /* The gradient lives on a fixed layer rather than background-attachment:
       fixed, which iOS Safari ignores and which stutters on scroll on phones. */
    body::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        pointer-events: none;
        background: linear-gradient(165deg,
            var(--page-blue) 0%,
            var(--page-blue-soft) 28%,
            #ffffff 52%,
            #d4e5ff 76%,
            #a9c9fb 100%);
    }

    /* Full-width sections: transparent, or a light blue/white wash */
    .about-section,
    .faq-section {
        background: transparent;
    }

    .industries-section {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--glass-blue) 100%);
    }

    .page-header,
    .hero-section,
    .cta-section,
    .product-hero {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(179, 209, 255, 0.35) 100%);
    }

    /* Navigation */
    .navbar {
        background-color: rgba(255, 255, 255, 0.6);
    }

    .navbar.scrolled {
        background-color: rgba(255, 255, 255, 0.8);
    }

    /* Cards and panels: frosted white */
    .industry-card,
    .model-card,
    .product-feature,
    .spec-block,
    .radio-card-body {
        background-color: var(--glass);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }

    /* Nav dropdown stays fully opaque: it floats over arbitrary page content
       (headlines, hero text), unlike cards which sit on the page's own
       gradient, so the frosted-glass treatment above made its text unreadable. */
    .dropdown {
        background-color: #ffffff;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    /* Grey tiles and chips: light translucent blue */
    .feature-highlight,
    .accordion-item,
    .contact-card,
    .contact-info-list li,
    .legal-placeholder,
    .industry-chips li {
        background-color: var(--glass-blue);
    }

    .model-card-media {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(179, 209, 255, 0.5) 100%);
    }

    .btn-white:hover,
    .dropdown a:hover {
        background-color: rgba(220, 234, 255, 0.85);
    }

    /* Form fields stay mostly opaque so typed text remains easy to read */
    .form-group input,
    .form-group textarea,
    .form-group select {
        background-color: var(--glass-strong);
    }
}

/* ==========================================================================
   Mobile & Touch Refinements
   Base responsive layout already exists above; this block fixes phone-specific
   issues: an off-screen mobile menu, undersized tap targets, an overlapping
   scroll cue and overflowing buttons. Delete this block to revert.
   ========================================================================== */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

@media screen and (max-width: 968px) {
    /* Hamburger: full 44px touch target (X animation is unaffected) */
    .mobile-menu-toggle {
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }

    /* Menu: solid so page content doesn't ghost through, and it scrolls
       within the screen when a dropdown expands (was cut off below the fold) */
    .nav-menu {
        background-color: var(--dark-bg);
        max-height: calc(100vh - 70px);
        max-height: calc(100dvh - 70px);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    /* Scroll cue overlaps the hero buttons on phones and is pointless on touch */
    .scroll-indicator {
        display: none;
    }

    /* Hero fills the visible screen even while browser toolbars are showing */
    @supports (min-height: 100svh) {
        .hero-section {
            min-height: 100svh;
        }
    }

    /* Long button labels wrap instead of pushing past the screen edge */
    .btn {
        white-space: normal;
        max-width: 100%;
        text-align: center;
    }

    /* Tap targets of at least 44px */
    .footer-links li,
    .footer-contact li {
        margin-bottom: 0;
    }

    .footer-links a,
    .footer-contact a,
    .breadcrumb a,
    .card-link,
    .hero-media-caption {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .footer-links a,
    .footer-contact a {
        display: flex;
    }

    .breadcrumb {
        align-items: center;
    }

    .breadcrumb a {
        padding-inline: 0.25rem;
    }

    /* Model name links: bigger hit area with no change to card spacing */
    .model-card-body h3 a {
        display: inline-block;
        padding-block: 0.5rem;
        margin-block: -0.5rem;
    }
}

/* ==========================================================================
   Homepage UX audit fixes
   Navbar legibility, keyboard dropdowns, hero CTAs above the fold on laptops
   and phones, and the mobile menu's empty dropdown bars. Delete this block
   to revert.
   ========================================================================== */

/* Silver logo lettering needs a little edge definition on the light navbar */
.logo-img {
    filter: drop-shadow(0 1px 1px rgba(10, 14, 26, 0.45));
}

/* Dropdowns open for keyboard users too, not only on mouse hover */
.has-dropdown:has(:focus-visible) .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hero: the headline was 72px in a ~560px column, wrapping to four lines and
   pushing the CTAs below the fold on 720px-tall laptop screens */
.hero-section {
    padding-top: 120px;
    padding-bottom: var(--spacing-xl);
}

.hero-title {
    font-size: clamp(2.25rem, 4.2vw, 3.5rem);
    margin-bottom: var(--spacing-md);
}

.hero-subtitle {
    font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
    margin-bottom: var(--spacing-lg);
}

/* Entrance animation was long enough to leave the hero blank for ~1s */
.fade-in-up {
    animation-duration: 0.5s;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

@media (min-width: 969px) {
    .hero-grid {
        grid-template-columns: 1.15fr 0.85fr;
    }

    .hero-product-image {
        max-height: min(460px, 55vh);
    }
}

@media (max-width: 968px) {
    /* Headline and CTAs first on phones; the robot image follows */
    .hero-media {
        order: 0;
    }

    .hero-product-image {
        max-height: 220px;
    }

    /* Menu opens directly under the navbar instead of overlapping the logo */
    .nav-menu {
        top: 100%;
        max-height: calc(100vh - 82px);
        max-height: calc(100dvh - 82px);
    }

    /* A collapsed dropdown's padding survived max-height: 0, leaving an
       empty bar under Industries and Products */
    .dropdown {
        padding-top: 0;
        padding-bottom: 0;
        background: transparent;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .has-dropdown.active .dropdown {
        padding-top: var(--spacing-xs);
        padding-bottom: var(--spacing-xs);
    }
}

/* ---- Featured buyable product (Parts Store) ---- */
.featured-product-card {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--lighter-gray);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 10px 30px rgba(10, 14, 26, 0.06);
}
.featured-product-media {
    flex: 0 0 140px;
    height: 140px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}
.featured-product-body { flex: 1; min-width: 0; }
.in-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--secondary-dark);
    font-size: 0.85rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0.5rem;
}
.in-stock-badge i { font-size: 0.5rem; color: var(--secondary-color); }
.featured-product-body h3 { margin: 0 0 0.5rem; }
.featured-product-body p { color: var(--medium-gray); margin: 0 0 1.25rem; }
.featured-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.featured-product-price {
    font-size: 1.75rem;
    font-weight: var(--font-weight-bold);
    color: var(--dark-blue);
}
@media (max-width: 640px) {
    .featured-product-card { flex-direction: column; text-align: center; }
    .featured-product-footer { justify-content: center; }
}


/* ==== UX improvements (restored from earlier audit) ==== */
/* ---- Sticky Category Tab Bar (Products page) ---- */
.category-tab-bar {
    position: sticky;
    top: 70px;
    z-index: 800;
    background: var(--bg-dark, #111827);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 0;
    transition: box-shadow 0.3s;
    display: none;
}
.category-tab-bar.active {
    display: block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.category-tab-bar .container {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.category-tab-bar .container::-webkit-scrollbar {
    display: none;
}
.category-tab {
    flex: 0 0 auto;
    padding: 0.875rem 1.25rem;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.category-tab:hover { color: #fff; }
.category-tab.active {
    color: #fff;
    border-bottom-color: var(--primary);
}

/* ---- Related Products Section ---- */
.related-products {
    padding: 4rem 0;
    background: var(--bg-light, #f9fafb);
}
.related-products .section-header { margin-bottom: 2rem; }
.related-products .model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}


/* ---- Product Navigation (Prev / Next on detail pages) ---- */
.product-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border, #e5e7eb);
    margin-top: 2rem;
}
.product-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s;
}
.product-nav a:hover { color: var(--primary-dark, #1a56db); }
.product-nav .product-nav-next { margin-left: auto; }

/* ---- Industry Product Cross-Links ---- */
.industry-robots {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border, #e5e7eb);
}
.industry-robots h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted, #6b7280);
    margin-bottom: 0.75rem;
}
.industry-robot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.industry-robot-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.industry-robot-links a:hover {
    background: var(--primary);
    color: #fff;
}
.why-choose-section .industry-robots {
    border-top-color: rgba(255,255,255,0.15);
}
.why-choose-section .industry-robots h4 {
    color: rgba(255,255,255,0.6);
}
.why-choose-section .industry-robot-links a {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.why-choose-section .industry-robot-links a:hover {
    background: var(--primary);
    color: #fff;
}


/* ---- Mobile Nav Overlay ---- */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ---- Product Selector Wizard ---- */
.product-wizard {
    background: var(--bg-light, #f9fafb);
    padding: 3rem 0;
    margin-bottom: 0;
}
.wizard-card {
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-width: 700px;
    margin: 0 auto;
}
.wizard-card h3 {
    font-size: 1.375rem;
    margin-bottom: 0.5rem;
}
.wizard-card > p {
    color: var(--text-muted, #6b7280);
    margin-bottom: 1.5rem;
}
.wizard-step { display: none; }
.wizard-step.active { display: block; }
.wizard-step label {
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}
.wizard-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.wizard-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid var(--border, #e5e7eb);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: #fff;
}
.wizard-option:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.04);
}
.wizard-option.selected {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.06);
}
.wizard-option i {
    font-size: 1.25rem;
    color: var(--primary);
    width: 2rem;
    text-align: center;
}
.wizard-option span { font-size: 0.9375rem; font-weight: 500; }
.wizard-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
}


.wizard-results { margin-top: 1.5rem; }
.wizard-results h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-muted, #6b7280);
}
.wizard-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(37, 99, 235, 0.04);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s, transform 0.2s;
}
.wizard-result-item:hover {
    background: rgba(37, 99, 235, 0.08);
    transform: translateX(4px);
}
.wizard-result-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}
.wizard-result-item .result-info h5 {
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}
.wizard-result-item .result-info p {
    font-size: 0.8125rem;
    color: var(--text-muted, #6b7280);
    margin: 0;
}

/* ---- Comparison Table ---- */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 8px;
    border: 1px solid var(--border, #e5e7eb);
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.comparison-table thead {
    background: var(--bg-dark, #111827);
    color: #fff;
}
.comparison-table th,
.comparison-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border, #e5e7eb);
}
.comparison-table th { font-weight: 600; white-space: nowrap; }
.comparison-table tbody tr:nth-child(even) { background: rgba(0,0,0,0.02); }
.comparison-table tbody tr:hover { background: rgba(37, 99, 235, 0.04); }
.comparison-table a { color: var(--primary); font-weight: 500; }

/* ---- Demo product-context tag ---- */
.demo-product-context {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1rem;
}
.demo-product-context i { font-size: 1rem; }

/* ---- Responsive additions ---- */
@media (max-width: 768px) {
    .category-tab-bar { top: 81px; }
    .wizard-options { grid-template-columns: 1fr; }
    .product-nav {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    .product-nav .product-nav-next { margin-left: 0; align-self: flex-end; }
    .related-products .model-grid { grid-template-columns: 1fr; }
}



/* ==========================================================================
   Locations (home section, locations index, city pages)
   ========================================================================== */
.location-section {
    padding: var(--spacing-3xl) 0;
}

.location-layout {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: var(--spacing-xl);
    align-items: stretch;
    margin-top: var(--spacing-xl);
}

.location-hq,
.loc-hq-card {
    background: linear-gradient(135deg, var(--dark-bg), var(--dark-blue));
    color: var(--white);
    border-radius: var(--radius-lg, 20px);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--secondary-color);
}

.location-hq h3,
.loc-hq-card h2 {
    color: var(--white);
    margin: 0.5rem 0 var(--spacing-md);
    font-size: 1.6rem;
}

.loc-hq-card .section-label {
    color: var(--secondary-color);
}

.location-hq-list,
.loc-contact-list {
    list-style: none;
    margin: 0 0 var(--spacing-lg);
    padding: 0;
    display: grid;
    gap: 1rem;
}

.location-hq-list li {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    line-height: 1.5;
}

.location-hq-list i {
    flex: 0 0 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.location-hq-list a,
.loc-hq-card a:not(.btn) {
    color: var(--white);
}

.location-hq-list a:hover,
.loc-hq-card a:not(.btn):hover {
    color: var(--secondary-color);
}

.location-hq-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

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

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

.loc-map {
    border-radius: var(--radius-lg, 20px);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 340px;
    background: #e6eefb;
}

.loc-map-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 340px;
    border: 0;
}

.location-cities {
    margin-top: var(--spacing-xl);
    text-align: center;
}

.location-cities h3 {
    margin-bottom: var(--spacing-md);
}

.loc-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}

.loc-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.05rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--lighter-gray);
    color: var(--dark-bg);
    font-weight: var(--font-weight-medium);
    font-size: 0.92rem;
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.loc-chip i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.loc-chip:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.loc-chip:hover i {
    color: var(--white);
}

.location-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: var(--spacing-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
}

/* Locations index */
.loc-hq-row {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: var(--spacing-xl);
    align-items: stretch;
}

.loc-contact-list li {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    line-height: 1.5;
}

.loc-contact-list li > div {
    display: flex;
    flex-direction: column;
}

.loc-contact-list strong {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.7;
}

.loc-ic {
    flex: 0 0 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 102, 204, 0.12);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.loc-hq-card .loc-ic {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
}

.loc-city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.loc-city-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--lighter-gray);
    box-shadow: var(--shadow-sm);
    color: var(--dark-bg);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.loc-city-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.loc-city-card h3 {
    margin: 0.5rem 0 0;
    font-size: 1.15rem;
}

.loc-city-card p {
    margin: 0;
    color: var(--medium-gray);
    font-size: 0.9rem;
    word-break: break-all;
}

.loc-more-link {
    margin-top: 0.5rem;
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
    font-size: 0.92rem;
}

/* City detail page */
.loc-detail-layout {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.loc-p {
    color: var(--dark-gray);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.loc-subtitle {
    font-size: 1.5rem;
    margin: 0 0 var(--spacing-md);
}

.loc-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-md);
    display: grid;
    gap: 0.6rem;
}

.loc-list li {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}

.loc-list i {
    color: var(--secondary-color);
    margin-top: 0.3rem;
}

.loc-side {
    position: sticky;
    top: 110px;
    display: grid;
    gap: var(--spacing-md);
}

.loc-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--lighter-gray);
    border-radius: var(--radius-lg, 20px);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
}

.loc-card h3 {
    margin: 0 0 var(--spacing-md);
}

.loc-card .loc-contact-list a {
    color: var(--primary-color);
    word-break: break-all;
}

.loc-card .btn + .btn {
    margin-top: 0.6rem;
}

.loc-map-frame {
    min-height: 260px;
}

.loc-more {
    padding: var(--spacing-2xl, 3rem) 0 var(--spacing-3xl);
}

.loc-more .section-title {
    margin-bottom: var(--spacing-lg);
}

@media (max-width: 968px) {
    .location-layout,
    .loc-hq-row,
    .loc-detail-layout {
        grid-template-columns: 1fr;
    }

    .loc-side {
        position: static;
    }
}

/* ==========================================================================
   Floating chat launcher (home page)
   ========================================================================== */
.chat-launcher {
    position: fixed;
    right: var(--spacing-lg);
    bottom: var(--spacing-lg);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.chat-launcher-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.4rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    font-family: var(--font-primary);
    font-weight: var(--font-weight-semibold);
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0, 102, 204, 0.45);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.chat-launcher-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 102, 204, 0.55);
}

.chat-launcher-btn i {
    font-size: 1.15rem;
}

.chat-panel {
    position: relative;
    width: min(390px, calc(100vw - 2rem));
    max-height: calc(100vh - 8rem);
    max-height: calc(100dvh - 8rem);
    overflow-y: auto;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(10, 14, 26, 0.35);
}

.chat-panel[hidden] {
    display: none;
}

.chat-panel .chat-card {
    background-color: #ffffff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    margin: 0;
    min-height: 460px;
    overflow: hidden;
}

.chat-panel-close {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    z-index: 3;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(10, 14, 26, 0.08);
    color: var(--dark-bg);
    cursor: pointer;
}

.chat-panel-close:hover {
    background: rgba(10, 14, 26, 0.16);
}

body.has-chat-launcher .back-to-top {
    bottom: 5.75rem;
}

@media (max-width: 640px) {
    .chat-launcher {
        right: 1rem;
        bottom: 1rem;
    }

    .chat-launcher-btn span {
        display: none;
    }

    .chat-launcher-btn {
        padding: 1rem;
    }

    body.has-chat-launcher .back-to-top {
        bottom: 5.5rem;
        right: 1rem;
    }
}

@media (max-width: 640px) {
    .location-hq,
    .loc-hq-card {
        padding: var(--spacing-lg);
    }
}


/* Keep the navbar on one line between the mobile breakpoint and wide desktops
   (the Location menu made it too wide, wrapping "Contact Us" onto two lines). */
@media (min-width: 969px) and (max-width: 1240px) {
    .nav-menu {
        gap: var(--spacing-md);
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .nav-menu .btn {
        padding: 0.65rem 1.1rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .logo-img {
        height: 42px;
    }
}

/* Three hero buttons (demo, robots, contact) fit on one row on desktop. */
@media (min-width: 969px) {
    .hero-grid .hero-cta {
        gap: 0.75rem;
        flex-wrap: nowrap;
    }

    .hero-grid .hero-cta .btn {
        padding: 0.85rem 1.25rem;
        font-size: 0.95rem;
        white-space: nowrap;
    }
}
