:root {
  --red: #d71920;
  --red-dark: #a51217;
  --ink: #161616;
  --text: #2b2b2b;
  --muted: #666;
  --line: #dcdcdc;
  --bg-alt: #f3f3f3;
  --dark: #111;
  --radius: 3px;
  --wrap: 1140px;
  --head: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --body: 'Barlow', Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.15; letter-spacing: .02em; text-transform: uppercase; margin: 0 0 .5em; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.5rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--dark); color: #fff; border-bottom: 4px solid var(--red); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: baseline; gap: 12px; color: #fff; text-decoration: none; }
.brand-logo { display: block; height: 46px; width: auto; }
.brand-mark { font-family: var(--head); font-weight: 700; font-size: 2.1rem; letter-spacing: .06em; color: #fff; }
.brand-text { font-family: var(--head); font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; color: #bbb; }
.main-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 18px; }
.main-nav a { color: #eee; text-decoration: none; font-family: var(--head); font-weight: 600; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; padding: 4px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--red); }
.main-nav .nav-phone { color: #fff; background: var(--red); padding: 6px 12px; border-radius: var(--radius); border: 0; }
.main-nav .nav-phone:hover { background: var(--red-dark); }

/* Sections */
.section { padding: 48px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: #ddd; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4, .section-dark h5, .section-dark h6 { color: #fff; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); margin-bottom: 28px; }
.section-head h1 { margin-bottom: .25em; }
.section-title { border-bottom: 2px solid var(--ink); padding-bottom: .25em; margin-bottom: 24px; }
.page-title { margin-top: 8px; }
.link-arrow { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; }
.link-arrow::after { content: ' \2192'; }
.back-link { display: inline-block; font-size: .95rem; text-decoration: none; margin-bottom: 8px; }

/* Home banner: content from the WYSIWYG editor */
.home-banner { background: #000; color: #fff; }
.home-banner .wrap { padding-top: 0; padding-bottom: 0; }
.home-banner img { margin: 0 auto; }
.home-banner h1, .home-banner h2, .home-banner h3, .home-banner h4, .home-banner h5, .home-banner h6 { color: #fff; }
.home-banner a { color: #fff; }
.option-note { margin: -4px 0 10px; }

/* Home menu of heads */
.head-menu { columns: 3 260px; column-gap: 40px; }
.head-menu-group { break-inside: avoid; margin-bottom: 26px; }
.head-menu-group h2 { font-size: 1.2rem; color: var(--red); margin-bottom: .35em; }
.head-menu-group ul { list-style: none; margin: 0; padding: 0; }
.head-menu-group li { border-bottom: 1px solid var(--line); }
.head-menu-group a { display: block; padding: 5px 0; color: var(--text); text-decoration: none; }
.head-menu-group a:hover { color: var(--red); }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px 20px; }
.video-tile { margin: 0; }
.video-lite, .video-frame { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.video-lite img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .15s; }
.video-lite:hover img { opacity: 1; }
.video-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 44px; margin: -22px 0 0 -32px; background: var(--red); border-radius: 8px; }
.video-play::after { content: ''; position: absolute; left: 26px; top: 13px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-tile figcaption { margin-top: 8px; font-weight: 500; color: var(--ink); line-height: 1.35; }
.video-date { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); margin-top: 2px; }

.home-quote { text-align: center; max-width: 820px; }
.home-quote h6, .home-quote blockquote { font-size: 1.3rem; font-family: var(--body); text-transform: none; letter-spacing: 0; font-weight: 400; color: #fff; margin: 0 0 .75em; }

/* Content from the WYSIWYG editor */
.cms-content > *:first-child { margin-top: 0; }
.cms-content img { display: inline-block; }
.cms-content table { border-collapse: collapse; }
.image-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 1em 0; }
.image-row img { width: 100%; height: 100%; object-fit: cover; }
.company { max-width: 900px; }

/* Product grid */
.cat-title { font-size: 1.3rem; color: var(--red); margin-top: 32px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.product-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: #fff; transition: border-color .15s; }
.product-card:hover { border-color: var(--red); }
.product-card-img { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; background: #fafafa; overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: contain; }
.product-card-name { padding: 10px 12px; font-family: var(--head); font-weight: 600; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .03em; border-top: 1px solid var(--line); }
.no-img, .gallery-empty { font-family: var(--head); font-weight: 700; font-size: 2rem; color: #ccc; letter-spacing: .1em; }

/* Product page */
.product-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 12px; }
.gallery-main { display: block; border: 1px solid var(--line); background: #fafafa; }
.gallery-main img { width: 100%; max-height: 520px; object-fit: contain; }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gallery-thumbs button { width: 84px; height: 64px; padding: 0; border: 2px solid var(--line); background: #fafafa; cursor: pointer; border-radius: var(--radius); overflow: hidden; }
.gallery-thumbs button.is-active, .gallery-thumbs button:hover { border-color: var(--red); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-empty { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: #fafafa; }
.eyebrow { font-family: var(--head); font-weight: 600; color: var(--red); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 4px; }
.tagline { margin: 0 0 20px; padding: 4px 0 4px 16px; border-left: 4px solid var(--red); font-style: italic; color: var(--muted); }
.product-price { font-size: 1.15rem; margin: 0 0 18px; }
.product-price .price { font-family: var(--head); font-size: 2rem; font-weight: 700; color: var(--ink); }
.product-section { margin-top: 44px; }
.product-section h2 { border-bottom: 2px solid var(--ink); padding-bottom: .25em; }
.product-section h2 small { font-size: .7em; color: var(--muted); letter-spacing: .02em; text-transform: none; font-family: var(--body); font-weight: 400; }
.spec-table, .option-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td, .option-table th, .option-table td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.spec-table th, .option-table th { width: 32%; font-weight: 600; color: var(--ink); }
.option-table .opt-price { text-align: right; white-space: nowrap; width: 1%; }

.btn { display: inline-block; background: var(--red); color: #fff; border: 0; border-radius: var(--radius); padding: 11px 22px; font-family: var(--head); font-weight: 600; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--red-dark); color: #fff; }

.quote-box { background: var(--bg-alt); padding: 28px; border-radius: var(--radius); }
.quote-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 18px; margin-top: 16px; }
.quote-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .95rem; color: var(--ink); }
.quote-form .full { grid-column: 1 / -1; }
.quote-form input, .quote-form textarea { font: inherit; font-weight: 400; padding: 9px 10px; border: 1px solid #bbb; border-radius: var(--radius); background: #fff; }
.quote-form input:focus, .quote-form textarea:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); }
.quote-form button { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 10px 14px; border-left: 4px solid #c90; background: #fff8e1; margin: 10px 0; }
.notice-ok { border-color: #2e7d32; background: #edf7ee; }
.notice-err { border-color: var(--red); background: #fdecec; }

/* Manifolds */
.manifold-intro { margin-bottom: 30px; color: var(--muted); }
.manifold-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.manifold-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.manifold-card h2 { font-size: 1.25rem; }
.manifold-images { display: grid; gap: 10px; margin-bottom: 12px; }
.manifold-images.count-2, .manifold-images.count-4 { grid-template-columns: 1fr 1fr; }
.manifold-images.count-3 { grid-template-columns: 1fr 1fr 1fr; }
.manifold-images figure { margin: 0; }
.manifold-images img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fafafa; border: 1px solid var(--line); }
.manifold-images figcaption { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; color: var(--red); margin-top: 4px; }

/* Footer */
.site-footer { background: var(--dark); color: #bbb; font-size: .95rem; padding: 34px 0; border-top: 4px solid var(--red); }
.site-footer strong { color: #fff; }
.site-footer a { color: #fff; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 24px; }
.footer-legal { color: #888; font-size: .85rem; }

@media (max-width: 860px) {
  h1 { font-size: 2rem; }
  .product-top { grid-template-columns: 1fr; }
  .quote-form { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .option-table th, .spec-table th { width: auto; }
}

/* Keep the header on one line at laptop widths */
.site-header .wrap { max-width: 1240px; }
@media (max-width: 1239px) {
  .brand-text { display: none; }
}

/* Home hero video slider */
.hero-videos { background: #000; color: #fff; padding: 28px 0 24px; }
.hero-stage { position: relative; max-width: 1000px; margin: 0 auto; }
.hero-frame { background: #000; }
.hero-frame .video-lite, .hero-frame .video-frame { aspect-ratio: 16 / 9; }
.hero-frame .video-play { width: 84px; height: 58px; margin: -29px 0 0 -42px; }
.hero-frame .video-play::after { left: 33px; top: 17px; border-width: 12px 0 12px 20px; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 72px; border: 0; border-radius: var(--radius); background: rgba(0, 0, 0, .7); color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; }
.hero-arrow:hover, .hero-arrow:focus-visible { background: var(--red); }
.hero-prev { left: -64px; }
.hero-next { right: -64px; }
.hero-meta { max-width: 1000px; margin: 14px auto 0; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.hero-title { color: #fff; font-size: 1.35rem; margin: 0; flex: 1 1 auto; text-transform: none; letter-spacing: .01em; }
.hero-count { color: #999; font-family: var(--head); letter-spacing: .06em; }
.hero-all { color: #fff; }
.hero-all:hover { color: var(--red); }
.hero-thumbs { max-width: 1000px; margin: 14px auto 0; display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.hero-thumb { flex: 0 0 150px; aspect-ratio: 16 / 9; padding: 0; border: 2px solid transparent; border-radius: var(--radius); background: #222; cursor: pointer; overflow: hidden; opacity: .65; transition: opacity .15s, border-color .15s; }
.hero-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-thumb:hover { opacity: 1; }
.hero-thumb.is-active { border-color: var(--red); opacity: 1; }
@media (max-width: 1160px) {
  .hero-prev { left: 8px; }
  .hero-next { right: 8px; }
  .hero-arrow { width: 40px; height: 56px; font-size: 2rem; }
}
@media (max-width: 600px) {
  .hero-thumb { flex-basis: 110px; }
  .hero-title { font-size: 1.1rem; }
}

/* Footer */
.site-footer { padding: 0; font-size: .95rem; color: #aaa; background: var(--dark); border-top: 4px solid var(--red); }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 40px; padding-bottom: 36px; }
.footer-col h3 { color: #fff; font-size: 1rem; letter-spacing: .1em; margin: 0 0 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 6px; }
.site-footer .footer-col a { color: #ccc; text-decoration: none; }
.site-footer .footer-col a:hover, .site-footer .footer-col a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-logo { display: block; height: 40px; width: auto; margin-bottom: 14px; }
.footer-name { display: block; color: #fff; font-family: var(--head); font-size: 1.4rem; margin-bottom: 10px; }
.footer-brand address { font-style: normal; line-height: 1.6; }
.footer-bar { background: #000; border-top: 1px solid #222; }
.footer-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; min-height: 56px; padding-top: 10px; padding-bottom: 10px; font-size: .85rem; color: #888; }
.site-footer .footer-allegro { display: inline-flex; align-items: center; gap: 10px; color: #bbb; text-decoration: none; font-weight: 600; }
.site-footer .footer-allegro:hover, .site-footer .footer-allegro:focus-visible { color: #fff; }
.footer-allegro img { display: block; height: 26px; width: auto; }
@media (max-width: 860px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
}
@media (max-width: 520px) {
  .footer-main { grid-template-columns: 1fr; }
  .footer-bar-inner { flex-direction: column; align-items: flex-start; }
}

/* Header Facebook icon */
.main-nav .nav-social { display: inline-flex; align-items: center; padding: 0; border-bottom: 0; }
.nav-social img { display: block; width: 26px; height: 26px; opacity: .85; transition: opacity .15s; }
.nav-social:hover img, .nav-social:focus-visible img { opacity: 1; }

/* Hero thumbnail strip: thin dark scrollbar instead of the browser default */
.hero-thumbs { gap: 12px; padding: 4px 2px 10px; scrollbar-width: thin; scrollbar-color: #444 transparent; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
.hero-thumbs:hover { scrollbar-color: var(--red) transparent; }
.hero-thumbs::-webkit-scrollbar { height: 5px; }
.hero-thumbs::-webkit-scrollbar-track { background: transparent; }
.hero-thumbs::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }
.hero-thumbs:hover::-webkit-scrollbar-thumb { background: var(--red); }
.hero-thumbs::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.hero-thumb { flex-basis: 160px; scroll-snap-align: start; transition: opacity .15s, border-color .15s, transform .15s; }
.hero-thumb:hover { transform: translateY(-2px); }
@media (max-width: 600px) {
  .hero-thumb { flex-basis: 120px; }
}

/* Videos page: video grid with the Facebook feed in a sidebar */
.videos-layout.has-facebook { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
.videos-layout.has-facebook .video-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.facebook-feed { position: sticky; top: 20px; }
.facebook-feed h2 { font-size: 1.2rem; border-bottom: 2px solid var(--ink); padding-bottom: .25em; margin-bottom: 14px; }
.facebook-feed iframe { display: block; width: 340px; max-width: 100%; height: 760px; background: #f3f3f3; }
.facebook-feed .link-arrow { display: inline-block; margin-top: 10px; }
@media (max-width: 960px) {
  .videos-layout.has-facebook { grid-template-columns: 1fr; }
  .facebook-feed { position: static; max-width: 340px; }
}

/* Mobile menu button (shown on small screens) */
.nav-toggle { display: none; align-items: center; gap: 8px; background: transparent; color: #fff; border: 1px solid #444; border-radius: var(--radius); padding: 8px 12px; font-family: var(--head); font-weight: 600; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.nav-toggle:hover, .nav-toggle:focus-visible { border-color: var(--red); }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: #fff; position: relative; transition: transform .2s, background .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0 10px; }
  .nav-open .main-nav { display: flex; }
  .main-nav a { padding: 11px 0; border-bottom: 1px solid #2a2a2a; }
  .main-nav a[aria-current="page"] { border-bottom-color: #2a2a2a; color: var(--red); }
  .main-nav .nav-social { padding: 11px 0; border-bottom: 1px solid #2a2a2a; }
  .main-nav .nav-phone { margin-top: 10px; text-align: center; border-bottom: 0; }
}

/* Contact page */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 36px; align-items: start; margin-top: 12px; }
.quote-form select { font: inherit; font-weight: 400; padding: 9px 10px; border: 1px solid #bbb; border-radius: var(--radius); background: #fff; }
.quote-form select:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); }
.contact-details { border-left: 4px solid var(--red); padding: 6px 0 6px 24px; }
.contact-details h2 { font-size: 1.3rem; }
.contact-details address { font-style: normal; margin-bottom: 1em; }
.contact-note { font-family: var(--head); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }

/* Company page: text and tour link on the left, quotes and contact on the right, photos below */
.company { max-width: none; }
.company-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; }
.company-side { border-left: 1px solid var(--line); padding-left: 32px; }
.company-side blockquote { margin: 0 0 20px; font-style: italic; color: var(--muted); }
.company-side blockquote p { margin: 0 0 14px; }
.company-side .company-owner { font-style: italic; color: var(--red); }
.company-side .company-contact { border-top: 1px solid var(--line); padding-top: 16px; }
.company-tour { display: inline-flex; align-items: center; margin: 10px 0 6px; text-decoration: none; }
.company-tour .tour-bar { display: block; width: 184px; height: auto; }
.company-tour .tour-badge { position: relative; display: block; margin-left: -10px; }
.company-tour .tour-badge img { display: block; width: 130px; height: auto; }
.company-tour .tour-with { position: absolute; top: -4px; left: -6px; font-style: italic; color: var(--muted); font-size: .9rem; }
.company .image-row { margin-top: 28px; }
@media (max-width: 860px) {
  .contact-layout, .company-grid { grid-template-columns: 1fr; }
  .contact-details { border-left: 0; border-top: 4px solid var(--red); padding: 16px 0 0; }
  .company-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
}
.quote-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quote-form input, .quote-form select, .quote-form textarea { width: 100%; min-width: 0; }
@media (max-width: 860px) {
  .quote-form { grid-template-columns: minmax(0, 1fr); }
}