/* style.css - the look of the whole VX Offroad site. Every line has a plain-English note. */
/* Fonts: two small self-hosted files (no Google request, so pages load faster and nothing tracks visitors). */
@font-face { /* Teach the browser a font we ship with the site. */
  font-family: "Barlow Condensed"; /* The name we will use below. */
  font-weight: 800; /* This file is the extra-bold style. */
  font-display: swap; /* Show text right away in a normal font, then swap when ours arrives. */
  src: url("../fonts/barlow-condensed-800.woff2") format("woff2"); /* Where the file lives. */
} /* End of heading font. */
@font-face { /* Second font for normal reading text. */
  font-family: "Barlow"; /* The name we will use. */
  font-weight: 400; /* Regular weight. */
  font-display: swap; /* Same swap trick as above. */
  src: url("../fonts/barlow-400.woff2") format("woff2"); /* Where the file lives. */
} /* End of body font. */

:root { /* Named colours and sizes we can reuse everywhere. */
  --bg: #0b0c0b; /* Near-black page background. */
  --panel: #151714; /* Slightly lighter dark for cards. */
  --line: #2a2d28; /* Thin border colour. */
  --text: #ecebe6; /* Off-white body text. */
  --muted: #a7a89f; /* Dimmer grey text. */
  --accent: #ff6a1a; /* Safety-orange accent: rugged off-road look (colour is a design choice, not Michael's brand colour yet). */
  --accent-2: #ffb347; /* Lighter orange for gradients. */
  --max: 1200px; /* Widest the content gets on big screens. */
  --head: "Barlow Condensed", "Arial Narrow", Impact, sans-serif; /* Heading font stack with safe fallbacks. */
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; /* Body font stack with fallbacks. */
} /* End of colour and font names. */

*, *::before, *::after { box-sizing: border-box; } /* Make width calculations simple and predictable. */
html { scroll-behavior: smooth; } /* Anchor links glide instead of jumping. */
body { /* Page-wide basics. */
  margin: 0; /* Remove the default browser margin. */
  background: var(--bg); /* Dark background. */
  color: var(--text); /* Light text. */
  font-family: var(--body); /* Use the body font. */
  font-size: 1.125rem; /* Comfortable reading size (18px). */
  line-height: 1.55; /* Space between lines of text. */
  -webkit-font-smoothing: antialiased; /* Smoother text on Apple screens. */
} /* End of body. */
main { overflow-x: clip; } /* The tilted orange strip and parallax photos must never create a sideways scrollbar on phones. */
img, picture { display: block; max-width: 100%; height: auto; } /* Pictures never overflow and keep their shape. */
a { color: var(--accent-2); } /* Links are light orange. */
a:hover { color: #fff; } /* Links turn white on hover. */
h1, h2, h3 { font-family: var(--head); font-weight: 800; text-transform: uppercase; line-height: 1; margin: 0 0 .5em; letter-spacing: .01em; } /* All headings use the bold condensed look. */
h1 { font-size: clamp(3rem, 11vw, 8rem); } /* Huge responsive main headline. */
h2 { font-size: clamp(2.2rem, 6vw, 4rem); } /* Big section headline. */
.hero h1 { font-size: clamp(3.6rem, 15vw, 9rem); } /* The hero headline is even bigger, and fills a phone screen. */
.gallery figure { aspect-ratio: 3 / 2; } /* Gallery photos share one shape so the grid looks tidy. */
.gallery img { height: 100%; object-fit: cover; } /* Photos fill their shape without stretching. */
h3 { font-size: 1.5rem; } /* Small heading for cards. */
p { margin: 0 0 1em; } /* Space under paragraphs. */
.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; } /* Centered content column with side margins. */
.skip { position: absolute; left: -999px; } /* Hide the skip link off-screen... */
.skip:focus { left: 1rem; top: 1rem; background: #fff; color: #000; padding: .5rem 1rem; z-index: 99; } /* ...until a keyboard user tabs to it. */
.center { text-align: center; } /* Center helper. */

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11,12,11,.88); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); } /* Header sticks to the top with a frosted dark look. */
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; } /* Logo left, menu right. */
.wordmark { font-family: var(--head); font-weight: 800; font-size: 1.9rem; letter-spacing: .04em; color: #fff; text-decoration: none; text-transform: uppercase; } /* The VX OFFROAD text logo. */
.wordmark span { color: var(--accent); margin-left: .25em; } /* OFFROAD part is orange. */
.nav { display: flex; align-items: center; gap: 1.4rem; } /* Menu links in a row. */
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-family: var(--head); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 1.1rem; } /* Plain menu links. */
.nav a[aria-current="page"], .nav a:not(.btn):hover { color: var(--accent); } /* Current page and hover are orange. */
.nav-toggle { display: none; } /* The Menu button is hidden on big screens. */

