/*
Theme Name: Jiesa Headwear
Theme URI: https://www.jiesacap.com/
Author: Jiesa
Description: A focused B2B headwear catalog and company theme for Jiesa.
Version: 1.8.1
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: jiesa-headwear
*/

:root {
  --ink: #18191b;
  --muted: #686a6d;
  --line: #dedfdf;
  --paper: #ffffff;
  --soft: #f2f3f3;
  --hero: #e7e5e0;
  --accent: #981f27;
  --accent-dark: #76171e;
  --green: #284f42;
  --max: 1240px;
  --header-height: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

button,
select {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(152, 31, 39, 0.28);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  background: var(--paper);
}

.container {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.announcement {
  min-height: 32px;
  display: grid;
  place-items: center;
  padding: 6px 24px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.admin-bar .site-header {
  top: 32px;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
	min-width: 150px;
	display: inline-flex;
	align-items: center;
	font-weight: 800;
	line-height: 1.05;
}

.brand img,
.brand .custom-logo {
	width: 150px;
	height: auto;
	max-height: 45px;
	object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  padding: 26px 0;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 19px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switcher {
  height: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(34px, auto));
  align-items: stretch;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--soft);
}

.language-switcher a {
  min-width: 34px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.language-switcher a[aria-current="true"] {
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--ink);
}

.icon-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

.menu-toggle {
  display: none;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover {
  border-color: var(--accent);
  background: var(--accent);
}

.button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.button-accent {
  border-color: var(--accent);
  background: var(--accent);
}

.button-accent:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.button-light {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

.button-light:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.button-outline {
  background: transparent;
  color: var(--ink);
}

.button-outline:hover {
  color: var(--paper);
}

.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--hero);
  background-position: center bottom;
  background-size: cover;
}

.hero::before {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 20, 0.5);
  content: "";
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(560px, 46%);
  padding: 72px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 32px;
  height: 2px;
  background: currentColor;
  content: "";
}

.hero h1 {
  max-width: 560px;
  margin: 0;
  color: var(--paper);
  font-size: 60px;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 570px;
  margin: 24px 0 0;
  color: #f0f0ee;
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 20px;
  margin: 30px 0 0;
  color: #f2f2f0;
  font-size: 12px;
  font-weight: 700;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-meta svg {
  width: 15px;
  height: 15px;
  color: #ffb4b9;
}

.hero .eyebrow {
  color: #ffb4b9;
}

.hero .button-outline {
  border-color: var(--paper);
  color: var(--paper);
}

.hero .button-outline:hover {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

.capability-strip {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.capability-grid {
  min-height: 132px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.capability-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-content: center;
  gap: 12px;
  padding: 28px 26px;
  border-left: 1px solid var(--line);
}

.capability-item:last-child {
  border-right: 1px solid var(--line);
}

.capability-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
}

.capability-icon svg {
  width: 19px;
  height: 19px;
}

.capability-item strong {
  display: block;
  margin-bottom: 2px;
  font-size: 15px;
}

.capability-item span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.section {
  padding: 96px 0;
}

.section-soft {
  background: var(--soft);
}

.section-dark {
  background: var(--ink);
  color: var(--paper);
}

.section-head {
  max-width: 690px;
  margin-bottom: 42px;
}

.section-head.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-head.centered .eyebrow {
  justify-content: center;
}

.section-head h2,
.company-copy h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: 0;
}

.section-head p,
.company-copy > p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.section-dark .eyebrow,
.section-dark .company-copy > p,
.section-dark .advantages-heading > p {
  color: #d6d7d8;
}

.filter-bar {
  display: flex;
  justify-content: center;
  margin: 0 0 34px;
}

.filter-group {
  display: inline-grid;
  grid-template-columns: repeat(5, minmax(92px, 1fr));
  border: 1px solid #cfd0d1;
  background: var(--paper);
}

.filter-button {
  min-height: 42px;
  padding: 8px 16px;
  border: 0;
  border-right: 1px solid #cfd0d1;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-button:last-child {
  border-right: 0;
}

.filter-button:hover,
.filter-button.is-active {
  background: var(--ink);
  color: var(--paper);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(24, 25, 27, 0.08);
}

.product-card[hidden] {
  display: none;
}

.product-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #ececeb;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.product-card:hover .product-image img {
  transform: scale(1.025);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 8px;
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.product-body h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.product-body p {
  min-height: 44px;
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.product-meta {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.swatches {
  display: flex;
  gap: 5px;
}

.swatch {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(24, 25, 27, 0.18);
  border-radius: 50%;
}

.text-command {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.text-command svg {
  width: 15px;
  height: 15px;
}

.catalog-section {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.catalog-intro {
  max-width: 780px;
}

.catalog-list {
  display: grid;
  gap: 76px;
}

.catalog-category {
  min-width: 0;
  border-top: 1px solid var(--line);
}

.catalog-banner {
  position: relative;
  overflow: hidden;
  background: #eee6dd;
}

.catalog-banner::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(24, 25, 27, 0.28));
  content: "";
  pointer-events: none;
}

.catalog-banner img {
  width: 100%;
  height: auto;
  transition: transform 400ms ease;
}

.catalog-category:hover .catalog-banner img {
  transform: scale(1.012);
}

.catalog-banner-meta {
  position: absolute;
  right: 20px;
  bottom: 18px;
  left: 20px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--paper);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.catalog-banner-meta span:first-child {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  font-size: 10px;
}

.catalog-category-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  padding: 28px 0 24px;
}

.catalog-category-head h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
}

.catalog-category-head p {
  max-width: 760px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.catalog-category-summary {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  justify-items: end;
  column-gap: 7px;
  row-gap: 4px;
  min-width: 170px;
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.catalog-category-summary strong {
  font-size: 30px;
  line-height: 1;
}

.catalog-category-summary > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.catalog-category-summary .category-command {
  grid-column: 1 / -1;
  justify-self: end;
  margin-top: 9px;
}

.catalog-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.catalog-product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.catalog-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(24, 25, 27, 0.08);
}

.catalog-product-image {
  position: relative;
  aspect-ratio: 1 / 0.92;
  overflow: hidden;
  background: #f0efed;
}

.catalog-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
}

.catalog-product-zoom {
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
}

.catalog-zoom-icon {
  position: absolute;
  right: 11px;
  top: 11px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(24, 25, 27, 0.82);
  color: var(--paper);
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.catalog-product-zoom:hover .catalog-zoom-icon,
.catalog-product-zoom:focus-visible .catalog-zoom-icon {
  opacity: 1;
  transform: translateY(0);
}

.catalog-zoom-icon svg {
  width: 15px;
  height: 15px;
}

.product-lightbox {
  width: min(92vw, 1100px);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.product-lightbox::backdrop {
  background: rgba(10, 10, 11, 0.88);
}

.product-lightbox img {
  width: auto;
  max-width: 92vw;
  max-height: 88vh;
  margin: auto;
  object-fit: contain;
}

.product-lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: #171819;
  color: var(--paper);
}

.product-lightbox-close svg {
  width: 20px;
  height: 20px;
}

.catalog-product-card:hover .catalog-product-image img {
  transform: scale(1.025);
}

.catalog-product-number {
  position: absolute;
  right: 11px;
  bottom: 10px;
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(24, 25, 27, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
}

.catalog-product-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.catalog-product-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.catalog-product-title h4 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}

.catalog-product-title > span {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.catalog-product-body > p {
  min-height: 54px;
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.catalog-product-specs {
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
  padding: 11px 0 0;
  border-top: 1px solid var(--line);
}

.catalog-product-specs div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
}

.catalog-product-specs dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.catalog-product-specs dd {
  min-width: 0;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.catalog-product-body .text-command {
  margin-top: auto;
}

.category-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.category-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-radius: 4px;
  background: #e7e7e5;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.category-card:hover img {
  transform: scale(1.025);
}

.category-content {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 18px;
  background: rgba(21, 22, 24, 0.9);
  color: var(--paper);
}

.category-content h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
}

.category-content p {
  min-height: 42px;
  margin: 8px 0 14px;
  color: #d7d8d8;
  font-size: 13px;
  line-height: 1.55;
}

.category-command {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffb4b9;
  font-size: 12px;
  font-weight: 800;
}

.category-command svg {
  width: 15px;
  height: 15px;
}

.detail-section .section-head {
  margin-bottom: 36px;
}

.visual-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.85fr;
  gap: 12px;
  margin-top: 0;
}

.visual-tile {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-radius: 3px;
  background: #ddd;
}

.visual-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-tile figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 12px 14px;
  background: rgba(24, 25, 27, 0.9);
  color: var(--paper);
  font-size: 13px;
  font-weight: 800;
}

.project-video-section {
  background: var(--paper);
  color: var(--ink);
}

.project-video-section .section-head > p {
  color: var(--muted);
}

.project-video-section .section-head .eyebrow {
  color: #db7077;
}

.project-video-frame {
  width: 100%;
  aspect-ratio: 37 / 20;
  overflow: hidden;
  background: #050505;
}

.project-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.factory-section {
  background: var(--paper);
}

.factory-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  overflow: hidden;
  border-radius: 4px;
  background: var(--ink);
}

