/* clearvane.com — static rebuild of the ClearVane Shopify store (Dawn theme).
   Same fonts, color schemes and section order as the original store. */
:root {
  --font-heading: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --page: 1200px;
  --radius: 8px;
  --btn-radius: 6px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .06rem;
  -webkit-font-smoothing: antialiased;
  background: #f4f4f4;
  color: rgb(43, 44, 45);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 500; letter-spacing: .06rem; line-height: 1.25; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page-width { width: min(var(--page), 100% - 32px); margin: 0 auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 50; background: #fff; padding: 8px 14px; }

/* ---------- Dawn color schemes (copied from the store's theme settings) */
.scheme-1 { --bg: 244,244,244; --fg: 43,44,45;   --btn: 183,172,162; --btn-text: 38,38,38;  --btn2-text: 0,17,40; }
.scheme-2 { --bg: 255,255,255; --fg: 38,38,38;   --btn: 121,112,104; --btn-text: 255,255,255; --btn2-text: 121,117,114; }
.scheme-3 { --bg: 194,183,172; --fg: 38,38,38;   --btn: 253,253,253; --btn-text: 38,38,38;  --btn2-text: 84,72,60; }
.scheme-4 { --bg: 28,34,40;    --fg: 255,255,255; --btn: 255,255,255; --btn-text: 0,17,40;   --btn2-text: 255,255,255; }
.scheme-5 { --bg: 50,56,65;    --fg: 255,255,255; --btn: 183,172,162; --btn-text: 38,38,38;  --btn2-text: 255,255,255; }
[class*="scheme-"] { background: rgb(var(--bg)); color: rgba(var(--fg), .75); }
[class*="scheme-"] h1, [class*="scheme-"] h2, [class*="scheme-"] h3 { color: rgb(var(--fg)); }

/* ---------- buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 45px; min-width: 120px; padding: 0 30px;
  border: 0; border-radius: var(--btn-radius);
  background: rgb(var(--btn)); color: rgb(var(--btn-text));
  font: 400 15px/1.2 var(--font-body); letter-spacing: .1rem; text-decoration: none;
  cursor: pointer; transition: box-shadow .1s;
}
.button:hover { box-shadow: 0 0 0 2px rgb(var(--btn)); }
.button--secondary { background: transparent; color: rgb(var(--btn2-text)); box-shadow: inset 0 0 0 1px rgba(var(--btn2-text), .9); }
.button--secondary:hover { box-shadow: inset 0 0 0 2px rgb(var(--btn2-text)); }
.button--full { width: 100%; }
.button[disabled], .button[aria-disabled="true"] { cursor: not-allowed; opacity: .55; box-shadow: none; }


/* ---------- header (middle-left on desktop, centered logo on mobile) */
.header-wrapper { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(255,255,255,.08); }
.header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 92px; }
.header__logo { grid-column: 2; display: block; }
.header__logo img { width: 190px; height: auto; }
.header__menu { display: none; }
.header__menu a { text-decoration: none; padding: 10px 14px; font-size: 15px; color: rgba(var(--fg), .75); }
.header__menu a:hover, .header__menu a[aria-current="page"] { color: rgb(var(--fg)); text-decoration: underline; text-underline-offset: 4px; }
.header__icons { grid-column: 3; justify-self: end; display: flex; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; color: rgb(var(--fg)); cursor: pointer; text-decoration: none; }
.icon-btn svg { width: 20px; height: 20px; }
.menu-toggle { grid-column: 1; justify-self: start; }
.drawer { border-top: 1px solid rgba(255,255,255,.08); padding: 12px 0 20px; }
.drawer a { display: block; padding: 12px 0; text-decoration: none; font-size: 18px; color: rgb(var(--fg)); }
.drawer .drawer__social { display: flex; gap: 4px; margin-top: 12px; }
@media (min-width: 990px) {
  .header { grid-template-columns: auto 1fr auto; }
  .header__logo { grid-column: 1; }
  .header__menu { display: flex; grid-column: 2; padding-left: 32px; }
  .menu-toggle, .drawer { display: none !important; }
}

/* ---------- image banner */
.banner { position: relative; display: flex; align-items: center; min-height: 420px; overflow: hidden; }
.banner__media { position: absolute; inset: 0; }
.banner__media img { width: 100%; height: 100%; object-fit: cover; }
.banner__media::after { content: ""; position: absolute; inset: 0; background: #000; opacity: .3; }
.banner__content { position: relative; z-index: 1; text-align: center; padding: 64px 0; }
.banner__caption { font-size: 13px; letter-spacing: .2rem; text-transform: uppercase; color: rgba(255,255,255,.85); margin: 0; }
.banner__heading { font-size: clamp(42px, 7vw, 80px); line-height: 1.1; color: #fff !important; margin: 10px 0 28px; font-weight: 400; }
@media (min-width: 750px) { .banner { min-height: 560px; } }

/* ---------- sections */
.section { padding: 36px 0; }
@media (min-width: 750px) { .section { padding: 48px 0; } }
.rich-text { text-align: center; padding: 22px 0; }
.rich-text p { margin: 0; font-size: 17px; letter-spacing: .1rem; color: rgb(var(--fg)); }
.title { font-size: clamp(26px, 3.2vw, 36px); margin: 0 0 24px; }
.caption { font-size: 13px; letter-spacing: .15rem; text-transform: uppercase; }


/* ---------- video (poster loads the YouTube player on click) */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #1c2228; }
.video iframe, .video__poster { display: block; width: 100%; height: 100%; border: 0; }
.video__poster { position: relative; padding: 0; background: none; cursor: pointer; }
.video__poster img { width: 100%; height: 100%; object-fit: cover; }
.video__play { position: absolute; inset: 0; margin: auto; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: rgb(43,44,45); box-shadow: 0 2px 14px rgba(0,0,0,.25); transition: transform .15s; }
.video__play svg { width: 18px; height: 18px; margin-left: 3px; }
.video__poster:hover .video__play { transform: scale(1.08); }

/* ---------- image with text */
.iwt { display: grid; gap: 0; border-radius: var(--radius); overflow: hidden; }
.iwt__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.iwt__content { padding: 40px 28px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.iwt__content h2 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 18px; }
.iwt__content p { margin: 0 0 26px; }
@media (min-width: 750px) {
  .iwt { grid-template-columns: 1fr 1fr; }
  .iwt__content { padding: 48px 56px; }
}

/* ---------- product cards */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 750px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.card { position: relative; text-decoration: none; display: block; }
.card__media { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: rgba(var(--fg), .04); }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .3s, transform .5s; }
.card__media img + img { opacity: 0; }
.card:hover .card__media img + img { opacity: 1; }
.card:hover .card__media img:first-child { transform: scale(1.03); }
.card__info { padding: 12px 4px 0; }
.card__title { font-family: var(--font-heading); font-size: 17px; color: rgb(var(--fg)); margin: 0 0 2px; }
.card:hover .card__title { text-decoration: underline; text-underline-offset: 3px; }
.badge { display: inline-block; font-size: 12px; letter-spacing: .1rem; line-height: 1; padding: 6px 13px 7px; border-radius: 40px; background: rgb(var(--bg)); color: rgb(var(--fg)); border: 1px solid rgba(var(--fg), .9); }
.badge--dark { background: rgb(50,56,65); color: #fff; border-color: rgb(50,56,65); }
.card .badge { position: absolute; left: 10px; bottom: 10px; z-index: 1; }
.price { font-size: 16px; color: rgb(var(--fg)); }
.price s { opacity: .6; }

/* ---------- product page */
.product { display: grid; gap: 28px; }
@media (min-width: 990px) { .product { grid-template-columns: 1.4fr 1fr; gap: 56px; } }
.gallery__main { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: #fff; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: rgb(43,44,45); cursor: pointer; display: grid; place-items: center; box-shadow: 0 1px 6px rgba(0,0,0,.15); }
.gallery__nav svg { width: 16px; height: 16px; }
.gallery__nav--prev { left: 12px; }
.gallery__nav--next { right: 12px; }
.gallery__count { position: absolute; right: 12px; bottom: 12px; font-size: 13px; background: rgba(255,255,255,.9); padding: 2px 12px; border-radius: 40px; color: rgb(43,44,45); }
.thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.thumbs button { padding: 0; border: 1px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; aspect-ratio: 1; background: #fff; }
.thumbs button[aria-current="true"] { border-color: rgb(var(--fg)); box-shadow: 0 0 0 1px rgb(var(--fg)); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product__info { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 990px) { .product__info { position: sticky; top: 120px; align-self: start; } }
.product__vendor { font-size: 13px; letter-spacing: .15rem; text-transform: uppercase; margin: 0; }
.product__title { font-size: clamp(32px, 4vw, 40px); margin: 0; }
.product__price { display: flex; align-items: center; gap: 14px; font-size: 18px; color: rgb(var(--fg)); }
.notice { border: 1px solid rgba(var(--fg), .2); border-radius: var(--radius); padding: 16px 18px; font-size: 15px; background: rgba(var(--fg), .03); }
.notice strong { color: rgb(var(--fg)); font-weight: 500; }
.notice p { margin: 0 0 6px; }
.notice p:last-child { margin: 0; }
.qty { display: inline-flex; align-items: center; border: 1px solid rgba(var(--fg), .55); border-radius: var(--btn-radius); width: 140px; height: 45px; opacity: .45; }
.qty span { flex: 1; text-align: center; }
.accordion { border-top: 1px solid rgba(var(--fg), .1); }
.accordion:last-of-type { border-bottom: 1px solid rgba(var(--fg), .1); }
.accordion summary { display: flex; align-items: center; gap: 12px; padding: 16px 0; cursor: pointer; list-style: none; color: rgb(var(--fg)); font-size: 16px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); transition: transform .2s; }
.accordion[open] summary::after { transform: rotate(-135deg); }
.accordion summary svg { width: 20px; height: 20px; flex: none; }
.accordion__content { padding: 0 0 18px; font-size: 15px; }
.accordion__content ul { margin: 0; padding-left: 20px; }
.share { display: flex; gap: 14px; flex-wrap: wrap; font-size: 15px; }
.share a, .share button { background: none; border: 0; padding: 0; color: rgb(var(--fg)); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- generic content pages */
.main-page { padding: 48px 0 64px; }
.main-page .page-width { max-width: 760px; }
.main-page h1 { font-size: clamp(32px, 4.5vw, 44px); margin: 0 0 28px; }
.main-page h2 { font-size: 24px; margin: 34px 0 10px; }
.rte p, .rte li { color: rgba(var(--fg), .75); }
.rte a { color: rgb(var(--fg)); text-underline-offset: 3px; }
.embed { aspect-ratio: 16 / 9; margin: 22px 0; border-radius: var(--radius); overflow: hidden; background: #1c2228; }
.embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- contact form */
.form { display: grid; gap: 14px; margin-top: 24px; }
.form .row { display: grid; gap: 14px; }
@media (min-width: 750px) { .form .row { grid-template-columns: 1fr 1fr; } }
.field input, .field textarea { width: 100%; font: 16px var(--font-body); letter-spacing: .04rem; padding: 14px 15px; border: 1px solid rgba(var(--fg), .55); border-radius: 6px; background: rgb(var(--bg)); color: rgb(var(--fg)); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid rgba(var(--fg), .5); outline-offset: 1px; }
.form .button { justify-self: start; }
.form-note { font-size: 14px; }

/* ---------- footer */
.footer { padding: 36px 0 28px; font-size: 15px; }
.footer__top { display: grid; gap: 28px; }
@media (min-width: 750px) { .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.footer h2 { font-size: 17px; margin: 0 0 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer a { text-decoration: none; color: rgba(var(--fg), .75); }
.footer a:hover { color: rgb(var(--fg)); text-decoration: underline; text-underline-offset: 3px; }
.social { display: flex; gap: 4px; margin-left: -12px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; }
.social svg { width: 20px; height: 20px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 20px; font-size: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* ---------- reveal on scroll (same feel as Dawn's "animate--slide-in") */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
