:root {
  --navy: #07131f;
  --navy-2: #0d2132;
  --ink: #101820;
  --muted: #66727d;
  --line: #dbe1e6;
  --paper: #f7f8f9;
  --white: #ffffff;
  --accent: #f06a2b;
  --accent-dark: #d9571c;
  --radius: 18px;
  --shadow: 0 18px 55px rgba(5, 17, 28, .12);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.site-header {
  position: fixed; z-index: 50; inset: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 78px; padding: 0 5vw;
  background: #fff url('/images/contour-lines-header-footer.png') center / cover no-repeat;
  box-shadow: 0 1px 10px rgba(7, 31, 52, .10);
  color: var(--navy-2);
}
.brand { display: flex; gap: 12px; align-items: center; letter-spacing: .05em; padding: 8px 14px; border-radius: 14px; background: rgba(255,255,255,.94); box-shadow: 0 2px 12px rgba(7,31,52,.08); }
.brand-logo { display:block; flex:none; width:64px; height:42px; object-fit:contain; }
.site-header .brand strong { display: block; color: var(--navy-2); font-size: .9rem; letter-spacing: .12em; }
.site-header .brand small { display: block; margin-top: 1px; color: #426987; font-size: .63rem; letter-spacing: .2em; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,.35); border-radius: 50%;
  font-size: .72rem; font-weight: 800; letter-spacing: .08em;
}
.nav { display: flex; align-items: center; gap: 28px; padding: 12px 18px; border-radius: 14px; background: rgba(255,255,255,.5); box-shadow: 0 2px 12px rgba(7,31,52,.08); color: var(--navy-2); font-size: .83rem; font-weight: 700; }
.nav a { opacity: .88; transition: opacity .2s, color .2s; }
.nav a:hover { opacity: 1; color: #245f89; }
.menu-toggle { display: none; color: var(--navy-2); background: none; border: 0; font-size: 1.6rem; }

.hero { min-height: 760px; height: 92vh; background: var(--navy); color: #fff; }
.hero-slider { height: 100%; position: relative; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0;
  background-position: center; background-size: cover;
  transition: opacity .9s ease;
}
.hero-slide-primary { background-position: center 22%; }
.hero-slide-flag { background-position: center 18%; }
.hero-slide.is-active { opacity: 1; }
.hero-arrow { position:absolute; z-index:5; top:50%; transform:translateY(-50%); display:grid; place-items:center; width:46px; height:46px; padding:0 0 4px; border:1px solid rgba(255,255,255,.55); border-radius:50%; background:rgba(7,19,31,.38); color:#fff; font-size:2.2rem; line-height:1; cursor:pointer; transition:background .2s, transform .2s; }
.hero-arrow:hover { background:rgba(7,19,31,.72); transform:translateY(-50%) scale(1.06); }
.hero-prev { left:24px; }
.hero-next { right:24px; }
.hero-slider { touch-action:pan-y; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(3,12,20,.82) 0%, rgba(3,12,20,.43) 48%, rgba(3,12,20,.15) 100%);
}
.hero-copy {
  position: relative; z-index: 2; width: min(680px, 88vw);
  padding-top: 220px; margin-left: max(5vw, calc((100vw - var(--max))/2));
}
.eyebrow, .section-kicker {
  margin: 0 0 14px; font-size: .74rem; font-weight: 800;
  letter-spacing: .22em; color: var(--accent);
}
.hero h1 { margin: 0; font-size: clamp(3.4rem, 7vw, 6.8rem); line-height: .95; letter-spacing: -.055em; }
.hero h1.hero-vehicle-heading { max-width:720px; font-size:clamp(1.8rem, 4.5vw, 3.6rem); line-height:1.02; letter-spacing:-.04em; }
.hero h1 span { color: #dfe9ef; }
.hero-copy > p:not(.eyebrow) { max-width: 560px; margin: 28px 0 32px; color: #d9e1e7; font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  border: 0; border-radius: 999px; padding: 13px 21px;
  font-weight: 800; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s;
  display: inline-flex; justify-content: center; align-items: center;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--accent); box-shadow: 0 10px 30px rgba(240,106,43,.28); }
.button-primary:hover { background: var(--accent-dark); }
.hero-shop-button { flex-direction:column; gap:1px; line-height:1.12; }
.hero-shop-button small { font-size:.72em; font-weight:700; }
.button-ghost { color: #fff; border: 1px solid rgba(255,255,255,.38); background: rgba(255,255,255,.06); }
.slider-dots { position: absolute; z-index: 4; left: 5vw; bottom: 42px; display: flex; gap: 9px; }
.dot { width: 32px; height: 4px; padding: 0; border: 0; border-radius: 4px; background: rgba(255,255,255,.35); cursor: pointer; }
.dot.is-active { background: #fff; }

.section { max-width: var(--max); margin: 0 auto; padding: 110px 30px; }
.intro { text-align: center; }
.intro h2, .section-heading h2, .about-copy h2, .contact-section h2 { margin: 0; font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1.02; letter-spacing: -.045em; }
.lede { max-width: 720px; margin: 25px auto 60px; color: var(--muted); font-size: 1.08rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; text-align: left; }
.feature-grid > div { border-top: 1px solid var(--line); padding-top: 22px; }
.feature-number { color: var(--accent); font-size: .72rem; font-weight: 900; letter-spacing: .15em; }
.feature-grid h3 { margin: 10px 0 6px; font-size: 1.25rem; }
.feature-grid p { margin: 0; color: var(--muted); }

.products-section { max-width: none; background: var(--paper); padding: 78px max(30px, calc((100vw - var(--max))/2 + 30px)); }
.section-heading { max-width: var(--max); margin: 0 auto 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: end; }
.section-heading > p { color: var(--muted); margin: 0; }
.product-layout { max-width:var(--max); margin:0 auto; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; align-items:stretch; }
.product-panel { min-width:0; padding:18px; border:1px solid var(--line); border-radius:18px; background:#fff; box-shadow:var(--shadow); }
.product-carousel { position:relative; max-width:640px; margin:0 auto; }
.anytube-gallery-panel .product-carousel { max-width:none; }
.anytube-features h4 { margin:4px 0 16px; color:var(--navy-2); font-size:1.5rem; letter-spacing:-.02em; }
.anytube-features ul { display:grid; gap:14px; margin:0; padding:0; list-style:none; }
.anytube-features li { position:relative; padding-left:27px; color:#394c5a; font-size:1.06rem; line-height:1.55; }
.anytube-features li::before { content:"✓"; position:absolute; left:0; top:0; color:var(--accent-dark); font-weight:900; }
.carousel-track { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; overscroll-behavior-inline:contain; }
.carousel-track::-webkit-scrollbar { display:none; }
.product-gallery { gap:14px; border-radius:18px; }
.product-gallery figure { margin:0; overflow:hidden; border-radius:18px; background:#fff; box-shadow:var(--shadow); }
.product-gallery figure, .exactfit-photo-track figure { flex:0 0 100%; scroll-snap-align:start; }
.product-gallery img { width:100%; aspect-ratio:1; object-fit:contain; }
.product-gallery figcaption { padding:12px; text-align:center; font-weight:800; color:var(--navy-2); }
.product-order-link { margin-top:8px; padding:9px 15px; font-size:.78rem; }
.carousel-arrow { position:absolute; z-index:2; top:50%; transform:translateY(-50%); display:grid; place-items:center; width:42px; height:42px; padding:0; border:1px solid rgba(16,24,32,.12); border-radius:50%; background:rgba(255,255,255,.95); color:var(--navy); box-shadow:0 4px 18px rgba(5,17,28,.16); font-size:1.8rem; line-height:1; cursor:pointer; }
.carousel-arrow:hover:not(:disabled) { background:#fff; transform:translateY(-50%) scale(1.06); }
.carousel-arrow:disabled { opacity:.38; cursor:default; }
.carousel-prev { left:12px; }
.carousel-next { right:12px; }
.product-category-title { max-width:var(--max); margin:0 auto 14px; font-size:1.8rem; letter-spacing:-.03em; }
.product-category-subheading { max-width:var(--max); margin:-6px auto 16px; color:var(--muted); }
.exactfit-title { margin-top:38px; }

.product-card { background:#fff; padding: 38px; border-radius: 24px; box-shadow: var(--shadow); }
.product-order-layout { max-width:680px; margin:36px auto 0; scroll-margin-top:100px; }
.exactfit-intro { margin:0; color:var(--muted); }
.exactfit-product-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-top:16px; }
.exactfit-products-panel > .microcopy { margin-top:14px; }
.exactfit-product-card { min-width:0; margin:0; overflow:hidden; border:1px solid var(--line); border-radius:16px; background:#fff; }
.exactfit-product-card > img { width:100%; aspect-ratio:1.35; object-fit:contain; }
.exactfit-product-card > figcaption { padding:14px; text-align:center; font-weight:800; color:var(--navy-2); }
.exactfit-photo-track { scroll-snap-type:x mandatory; }
.exactfit-photo-track figure { margin:0; }
.exactfit-photo-track img { width:100%; aspect-ratio:1.35; object-fit:contain; }
.exactfit-photo-track figcaption { padding:14px; text-align:center; font-weight:800; color:var(--navy-2); }
.product-gallery img, .exactfit-photo-track img, .exactfit-product-card > img { cursor:zoom-in; }
.product-lightbox { position:fixed; inset:0; width:min(96vw,1400px); max-width:none; max-height:94vh; padding:56px 72px 28px; overflow:visible; border:1px solid rgba(255,255,255,.18); border-radius:20px; background:#07131ff2; color:#fff; box-shadow:0 24px 90px rgba(0,0,0,.5); }
.product-lightbox::backdrop { background:rgba(2,9,15,.84); }
.lightbox-figure { display:flex; height:calc(94vh - 88px); margin:0; flex-direction:column; align-items:center; justify-content:center; gap:12px; }
.lightbox-image { display:block; width:100%; height:calc(100% - 42px); object-fit:contain; }
.lightbox-caption { max-width:100%; color:#fff; font-size:.98rem; text-align:center; }
.lightbox-close, .lightbox-arrow { position:absolute; z-index:1; display:grid; place-items:center; border:1px solid rgba(255,255,255,.5); border-radius:50%; background:rgba(7,19,31,.72); color:#fff; cursor:pointer; }
.lightbox-close { top:14px; right:14px; width:42px; height:42px; font-size:1.8rem; line-height:1; }
.lightbox-arrow { top:50%; width:48px; height:48px; transform:translateY(-50%); font-size:2.2rem; line-height:1; }
.lightbox-arrow:hover, .lightbox-close:hover { background:rgba(255,255,255,.2); }
.lightbox-prev { left:14px; }
.lightbox-next { right:14px; }
.product-badge { color: var(--accent); font-weight:900; font-size:.68rem; letter-spacing:.18em; }
.product-card h3 { font-size: 2rem; margin: 10px 0 10px; letter-spacing:-.03em; }
.product-description { color:var(--muted); }
.fitment { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:28px 0; }
.fitment div { border:1px solid var(--line); border-radius:14px; padding:15px; }
.fitment strong, .fitment span { display:block; }
.fitment span { color:var(--muted); font-size:.86rem; margin-top:2px; }
.price-row { display:grid; grid-template-columns:1fr 1fr; gap:10px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:18px 0; }
.price-row span, .price-row strong { display:block; }
.price-row span { color:var(--muted); font-size:.82rem; }
.price-row strong { font-size:1.7rem; }
.purchase-box { margin-top:24px; }
.step-label { margin:0 0 12px; color:var(--muted); font-size:.8rem; font-weight:700; }
.mount-family-buttons { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:18px; }
.mount-family-button { padding:11px 14px; border:1px solid var(--line); border-radius:12px; background:#fff; color:var(--navy-2); font-weight:800; cursor:pointer; }
.mount-family-button.is-active { border-color:var(--navy-2); background:var(--navy-2); color:#fff; }
.mount-family-button:focus-visible, .carousel-arrow:focus-visible { outline:3px solid rgba(240,106,43,.5); outline-offset:2px; }
.color-options { display:flex; align-items:center; gap:16px; margin:14px 0; padding:10px 13px; border:1px solid var(--line); border-radius:12px; }
.color-options[hidden] { display:none; }
.color-options legend { padding:0 5px; font-size:.78rem; font-weight:800; }
.color-options label { display:flex; align-items:center; gap:7px; margin:0; font-size:.84rem; }
.color-options input[type="radio"] { width:auto; margin:0; accent-color:var(--accent); }
.button-wide { width:100%; margin-top:14px; }
.shipping-step-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.shipping-step-heading span { color:var(--muted); font-size:.8rem; font-weight:700; }
.text-button { padding:6px 0; color:var(--navy-2); background:none; border:0; font:inherit; font-size:.85rem; font-weight:800; cursor:pointer; }
.text-button:hover { color:var(--accent-dark); }
.purchase-box label { display:block; font-size:.78rem; font-weight:800; margin: 0 0 7px; }
select, input, textarea {
  width:100%; border:1px solid #cfd7dd; background:#fff; border-radius:12px; padding:12px 13px; outline:none;
}
select:focus, input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(240,106,43,.1); }
.qty-row { display:grid; grid-template-columns:100px 1fr; gap:10px; }
.shipping-rate-note { margin:8px 0 16px; color:var(--muted); font-size:.9rem; }
.microcopy { color:var(--muted); font-size:.76rem; margin:10px 0 0; }
.checkout-message { color:var(--accent-dark); font-size:.82rem; min-height:1.2em; }
.shipping-fields { margin:22px 0 0; padding:18px; border:1px solid var(--line); border-radius:14px; }
.shipping-fields legend { padding:0 6px; font-weight:800; font-size:.9rem; }
.shipping-fields label { margin-top:10px; }
.shipping-locality { display:grid; grid-template-columns:1fr 1fr; gap:10px; }

.gallery-section { max-width:none; background:var(--navy); color:#fff; padding-left: max(30px, calc((100vw - var(--max))/2 + 30px)); padding-right: max(30px, calc((100vw - var(--max))/2 + 30px)); }
.centered { display:block; text-align:center; }
.centered > p { max-width:700px; margin:20px auto 0; }
.gallery-grid { max-width:var(--max); margin:38px auto 0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); grid-auto-rows:250px; gap:14px; }
.gallery-item { margin:0; position:relative; overflow:hidden; border-radius:16px; background:#102536; }
.gallery-item img { width:100%; height:100%; object-fit:cover; transition:transform .5s; }
.gallery-item:hover img { transform:scale(1.04); }
.gallery-item:after { content:""; position:absolute; inset:0; background:linear-gradient(transparent 45%, rgba(0,0,0,.6)); }
.gallery-item figcaption { position:absolute; z-index:2; left:20px; bottom:17px; font-weight:800; }

.about-section { display:grid; grid-template-columns:1fr 1fr; gap:80px; align-items:center; }
.about-image { min-height:500px; border-radius:26px; background:linear-gradient(145deg,#132c3e,#07131f); display:grid; place-items:center; box-shadow:var(--shadow); position:relative; overflow:hidden; }
.about-image { background:#fff; }
.about-logo { width:min(78%, 390px); height:auto; object-fit:contain; }
.about-copy p { color:var(--muted); font-size:1.05rem; }
.quote-line { margin-top:32px; padding-left:18px; border-left:3px solid var(--accent); font-weight:800; }

.contact-section { max-width:none; background:#eef2f4; display:grid; grid-template-columns:1fr; gap:80px; padding-left:max(30px, calc((100vw - var(--max))/2 + 30px)); padding-right:max(30px, calc((100vw - var(--max))/2 + 30px)); }
.contact-section > div { max-width:550px; }
.contact-note { margin-top:32px; padding:18px; border-radius:14px; background:#fff; border:1px solid var(--line); }
.contact-note strong, .contact-note span { display:block; }
.contact-note span { color:var(--muted); margin-top:4px; }
.contact-note a { display:inline-block; margin-top:8px; color:var(--accent-dark); font-weight:700; }

.site-footer { background:#fff url('/images/contour-lines-header-footer.png') center / cover no-repeat; color:var(--navy-2); padding:45px 5vw 35px; display:grid; grid-template-columns:1fr auto; gap:25px; align-items:center; box-shadow:0 -1px 10px rgba(7,31,52,.08); }
.footer-brand { display:flex; width:max-content; gap:12px; align-items:center; padding:10px 14px; border-radius:14px; background:rgba(255,255,255,.94); box-shadow:0 2px 12px rgba(7,31,52,.08); }
.footer-brand strong, .footer-brand span { display:block; }
.footer-brand strong { color:var(--navy-2); font-size:.8rem; letter-spacing:.13em; }
.footer-brand span:not(.brand-mark) { font-size:.62rem; letter-spacing:.18em; margin-top:2px; }
.footer-links { display:flex; gap:20px; flex-wrap:wrap; padding:12px 18px; border-radius:14px; background:rgba(255,255,255,.5); box-shadow:0 2px 12px rgba(7,31,52,.08); font-size:.78rem; }
.footer-links a:hover { color:#245f89; }
.site-footer > p { grid-column:1/-1; justify-self:start; margin:0; padding:7px 11px; border-radius:10px; background:rgba(255,255,255,.94); box-shadow:0 2px 12px rgba(7,31,52,.08); font-size:.72rem; color:#526a7c; }

@media (max-width: 900px) {
  .nav { position:absolute; top:78px; left:0; right:0; display:none; padding:20px 5vw 25px; background:#fff url('/images/contour-lines-header-footer.png') center / cover no-repeat; box-shadow:0 10px 20px rgba(7,31,52,.12); flex-direction:column; align-items:flex-start; }
  .nav.is-open { display:flex; }
  .menu-toggle { display:block; }
  .hero { min-height:700px; }
  .hero-prev { left:12px; }
  .hero-next { right:12px; }
  .hero-copy { padding-top:190px; }
  .feature-grid, .product-layout, .about-section, .contact-section, .section-heading { grid-template-columns:1fr; }
  .product-layout { gap:30px; }
  .anytube-features ul { gap:11px; }
  .gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:240px; }
}

@media (max-width: 600px) {
  .site-header .brand strong { font-size:.72rem; }
  .site-header .brand small { font-size:.52rem; }
  .hero-copy { padding-top:160px; }
  .hero h1 { font-size:3.35rem; }
  .hero-copy > p:not(.eyebrow) { font-size:1rem; }
  .section { padding-top:80px; padding-bottom:80px; }
  .product-gallery { grid-template-columns:1fr; width:min(100%,430px); margin:0 auto; }
  .exactfit-product-grid { grid-template-columns:1fr; }
  .gallery-grid { display:block; }
  .gallery-item { height:300px; margin-bottom:14px; }
  .site-footer { grid-template-columns:1fr; }
  .product-lightbox { width:100vw; max-width:100vw; max-height:100dvh; padding:58px 48px 20px; border:0; border-radius:0; }
  .lightbox-figure { height:calc(100dvh - 82px); }
  .lightbox-arrow { width:38px; height:38px; font-size:1.8rem; }
  .lightbox-prev { left:5px; }
  .lightbox-next { right:5px; }
}