.factory-lead figure {
  min-height: 520px;
  margin: 0;
}

.factory-lead figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.factory-lead-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  color: var(--paper);
}

.factory-lead-copy .eyebrow {
  color: #db7077;
}

.factory-lead-copy h3 {
  margin: 0;
  font-size: 31px;
  line-height: 1.15;
}

.factory-lead-copy > p:not(.eyebrow) {
  margin: 18px 0 0;
  color: #c8cacc;
  font-size: 14px;
}

.factory-points {
  display: grid;
  gap: 0;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.factory-points li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid #3c3d3f;
  font-size: 13px;
  font-weight: 700;
}

.factory-points svg {
  width: 19px;
  height: 19px;
  color: #db7077;
}

.factory-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.factory-gallery figure {
  position: relative;
  min-width: 0;
  aspect-ratio: 1.08;
  margin: 0;
  overflow: hidden;
  border-radius: 3px;
  background: #d9dada;
}

.factory-gallery .factory-gallery-wide {
  grid-column: span 2;
  aspect-ratio: 2.16;
}

.factory-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.factory-gallery figure:hover img {
  transform: scale(1.025);
}

.factory-gallery figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  padding: 10px 12px;
  background: rgba(24, 25, 27, 0.9);
  color: var(--paper);
  font-size: 12px;
  font-weight: 800;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-step {
  min-width: 0;
  padding: 30px;
  border-right: 1px solid var(--line);
}

