/* ==========================================================================
   BayBot Dynamics - "Site plan" design system (blue and white)

   Concept: robots work in real floor plans, so the site reads like a plan:
   white paper, fine blue grid lines, thin rules, square-cornered plates, one
   route line that draws across the hero. Blue ink on white; navy for depth.

   Palette   paper #FFFFFF | plan tint #F2F6FD | line #CFDCF2 | ink navy #0A1F44
             beacon blue #1B5BE0 | deep blue #0B3A8F | muted ink #4A5C7C
   Type      Bricolage Grotesque (headings, character) + Public Sans (reading)
   Radii     4px plates and images, 8px controls, pill only for chips
   Motion    one moment: the hero route line draws once. Everything else is
             state feedback (hover, focus, open/close).

   Loaded after styles.css, which still provides the component mechanics
   (chat widget, wizards, checkout, locations). Delete the <link> to return to
   the previous look. Content and markup are unchanged.
   ========================================================================== */

:root {
    --paper: #ffffff;
    --tint: #f2f6fd;
    --tint-2: #e6eefb;
    --line: #cfdcf2;
    --line-strong: #9fb6de;
    --ink: #0a1f44;
    --muted: #4a5c7c;
    --blue: #1b5be0;
    --blue-deep: #0b3a8f;
    --navy: #0a1f44;
    --navy-2: #0f2a5c;
    --on-navy: #dce7fb;

    --font-display: 'Bricolage Grotesque', 'Public Sans', system-ui, sans-serif;
    --font-body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --r-plate: 4px;
    --r-control: 8px;
    --max: 1200px;
    --gutter: clamp(20px, 4vw, 48px);
    --section-y: clamp(72px, 9vw, 120px);
    --nav-h: 76px;

    /* Re-point the legacy variables from styles.css so every untouched
       component (chat, wizards, checkout, locations) inherits the new palette. */
    --primary-color: var(--blue);
    --primary-dark: var(--blue-deep);
    --primary-light: #4c82ee;
    --secondary-color: var(--blue);
    --secondary-dark: var(--blue-deep);
    --accent-color: var(--blue);
    --dark-bg: var(--navy);
    --dark-blue: var(--navy-2);
    --dark-gray: var(--ink);
    --medium-gray: var(--muted);
    --light-gray: var(--line);
    --lighter-gray: var(--tint);
    --font-primary: var(--font-body);
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 8px;
    --radius-2xl: 8px;
    --radius-full: 8px;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: 0 12px 32px rgba(10, 31, 68, .14);
    --shadow-xl: 0 12px 32px rgba(10, 31, 68, .14);
}