.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.6rem; border-radius: 4px; font-family: var(--head); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 1.15rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; } /* Shared button shape. */
.btn-primary { background: var(--accent); color: #140a02; box-shadow: 0 8px 24px rgba(255,106,26,.35); } /* The main orange Shop button. */
.btn-primary:hover { background: var(--accent-2); color: #140a02; transform: translateY(-2px); } /* Lifts on hover. */
.btn-primary .arrow { transition: transform .2s ease; } /* Arrow can slide. */
.btn-primary:hover .arrow { transform: translateX(4px); } /* Arrow slides right on hover. */
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; background: rgba(0,0,0,.25); } /* Outlined secondary button. */
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); } /* Orange outline on hover. */
.btn-small { padding: .45rem 1.1rem; font-size: 1rem; } /* Smaller version for the header. */
.mini-play { width: 0; height: 0; border-left: 12px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; } /* A tiny play triangle made from borders. */
.cta-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; } /* Row of buttons that wraps on phones. */
.center-row { justify-content: center; } /* Center the button row. */

.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; } /* Big opening banner. */
.hero-short { min-height: min(70vh, 640px); } /* A shorter banner for inner pages. */
.hero-bg, .band-bg { position: absolute; inset: -120px 0; z-index: -2; will-change: transform; } /* Background photo box is 120px taller above and below the banner so it can move (parallax) without showing gaps. */
.hero-bg picture, .hero-bg img, .band-bg picture, .band-bg img { width: 100%; height: 100%; object-fit: cover; } /* Photo fills its box. */
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,12,11,.35) 0%, rgba(11,12,11,.15) 35%, rgba(11,12,11,.92) 100%), linear-gradient(90deg, rgba(11,12,11,.75), transparent 70%); } /* Dark gradients so text is readable. */
.hero-copy { padding: 8rem 0 4rem; } /* Space around the hero words. */
.hero h1 em { font-style: normal; color: var(--accent); font-size: .42em; display: block; margin-top: .25em; letter-spacing: .08em; } /* Orange subtitle under the big headline. */
.eyebrow { font-family: var(--head); font-weight: 800; text-transform: uppercase; letter-spacing: .22em; color: var(--accent); font-size: 1.05rem; margin-bottom: .8rem; } /* Small spaced label above headings. */
.lede { max-width: 40rem; font-size: 1.3rem; color: #dcdbd4; } /* Intro paragraph. */

.marquee { overflow: hidden; background: var(--accent); color: #140a02; border-block: 2px solid #000; transform: rotate(-1deg) scale(1.02); margin: -1.2rem 0 1rem; position: relative; z-index: 2; } /* Orange tilted strip. */
.marquee-track { display: flex; gap: 2.5rem; width: max-content; padding: .6rem 0; animation: scroll 38s linear infinite; font-family: var(--head); font-weight: 800; text-transform: uppercase; font-size: 1.5rem; letter-spacing: .08em; } /* The moving row of phrases. */
.marquee-track span::after { content: "//"; margin-left: 2.5rem; opacity: .5; } /* Slashes between phrases. */
@keyframes scroll { to { transform: translateX(-50%); } } /* Slide the row left by half its width, then loop. */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-block: 3rem 1rem; } /* Four stat boxes with thin lines between. */
.stat { background: var(--panel); padding: 1.6rem 1rem; text-align: center; } /* One stat box. */
.stat b { display: block; font-family: var(--head); font-weight: 800; font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1; color: #fff; } /* The big number. */
.stat span { color: var(--muted); font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; } /* Label under the number. */
.footnote { grid-column: 1 / -1; background: var(--bg); margin: 0; padding: .8rem 0 0; color: var(--muted); font-size: .9rem; } /* Small print under the stats. */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding-block: 4rem; } /* Photo and words side by side. */
.split-media img { border-radius: 6px; width: 100%; } /* Rounded photo. */
.ticks { list-style: none; padding: 0; margin: 0 0 1rem; } /* Bullet list without default dots. */
.ticks li { position: relative; padding-left: 1.8rem; margin-bottom: .7rem; } /* Space for the custom tick. */
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: .9rem; height: .9rem; background: var(--accent); clip-path: polygon(0 0, 100% 50%, 0 100%); } /* An orange arrow-shaped bullet. */