.process-step:last-child {
  border-right: 0;
}

.process-number {
  display: block;
  margin-bottom: 40px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.process-step h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.brand-character-section {
  background: var(--soft);
}

.brand-character-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: 72px;
}

.brand-character-visual {
  min-height: 520px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
}

.brand-character-visual img {
  width: auto;
  max-height: 455px;
  object-fit: contain;
}

.brand-character-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-character-title h2 {
  margin: 0;
  font-size: 54px;
  line-height: 1;
}

.brand-character-title h2 span {
  color: var(--muted);
  font-size: 25px;
  font-weight: 500;
}

.brand-ip-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #cda3a6;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
}

.brand-ip-badge svg {
  width: 17px;
  height: 17px;
}

.brand-character-copy > p:not(.eyebrow) {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
}

.brand-character-facts {
  display: grid;
  grid-template-columns: 0.7fr 0.7fr 1.6fr;
  margin: 30px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.brand-character-facts div {
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.brand-character-facts div:first-child {
  padding-left: 0;
}

.brand-character-facts div:last-child {
  border-right: 0;
}

.brand-character-facts dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.brand-character-facts dd {
  margin: 5px 0 0;
  font-size: 14px;
  font-weight: 800;
}

.brand-authorization {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  padding: 22px;
  border-left: 3px solid var(--accent);
  background: var(--paper);
}

.brand-authorization-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
}

.brand-authorization-icon svg {
  width: 20px;
  height: 20px;
}

.brand-authorization strong,
.brand-authorization p {
  display: block;
}

.brand-authorization p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.company-profile {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid #3c3d3f;
}

.company-copy > p + p {
  margin-top: 12px;
}

.company-kicker {
  display: block;
  margin-bottom: 8px;
  color: #d6d7d8;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.core-advantages ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.core-advantages li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid #3c3d3f;
}

.core-advantages li:last-child {
  border-bottom: 1px solid #3c3d3f;
}

.core-number {
  padding-top: 1px;
  color: #db7077;
  font-size: 12px;
  font-weight: 800;
}

.core-advantages strong {
  display: block;
  font-size: 14px;
}

.core-advantages p {
  margin: 5px 0 0;
  color: #b9bbbd;
  font-size: 12px;
  line-height: 1.55;
}

.advantages-heading {
  max-width: 760px;
  margin: 76px 0 38px;
}

.advantages-heading h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.12;
}

