/*
Theme Name: AVIRAX FORGED
Author: AVIRAX
Description: Premium forged wheel brand theme. Bilingual (TH/EN), sharp-edged motorsport design. Works with the AVIRAX Core plugin (Collections, Showcase, Dealers, forms), Yoast SEO and WooCommerce. Text and images are editable from WP Admin > AVIRAX.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: avirax
*/

/* ───────── Design tokens (from avirax-website.vercel.app) ───────── */
:root {
  --brand: #ffd400;
  --brand-hover: #e8c000;
  --ink: #080808;
  --ink-muted: #555;
  --page: #fff;
  --soft: #f5f5f2;
  --surface: #111;
  --surface-2: #1a1a1a;
  --line: rgba(8,8,8,.10);
  --line-soft: rgba(8,8,8,.06);
  --border-gray: #e5e5e5;
  --danger: #dc2626;
  --radius: 0;

  --font-display: "Antonio", "IBM Plex Sans Thai", sans-serif;
  --font-body: "DM Sans", "IBM Plex Sans Thai", sans-serif;

  --t-eyebrow: clamp(11px, .72vw, 12px);
  --t-small: clamp(13px, .82vw, 14px);
  --t-body-sm: clamp(14px, .9vw, 15px);
  --t-body: clamp(15px, .95vw, 16.5px);
  --t-lead: clamp(16px, 1.1vw, 18px);
  --t-card: clamp(18px, 1.25vw, 21px);
  --t-sub: clamp(24px, 2.3vw, 30px);
  --t-section: clamp(32px, 3.25vw, 44px);
  --t-feature: clamp(38px, 4vw, 50px);
  --t-page-hero: clamp(42px, 5vw, 68px);
  --t-home-hero: clamp(52px, 6.6vw, 82px);
  --t-stat: clamp(32px, 3.5vw, 46px);

  --ease: cubic-bezier(.2,.65,.3,1);
  --ease-soft: cubic-bezier(.4,0,.2,1);
  --header-h: 80px;
  --wrap: 1440px;
  --gutter: 2.5rem;
}

/* ───────── Base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: var(--font-body); font-size: var(--t-body); line-height: 1.78;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.006em; line-height: 1.16; margin: 0 0 .5em; text-transform: uppercase; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Bilingual switch: <span class="th">…</span><span class="en">…</span> */
html[data-lang="en"] .th { display: none !important; }
html:not([data-lang="en"]) .en { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: clamp(64px, 8vw, 120px) 0; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark .muted { color: rgba(255,255,255,.62); }
.muted { color: var(--ink-muted); }
.center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--font-display); font-size: var(--t-eyebrow); font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase; margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--brand); }
.h-section { font-size: var(--t-section); line-height: 1.16; letter-spacing: -.006em; }
.h-sub { font-size: var(--t-sub); line-height: 1.22; }
.lead { font-size: var(--t-lead); line-height: 1.88; color: var(--ink-muted); max-width: 62ch; }
.section--dark .lead { color: rgba(255,255,255,.7); }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: 14px 30px; border: 1px solid transparent; border-radius: 0; background: transparent;
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; line-height: 1;
  transition: background .25s var(--ease-soft), color .25s, border-color .25s, transform .25s;
}
.btn svg { width: 14px; height: 14px; }
.btn--primary { background: var(--brand); color: var(--ink); }
.btn--primary:hover { background: var(--brand-hover); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--brand); color: var(--ink); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--outline-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--sm { padding: 10px 20px; font-size: 11px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-display);
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  border-bottom: 2px solid var(--brand); padding-bottom: 3px; transition: gap .25s;
}
.link-arrow:hover { gap: .9rem; }
.link-arrow svg { width: 14px; height: 14px; }