/* --- Base ---------------------------------------------------------------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body::before { display: none !important; }

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin-bottom: .6em;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); letter-spacing: -0.035em; font-weight: 700; }
h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -0.02em; }
h4 { font-size: 1.125rem; letter-spacing: -0.01em; }
p { line-height: 1.7; max-width: 68ch; }
.text-center p, .section-header p { max-width: none; }

a { color: var(--blue); text-underline-offset: .2em; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--blue); color: #fff; }

.container { max-width: var(--max); padding-left: var(--gutter); padding-right: var(--gutter); }
section { padding: var(--section-y) 0; background: transparent; }
.skip-link:focus { background: var(--ink); color: #fff; }

/* Plan-paper texture: a faint grid used behind heroes and page headers */
.plan-grid {
    background-image:
        linear-gradient(var(--tint-2) 1px, transparent 1px),
        linear-gradient(90deg, var(--tint-2) 1px, transparent 1px);
    background-size: 56px 56px;
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    padding: .9rem 1.5rem;
    min-height: 48px;
    border-radius: var(--r-control);
    border: 1.5px solid transparent;
    box-shadow: none;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
    justify-content: center;
}
.btn:hover { transform: none; box-shadow: none; }
.btn-lg { padding: 1rem 1.75rem; font-size: 1.0625rem; min-height: 54px; }
.btn-primary, .btn-secondary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover, .btn-secondary:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-white { background: #fff; color: var(--blue-deep); border-color: #fff; }
.btn-white:hover { background: var(--tint-2); color: var(--navy); border-color: var(--tint-2); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn .fa-arrow-right, .btn .fa-arrow-left { display: none; }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; }

.card-link, .loc-more-link { font-weight: 600; color: var(--blue); text-decoration: none; }
.card-link:hover { color: var(--blue-deep); text-decoration: underline; }

/* --- Section headers: left aligned, title left / description right --------- */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--blue);
    margin-bottom: 1rem;
}
.section-label::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section-label.light { color: #9db9f5; }

.section-title { margin-bottom: 1.25rem; }
.section-header .section-title { margin-bottom: 0; }
.section-title.light { color: #fff; }
.section-description { font-size: 1.125rem; color: var(--muted); max-width: 60ch; margin-bottom: 0; }
.section-description.light { color: var(--on-navy); }

.section-header { margin-bottom: clamp(40px, 5vw, 64px); }
.section-header.text-center {
    text-align: left;
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(32px, 6vw, 88px);
    row-gap: .5rem;
    align-items: end;
}
.section-header.text-center .section-label { grid-column: 1; grid-row: 1; }
.section-header.text-center .section-title { grid-column: 1; grid-row: 2; }
.section-header.text-center .section-description { grid-column: 2; grid-row: 1 / span 2; margin: 0; align-self: end; }
@media (max-width: 860px) {
    .section-header.text-center { display: block; }
    .section-header.text-center .section-description { margin-top: 1rem; }
}
.section-cta { text-align: left; margin-top: 40px; }

/* --- Navigation: navy bar so the light-lettered logo stays legible --------- */
.navbar, .navbar.scrolled {
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.nav-container { max-width: var(--max); padding: 0 var(--gutter); min-height: var(--nav-h); }
.logo-img { height: 44px; filter: none; }
.nav-links > li > a, .nav-links > li > a:visited { color: #fff; font-family: var(--font-body); font-weight: 500; font-size: .975rem; }
.nav-links > li > a:hover, .nav-links > li > a.active { color: #b9cffa; }
.nav-links > li > a::after { background: #8fb4ff; height: 2px; }
.nav-menu .btn-primary { background: #fff; color: var(--navy); border-color: #fff; padding: .7rem 1.25rem; min-height: 44px; }
.nav-menu .btn-primary:hover { background: var(--tint-2); border-color: var(--tint-2); color: var(--navy); }
.mobile-menu-toggle span { background: #fff; }

.dropdown {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-plate);
    box-shadow: var(--shadow-lg);
    padding: 8px;
}
.dropdown a, .dropdown a:visited { color: var(--ink); border-radius: 2px; font-size: .95rem; }
.dropdown a:hover { background: var(--tint); color: var(--blue-deep); }
.dropdown-industries { min-width: 340px; }
.dropdown-industries .dropdown-media { display: flex; align-items: center; gap: 12px; padding: 8px 10px; }
.dropdown-industries img { width: 48px; height: 48px; border-radius: 2px; object-fit: cover; flex-shrink: 0; background: var(--tint); }
.dropdown-industries span { display: flex; flex-direction: column; line-height: 1.3; }
.dropdown-industries strong { font-size: .95rem; font-weight: 600; color: var(--ink); }
.dropdown-industries small { font-size: .8rem; color: var(--muted); }
@media (max-width: 968px) {
    .nav-menu { background: var(--navy); }
    .nav-menu .dropdown a, .dropdown-industries strong { color: #fff; }
    .dropdown-industries small { display: none; }
    .nav-menu .dropdown a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
}

/* --- Hero (home) ---------------------------------------------------------- */
.hero-section {
    min-height: 0;
    display: block;
    padding: calc(var(--nav-h) + clamp(40px, 6vw, 80px)) 0 clamp(48px, 6vw, 88px);
    background-color: var(--paper);
    background-image:
        linear-gradient(var(--tint-2) 1px, transparent 1px),
        linear-gradient(90deg, var(--tint-2) 1px, transparent 1px);
    background-size: 56px 56px;
    background-position: -1px calc(var(--nav-h) - 1px);
    overflow: visible;
}
.hero-section::before, .hero-section::after { display: none; }
.hero-background, .scroll-indicator { display: none; }
.hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
}
.hero-content { max-width: 680px; }
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--blue-deep);
    margin-bottom: 1.5rem;
}
.hero-eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--blue); border-radius: 0; box-shadow: none; }
.hero-title {
    font-size: clamp(2.6rem, 5.2vw, 4.4rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.gradient-text { background: none; -webkit-text-fill-color: currentColor; color: inherit; }
.hero-subtitle { font-size: 1.2rem; color: var(--muted); max-width: 46ch; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }

/* The photo is a framed plate with a registration frame; the robot breaks out of it. */
.hero-media {
    position: relative;
    display: block;
    min-height: clamp(360px, 42vw, 560px);
    /* left part of the empty warehouse; the robot below comes from the product image */
    background: var(--tint) url('assets/images/warehouse-hero.webp') 0% 50% / auto 100% no-repeat;
    border-radius: var(--r-plate);
    outline: 1px solid var(--line-strong);
    outline-offset: 14px;
}
.hero-media::before {
    /* the route: a survey line drawn once on load */
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 480' preserveAspectRatio='none'%3E%3Cpath d='M20 430 C 120 430 140 300 240 300 S 380 400 450 260 S 560 120 580 60' fill='none' stroke='%231b5be0' stroke-width='3' stroke-dasharray='2 10' stroke-linecap='round'/%3E%3Ccircle cx='20' cy='430' r='7' fill='%231b5be0'/%3E%3Ccircle cx='580' cy='60' r='7' fill='%23fff' stroke='%231b5be0' stroke-width='3'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    clip-path: inset(0 100% 0 0);
    animation: route-draw 2.4s .4s cubic-bezier(.45, .05, .25, 1) forwards;
    pointer-events: none;
}
@keyframes route-draw { to { clip-path: inset(0 0 0 0); } }
.hero-product-image {
    position: absolute;
    right: -4%;
    bottom: -6%;
    width: 62%;
    max-height: none;
    height: auto;
    filter: drop-shadow(0 22px 28px rgba(10, 31, 68, .28));
}
.hero-media-caption {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: .8rem 1.1rem;
    background: #fff;
    border: 1px solid var(--line-strong);
    border-left: 0;
    border-bottom: 0;
    border-radius: 0 var(--r-plate) 0 var(--r-plate);
    font-weight: 600;
    font-size: .95rem;
    color: var(--ink);
    text-decoration: none;
}
.hero-media-caption:hover { color: var(--blue); gap: .4rem; }
@media (max-width: 968px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-media { min-height: 340px; outline-offset: 10px; margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-media::before { animation: none; clip-path: none; }
    html { scroll-behavior: auto; }
}

/* --- Trust strip ---------------------------------------------------------- */
.trust-strip { padding: 0; margin: 0; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.trust-item { display: flex; align-items: center; gap: 1rem; padding: 28px 24px; font-size: .975rem; color: var(--muted); border: 0; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item i { width: auto; height: auto; background: none; border-radius: 0; color: var(--blue); font-size: 1.4rem; display: inline; }
.trust-item strong { display: block; color: var(--ink); font-weight: 600; }
@media (max-width: 900px) {
    .trust-grid { grid-template-columns: 1fr 1fr; }
    .trust-item:nth-child(3) { border-left: 0; }
    .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
    .trust-grid { grid-template-columns: 1fr; }
    .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); }
}

/* --- Two-column story sections (About, product overview, detail rows) ------- */
.about-section { background: var(--paper); }
.section-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 7vw, 104px); align-items: center; }
@media (max-width: 860px) { .section-grid { grid-template-columns: 1fr; } .section-grid.reverse { direction: ltr; } }
.about-content .section-description { margin-bottom: 1.25rem; }
.about-images { position: relative; padding: 0 0 36px 0; }
.image-wrapper { display: block; position: relative; }
.about-image-main { width: 100%; border-radius: var(--r-plate); outline: 1px solid var(--line-strong); outline-offset: 12px; box-shadow: none; }
.about-image-secondary {
    position: absolute; right: -16px; bottom: -36px; width: 36%; height: auto;
    border: 6px solid #fff; border-radius: var(--r-plate); box-shadow: none; background: #fff;
}
.feature-highlight {
    display: flex; gap: 1.25rem; align-items: flex-start; margin: 2rem 0;
    padding: 1.25rem 1.5rem; background: var(--tint); border: 0; border-left: 3px solid var(--blue); border-radius: 0 var(--r-plate) var(--r-plate) 0;
}
.feature-icon { background: none; padding: 0; width: 44px; flex-shrink: 0; }
.feature-text h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.feature-text p { margin: 0; color: var(--muted); font-size: 1rem; }

/* --- Directory rows: 6-item industry / category lists ----------------------- */
.industries-section { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.industries-grid { gap: 0; }
.industries-grid:has(> .industry-card:nth-child(6)) { display: block; border-top: 2px solid var(--ink); }
.industries-grid:has(> .industry-card:nth-child(6)) > .industry-card {
    display: grid;
    grid-template-columns: minmax(170px, 260px) minmax(0, 1fr) auto;
    column-gap: clamp(24px, 4vw, 56px);
    row-gap: 4px;
    align-items: center;
    padding: 24px 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line-strong);
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    transform: none;
    color: inherit;
    text-decoration: none;
}
.industries-grid:has(> .industry-card:nth-child(6)) > .industry-card:hover { background: #fff; transform: none; box-shadow: none; }
.industries-grid:has(> .industry-card:nth-child(6)) .industry-card-media { grid-column: 1; grid-row: 1 / span 2; height: 150px; border-radius: var(--r-plate); }
.industries-grid:has(> .industry-card:nth-child(6)) .industry-icon { display: none; }
.industries-grid:has(> .industry-card:nth-child(6)) h3 { grid-column: 2; grid-row: 1; align-self: end; margin: 0; font-size: clamp(1.4rem, 2.4vw, 2rem); }
.industries-grid:has(> .industry-card:nth-child(6)) p { grid-column: 2; grid-row: 2; align-self: start; margin: 0; color: var(--muted); max-width: 54ch; }
.industries-grid:has(> .industry-card:nth-child(6)) .card-link { grid-column: 3; grid-row: 1 / span 2; margin: 0; white-space: nowrap; }
.industries-grid:has(> .industry-card:nth-child(6)) > .industry-card:hover h3 { color: var(--blue); }
@media (max-width: 760px) {
    .industries-grid:has(> .industry-card:nth-child(6)) > .industry-card { grid-template-columns: 110px minmax(0, 1fr); }
    .industries-grid:has(> .industry-card:nth-child(6)) .industry-card-media { height: 110px; }
    .industries-grid:has(> .industry-card:nth-child(6)) .card-link { grid-column: 2; grid-row: 3; margin-top: 8px; }
}

/* Plate cards: every other card group (4-up values, families, no-image cards) */
.industries-grid:not(:has(> .industry-card:nth-child(6))) { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 2px solid var(--ink); border-left: 1px solid var(--line-strong); }
.industries-grid:not(:has(> .industry-card:nth-child(6))) > .industry-card {
    background: transparent; border: 0; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong);
    border-radius: 0; box-shadow: none; padding: 0 0 28px; overflow: hidden; display: flex; flex-direction: column; transform: none;
}
.industries-grid:not(:has(> .industry-card:nth-child(6))) > .industry-card:hover { background: #fff; transform: none; box-shadow: none; }
.industries-grid:not(:has(> .industry-card:nth-child(6))) .industry-card-media { height: 180px; border-radius: 0; margin: 0 0 20px; }
.industries-grid:not(:has(> .industry-card:nth-child(6))) .industry-card > :not(.industry-card-media) { margin-left: 24px; margin-right: 24px; }
.industries-grid:not(:has(> .industry-card:nth-child(6))) .industry-card:not(:has(.industry-card-media)) { padding-top: 28px; }
.industry-card h3 { margin-bottom: .5rem; }
.industry-card p { color: var(--muted); font-size: 1rem; }
.industry-icon { width: auto; height: auto; background: none; border: 0; border-radius: 0; box-shadow: none; color: var(--blue); font-size: 1.6rem; margin-bottom: 1rem; display: block; }
.industry-icon i { color: var(--blue); font-size: inherit; }
.industry-card .card-link { margin-top: auto; padding-top: .5rem; }
.industry-card-media { overflow: hidden; background: var(--tint-2); }
.industry-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- Navy plates: "Why choose us", mission, video, CTA --------------------- */
.why-choose-section, .product-video-section, .cta-section {
    background-color: var(--navy);
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 56px 56px;
    color: var(--on-navy);
}
.why-choose-background, .shape-left, .shape-right { display: none; }
.why-choose-section h2, .why-choose-section h3, .why-choose-section h4, .why-choose-section .section-title,
.cta-section h2, .cta-section h3, .product-video-section h2 { color: #fff; }
.why-choose-section .section-description, .features-list p { color: var(--on-navy); }
.why-choose-section .section-label { color: #9db9f5; }
.features-list { list-style: none; margin: 2rem 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.features-list li { display: flex; gap: 1rem; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .18); margin: 0; }
.features-list i { color: #8fb4ff; margin-top: .3rem; font-size: 1.05rem; flex-shrink: 0; }
.features-list h4 { color: #fff; margin: 0 0 .25rem; font-size: 1.15rem; }
.features-list p { margin: 0; font-size: 1rem; }
.why-choose-image .feature-image { width: 100%; border-radius: var(--r-plate); box-shadow: none; outline: 1px solid rgba(255, 255, 255, .3); outline-offset: 12px; background: #fff; }
.check-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.check-list li { display: flex; gap: .75rem; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); margin: 0; }
.check-list i { color: var(--blue); margin-top: .35rem; }
.check-list.light li { color: var(--on-navy); border-bottom-color: rgba(255, 255, 255, .18); }
.check-list.light i { color: #8fb4ff; }
.why-choose-section .btn-white, .cta-section .btn-white { background: #fff; color: var(--navy); }

.cta-section { text-align: left; }
.cta-section .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.cta-section p { color: var(--on-navy); max-width: 52ch; }
.cta-section .btn-primary { background: #fff; color: var(--navy); border-color: #fff; }
.cta-section .btn-primary:hover { background: var(--tint-2); border-color: var(--tint-2); }

/* --- FAQ accordion + contact card ------------------------------------------ */
.faq-section { background: var(--paper); border: 0; }
.accordion { border-top: 2px solid var(--ink); }
.accordion-item { background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; box-shadow: none; margin: 0; }
.accordion-header {
    width: 100%; background: none; border: 0; padding: 20px 0; text-align: left; cursor: pointer;
    font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; color: var(--ink);
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.accordion-header:hover { color: var(--blue); }
.accordion-header i { color: var(--blue); transition: transform .2s ease; }
.accordion-item.active .accordion-header i { transform: rotate(180deg); }
.accordion-content p { color: var(--muted); padding-bottom: 20px; margin: 0; }

.contact-card, .chat-card, .buy-card, .featured-product-card, .wizard-card {
    background: #fff; border: 1px solid var(--line-strong); border-top: 3px solid var(--blue);
    border-radius: var(--r-plate); box-shadow: none; padding: clamp(24px, 3vw, 40px);
}
.contact-card h3 { margin-bottom: .4rem; }
.contact-card > p { color: var(--muted); }

/* --- Forms ------------------------------------------------------------------ */
.form-group { margin-bottom: 1.25rem; }
.form-group label, label { font-weight: 600; font-size: .95rem; color: var(--ink); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"],
select, textarea, .form-group input, .form-group select, .form-group textarea {
    font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: #fff;
    border: 1.5px solid var(--line-strong); border-radius: var(--r-control); padding: .8rem 1rem; min-height: 48px; width: 100%;
    transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 120px; }
input::placeholder, textarea::placeholder { color: #5a6c8c; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27, 91, 224, .2); }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: #b3261e; }
.form-status { font-size: .95rem; margin: .75rem 0 0; min-height: 1.4em; color: var(--muted); }
.form-status.is-success { color: var(--blue-deep); font-weight: 600; }
.form-status.is-error { color: #b3261e; font-weight: 600; }
.captcha-box { min-height: 65px; margin: 0 0 1rem; }
.radio-card-body { border: 1.5px solid var(--line-strong); border-radius: var(--r-plate); background: #fff; box-shadow: none; }
.radio-card input:checked + .radio-card-body { border-color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); background: var(--tint); }

/* --- Footer ------------------------------------------------------------------ */
.footer { background: var(--navy); color: var(--on-navy); padding-top: 72px; border: 0; }
.footer-background, .footer-shape { display: none; }
.footer h4 { color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.footer a, .footer p, .footer li { color: var(--on-navy); font-size: .975rem; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { gap: 48px; }
.footer-contact i, .footer-links i { color: #8fb4ff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); color: #9db4de; margin-top: 56px; padding: 24px 0; }
.social-links { display: flex; gap: 10px; }
.social-links a { width: 40px; height: 40px; display: grid; place-items: center; background: transparent; border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--r-plate); color: #fff; }
.social-links a:hover { background: #fff; color: var(--navy); border-color: #fff; text-decoration: none; }
.back-to-top { background: var(--blue); color: #fff; border-radius: var(--r-control); box-shadow: none; }
.back-to-top:hover { background: var(--blue-deep); }

/* --- Inner page header --------------------------------------------------------- */
.page-header {
    text-align: left;
    padding: calc(var(--nav-h) + clamp(40px, 6vw, 80px)) 0 clamp(40px, 5vw, 64px);
    background-color: var(--paper);
    background-image:
        linear-gradient(var(--tint-2) 1px, transparent 1px),
        linear-gradient(90deg, var(--tint-2) 1px, transparent 1px);
    background-size: 56px 56px;
    background-position: -1px calc(var(--nav-h) - 1px);
    border-bottom: 1px solid var(--line-strong);
}
.page-header h1 { color: var(--ink); font-size: clamp(2.5rem, 5.5vw, 4.5rem); margin: .4rem 0 1rem; max-width: 18ch; }
.page-header p { font-size: 1.25rem; color: var(--muted); max-width: 52ch; margin: 0; }
.breadcrumb, .breadcrumb-left { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .95rem; color: var(--muted); justify-content: flex-start; }
.breadcrumb a { color: var(--blue); }
.breadcrumb [aria-current], .breadcrumb span { color: var(--ink); }

/* --- Locations (home block, index, city pages) ------------------------------- */
.location-section { background: var(--paper); }
.location-hq, .loc-hq-card {
    background-color: var(--navy);
    background-image: none;
    color: var(--on-navy);
    border-radius: var(--r-plate);
    box-shadow: none;
    padding: clamp(24px, 3vw, 40px);
}
.location-badge { color: #9db9f5; letter-spacing: 0; text-transform: none; font-size: .95rem; }
.location-hq h3, .loc-hq-card h2 { color: #fff; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.loc-hq-card .section-label { color: #9db9f5; }
.location-hq a:not(.btn), .loc-hq-card a:not(.btn) { color: #fff; }
.loc-ic { background: rgba(255, 255, 255, .1); color: #9db9f5; border-radius: var(--r-plate); }
.loc-card .loc-ic, .loc-contact-list .loc-ic { background: var(--tint-2); color: var(--blue); }
.loc-map { border-radius: var(--r-plate); box-shadow: none; outline: 1px solid var(--line-strong); outline-offset: 10px; background: var(--tint); }
.location-cities { text-align: left; margin-top: 56px; }
.location-cities h3 { font-size: 1.4rem; }
.loc-chips { justify-content: flex-start; gap: 8px; }
.loc-chip {
    border-radius: var(--r-plate); background: #fff; border: 1px solid var(--line-strong); color: var(--ink);
    font-size: .95rem; padding: .55rem .95rem; transform: none; transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.loc-chip i { color: var(--blue); }
.loc-chip:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: none; }
.location-all { color: var(--blue); font-weight: 600; }
.loc-city-grid { gap: 0; border-top: 2px solid var(--ink); border-left: 1px solid var(--line-strong); margin-top: 40px; }
.loc-city-card {
    background: transparent; border: 0; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong);
    border-radius: 0; box-shadow: none; padding: 24px; transition: background-color .15s ease; transform: none;
}
.loc-city-card:hover { background: var(--tint); transform: none; box-shadow: none; }
.loc-city-card h3 { font-size: 1.3rem; }
.loc-detail-layout { gap: clamp(32px, 6vw, 80px); }
.loc-p { color: var(--ink); line-height: 1.75; }
.loc-subtitle { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.loc-list li { border-bottom: 1px solid var(--line); }
.loc-card { background: #fff; border: 1px solid var(--line-strong); border-top: 3px solid var(--blue); border-radius: var(--r-plate); box-shadow: none; }

/* --- Catalog: model cards (products, related) ---------------------------------- */
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0; border-top: 2px solid var(--ink); border-left: 1px solid var(--line-strong); }
.model-card {
    background: #fff; border: 0; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong);
    border-radius: 0; box-shadow: none; overflow: hidden; transform: none; display: flex; flex-direction: column;
}
.model-card:hover { transform: none; box-shadow: none; background: var(--tint); }
.model-card-media { background: var(--tint); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 20px; border-bottom: 1px solid var(--line); }
.model-card-media img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.model-card-body { padding: 20px 24px 8px; }
.model-card-body h3 { font-size: 1.35rem; margin-bottom: .35rem; }
.model-card-body h3 a { color: var(--ink); text-decoration: none; }
.model-card-body h3 a:hover { color: var(--blue); }
.model-card-body p { color: var(--muted); font-size: 1rem; }
.model-actions { padding: 8px 24px 24px; margin-top: auto; }
.model-flags { padding: 0 24px; }
.model-video-flag { background: var(--tint-2); color: var(--blue-deep); border-radius: var(--r-plate); font-size: .85rem; font-weight: 600; }

/* --- Product detail ------------------------------------------------------------- */
.product-hero {
    background-color: var(--paper);
    background-image:
        linear-gradient(var(--tint-2) 1px, transparent 1px),
        linear-gradient(90deg, var(--tint-2) 1px, transparent 1px);
    background-size: 56px 56px;
    background-position: -1px calc(var(--nav-h) - 1px);
    border-bottom: 1px solid var(--line-strong);
    padding: calc(var(--nav-h) + 32px) 0 clamp(48px, 6vw, 88px);
}
.product-hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.product-hero-title { font-family: var(--font-body); font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 600; color: var(--blue-deep); }
.product-hero h1 { max-width: 14ch; }
.product-hero-summary p { color: var(--muted); font-size: 1.1rem; }
.product-hero-media {
    background: var(--tint); border: 0; border-radius: var(--r-plate); outline: 1px solid var(--line-strong); outline-offset: 12px;
    padding: clamp(16px, 3vw, 40px); display: grid; place-items: center;
}
.product-hero-media img { max-height: 420px; width: auto; filter: drop-shadow(0 16px 20px rgba(10, 31, 68, .22)); }
.product-video-section { padding: var(--section-y) 0; }
.product-video-section .section-title, .product-video-section h2 { color: #fff; }
.video-embed { border-radius: var(--r-plate); box-shadow: none; outline: 1px solid rgba(255, 255, 255, .3); outline-offset: 10px; overflow: hidden; }
.video-embed-play { background: var(--blue); color: #fff; border-radius: var(--r-control); }
.product-overview { background: var(--paper); }
.product-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; border-top: 2px solid var(--ink); border-left: 1px solid var(--line-strong); }
.product-feature { background: transparent; border: 0; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); border-radius: 0; box-shadow: none; padding: 28px; transform: none; }
.product-feature:hover { background: var(--tint); transform: none; box-shadow: none; }
.product-feature-icon { background: none; color: var(--blue); width: auto; height: auto; border-radius: 0; font-size: 1.3rem; margin-bottom: .75rem; }
.product-feature h3 { font-size: 1.2rem; }
.product-feature p { color: var(--muted); font-size: 1rem; margin: 0; }
.product-function { border-bottom: 1px solid var(--line-strong); }
.product-function-media { background: var(--tint); border-radius: var(--r-plate); outline: 1px solid var(--line-strong); outline-offset: 10px; box-shadow: none; }
.product-function-media img { border-radius: var(--r-plate); }
.spec-block, .spec-blocks > * { background: #fff; border: 1px solid var(--line-strong); border-top: 3px solid var(--blue); border-radius: var(--r-plate); box-shadow: none; }
.spec-note { border-left: 3px solid var(--blue); background: var(--tint); color: var(--muted); border-radius: 0; }
.related-products { background: var(--tint); border-top: 1px solid var(--line); }
.industry-chips, .loc-chips { gap: 8px; }
.industry-chips > *, .industry-chips a { border-radius: var(--r-plate); background: #fff; border: 1px solid var(--line-strong); color: var(--ink); }

/* --- Contact, demo, parts -------------------------------------------------------- */
.contact-layout { gap: clamp(32px, 6vw, 88px); }
.contact-info-list li, .loc-contact-list li { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 18px 0; box-shadow: none; }
.contact-info-icon { background: var(--tint-2); color: var(--blue); border-radius: var(--r-plate); box-shadow: none; }
.wizard-option { border: 1.5px solid var(--line-strong); border-radius: var(--r-plate); background: #fff; box-shadow: none; }
.wizard-option.active, .wizard-option.selected { border-color: var(--blue); background: var(--tint); color: var(--blue-deep); }
.in-stock-badge { background: var(--tint-2); color: var(--blue-deep); border-radius: var(--r-plate); }
.featured-product-card { border-radius: var(--r-plate); }
.comparison-table { border-collapse: collapse; width: 100%; }
.comparison-table th { background: var(--navy); color: #fff; font-family: var(--font-display); text-align: left; padding: 14px 16px; }
.comparison-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.empty-state { border: 1px dashed var(--line-strong); border-radius: var(--r-plate); background: var(--tint); }
.empty-state-icon { color: var(--blue); }
.legal-content { max-width: 74ch; }
.legal-content h2 { font-size: 1.6rem; margin-top: 2.5rem; }
.legal-meta { color: var(--muted); }
.legal-rule { border: 0; border-top: 1px solid var(--line-strong); }

/* --- Chat widget follows the plan look ---------------------------------------------- */
.chat-launcher-btn { background: var(--blue); border-radius: var(--r-control); box-shadow: 0 8px 20px rgba(10, 31, 68, .28); }
.chat-launcher-btn:hover { background: var(--blue-deep); }
.chat-panel, .chat-window, .chat-card { border-radius: var(--r-plate); }
.chat-header { background: var(--navy); color: #fff; }
.chat-send { background: var(--blue); border-radius: var(--r-control); }

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

/* Sticky category tabs on the products page */
.category-tab-bar { top: var(--nav-h); background: #fff; border-bottom: 1px solid var(--line-strong); box-shadow: none; }
.category-tab-bar.active { box-shadow: none; }
.category-tab { color: var(--muted); font-weight: 600; font-size: .95rem; padding: 1rem 1.25rem; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: none; }
.category-tab:hover { color: var(--ink); }
.category-tab.active { color: var(--blue-deep); border-bottom-color: var(--blue); background: none; }

/* Footer columns: explicit, so four columns fit the container */
.footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; margin-bottom: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.section-header .btn { justify-self: start; grid-column: 1; margin-top: 1.25rem; }

.loc-more, .loc-more .section-title, .loc-more h2 { text-align: left; }
.loc-more .loc-chips { justify-content: flex-start; }
.text-center { text-align: left; }
.text-center .section-description { margin-left: 0; margin-right: 0; }
.why-choose-section .text-center { text-align: left; }
.why-choose-section .text-center .section-title { max-width: 22ch; }
@media (max-width: 968px) {
    .hero-content { text-align: left; }
    .hero-cta { justify-content: flex-start; }
    .hero-cta .btn { flex: 1 1 100%; }
}
.comparison-table a, .location-all { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.loc-city-card { align-items: flex-start; text-align: left; }
.loc-city-card .fa-location-dot { color: var(--blue); }