.advantages-heading > p {
  margin: 16px 0 0;
  font-size: 16px;
}

.advantage-modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: #4a4b4d;
}

.advantage-module {
  min-width: 0;
  padding: 32px;
  background: #252628;
}

.advantage-module-head {
  min-height: 172px;
  padding-bottom: 25px;
}

.advantage-module-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.advantage-number {
  color: #db7077;
  font-size: 12px;
  font-weight: 800;
}

.advantage-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #4a4b4d;
  color: #db7077;
}

.advantage-icon svg {
  width: 19px;
  height: 19px;
}

.advantage-module h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.advantage-module-head > p {
  margin: 8px 0 0;
  color: #b9bbbd;
  font-size: 13px;
}

.advantage-module ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.advantage-module li {
  padding: 17px 0;
  border-top: 1px solid #3c3d3f;
}

.advantage-module li strong,
.advantage-module li span {
  display: block;
}

.advantage-module li strong {
  font-size: 13px;
}

.advantage-module li span {
  margin-top: 4px;
  color: #b9bbbd;
  font-size: 12px;
  line-height: 1.55;
}

.company-address {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  margin-top: 24px;
  color: #d6d7d8;
  font-size: 13px;
  font-style: normal;
}

.company-address svg {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  color: #db7077;
}

.contact-section {
  border-top: 1px solid var(--line);
}

.contact-company {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 20px;
  margin: -10px 0 34px;
  text-align: center;
}

.contact-company strong {
  font-size: 16px;
}

.contact-company span {
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 980px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  font-style: normal;
}