.band { position: relative; min-height: 460px; display: grid; place-items: center; overflow: hidden; isolation: isolate; margin-block: 2rem; } /* Full-width photo band. */
.band-shade { position: absolute; inset: 0; background: rgba(11,12,11,.6); z-index: -1; } /* Dark layer over the photo. */
.band blockquote { margin: 0; font-family: var(--head); font-weight: 800; text-transform: uppercase; font-size: clamp(2.2rem, 6vw, 4.5rem); line-height: 1; text-align: center; text-shadow: 0 4px 30px #000; } /* Big quote text. */
.band cite { display: block; margin-top: 1rem; color: var(--accent); font-size: 1.2rem; letter-spacing: .2em; font-style: normal; } /* Quote source. */

.section { padding-block: 3rem; } /* Vertical space for each section. */
.section-head { margin-bottom: 1.5rem; } /* Space under a section heading. */
.page-head { padding-block: 4rem 1rem; } /* Heading area on inner pages. */
.page-head h1 { font-size: clamp(3rem, 9vw, 6rem); } /* A bit smaller than the home hero. */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; } /* Responsive card grid. */
.card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 1rem; text-decoration: none; color: var(--text); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; } /* One product card. */
.card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 14px 30px rgba(0,0,0,.5); color: var(--text); } /* Card lifts and glows orange on hover. */
.card-img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: #d9d9d4; margin-bottom: 1rem; } /* Photo frame with a light backdrop for white-background renders. */
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; } /* Photo fills the frame. */
.card:hover .card-img img { transform: scale(1.06); } /* Photo zooms slightly on hover. */
.card h3 { font-size: 1.35rem; line-height: 1.1; text-transform: none; font-weight: 800; } /* Product name. */
.card-note { font-size: .85rem; color: var(--muted); } /* Preview-only note. */
.card-cta { margin-top: auto; color: var(--accent); font-family: var(--head); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; } /* "Shop" label at card bottom. */

