/* ==========================================================================
   V6 Fabrication & Equipment (v6conveyors.com) — site styles
   Theme follows the existing v6conveyors.com look: charcoal + V6 red,
   condensed uppercase headings.
   ========================================================================== */

:root {
    --red: #e30613;
    --red-dark: #b8040f;
    --ink: #151515;
    --char: #232323;
    --char-2: #2e2e2e;
    --steel: #4a4a4a;
    --gray-100: #f5f5f4;
    --gray-200: #e7e5e4;
    --gray-300: #d6d3d1;
    --gray-500: #78716c;
    --gray-600: #57534e;
    --gray-700: #3f3c39;
    --white: #ffffff;
    --radius: 4px;
    --shadow: 0 6px 20px rgb(0 0 0 / 0.08);
    --shadow-lg: 0 14px 40px rgb(0 0 0 / 0.14);
    --head: 'Oswald', 'Arial Narrow', Arial, sans-serif;
    --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--body);
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--red); }
h1, h2, h3, h4 {
    font-family: var(--head);
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.1;
    color: var(--ink);
    font-weight: 600;
}
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: .5rem 1rem; z-index: 2000; }
.skip-link:focus { left: 1rem; }

/* ---------- Top bar + navigation ---------- */
.topbar { background: var(--ink); color: #cfcfcf; font-size: .85rem; }
.topbar .container { display: flex; justify-content: flex-end; gap: 1.5rem; padding-top: .4rem; padding-bottom: .4rem; flex-wrap: wrap; }
.topbar a { color: #e5e5e5; text-decoration: none; }
.topbar a:hover { color: #fff; }

.navbar {
    position: sticky; top: 0; z-index: 1000;
    background: var(--char);
    border-bottom: 3px solid var(--red);
}
.nav-container { max-width: var(--max); margin: 0 auto; padding: .7rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: #fff; }
.logo-v6 {
    font-family: var(--head); font-weight: 700; font-size: 2rem; line-height: 1;
    color: var(--red); font-style: italic; letter-spacing: -.02em;
}
.logo img { height: 40px; width: auto; display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; border-left: 2px solid #4a4a4a; padding-left: .65rem; }
.logo-text strong { font-family: var(--head); font-size: 1.15rem; letter-spacing: .05em; text-transform: uppercase; font-weight: 600; }
.logo-text small { font-size: .68rem; color: #bdbdbd; letter-spacing: .06em; text-transform: uppercase; }
/* ---------- Problem cards (home) ---------- */
.problem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.problem-card { display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem; background: #fff; border: 1px solid var(--gray-200); border-top: 4px solid var(--red); box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.problem-card:hover, .problem-card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.problem-card h3 { font-size: 1.15rem; }
.problem-card p { font-size: .95rem; color: var(--gray-600); flex: 1; }
.problem-card .text-link { color: var(--red); }

/* ---------- FAQ (home) ---------- */
.faq-list { max-width: 50rem; }
.faq-item { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); margin-bottom: .75rem; }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; font-family: var(--head); font-size: 1.05rem; letter-spacing: .02em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--red); font-size: 1.4rem; line-height: 1; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p { padding: 0 1.25rem 1.1rem; color: var(--gray-600); }

/* ---------- Project stories ---------- */
.project { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; padding: 3rem 0; border-bottom: 1px solid var(--gray-200); }
.project:first-child { padding-top: 0; }
.project:last-child { border-bottom: 0; padding-bottom: 0; }
.project--flip .project-media { order: 2; }
.project-media { display: grid; gap: 1rem; }
.project-media img { width: 100%; border-radius: var(--radius); border-bottom: 4px solid var(--red); box-shadow: var(--shadow); }
.project-body h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: .6rem 0 .3rem; }
.project-body h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; color: var(--red); margin: 1.2rem 0 .3rem; }
.project-body p { color: var(--gray-600); margin-bottom: .6rem; }
.project-built { font-weight: 600; color: var(--gray-700) !important; }
.project-links { font-size: .95rem; }
/* Blanks still to fill in and photos still to take. build.js lists them. */
.todo { background: #fff3a3; color: var(--ink); padding: 0 .25em; border-radius: 2px; }
.photo-slot { display: grid; place-items: center; min-height: 10rem; padding: 1rem; text-align: center; border: 2px dashed var(--gray-300); border-radius: var(--radius); color: var(--gray-500); background: var(--gray-100); font-size: .95rem; }
@media (max-width: 900px) {
    .project { grid-template-columns: 1fr; gap: 1.5rem; }
    .project--flip .project-media { order: 0; }
}

@media (max-width: 400px) { .logo-text strong { font-size: .95rem; } .logo-text small { display: none; } }

.nav-links { display: flex; list-style: none; gap: 1.6rem; align-items: center; }
.nav-links a {
    color: #e5e5e5; text-decoration: none; font-family: var(--head);
    text-transform: uppercase; letter-spacing: .06em; font-size: .95rem; padding: .3rem 0;
    border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active { color: #fff; border-bottom-color: var(--red); }
.nav-links .btn { border-bottom: 0; padding: .55rem 1.1rem; color: #fff; }

.mobile-menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.mobile-menu-btn span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: var(--head); text-transform: uppercase; letter-spacing: .06em;
    font-size: 1rem; padding: .8rem 1.6rem; border-radius: var(--radius);
    text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: .2s;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-dark { background: var(--steel); color: #fff; }
.btn-dark:hover { background: var(--char-2); }
.btn-outline { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-outline-light { border-color: #fff; color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero {
    position: relative; color: #fff; overflow: hidden;
    background:
        linear-gradient(100deg, rgb(21 21 21 / .95) 0%, rgb(21 21 21 / .82) 50%, rgb(21 21 21 / .5) 100%),
        url("../images/hero3.webp") center / cover no-repeat,
        #232323;
}
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; padding-top: 5rem; padding-bottom: 5rem; }
.hero-kicker { display: inline-block; width: 48px; height: 4px; background: var(--red); margin-bottom: 1.25rem; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
.hero h1 .red { color: var(--red); display: block; }
.hero p.lead { font-size: 1.15rem; color: #d4d4d4; margin: 1.25rem 0 2rem; max-width: 34rem; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-points { list-style: none; display: grid; gap: .9rem; }
.hero-points li {
    background: rgb(255 255 255 / .05); border-left: 4px solid var(--red);
    padding: .9rem 1.1rem; font-size: .98rem; color: #e5e5e5;
}
.hero-points strong { display: block; font-family: var(--head); text-transform: uppercase; letter-spacing: .05em; color: #fff; font-weight: 500; }

.page-hero { background: linear-gradient(90deg, rgb(28 28 28 / .96) 0%, rgb(28 28 28 / .85) 60%, rgb(28 28 28 / .7) 100%), url("../images/hero2.webp") center / cover no-repeat, var(--char); color: #fff; padding: 3.5rem 0 3rem; border-bottom: 1px solid #000; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); }
.page-hero p { color: #cfcfcf; max-width: 46rem; margin-top: .9rem; font-size: 1.08rem; }
.breadcrumb { font-size: .85rem; color: #a3a3a3; margin-bottom: .9rem; }
.breadcrumb a { color: #d4d4d4; text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Sections ---------- */
section { padding: 4.5rem 0; }
.section-alt { background: var(--gray-100); }
.section-dark { background: var(--char); color: #d4d4d4; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-header { max-width: 46rem; margin-bottom: 2.5rem; }
.section-header.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-header .eyebrow, .eyebrow {
    display: inline-block; font-family: var(--head); text-transform: uppercase;
    letter-spacing: .12em; color: var(--red); font-size: .9rem; margin-bottom: .5rem;
}
.section-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.section-header p { margin-top: .8rem; font-size: 1.05rem; color: var(--gray-600); }
.section-dark .section-header p { color: #bdbdbd; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.product-card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--gray-200);
    border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--red); }
.product-card .thumb { position: relative; aspect-ratio: 16 / 10; background: var(--char); display: grid; place-items: center; overflow: hidden; }
/* Photos are pinned to the box so Safari on iPhone can't size them from the photo's own height */
.product-card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-card .thumb img.tall, .feature-media img.tall, .pl-thumb img.tall { object-fit: contain; }
.product-card .thumb svg { width: 70%; height: auto; }
.product-card .body { padding: 1.25rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.product-card .abbr { font-family: var(--head); color: var(--red); letter-spacing: .1em; font-size: .85rem; }
.product-card h3 { font-size: 1.25rem; }
.product-card p { font-size: .95rem; color: var(--gray-600); flex: 1; }
.product-card .more { font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; color: var(--red); font-size: .9rem; }

/* ---------- Featured product ---------- */
.featured-band { padding: 4rem 0; }
.feature-product { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
.feature-media { position: relative; background: #1a1a1a; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.2; display: grid; place-items: center; border-bottom: 4px solid var(--red); }
.feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-media svg { width: 80%; }
.feature-body h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.feature-body > p { color: #d4d4d4; margin-bottom: 1.25rem; }
.price { font-family: var(--head); color: var(--red); font-size: 1.35rem; letter-spacing: .03em; margin: .4rem 0 .9rem; }
.page-hero .price, .feature-body .price { color: #ff4d57; }
.product-card .price { font-size: 1rem; margin: 0; }
.side-card .price { margin-top: 0; color: #ff4d57; }
.text-link { font-family: var(--head); text-transform: uppercase; letter-spacing: .05em; font-size: .9rem; text-decoration: none; }
.feature-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: #3a3a3a; border: 1px solid #3a3a3a; margin-bottom: 1.75rem; }
.feature-specs div { background: var(--char-2); padding: .8rem 1rem; }
.feature-specs dt { font-family: var(--head); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: #a3a3a3; }
.feature-specs dd { color: #fff; font-size: 1.05rem; font-weight: 600; }
.product-card.is-featured { border: 2px solid var(--red); }

/* ---------- Homepage compact sections ---------- */
.split-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.split-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.product-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.product-link {
    display: flex; align-items: center; gap: .9rem; padding: .6rem; text-decoration: none; color: var(--ink);
    border: 1px solid var(--gray-200); border-radius: var(--radius); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.product-link:hover { border-color: var(--red); box-shadow: var(--shadow); }
.pl-thumb { flex: 0 0 76px; height: 58px; background: var(--char); border-radius: 3px; overflow: hidden; display: grid; place-items: center; }
.pl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pl-thumb svg { width: 100%; }
.pl-text { display: flex; flex-direction: column; line-height: 1.25; }
.pl-text .abbr { font-family: var(--head); color: var(--red); letter-spacing: .08em; font-size: .72rem; }
.pl-text strong { font-family: var(--head); text-transform: uppercase; font-weight: 500; font-size: .95rem; }
.home-about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.home-about h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin: .2rem 0 .8rem; }
.home-about p { color: var(--gray-600); }
.step-strip { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 1.75rem; counter-reset: s; }
.step-strip li { counter-increment: s; font-family: var(--head); text-transform: uppercase; letter-spacing: .05em; font-size: .9rem; background: var(--char); color: #fff; padding: .4rem .75rem; border-radius: 3px; }
.step-strip li::before { content: counter(s) " "; color: var(--red); margin-right: .2rem; }
.home-about-photo { display: block; border-radius: var(--radius); overflow: hidden; border-bottom: 4px solid var(--red); box-shadow: var(--shadow-lg); }
.home-about-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.home-about-photo:hover img { transform: scale(1.03); }

/* ---------- Standard / custom groups ---------- */
.std-others { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid #3a3a3a; }
.std-note { color: #d4d4d4; margin-bottom: 1.25rem; }
.std-note strong { color: #fff; }
.product-links.on-dark { grid-template-columns: repeat(2, 1fr); }
.product-links.on-dark .product-link { background: var(--char-2); border-color: #3a3a3a; color: #fff; }
.product-links.on-dark .product-link:hover { border-color: var(--red); }
.std-callout { background: #fff5f5; border-left: 4px solid var(--red); padding: .9rem 1.1rem; margin-bottom: 1.5rem !important; color: var(--gray-700); }
.std-callout strong { color: var(--ink); }
.cat-jump { margin-top: 1.5rem; }
.cat-section { scroll-margin-top: 90px; }
#guide { scroll-margin-top: 90px; }
.hint-inline { font-weight: 400; color: var(--gray-500); font-size: .85rem; }
.footer .f-sub { color: #fff; font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; margin-top: .6rem; }
.footer .f-sub:first-child { margin-top: 0; }

/* ---------- Integrators page ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.partner-card { background: #fff; border: 1px solid var(--gray-200); border-top: 4px solid var(--red); border-radius: var(--radius); overflow: hidden; }
.partner-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.partner-card > div { padding: 1.25rem; }
.partner-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.partner-card p { font-size: .95rem; color: var(--gray-600); }
.line-flow { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 0; }
.line-flow li {
    font-family: var(--head); text-transform: uppercase; letter-spacing: .04em; font-size: .95rem;
    background: var(--char-2); color: #fff; border: 1px solid #3a3a3a; padding: .7rem 1rem; border-radius: 3px;
}
.line-flow li:not(:last-child)::after { content: "\2192"; color: var(--red); font-weight: 700; margin: 0 -1.85rem 0 1.1rem; position: relative; z-index: 1; }
.line-flow li:not(:last-child) { margin-right: 2.2rem; }
.flow-note { margin-top: 1.25rem; color: #bdbdbd; }
.partner-steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: ps; }
.partner-steps li { background: #fff; padding: 1.25rem; border-radius: var(--radius); box-shadow: var(--shadow); counter-increment: ps; }
.partner-steps li::before { content: counter(ps); display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--head); margin-bottom: .6rem; }
.partner-steps h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.partner-steps p { font-size: .9rem; color: var(--gray-600); }
.partner-band .container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center; }
.partner-band h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: .2rem 0 .8rem; }
.partner-band p { color: var(--gray-600); margin-bottom: 1.25rem; }
.partner-band .industries { margin-bottom: 1.5rem; }
.partner-band img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border-bottom: 4px solid var(--red); }
@media (max-width: 1024px) { .partner-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .partner-grid, .partner-band .container { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .partner-steps { grid-template-columns: 1fr; } .line-flow li { font-size: .85rem; } }

/* Products dropdown */
.has-sub { position: relative; }
.sub-menu {
    list-style: none; position: absolute; top: 100%; left: -1rem; min-width: 240px; padding: .5rem 0;
    background: var(--char); border-top: 3px solid var(--red); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s;
}
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; padding: .55rem 1rem !important; border-bottom: 0 !important; font-size: .9rem; }
.sub-menu a:hover { background: var(--char-2); }

/* ---------- Process steps ---------- */
.process { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: #3a3a3a; border: 1px solid #3a3a3a; counter-reset: step; }
.process-step { background: var(--char); padding: 0 0 1.5rem; counter-increment: step; }
.process-step img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 1rem; }
.process-step::before, .process-step h3, .process-step p { padding: 0 1.1rem; }
.process-step { position: relative; }
.process-step::before {
    content: "0" counter(step); position: absolute; top: .6rem; left: .6rem; padding: .25rem .5rem !important;
    background: var(--red); color: #fff; font-family: var(--head); font-size: 1.1rem; line-height: 1;
}
.process-step h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.process-step p { font-size: .9rem; color: #bdbdbd; }

/* ---------- Feature / why list ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.why-item { border-top: 4px solid var(--red); background: #fff; padding: 1.5rem; box-shadow: var(--shadow); }
.why-item h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.why-item p { font-size: .95rem; color: var(--gray-600); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat-number { display: block; font-family: var(--head); font-size: 2.6rem; color: var(--red); line-height: 1; }
.stat-label { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: #bdbdbd; }

/* About page install map */
.reach { display: grid; grid-template-columns: 1fr 1.7fr; gap: 2.5rem; align-items: center; }
.reach h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: .2rem 0 .8rem; }
.reach h3 { font-size: 1.05rem; margin: 1.25rem 0 .6rem; }
.reach p { color: var(--gray-600); }
.reach__more { margin-top: 1rem; font-size: .95rem; }
.reach__map svg { display: block; width: 100%; height: auto; }
.reach__map .state { fill: var(--gray-300); stroke: var(--white); stroke-width: .75; stroke-linejoin: round; transition: fill .15s; }
.reach__map .state--on { fill: var(--red); }
.reach__map .state--on:hover { fill: var(--red-dark); }
.reach__map figcaption { display: flex; align-items: center; gap: .5rem; margin-top: .9rem; font-size: .9rem; color: var(--gray-600); }
.reach__key { width: .9rem; height: .9rem; border-radius: 2px; background: var(--red); flex: none; }
@media (max-width: 860px) { .reach { grid-template-columns: 1fr; } }
.industries { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { display: inline-block; padding: .4rem .9rem; border: 1px solid var(--gray-300); border-radius: 999px; font-size: .9rem; background: #fff; }
.section-dark .chip { background: transparent; border-color: #4a4a4a; color: #e5e5e5; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); color: #fff; padding: 3rem 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { color: #ffe4e6; margin-top: .4rem; }
.cta-band .btn-primary { background: var(--ink); }
.cta-band .btn-primary:hover { background: #000; }

/* ---------- Product detail page ---------- */
.detail-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: 3rem; align-items: start; }
.prose h2 { font-size: 1.6rem; margin: 2.2rem 0 .8rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 1rem; }
.prose ul { margin: 0 0 1rem 1.2rem; }
.prose li { margin-bottom: .35rem; }
.check-list { list-style: none; margin: 0 0 1rem 0 !important; }
.check-list li { position: relative; padding-left: 1.7rem; }
.check-list li::before {
    content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 7px;
    border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg);
}
.figure { background: var(--char); border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem; display: grid; place-items: center; }
.figure img { display: block; width: 100%; height: auto; max-height: 640px; object-fit: contain; }
.figure svg { width: 70%; height: auto; margin: 2.5rem 0; }

.spec-table { width: 100%; border-collapse: collapse; margin: .5rem 0 1.5rem; font-size: .95rem; }
.spec-table th, .spec-table td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--gray-200); vertical-align: top; }
.spec-table th { width: 38%; font-family: var(--head); text-transform: uppercase; letter-spacing: .04em; font-weight: 500; color: var(--ink); background: var(--gray-100); }

.sidebar { position: sticky; top: 100px; display: grid; gap: 1.25rem; }
.side-card { background: var(--gray-100); border-left: 4px solid var(--red); padding: 1.5rem; }
.side-card.dark { background: var(--char); color: #d4d4d4; border-left-color: var(--red); }
.side-card.dark h3 { color: #fff; }
.side-card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.side-card p { font-size: .95rem; margin-bottom: 1rem; }
.side-card .btn { width: 100%; margin-top: .5rem; }
.side-card ul { list-style: none; }
.side-card li a { display: block; padding: .45rem 0; border-bottom: 1px solid var(--gray-200); text-decoration: none; color: var(--gray-700); }
.side-card li a:hover { color: var(--red); }
.side-card li a.current { color: var(--red); font-weight: 600; }

/* ---------- Quote page ---------- */
.quote-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: start; }
.quote-intro { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.quote-option { border: 1px solid var(--gray-200); padding: 1.25rem; border-radius: var(--radius); background: #fff; }
.quote-option h3, .quote-option .qo-title { font-size: 1.05rem; margin-bottom: .4rem; }
.quote-option p { font-size: .9rem; color: var(--gray-600); margin-bottom: .8rem; }
.quote-option a { font-family: var(--head); text-transform: uppercase; letter-spacing: .05em; font-size: .9rem; text-decoration: none; }

.rfi-form fieldset { border: 0; margin-bottom: 1rem; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); }
.rfi-form legend, .rfi-form summary {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    background: var(--red); color: #fff; font-family: var(--head); text-transform: uppercase;
    letter-spacing: .06em; font-size: 1.05rem; padding: .7rem 1.1rem; cursor: pointer; list-style: none;
}
.rfi-form summary::-webkit-details-marker { display: none; }
.rfi-form summary::after { content: "+"; font-size: 1.4rem; line-height: 1; }
.rfi-form details[open] > summary::after { content: "–"; }
.rfi-form details { margin-bottom: 1rem; border: 1px solid var(--gray-200); border-radius: var(--radius); background: #fff; overflow: hidden; }
.rfi-form summary .opt { font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: .8rem; opacity: .85; margin-left: auto; margin-right: 1rem; }
.rfi-form legend { float: left; } /* lets legend span full width */
.fs-body { clear: both; padding: 1.25rem 1.1rem .5rem; }
.rfi-form .rfi-basic { margin-bottom: 1rem; border: 1px solid var(--gray-200); border-radius: var(--radius); background: #fff; }
.rfi-more > .fs-body > details { margin-bottom: .75rem; }
.rfi-more > .fs-body > .hint { margin-top: 0; }
.form-row { display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); gap: 1rem; margin-bottom: 1rem; }
.span-2 { grid-column: span 2; }
.form-group { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.form-group label, .q-label { font-size: .85rem; color: var(--gray-600); font-weight: 500; }
.q-label { display: block; color: var(--ink); font-weight: 600; margin-bottom: .45rem; font-size: .92rem; }
.req { color: var(--red); }
.rfi-form input[type="text"], .rfi-form input[type="email"], .rfi-form input[type="tel"],
.rfi-form input[type="date"], .rfi-form input[type="number"], .rfi-form select, .rfi-form textarea {
    width: 100%; padding: .65rem .75rem; border: 1px solid var(--gray-300); border-radius: var(--radius);
    font: inherit; font-size: .95rem; background: #fafaf9; color: var(--ink);
}
.rfi-form textarea { resize: vertical; min-height: 90px; }
.rfi-form input:focus, .rfi-form select:focus, .rfi-form textarea:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); background: #fff; }
.choices { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: .45rem 1rem; margin-bottom: 1rem; }
.choice { display: flex; align-items: center; gap: .5rem; font-size: .93rem; cursor: pointer; }
.choice input { width: 17px; height: 17px; accent-color: var(--red); flex-shrink: 0; }
.yn { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; align-items: center; margin-bottom: .8rem; }
.yn .opts { display: flex; gap: 1rem; }
.yn-text { font-size: .93rem; }
.inline-other { display: flex; align-items: center; gap: .5rem; }
.inline-other input[type="text"] { padding: .35rem .5rem; }
.hint { font-size: .85rem; color: var(--gray-500); font-style: italic; margin-bottom: .8rem; }

.dropzone {
    display: block; position: relative; /* it's a <label>, which is inline by default and broke the box */
    border: 2px dashed var(--gray-300); border-radius: var(--radius); padding: 1.5rem; text-align: center;
    background: #fafaf9; cursor: pointer; transition: .2s; color: var(--gray-600); line-height: 1.6;
}
.dropzone:hover, .dropzone.drag { border-color: var(--red); background: #fff5f5; }
.dropzone:focus-within { border-color: var(--red); outline: 2px solid var(--red); outline-offset: 2px; }
/* Hidden from view but still reachable with the keyboard */
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.dropzone strong {
    display: inline-block; background: var(--red); color: #fff; font-weight: 600;
    padding: .55rem 1.1rem; border-radius: var(--radius); margin: 0 .35rem .5rem 0;
}
.dropzone small { display: block; margin-top: .25rem; color: var(--gray-500); }
.file-list { list-style: none; margin-top: .6rem; font-size: .88rem; }
.file-list li { display: flex; justify-content: space-between; padding: .3rem 0; border-bottom: 1px solid var(--gray-200); }
.file-list .err { color: var(--red); }

.submit-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.submit-row p { font-size: .88rem; color: var(--gray-500); }
.hp { position: absolute; left: -5000px; }

.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-weight: 500; }
.alert.ok { background: #ecfdf5; border-left: 4px solid #16a34a; color: #14532d; }
.alert.bad { background: #fef2f2; border-left: 4px solid var(--red); color: #7f1d1d; }
[hidden] { display: none !important; }

.contact-list { list-style: none; display: grid; gap: .9rem; }
.contact-list li { display: flex; gap: .75rem; align-items: flex-start; font-size: .95rem; }
.contact-list svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--red); margin-top: .15rem; }
.contact-list a { color: inherit; }
.side-card.dark .contact-list a { color: #fff; }

/* ---------- Gallery (home) ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.gallery-item { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); cursor: pointer; background: var(--char); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item img.tall { object-fit: contain; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay { position: absolute; inset: auto 0 0 0; padding: .6rem .8rem; background: linear-gradient(transparent, rgb(0 0 0 / .75)); color: #fff; font-size: .88rem; opacity: 0; transition: .3s; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-more { display: block; margin: 1.75rem auto 0; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 2rem; color: var(--gray-500); }

.lightbox { position: fixed; inset: 0; background: rgb(0 0 0 / .92); display: none; align-items: center; justify-content: center; z-index: 3000; flex-direction: column; padding: 1rem; }
.lightbox.active { display: flex; }
.lightbox-close { position: absolute; top: 1rem; right: 1.5rem; background: none; border: 0; color: #fff; font-size: 2.5rem; cursor: pointer; }
.lightbox-image { max-width: 92vw; max-height: 80vh; object-fit: contain; }
.lightbox-caption { color: #fff; margin-top: 1rem; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #a3a3a3; padding: 3.5rem 0 1.5rem; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer h4 { color: #fff; font-size: 1rem; letter-spacing: .08em; margin-bottom: .9rem; }
.footer ul { list-style: none; display: grid; gap: .4rem; }
.footer a { color: #d4d4d4; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer .logo { margin-bottom: .9rem; }
.footer-bottom { border-top: 1px solid #2e2e2e; padding-top: 1.25rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .85rem; }

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (min-width: 861px) and (max-width: 1120px) {
    .nav-links { gap: 1rem; }
    .nav-links a { font-size: .85rem; letter-spacing: .03em; }
    .nav-links .btn { padding: .5rem .8rem; }
    .logo-text small { display: none; }
    .logo-text strong { font-size: 1rem; }
}
/* Eight nav items: tighten a little more on narrow laptops so the bar stays on one line */
@media (min-width: 861px) and (max-width: 1000px) {
    .nav-links { gap: .7rem; }
    .nav-links a { font-size: .8rem; letter-spacing: .02em; }
    .logo-text { display: none; }
}
@media (max-width: 1024px) {
    .process { grid-template-columns: repeat(3, 1fr); }
    .product-links { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .quote-layout { grid-template-columns: 1fr; }
    .quote-layout .sidebar { position: static; }
}
@media (max-width: 860px) {
    .mobile-menu-btn { display: block; }
    .nav-links {
        position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
        background: var(--char); padding: 1rem 1.25rem 1.5rem; gap: .25rem; display: none;
        border-bottom: 3px solid var(--red);
    }
    .nav-links.active { display: flex; }
    .nav-links a { display: block; padding: .7rem 0; }
    .nav-links .btn { margin-top: .5rem; }
    .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 1rem; min-width: 0; background: transparent; }
    .sub-menu a { padding: .45rem 0 !important; font-size: .85rem; color: #bdbdbd !important; }
    .product-links.on-dark { grid-template-columns: 1fr; }
    .hero .container { grid-template-columns: 1fr; padding-top: 3.5rem; padding-bottom: 3.5rem; }
    .detail-grid { grid-template-columns: 1fr; }
    .feature-product { grid-template-columns: 1fr; gap: 2rem; }
    .home-about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .feature-media { aspect-ratio: 4 / 3.4; }
    .sidebar { position: static; }
    .quote-intro { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (max-width: 640px) {
    section { padding: 3.25rem 0; }
    .process { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .form-row .span-2 { grid-column: auto; }
    .choices { grid-template-columns: 1fr 1fr; }
    .product-links { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .topbar .container { justify-content: center; }
    .yn { grid-template-columns: 1fr; }
    /* One card per row: tall photos get a tall box, so the whole photo shows and fills it */
    .product-card .thumb:has(img.tall) { aspect-ratio: 3 / 4; }
}

/* Quote form spam check (ALTCHA). It works in the background, so keep the
   widget out of the way; errors show in #spam-check-error. */
.rfi-form altcha-widget { display: block; margin: 0 0 1rem; max-width: 320px; }
