/* ============================================================
   Xperts Cut — shared stylesheet
   Industrial B2B: dark charcoal header/footer, light body,
   safety-orange accent. No frameworks, hand-written CSS.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --ink: #14171c;
  --ink-2: #1c1f24;
  --ink-3: #262a31;
  --accent: #f97316;
  --accent-dark: #e05f04;
  --accent-light: #fff1e6;
  --text: #23272e;
  --muted: #5d646e;
  --line: #e3e6ea;
  --bg: #ffffff;
  --bg-grey: #f4f5f7;
  --bg-dark: #eceef1;
  --radius: 8px;
  --shadow: 0 2px 10px rgba(20, 23, 28, 0.08);
  --shadow-lg: 0 10px 30px rgba(20, 23, 28, 0.14);
  --max: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--grey { background: var(--bg-grey); }
.section__head { max-width: 720px; margin-bottom: 36px; }
.section__kicker {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.section__title { font-size: 2rem; line-height: 1.2; color: var(--ink); }
.section__sub { color: var(--muted); margin-top: 10px; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius);
  font-weight: 700; font-size: 0.95rem; border: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--outline { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn--outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-3); }
.btn--ghost { border-color: var(--line); color: var(--text); background: #fff; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink); color: #b9bec7;
  font-size: 0.82rem; padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a:hover { color: #fff; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--ink-2); color: #fff;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 68px;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; }
.logo__mark {
  width: 36px; height: 36px; border-radius: 6px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-size: 1.1rem; font-weight: 800;
}
.logo span:last-child { color: #fff; }
.logo em { font-style: normal; color: var(--accent); }
.main-nav { display: flex; gap: 4px; }
.main-nav a {
  padding: 10px 14px; border-radius: 6px;
  font-weight: 600; font-size: 0.95rem; color: #d6dae0;
}
.main-nav a:hover { color: #fff; background: var(--ink-3); }
.main-nav a.active { color: #fff; background: var(--ink-3); box-shadow: inset 0 -3px 0 var(--accent); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; background: none; border: none; color: #fff;
  font-size: 1.6rem; line-height: 1; padding: 6px 8px;
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--ink); }
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.45;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20, 23, 28, 0.92) 0%, rgba(20, 23, 28, 0.55) 60%, rgba(20, 23, 28, 0.25) 100%);
}
.hero__content { position: relative; padding: 110px 0 96px; max-width: 680px; }
.hero__kicker {
  display: inline-block; background: var(--accent); color: #fff;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 6px 12px; border-radius: 4px; margin-bottom: 18px;
}
.hero h1 { font-size: 3rem; line-height: 1.08; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { margin: 18px 0 28px; font-size: 1.15rem; color: #d6dae0; max-width: 560px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__meta {
  margin-top: 36px; display: flex; gap: 32px; flex-wrap: wrap;
  font-size: 0.9rem; color: #b9bec7;
}
.hero__meta strong { display: block; color: #fff; font-size: 1.35rem; line-height: 1.2; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--ink-2); color: #fff; padding: 56px 0 48px; }
.page-hero h1 { font-size: 2.4rem; line-height: 1.15; }
.page-hero p { color: #b9bec7; margin-top: 10px; max-width: 640px; font-size: 1.05rem; }
.breadcrumb { font-size: 0.85rem; color: #8a9099; margin-bottom: 12px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: #d6dae0; }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  display: block; min-height: 220px; box-shadow: var(--shadow);
  background: var(--ink);
}
.cat-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.75;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.cat-card:hover img { transform: scale(1.05); opacity: 0.9; }
.cat-card__body {
  position: absolute; inset: auto 0 0 0; padding: 20px;
  background: linear-gradient(transparent, rgba(20, 23, 28, 0.9));
  color: #fff;
}
.cat-card__body h3 { font-size: 1.2rem; }
.cat-card__body p { font-size: 0.88rem; color: #d6dae0; margin-top: 4px; }
.cat-card__link { font-size: 0.85rem; font-weight: 700; color: var(--accent); margin-top: 10px; display: inline-block; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.product-card__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-grey); }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent); color: #fff;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 4px;
}
.badge--new { background: #0f766e; }
.product-card__body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.product-card__cat { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.product-card__body h3 { font-size: 1rem; line-height: 1.35; margin: 6px 0 8px; }
.product-card__body h3 a:hover { color: var(--accent); }
.product-card__desc { font-size: 0.88rem; color: var(--muted); flex: 1; }
.product-card__foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
}
.price { font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.price small { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.link-arrow { font-weight: 700; font-size: 0.9rem; color: var(--accent); }
.link-arrow:hover { color: var(--accent-dark); }

/* ---------- Stats strip ---------- */
.stats { background: var(--ink); color: #fff; }
.stats .container {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding-top: 48px; padding-bottom: 48px;
}
.stat { text-align: center; }
.stat__num { font-size: 2.4rem; font-weight: 800; color: var(--accent); line-height: 1.1; }
.stat__label { color: #b9bec7; font-size: 0.92rem; margin-top: 6px; }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.service-card__icon {
  width: 48px; height: 48px; border-radius: 8px;
  background: var(--accent-light); color: var(--accent);
  display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 16px;
}
.service-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.why-grid img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.check-list li { padding: 8px 0 8px 30px; position: relative; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  color: var(--accent); font-weight: 800;
}

/* ---------- Testimonial ---------- */
.testimonial {
  background: var(--ink-2); color: #fff; border-radius: var(--radius);
  padding: 44px; max-width: 860px; margin: 0 auto; text-align: center;
}
.testimonial blockquote { font-size: 1.3rem; line-height: 1.5; font-weight: 600; }
.testimonial blockquote::before { content: "“"; color: var(--accent); font-size: 2.4rem; line-height: 0; vertical-align: -0.4em; margin-right: 4px; }
.testimonial figcaption { margin-top: 18px; color: #b9bec7; font-size: 0.92rem; }
.testimonial figcaption strong { color: #fff; display: block; font-size: 1rem; }

/* ---------- CTA banner ---------- */
.cta-banner { background: var(--accent); color: #fff; }
.cta-banner .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; padding-top: 44px; padding-bottom: 44px;
}
.cta-banner h2 { font-size: 1.7rem; line-height: 1.25; }
.cta-banner p { color: #fff3e8; margin-top: 6px; }
.cta-banner .btn--dark { background: var(--ink); }
.cta-banner .btn--dark:hover { background: var(--ink-3); }

/* ---------- Catalog toolbar ---------- */
.toolbar {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
  justify-content: space-between; margin-bottom: 28px;
}
.filter-group { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-weight: 600; font-size: 0.9rem; color: var(--text);
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.toolbar__controls { display: flex; gap: 12px; flex-wrap: wrap; }
.search-box, .sort-select {
  padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; font-size: 0.95rem; color: var(--text);
}
.search-box { min-width: 220px; }
.search-box:focus, .sort-select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.result-count { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }
.empty-state {
  text-align: center; padding: 64px 20px; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--radius);
}
.sample-note {
  margin-top: 36px; padding: 14px 18px; background: var(--accent-light);
  border-left: 4px solid var(--accent); border-radius: 4px;
  font-size: 0.88rem; color: var(--text);
}

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-detail__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--bg-grey); }
.product-detail__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.product-detail__info .product-card__cat { font-size: 0.8rem; }
.product-detail__info h1 { font-size: 2rem; line-height: 1.2; margin: 8px 0 6px; }
.sku { color: var(--muted); font-size: 0.92rem; }
.product-detail__price { font-size: 2rem; font-weight: 800; margin: 16px 0; }
.product-detail__price small { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.product-detail__desc { color: var(--muted); margin-bottom: 24px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.92rem; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { background: var(--bg-grey); width: 38%; font-weight: 700; color: var(--ink); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.form-card h2 { font-size: 1.3rem; margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: 0.92rem; margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; color: var(--text);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent);
}
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 12px; }
.form-success {
  display: none; background: #ecfdf5; border: 1px solid #6ee7b7;
  color: #065f46; border-radius: var(--radius); padding: 16px 18px; margin-top: 16px;
}
.form-success.show { display: block; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.value-card h3 { margin-bottom: 8px; }
.value-card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-info h2 { font-size: 1.4rem; margin-bottom: 12px; }
.contact-info p { color: var(--muted); margin-bottom: 20px; }
.contact-line { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-line:last-child { border-bottom: none; }
.contact-line__icon {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 8px;
  background: var(--accent-light); color: var(--accent);
  display: grid; place-items: center; font-size: 1.15rem;
}
.contact-line strong { display: block; }
.contact-line span { color: var(--muted); font-size: 0.92rem; }
.sample-tag {
  display: inline-block; background: var(--accent-light); color: var(--accent-dark);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px; margin-left: 6px; vertical-align: middle;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9bec7; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.site-footer a { display: block; padding: 4px 0; font-size: 0.92rem; }
.site-footer a:hover { color: #fff; }
.footer-brand p { font-size: 0.92rem; margin-top: 12px; max-width: 300px; }
.footer-bottom {
  border-top: 1px solid var(--ink-3); padding: 20px 0;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 0.85rem; color: #8a9099;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cat-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .service-grid, .value-grid { grid-template-columns: 1fr 1fr; }
  .why-grid, .product-detail, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.4rem; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--ink-2); flex-direction: column; padding: 12px 20px 18px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 10px; }
  .header-cta .btn { display: none; }
  .section { padding: 48px 0; }
  .hero__content { padding: 72px 0 64px; }
  .hero h1 { font-size: 2rem; }
  .page-hero h1 { font-size: 1.9rem; }
  .section__title { font-size: 1.6rem; }
  .form-row { grid-template-columns: 1fr; }
  .testimonial { padding: 32px 22px; }
  .testimonial blockquote { font-size: 1.1rem; }
}
@media (max-width: 520px) {
  .cat-grid, .product-grid, .service-grid, .value-grid, .stats .container, .footer-grid { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search-box { min-width: 0; flex: 1; }
}