.specs { width: 100%; border-collapse: collapse; } /* Spec table. */
.specs th, .specs td { text-align: left; padding: 1rem; border-bottom: 1px solid var(--line); vertical-align: top; } /* Row cell spacing. */
.specs th { width: 32%; font-family: var(--head); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); } /* Left labels. */
.src { display: block; color: var(--muted); font-size: .8rem; } /* Source note in preview. */

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } /* Two-column photo grid. */
.gallery figure { margin: 0; overflow: hidden; border-radius: 6px; } /* Photo holder. */
.gallery img { width: 100%; } /* Photo fills holder. */

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; } /* Responsive video grid. */
.yt { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: #000; text-decoration: none; } /* The video box. */
.yt img, .yt picture { width: 100%; height: 100%; object-fit: cover; } /* Thumbnail fills the box. */
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; } /* The real player, added after a click. */
.yt-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255,106,26,.6); animation: pulse 2.4s infinite; } /* Orange play circle. */
.yt-play::after { content: ""; position: absolute; left: 30px; top: 22px; border-left: 24px solid #140a02; border-top: 16px solid transparent; border-bottom: 16px solid transparent; } /* Triangle inside it. */
.yt-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem .8rem; background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #fff; font-family: var(--head); font-weight: 800; text-transform: uppercase; font-size: 1.15rem; line-height: 1.05; } /* Title over the thumbnail. */
@keyframes pulse { 70% { box-shadow: 0 0 0 22px rgba(255,106,26,0); } 100% { box-shadow: 0 0 0 0 rgba(255,106,26,0); } } /* A soft growing ring around the play button. */
dialog.player { width: min(96vw, 1100px); padding: 0; border: 0; background: #000; aspect-ratio: 16 / 9; } /* The pop-up video window. */
dialog.player::backdrop { background: rgba(0,0,0,.85); } /* Dark screen behind the pop-up. */
dialog.player iframe { width: 100%; height: 100%; border: 0; } /* Player fills the pop-up. */
dialog.player .close { position: absolute; right: .5rem; top: .5rem; z-index: 2; background: var(--accent); border: 0; font: 800 1.2rem var(--head); padding: .3rem .8rem; cursor: pointer; } /* The close button. */

.cta-final { text-align: center; padding: 6rem 0; background: radial-gradient(ellipse at 50% 120%, rgba(255,106,26,.35), transparent 60%), var(--bg); border-top: 1px solid var(--line); } /* Closing call to action with an orange glow. */
.link-list { padding-left: 1.2rem; } /* Plain list indent. */
.prose { max-width: 46rem; } /* Narrow reading column. */
.prose h2 { font-size: 2.2rem; margin-top: 1.6em; } /* Smaller headings in text pages. */
.policy h2 { font-size: 1.15rem; letter-spacing: .06em; margin-top: 2em; } /* Policy section titles stay in all caps and stay a bit smaller than page titles. */
.warranty-implied { font-size: .95rem; margin-top: 1.6em; } /* The implied-warranty paragraph; caps are already in the wording, so we do not force uppercase in CSS. */
.warranty-notice { margin: .75rem 0 0; font-size: .95rem; color: var(--muted); max-width: 36rem; } /* One-line sales-final notice shown near Shop buttons. */
.warranty-notice a { color: inherit; text-decoration: underline; text-underline-offset: .15em; } /* The policy link, clearly tappable. */
.hero-copy .warranty-notice { color: rgba(255,255,255,.82); } /* On the dark hero, keep the notice readable and a little softer than the headline. */


.tag-confirm { display: inline-block; background: #ffd400; color: #000; font: 800 .7rem var(--head); letter-spacing: .1em; padding: .1rem .45rem; border-radius: 3px; vertical-align: middle; } /* Yellow preview tag. */

.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 1.5rem; background: #070807; color: var(--muted); } /* Footer box. */
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; } /* Three footer columns. */
.site-footer h3 { color: #fff; font-size: 1.2rem; } /* Column headings. */
.site-footer ul { list-style: none; padding: 0; margin: 0; } /* Plain lists. */
.site-footer li { margin-bottom: .4rem; } /* Space between links. */
.legal { font-size: .85rem; margin-top: .35rem; } /* Small legal / warranty lines in the footer. */
.legal:first-of-type { margin-top: 2rem; } /* Extra space above the first legal line. */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; } /* With JavaScript, items start hidden and slightly low... */
.js .reveal.in { opacity: 1; transform: none; } /* ...and fade up into place when scrolled into view. */

@media (max-width: 900px) { /* Rules for tablets and phones. */
  .nav-toggle { display: block; background: none; border: 1px solid var(--line); color: #fff; font: 800 1.1rem var(--head); text-transform: uppercase; padding: .4rem .9rem; border-radius: 4px; } /* Show the Menu button. */
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: flex-start; background: #0b0c0b; padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid var(--line); } /* The menu becomes a dropdown (only when JavaScript can open it). */
  .js .nav.open { display: flex; } /* Show the dropdown when opened. */
  .no-js .nav { flex-wrap: wrap; gap: .8rem; } /* Without JavaScript the links simply wrap. */
  .no-js .header-row { flex-wrap: wrap; } /* Allow the header to wrap. */
  .no-js .nav-toggle { display: none; } /* The button is useless without JavaScript. */
  .stats { grid-template-columns: 1fr 1fr; } /* Two stats per row on phones. */
  .split { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 2.5rem; } /* Stack photo and words. */
  .gallery { grid-template-columns: 1fr; } /* One photo per row. */
  .footer-grid { grid-template-columns: 1fr; } /* Stack the footer. */
  .hero-copy { padding: 6rem 0 3rem; } /* Less hero padding on phones. */
  .lede { font-size: 1.15rem; } /* Slightly smaller intro. */
} /* End of phone rules. */

@media (prefers-reduced-motion: reduce) { /* For visitors who ask their device for less motion. */
  html { scroll-behavior: auto; } /* No smooth scrolling. */
  .marquee-track { animation: none; } /* Stop the scrolling strip. */
  .yt-play { animation: none; } /* Stop the pulsing button. */
  .js .reveal { opacity: 1; transform: none; transition: none; } /* Show everything immediately. */
  .card, .card-img img, .btn { transition: none; } /* No hover animations. */
  .hero-bg, .band-bg { transform: none !important; } /* No parallax movement. */
} /* End of reduced-motion rules. */

/* .card-price is unused: prices are not shown on this site (they live in the shop). */
.card-blurb { font-size: .95rem; color: var(--muted); margin: 0 0 .5rem; } /* The short real description under the name. */
.group-intro { max-width: 46rem; color: var(--muted); margin: -0.5rem 0 1.4rem; } /* A short intro paragraph under a product-group heading. */

.variant { border: 1px solid var(--accent); background: var(--panel); border-radius: 6px; padding: 2rem 1.6rem; } /* A highlighted box for the high-clearance rock crawler kit option. */
.variant-note { color: var(--muted); max-width: 40rem; margin: 1.1rem 0 0; font-size: 1.05rem; } /* A short mention of the kit option on the home and products pages. */