/* ───────── Header ───────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(8,8,8,.08); transition: all .5s var(--ease-soft);
}
.site-header__bar {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  transition: height .4s ease;
}
.site-header.is-scrolled .site-header__bar { height: 68px; }
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo img { height: 42px; width: auto; transition: height .4s ease; }
.site-header.is-scrolled .site-logo img { height: 36px; }
.site-logo__text { font-family: var(--font-display); font-weight: 700; font-size: clamp(23px,1.65vw,25px); letter-spacing: .16em; }
.site-logo__text b { color: var(--ink); background: var(--brand); padding: 0 .35em; margin-left: .35em; font-size: .7em; letter-spacing: .12em; }
.main-nav-wrap { display: flex; align-items: center; }
.main-nav { display: flex; align-items: center; gap: 1.35rem; }
.main-nav li, .mobile-menu li, .footer-menu li { list-style: none; }
.main-nav a {
  font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(8,8,8,.88); padding: 6px 0 4px; border-bottom: 2px solid transparent; transition: all .25s ease; white-space: nowrap; display: block;
}
.main-nav a:hover { color: var(--brand-hover); }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a, .main-nav .current-menu-ancestor > a { color: var(--ink); border-bottom-color: var(--brand); }
.site-header__tools { display: flex; align-items: center; gap: .875rem; }
.lang-toggle {
  background: none; border: 1px solid rgba(8,8,8,.14); padding: 5px 13px;
  font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: .15em; color: rgba(8,8,8,.78);
  transition: all .25s ease;
}
.lang-toggle:hover { border-color: var(--brand); color: var(--brand-hover); }
.menu-toggle { display: none; background: none; border: 0; padding: 4px; color: var(--ink); }
.menu-toggle svg { width: 22px; height: 22px; }
.mobile-nav {
  position: fixed; top: 68px; left: 0; right: 0; z-index: 99; background: rgba(255,255,255,.98);
  backdrop-filter: blur(28px); border-bottom: 1px solid rgba(8,8,8,.08);
  transform: translateY(-108%); transition: transform .4s var(--ease-soft); padding: 0 var(--gutter);
  max-height: calc(100vh - 68px); overflow-y: auto; visibility: hidden;
}
.mobile-nav.is-open { transform: translateY(0); padding: 2rem var(--gutter) 2.5rem; visibility: visible; }
.mobile-nav a {
  display: flex; align-items: center; justify-content: space-between; padding: .875rem 0;
  font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav a::after { content: "→"; opacity: .3; font-family: var(--font-body); font-size: 20px; }
.mobile-nav .current-menu-item > a { border-left: 4px solid var(--brand); padding-left: .75rem; }
.footer-menu { padding: 0; }
.footer-menu li { padding: .3rem 0; font-size: var(--t-body-sm); }
.footer-menu a { color: rgba(255,255,255,.72); transition: color .25s; }
.footer-menu a:hover { color: var(--brand); }
.footer-menu .current-menu-item > a { color: var(--brand); }

/* WooCommerce + common plugin form basics inside the theme layout */
.woo-wrap .woocommerce-message, .woo-wrap .woocommerce-info, .woo-wrap .woocommerce-error { border-left: 4px solid var(--brand); background: var(--soft); padding: 1rem 1.25rem; margin-bottom: 1.5rem; list-style: none; }
.woo-wrap ul.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; list-style: none; padding: 0; }
.woo-wrap ul.products li.product { border: 1px solid var(--line); padding: 1rem; }
.woo-wrap .button, .woo-wrap button.button, .woo-wrap .wp-element-button, .wpcf7 input[type=submit] {
  display: inline-flex; padding: 14px 30px; border: 0; border-radius: 0; background: var(--brand); color: var(--ink);
  font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; cursor: pointer;
}
.woo-wrap .button:hover, .wpcf7 input[type=submit]:hover { background: var(--brand-hover); }
.woo-wrap input[type=text], .woo-wrap input[type=email], .woo-wrap input[type=tel], .woo-wrap input[type=number], .woo-wrap select, .woo-wrap textarea,
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 textarea, .wpcf7 select {
  width: 100%; padding: 13px 14px; border: 1px solid var(--border-gray); border-radius: 0; font: inherit; background: #fff;
}
.woo-wrap .price { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.breadcrumb--yoast a { color: inherit; }
.breadcrumb--yoast .breadcrumb_last { color: var(--brand); }
.entry-content .alignwide { max-width: min(1280px, 100vw - 3rem); margin-left: 50%; transform: translateX(-50%); width: 100vw; }
.entry-content .alignfull { width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.entry-content figure { margin: 2rem 0; }
.entry-content figcaption { font-size: 13px; color: var(--ink-muted); margin-top: .5rem; }
.entry-content .wp-block-button__link { border-radius: 0; background: var(--brand); color: var(--ink); border: 0; font-family: var(--font-display); letter-spacing: .18em; text-transform: uppercase; }
.page-extra { margin-top: 4rem; }
.article__crumb { margin-bottom: 1.5rem; }
.article__crumb .breadcrumb { color: var(--ink-muted); }
.mobile-nav__copy { margin-top: 2rem; font-size: 12px; color: rgba(8,8,8,.42); letter-spacing: .05em; }
.site-main { padding-top: var(--header-h); min-height: 70vh; }
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

/* ───────── Page transition ───────── */
.av-page { animation: av-enter .52s var(--ease) both; }
@keyframes av-enter { 0% { opacity: 0; transform: translateY(16px); filter: blur(2px); } 100% { opacity: 1; transform: none; filter: blur(0); } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ───────── Hero (home) ───────── */
.hero {
  position: relative; min-height: clamp(520px, calc(100vh - var(--header-h)), 860px); display: flex; align-items: center;
  background: var(--ink) center/cover no-repeat; color: #fff; overflow: hidden;
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(8,8,8,.88) 0%, rgba(8,8,8,.55) 55%, rgba(8,8,8,.25) 100%); }
.hero__inner { position: relative; z-index: 2; width: 100%; padding-top: 4rem; padding-bottom: 6rem; }
.hero__eyebrow { color: var(--brand); }
.hero h1 { font-size: var(--t-home-hero); line-height: .94; letter-spacing: -.012em; margin-bottom: 1.5rem; }
.hero h1 .accent { color: var(--brand); display: block; }
.hero__sub { font-size: var(--t-lead); line-height: 1.88; color: rgba(255,255,255,.78); max-width: 52ch; margin-bottom: 2.25rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2;
  font-family: var(--font-display); font-size: 11px; letter-spacing: .3em; color: rgba(255,255,255,.6);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
}
.hero__scroll::after { content: ""; width: 1px; height: 40px; background: linear-gradient(var(--brand), transparent); animation: av-drop 1.8s ease-in-out infinite; }
@keyframes av-drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Page hero (inner pages) */
.page-hero { position: relative; background: var(--ink) center/cover no-repeat; color: #fff; padding: clamp(72px, 9vw, 130px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,8,8,.92), rgba(8,8,8,.55)); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--brand); }
.page-hero h1 { font-size: var(--t-page-hero); line-height: 1.1; margin-bottom: 1rem; }
.page-hero p { color: rgba(255,255,255,.75); max-width: 60ch; font-size: var(--t-lead); line-height: 1.88; margin: 0; }
.breadcrumb { font-size: 12px; letter-spacing: .08em; color: rgba(255,255,255,.55); margin-bottom: 1.25rem; font-family: var(--font-display); text-transform: uppercase; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { margin: 0 .5rem; color: var(--brand); }

/* ───────── Marquee / partner strip ───────── */
.partner-strip { background: var(--brand); color: var(--ink); overflow: hidden; padding: 1.1rem 0; border-block: 1px solid var(--ink); }
.partner-strip__track { display: flex; gap: 3.5rem; width: max-content; animation: av-marquee 38s linear infinite; }
.partner-strip__item { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; display: flex; align-items: center; gap: 3.5rem; }
.partner-strip__item::after { content: "✦"; font-size: 14px; }
@keyframes av-marquee { to { transform: translateX(-50%); } }

/* ───────── Stats ───────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stat { padding: 2.25rem 1.75rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.stat__num { font-family: var(--font-display); font-size: var(--t-stat); font-weight: 700; line-height: 1; }
.stat__num em { font-style: normal; color: var(--brand-hover); }
.stat__label { font-size: var(--t-small); color: var(--ink-muted); margin-top: .75rem; line-height: 1.5; }

/* ───────── Grids & cards ───────── */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; flex-wrap: wrap; }
.section-head .h-section { margin-bottom: 0; }

.product-card { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .36s var(--ease-soft), box-shadow .36s var(--ease-soft), border-color .36s; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(8,8,8,.12); border-color: var(--ink); }
.product-card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--soft); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); backface-visibility: hidden; }
.product-card:hover .product-card__media img { transform: scale(1.06); }
.badge { position: absolute; top: 0; left: 0; background: var(--brand); color: var(--ink); font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: .18em; padding: 7px 14px; text-transform: uppercase; }
.product-card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.product-card__series { font-family: var(--font-display); font-size: var(--t-eyebrow); letter-spacing: .22em; color: var(--ink-muted); text-transform: uppercase; }
.product-card__title { font-size: var(--t-card); line-height: 1.3; font-weight: 600; margin: 0; }
.product-card__meta { font-size: var(--t-small); color: var(--ink-muted); }
.product-card__foot { margin-top: auto; padding-top: 1rem; display: flex; justify-content: space-between; align-items: center; }