.contact-method {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 16px;
  min-height: 118px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

a.contact-method {
  transition: background-color 180ms ease;
}

a.contact-method:hover {
  background: var(--soft);
}

.contact-method > svg:first-child {
  width: 42px;
  height: 42px;
  padding: 11px;
  background: var(--ink);
  color: var(--paper);
}

.contact-method > svg:last-child {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.contact-method small,
.contact-method strong {
  display: block;
}

.contact-method small {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-method strong {
  font-size: 17px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.contact-location {
  grid-column: 1 / -1;
  grid-template-columns: 42px minmax(0, 1fr);
}

.contact-location strong {
  font-size: 14px;
  font-weight: 700;
}

.site-footer {
  background: #101112;
  color: var(--paper);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 0.7fr);
  gap: 70px;
  padding: 64px 0 48px;
}

.footer-brand p {
  max-width: 450px;
  margin: 18px 0 0;
  color: #aeb0b2;
  font-size: 13px;
}

.site-footer .brand img {
  width: 160px;
  max-height: none;
  padding: 6px 8px;
  background: var(--paper);
}

.footer-title {
  display: block;
  margin-bottom: 16px;
  color: #d6d7d8;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a {
  color: #aeb0b2;
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--paper);
}

.footer-contact {
  display: grid;
  gap: 13px;
  margin-top: 24px;
  font-style: normal;
}

.footer-contact a {
  min-width: 0;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  color: #d6d7d8;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.footer-contact a:hover {
  color: var(--paper);
}

.footer-contact svg {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: #db7077;
}

.footer-contact small {
  display: block;
  margin-bottom: 2px;
  color: #8f9194;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid #323335;
  color: #8f9194;
  font-size: 11px;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.content-shell {
  min-height: 60vh;
  padding: 80px 0;
}

.content-shell h1 {
  margin-top: 0;
  font-size: 42px;
  line-height: 1.15;
}

.entry-list {
  display: grid;
  gap: 24px;
}

.entry-card {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 1080px) {
  .site-nav {
    gap: 20px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .catalog-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .factory-lead,
  .brand-character-layout,
  .company-profile {
    gap: 48px;
  }
}

@media (max-width: 980px) {
  .header-contact {
    display: none;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 68px;
  }

  .admin-bar .site-header {
    top: 46px;
  }

  .container {
    width: min(calc(100% - 32px), var(--max));
  }

  .menu-toggle {
    display: inline-grid;
  }

  .header-contact {
    display: none;
  }

  .site-nav {
    position: fixed;
    top: calc(32px + var(--header-height));
    right: 0;
    bottom: 0;
    width: min(360px, 92vw);
    display: grid;
    align-content: start;
    gap: 0;
    padding: 24px;
    background: var(--paper);
    box-shadow: -18px 24px 40px rgba(24, 25, 27, 0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 160ms ease, visibility 160ms ease;
  }

  .admin-bar .site-nav {
    top: calc(46px + var(--header-height));
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    min-height: 600px;
    background-position: center center;
  }

  .hero::before {
    background: rgba(15, 17, 20, 0.56);
  }

  .hero-content {
    width: min(560px, 72%);
    padding: 54px 0;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .capability-item:nth-child(2) {
    border-right: 1px solid var(--line);
  }

  .capability-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding: 76px 0;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-list {
    gap: 58px;
  }

  .catalog-category-head {
    gap: 24px;
  }

  .catalog-category-head h3 {
    font-size: 26px;
  }

  .visual-grid {
    grid-template-columns: 1fr 1fr;
  }

  .visual-tile:first-child {
    grid-column: 1 / -1;
  }

  .factory-lead,
  .brand-character-layout,
  .company-profile {
    grid-template-columns: 1fr;
  }

  .factory-lead figure {
    min-height: 460px;
  }

  .factory-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-character-visual {
    min-height: 470px;
  }

  .company-profile {
    padding-bottom: 64px;
  }

  .advantage-modules {
    grid-template-columns: 1fr;
  }

  .advantage-module-head {
    min-height: 0;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-step:nth-child(2) {
    border-right: 0;
  }

  .process-step:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .announcement {
    min-height: 34px;
    padding-inline: 12px;
    font-size: 11px;
  }

  .brand {
    min-width: 0;
  }

  .brand img,
  .brand .custom-logo {
    width: 112px;
    height: auto;
    max-height: 34px;
  }

  .site-nav {
    top: calc(34px + var(--header-height));
  }

  .hero {
    min-height: 590px;
    align-items: flex-end;
    background-position: center center;
  }

  .hero::before {
    background: rgba(15, 17, 20, 0.62);
  }

  .hero-content {
    width: 100%;
    padding: 42px 0 48px;
  }

  .hero h1 {
    max-width: 360px;
    font-size: 40px;
    line-height: 1.05;
  }

  .hero-copy {
    max-width: 350px;
    margin-top: 17px;
    font-size: 15px;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .hero-actions .button {
    flex: 1 1 145px;
  }

  .hero-meta {
    margin-top: 22px;
  }

  .capability-item {
    grid-template-columns: 34px 1fr;
    padding: 20px 14px;
  }

  .capability-icon {
    width: 32px;
    height: 32px;
  }

  .capability-item strong {
    font-size: 13px;
  }

  .capability-item span {
    font-size: 11px;
  }

  .section {
    padding: 64px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .section-head h2,
  .company-copy h2,
  .advantages-heading h2,
  .content-shell h1 {
    font-size: 32px;
  }

  .section-head p,
  .company-copy > p,
  .advantages-heading > p {
    font-size: 15px;
  }

  .filter-bar {
    justify-content: stretch;
    overflow-x: auto;
  }

  .filter-group {
    width: 100%;
    grid-template-columns: repeat(5, minmax(64px, 1fr));
  }

  .filter-button {
    min-height: 40px;
    padding: 7px 9px;
    font-size: 11px;
  }

  .product-grid {
    gap: 10px;
  }

  .catalog-products {
    gap: 10px;
  }

  .catalog-banner-meta {
    right: 12px;
    bottom: 12px;
    left: 12px;
    font-size: 10px;
  }

  .catalog-category-head {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 0 18px;
  }

  .catalog-category-head h3 {
    font-size: 23px;
  }

  .catalog-category-head p {
    margin-top: 7px;
    font-size: 13px;
  }

  .catalog-category-summary {
    grid-template-columns: auto auto 1fr;
    justify-items: start;
    min-width: 0;
    padding: 14px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .catalog-category-summary .category-command {
    grid-column: auto;
    align-self: center;
    justify-self: end;
    margin: 0 0 0 auto;
  }

  .catalog-product-body {
    padding: 12px;
  }

  .catalog-product-title {
    display: block;
  }

  .catalog-product-title > span {
    display: block;
    margin-top: 4px;
  }

  .catalog-product-title h4 {
    font-size: 14px;
  }

  .catalog-product-body > p {
    min-height: 0;
    margin: 6px 0 11px;
    font-size: 11px;
  }

  .catalog-product-specs {
    gap: 5px;
    margin-bottom: 12px;
    padding-top: 9px;
  }

  .catalog-product-specs div {
    display: block;
  }

  .catalog-product-specs dt,
  .catalog-product-specs dd {
    display: inline;
    font-size: 10px;
  }

  .catalog-product-specs dt::after {
    content: ": ";
  }

  .product-body {
    padding: 13px;
  }

  .product-body h3 {
    font-size: 15px;
  }

  .product-body p {
    min-height: 54px;
    margin: 6px 0 12px;
    font-size: 11px;
  }

  .product-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 350px;
  }

  .category-content p {
    min-height: 0;
  }

  .visual-grid {
    grid-template-columns: 1fr;
    margin-top: 46px;
  }

  .detail-section .visual-grid {
    margin-top: 0;
  }

  .visual-tile,
  .visual-tile:first-child {
    min-height: 300px;
    grid-column: auto;
  }

  .factory-lead figure {
    min-height: 320px;
  }

  .factory-lead-copy {
    padding: 30px 24px;
  }

  .factory-lead-copy h3 {
    font-size: 26px;
  }

  .factory-gallery {
    gap: 8px;
    margin-top: 8px;
  }

  .factory-gallery figure,
  .factory-gallery .factory-gallery-wide {
    min-height: 220px;
    grid-column: auto;
    aspect-ratio: auto;
  }

  .brand-character-layout {
    gap: 38px;
  }

  .brand-character-visual {
    min-height: 420px;
    padding: 28px;
  }

  .brand-character-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-character-title h2 {
    font-size: 44px;
  }

  .brand-character-facts {
    grid-template-columns: 1fr;
  }

  .brand-character-facts div,
  .brand-character-facts div:first-child {
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand-character-facts div:last-child {
    border-bottom: 0;
  }

  .brand-authorization {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .brand-authorization .button {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .contact-company {
    align-items: center;
    flex-direction: column;
    gap: 5px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-location {
    grid-column: auto;
  }

  .contact-method {
    grid-template-columns: 38px minmax(0, 1fr) 18px;
    gap: 12px;
    min-height: 104px;
    padding: 18px;
  }

  .contact-location {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .contact-method > svg:first-child {
    width: 38px;
    height: 38px;
    padding: 10px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-step,
  .process-step:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-step:last-child {
    border-bottom: 0;
  }

  .process-number {
    margin-bottom: 18px;
  }

  .company-profile {
    gap: 42px;
    padding-bottom: 52px;
  }

  .advantages-heading {
    margin: 52px 0 28px;
  }

  .advantage-module {
    padding: 24px 20px;
  }

  .advantage-module-meta {
    margin-bottom: 22px;
  }

  .advantage-module h3 {
    font-size: 21px;
  }

  .site-footer .brand img {
    width: 150px;
    max-height: none;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