.news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); transition: transform .36s var(--ease-soft), box-shadow .36s; }
.news-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(8,8,8,.12); }
.news-card__media { aspect-ratio: 16/10; overflow: hidden; background: var(--soft); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.news-card:hover .news-card__media img { transform: scale(1.06); }
.news-card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.news-card__date { font-family: var(--font-display); font-size: var(--t-eyebrow); letter-spacing: .2em; color: var(--ink-muted); text-transform: uppercase; }
.news-card__title { font-size: var(--t-card); line-height: 1.3; font-weight: 600; margin: 0; text-transform: none; }
.news-card__excerpt { font-size: var(--t-body-sm); color: var(--ink-muted); line-height: 1.7; margin: 0; }

/* Showcase / gallery */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.filter-bar a, .filter-bar button {
  border: 1px solid var(--line); background: #fff; padding: 9px 20px; font-family: var(--font-display);
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; transition: all .25s;
}
.filter-bar a:hover, .filter-bar button:hover { border-color: var(--ink); }
.filter-bar .is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.gallery-grid { columns: 3; column-gap: 1.25rem; }
.gallery-item { break-inside: avoid; margin-bottom: 1.25rem; position: relative; overflow: hidden; background: var(--soft); display: block; cursor: zoom-in; }
.gallery-item img { width: 100%; transition: transform .8s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item__cap { position: absolute; inset: auto 0 0 0; padding: 2.5rem 1.25rem 1.1rem; color: #fff; background: linear-gradient(transparent, rgba(8,8,8,.85)); transform: translateY(100%); transition: transform .4s var(--ease); }
.gallery-item:hover .gallery-item__cap { transform: none; }
.gallery-item__cap b { display: block; font-family: var(--font-display); letter-spacing: .08em; text-transform: uppercase; font-size: 18px; }
.gallery-item__cap small { color: var(--brand); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(8,8,8,.92); display: none; align-items: center; justify-content: center; padding: 2rem; animation: av-fade .3s var(--ease-soft) both; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 92vw; object-fit: contain; }
.lightbox button { position: absolute; top: 1.25rem; right: 1.25rem; background: var(--brand); border: 0; width: 44px; height: 44px; font-size: 22px; }
@keyframes av-fade { from { opacity: 0; } to { opacity: 1; } }

/* Collections layout */
.catalog { display: grid; grid-template-columns: 260px 1fr; gap: 3rem; align-items: start; }
.catalog__filters { position: sticky; top: calc(var(--header-h) + 24px); border: 1px solid var(--line); padding: 1.5rem; background: #fff; }
.catalog__filters h4 { font-size: 14px; letter-spacing: .2em; margin-bottom: 1rem; }
.catalog__filters li a { display: flex; justify-content: space-between; gap: .75rem; padding: .65rem 0; border-bottom: 1px solid var(--line-soft); font-size: var(--t-body-sm); transition: padding .25s, color .25s; }
.catalog__filters li a:hover { padding-left: .5rem; color: var(--brand-hover); }
.catalog__filters li a.is-active { font-weight: 700; border-left: 3px solid var(--brand); padding-left: .75rem; }
.catalog__count { font-family: var(--font-display); letter-spacing: .14em; font-size: 12px; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 1.25rem; }

/* Single wheel */
.spec-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 4rem; align-items: start; }
.spec-media { background: var(--soft); aspect-ratio: 1/1; overflow: hidden; }
.spec-media img { width: 100%; height: 100%; object-fit: cover; }
.spec-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0 2rem; }
.spec-table th, .spec-table td { text-align: left; padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: var(--t-body-sm); }
.spec-table th { font-family: var(--font-display); letter-spacing: .16em; text-transform: uppercase; font-size: 12px; color: var(--ink-muted); width: 38%; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { border: 1px solid var(--ink); padding: 5px 14px; font-size: 12px; font-family: var(--font-display); letter-spacing: .12em; text-transform: uppercase; }

/* Feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split__media::after { content: ""; position: absolute; inset: auto -14px -14px auto; width: 45%; height: 45%; border: 3px solid var(--brand); z-index: -1; }
.checklist li { display: flex; gap: .75rem; padding: .55rem 0; font-size: var(--t-body-sm); }
.checklist li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 4px; background: var(--brand); clip-path: polygon(14% 44%, 0 59%, 38% 100%, 100% 22%, 85% 7%, 38% 70%); }

/* Timeline */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline__item { position: relative; padding: 0 0 2.5rem 1.5rem; }
.timeline__item::before { content: ""; position: absolute; left: -2rem; top: .45rem; width: 14px; height: 14px; background: var(--brand); border: 2px solid var(--ink); }
.timeline__year { font-family: var(--font-display); font-size: var(--t-sub); font-weight: 700; line-height: 1; margin-bottom: .4rem; }

/* Process steps (manufacturing) */
.process { counter-reset: step; display: grid; gap: 1.5rem; }
.process__step { display: grid; grid-template-columns: 90px 1fr 1fr; gap: 2rem; padding: 2rem; background: #fff; border: 1px solid var(--line); counter-increment: step; }
.process__step::before { content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-size: 52px; font-weight: 700; line-height: 1; color: var(--brand-hover); }
.process__step h3 { font-size: var(--t-card); margin-bottom: .5rem; }
.process__step p { margin: 0; color: var(--ink-muted); font-size: var(--t-body-sm); }

/* Warranty steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.step { border: 1px solid var(--line); padding: 1.75rem; background: #fff; }
.step__n { width: 38px; height: 38px; background: var(--brand); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; margin-bottom: 1rem; }
.step h4 { font-size: 18px; margin-bottom: .35rem; }
.step p { margin: 0; font-size: var(--t-body-sm); color: var(--ink-muted); }

/* ───────── Dealer finder ───────── */
.dealer { display: grid; grid-template-columns: 420px 1fr; gap: 2rem; align-items: stretch; }
.dealer__panel { background: var(--surface); color: #fff; padding: 2rem; display: flex; flex-direction: column; gap: 1rem; max-height: 640px; }
.dealer__search { display: flex; align-items: center; background: #fff; }
.dealer__search svg { width: 18px; height: 18px; margin: 0 0 0 14px; color: var(--ink-muted); flex-shrink: 0; }
.dealer__search input { flex: 1; border: 0; padding: 14px; font: inherit; font-size: 14px; outline: none; background: transparent; color: var(--ink); min-width: 0; }
.dealer__regions { display: flex; flex-wrap: wrap; gap: .4rem; }
.dealer__regions button { background: transparent; border: 1px solid rgba(255,255,255,.25); color: #fff; padding: 6px 14px; font-family: var(--font-display); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; transition: all .25s; }
.dealer__regions button:hover { border-color: var(--brand); }
.dealer__regions button.is-active { background: var(--brand); color: var(--ink); border-color: var(--brand); }
.dealer__label { font-family: var(--font-display); font-size: 12px; letter-spacing: .2em; color: var(--brand); text-transform: uppercase; }
.dealer__list { overflow-y: auto; display: flex; flex-direction: column; gap: .6rem; padding-right: .4rem; }
.dealer-card { text-align: left; width: 100%; background: var(--surface-2); border: 1px solid rgba(255,255,255,.08); color: #fff; padding: 1rem 1.15rem; transition: all .25s; }
.dealer-card:hover, .dealer-card.is-selected { border-color: var(--brand); background: #222; }
.dealer-card b { display: block; font-family: var(--font-display); font-size: 17px; letter-spacing: .06em; text-transform: uppercase; }
.dealer-card span { display: block; font-size: 13px; color: rgba(255,255,255,.62); line-height: 1.5; margin-top: .2rem; }
.dealer-card .tel { color: var(--brand); }
.dealer__empty { color: rgba(255,255,255,.6); font-size: 14px; padding: 1rem 0; }
.dealer__map { position: relative; min-height: 420px; background: var(--soft); }
.dealer__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.2); }
.dealer__map-link { position: absolute; left: 1rem; bottom: 1rem; z-index: 2; }

/* ───────── CTA band ───────── */
.cta-band { background: var(--brand); color: var(--ink); padding: clamp(56px, 7vw, 96px) 0; position: relative; overflow: hidden; }
.cta-band::after { content: "AVIRAX"; position: absolute; right: -2%; bottom: -22%; font-family: var(--font-display); font-weight: 700; font-size: clamp(120px, 20vw, 300px); line-height: 1; color: rgba(8,8,8,.07); pointer-events: none; }
.cta-band__inner { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { font-size: var(--t-feature); line-height: 1.14; margin: 0; }
.cta-band__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.cta-band .btn--outline:hover { background: var(--ink); color: var(--brand); }

/* ───────── Forms ───────── */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { display: block; font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .45rem; }
.field label i { color: var(--danger); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--border-gray); border-radius: 0; background: #fff;
  font: inherit; font-size: 14px; color: var(--ink); transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255,212,0,.45); }
.field textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 1rem 1.25rem; border-left: 4px solid var(--brand); background: var(--soft); font-size: var(--t-body-sm); margin-bottom: 1.5rem; }
.notice--error { border-color: var(--danger); background: #fef2f2; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-info li { display: flex; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.contact-info svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; }
.contact-info b { display: block; font-family: var(--font-display); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); }
.contact-map { margin-top: 2rem; aspect-ratio: 16/10; background: var(--soft); }
.contact-map iframe { width: 100%; height: 100%; border: 0; }
.form-card { border: 1px solid var(--line); padding: clamp(1.5rem, 3vw, 2.5rem); background: #fff; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 250; background: var(--ink); color: #fff; border-left: 4px solid var(--brand); padding: 1rem 1.5rem; font-size: 14px; box-shadow: 0 20px 50px rgba(8,8,8,.35); animation: av-toast 6s var(--ease) both; max-width: calc(100vw - 32px); }
@keyframes av-toast { 0% { opacity: 0; transform: translate(-50%, 16px); } 8%, 88% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; visibility: hidden; transform: translate(-50%, 8px); } }

/* Floating inquiry widget */
.fab { position: fixed; right: 24px; bottom: 24px; z-index: 160; font-family: var(--font-body); }
.fab__tab { background: var(--brand); border: 0; padding: 14px 22px; font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; box-shadow: 0 10px 30px rgba(8,8,8,.25); display: flex; align-items: center; gap: .6rem; transition: background .25s, transform .25s; }
.fab__tab:hover { background: var(--brand-hover); transform: translateY(-2px); }
.fab__tab svg { width: 16px; height: 16px; }
.fab__panel { position: absolute; right: 0; bottom: 64px; width: min(400px, calc(100vw - 32px)); max-height: calc(100vh - 140px); overflow-y: auto; background: #fff; border: 1px solid var(--ink); box-shadow: 0 30px 70px rgba(8,8,8,.3); padding: 1.75rem; display: none; }
.fab.is-open .fab__panel { display: block; animation: av-pop .34s var(--ease) both; }
@keyframes av-pop { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
.fab__close { position: absolute; top: .6rem; right: .6rem; background: none; border: 0; width: 34px; height: 34px; font-size: 22px; }
.fab__panel h3 { font-size: 24px; margin-bottom: .25rem; }
.fab__panel .form { margin-top: 1rem; gap: .8rem; }

/* ───────── Article (single post / page) ───────── */
.article { max-width: 780px; margin: 0 auto; }
.article__meta { font-family: var(--font-display); letter-spacing: .2em; font-size: 12px; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 1rem; }
.article__hero { aspect-ratio: 16/9; object-fit: cover; width: 100%; margin-bottom: 2.5rem; }
.entry-content { font-size: var(--t-body); line-height: 1.88; }
.entry-content h2, .entry-content h3 { text-transform: none; margin-top: 2em; }
.entry-content a { border-bottom: 2px solid var(--brand); }
.entry-content blockquote { border-left: 4px solid var(--brand); margin: 2rem 0; padding: .5rem 1.5rem; background: var(--soft); }
.entry-content ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1em; }
.entry-content ol { padding-left: 1.4rem; margin-bottom: 1em; }
.entry-content img { margin: 2rem 0; }
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 3rem; }
.pagination .page-numbers { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); font-family: var(--font-display); letter-spacing: .1em; padding: 0 .75rem; }
.pagination .current, .pagination .page-numbers:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }

/* ───────── Footer ───────── */
.site-footer { background: var(--ink); color: #fff; padding: clamp(56px, 6vw, 88px) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 3rem; padding-bottom: 3.5rem; }
.footer-brand img { height: 48px; width: auto; margin-bottom: 1.25rem; }
.footer-brand img.is-inverted { filter: brightness(0) invert(1); }
.footer-brand p { color: rgba(255,255,255,.6); font-size: var(--t-body-sm); max-width: 38ch; }
.footer-col h4 { font-size: 13px; letter-spacing: .24em; color: var(--brand); margin-bottom: 1.25rem; }
.footer-col li { padding: .3rem 0; font-size: var(--t-body-sm); }
.footer-col a { color: rgba(255,255,255,.72); transition: color .25s; }
.footer-col a:hover { color: var(--brand); }
.footer-social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.footer-social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); transition: all .25s; }
.footer-social a:hover { background: var(--brand); border-color: var(--brand); color: var(--ink); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.5rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 12px; letter-spacing: .06em; color: rgba(255,255,255,.5); }

/* ───────── Responsive ───────── */
@media (max-width: 1100px) {
  :root { --gutter: 1.5rem; }
  .main-nav-wrap, .site-header__cta { display: none; }
  .menu-toggle { display: block; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .dealer { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .catalog { grid-template-columns: 1fr; }
  .catalog__filters { position: static; }
  .catalog__filters ul { display: flex; flex-wrap: wrap; gap: .5rem; }
  .catalog__filters li a { border: 1px solid var(--line); padding: .45rem 1rem; }
  .process__step { grid-template-columns: 70px 1fr; }
  .process__step > :last-child { grid-column: 2; }
}
@media (max-width: 800px) {
  :root { --header-h: 68px; }
  .site-logo img { height: 36px; }
  .grid--3, .grid--2, .split, .spec-layout, .contact-layout, .steps { grid-template-columns: 1fr; }
  .gallery-grid { columns: 2; }
  .form__row { grid-template-columns: 1fr; }
  .spec-layout { gap: 2rem; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .hero { min-height: clamp(480px, 82vh, 720px); }
}
@media (max-width: 520px) {
  .grid--4 { grid-template-columns: 1fr; }
  .gallery-grid { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .fab { right: 12px; bottom: 12px; }
  .hero__actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ───────── Product page (WooCommerce) ───────── */
.pd__layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.pd__gallery { position: relative; }
.pd__badge { display: inline-block; background: var(--ink); color: #fff; padding: 11px 18px; font-family: var(--font-display); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.25rem; }
.pd__main { background: var(--soft); aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; }
.pd__main img { width: 100%; height: 100%; object-fit: contain; }
.pd__thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.pd__thumb { padding: 0; border: 1px solid transparent; background: var(--soft); aspect-ratio: 1 / 1; display: grid; place-items: center; transition: border-color .25s; }
.pd__thumb img { width: 100%; height: 100%; object-fit: contain; }
.pd__thumb:hover, .pd__thumb.is-active { border-color: var(--ink); }
.pd__caption { text-align: center; font-size: 12px; color: var(--ink-muted); margin: 1.25rem 0 0; font-style: italic; }
.pd__card { border: 1px solid var(--border-gray); padding: clamp(1.5rem, 3vw, 2.5rem); background: #fff; }
.pd__title { font-size: var(--t-feature); line-height: 1.1; margin: 0 0 1.25rem; text-transform: none; font-family: var(--font-display); }
.pd__sub { font-family: var(--font-display); font-size: var(--t-sub); letter-spacing: .04em; text-transform: uppercase; font-weight: 500; }
.pd__rule { width: 100px; border: 0; border-top: 1px solid var(--ink); margin: 1.75rem 0; }
.pd__line { font-size: var(--t-body-sm); letter-spacing: .06em; text-transform: uppercase; margin: 0 0 1rem; }
.pd__line strong { font-weight: 700; }
.pd__cta { margin-top: 1.5rem; }
.pd__cart { margin-top: 1.5rem; }
.acc { margin-top: 1.5rem; display: grid; gap: .75rem; }
.acc__item { background: #f3f3f3; }
.acc__head { width: 100%; text-align: left; background: none; border: 0; padding: 14px 18px; display: flex; align-items: center; gap: .75rem; font-family: var(--font-body); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #444; }
.acc__plus { flex: 0 0 18px; height: 18px; border-radius: 50%; background: #8a8a8a; position: relative; }
.acc__plus::before, .acc__plus::after { content: ""; position: absolute; left: 50%; top: 50%; background: #fff; transform: translate(-50%, -50%); }
.acc__plus::before { width: 8px; height: 2px; }
.acc__plus::after { width: 2px; height: 8px; transition: transform .25s, opacity .25s; }
.acc__item.is-open .acc__plus::after { transform: translate(-50%, -50%) scaleY(0); opacity: 0; }
.acc__body { display: none; padding: 0 18px 18px; font-size: var(--t-body-sm); }
.acc__item.is-open .acc__body { display: block; }
.acc__body > :first-child { margin-top: 0; }
.chip--btn { background: #fff; cursor: pointer; transition: all .25s; }
.chip--btn:hover { border-color: var(--brand-hover); }
.chip--btn.is-active { background: var(--ink); color: #fff; }
.pd__mini { width: 100%; border-collapse: collapse; }
.pd__mini td { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.pd__mini td:last-child { text-align: right; font-weight: 700; white-space: nowrap; padding-left: 1rem; }

/* SPEC table */
.spec__title { display: block; color: #fff; font-size: clamp(30px, 3vw, 40px); letter-spacing: .06em; padding: .55rem 1.5rem; margin: 0 0 2.25rem; background: linear-gradient(90deg, var(--ink) 0, var(--ink) 35%, rgba(8,8,8,0) 100%); max-width: 720px; }
.spec__tabs { display: flex; gap: 2px; }
.spec__tab { background: #8a8a8a; color: #fff; border: 0; padding: 10px 26px; font-family: var(--font-display); font-size: 24px; line-height: 1.1; transition: background .25s; }
.spec__tab small { font-size: 15px; }
.spec__tab:hover { background: #666; }
.spec__tab.is-active { background: var(--ink); }
.spec__panel { display: none; }
.spec__panel.is-active { display: block; }
.spec__scroll { overflow-x: auto; }
.spec__table { width: 100%; min-width: 760px; border-collapse: collapse; background: #fff; }
.spec__table th { background: var(--ink); color: #fff; font-weight: 400; font-family: var(--font-display); letter-spacing: .1em; font-size: 15px; padding: 10px 12px; text-align: center; text-transform: uppercase; }
.spec__table th:first-child, .spec__table td:first-child { text-align: left; padding-left: 14px; }
.spec__table td { padding: 12px; text-align: center; border-bottom: 1px solid #888; font-size: 15px; }
.spec__table tbody tr:hover td { background: #fffbe0; }
.spec__note { font-size: 13px; margin-top: 1rem; }

@media (max-width: 800px) {
  .pd__layout { grid-template-columns: 1fr; }
  .spec__tab { font-size: 20px; padding: 8px 18px; }
}

/* ───────── Videos ───────── */
.hero__video { position: absolute; inset: 0; overflow: hidden; z-index: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero__video.is-ready { opacity: 1; }
.hero__video iframe { position: absolute; top: 50%; left: 50%; width: max(100%, 177.78vh); height: max(100%, 56.25vw); transform: translate(-50%, -50%); border: 0; pointer-events: none; }
.video-card { background: none; border: 0; padding: 0; text-align: left; color: inherit; cursor: pointer; display: block; width: 100%; font: inherit; }
.video-card__thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .3s; }
.video-card:hover .video-card__thumb img { transform: scale(1.05); opacity: .8; }
.video-card__play { position: absolute; inset: 0; margin: auto; width: 60px; height: 60px; background: var(--brand); transition: transform .25s, background .25s; }
.video-card__play::before { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%); border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--ink); }
.video-card:hover .video-card__play { transform: scale(1.1); background: var(--brand-hover); }
.video-card__title { display: block; margin-top: 1rem; font-weight: 600; line-height: 1.45; font-size: var(--t-body-sm); }
.section--dark .video-card__title { color: #fff; }
.video-modal { position: fixed; inset: 0; z-index: 320; background: rgba(8,8,8,.94); display: none; align-items: center; justify-content: center; padding: 2rem; animation: av-fade .3s var(--ease-soft) both; }
.video-modal.is-open { display: flex; }
.video-modal__frame { width: min(1100px, 100%); aspect-ratio: 16 / 9; background: #000; }
.video-modal__frame iframe { width: 100%; height: 100%; border: 0; }
.video-modal__close { position: absolute; top: 1.25rem; right: 1.25rem; background: var(--brand); border: 0; width: 44px; height: 44px; font-size: 22px; }
@media (max-width: 800px) { .hero__video { display: none; } }
