:root {
  --ink: #18201d;
  --muted: #63716a;
  --line: #d9e0dc;
  --paper: #fbfcfa;
  --white: #ffffff;
  --teal: #14766b;
  --teal-dark: #0f5d55;
  --coral: #d9614c;
  --mustard: #d9a441;
  --leaf: #5b8f51;
  --aqua: #d9f0ec;
  --mist: #eef4f1;
  --shadow: 0 18px 60px rgba(24, 32, 29, 0.14);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

body.drawer-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 48px);
  background: rgba(251, 252, 250, 0.92);
  border-bottom: 1px solid rgba(217, 224, 220, 0.82);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 232px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(24, 32, 29, 0.08);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  color: #33423c;
  font-size: 0.92rem;
}

.main-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active,
.main-nav a[aria-current="page"] {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

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

.icon-button,
.icon-text-button {
  border: 0;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: var(--mist);
  border-radius: 8px;
}

.icon-text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.icon-button:hover,
.icon-text-button:hover {
  transform: translateY(-1px);
}

.icon-button svg,
.icon-text-button svg,
.search-box svg,
.capability-grid svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.primary {
  color: var(--white);
  background: var(--teal);
}

.primary:hover {
  background: var(--teal-dark);
}

.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
}

.ghost {
  color: var(--ink);
  background: var(--mist);
}

.large {
  min-height: 50px;
  padding: 0 20px;
}

#cartCount {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  color: var(--teal);
  background: var(--white);
  border-radius: 999px;
  font-size: 0.78rem;
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  max-height: 860px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: #1f2d28;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(12, 22, 20, 0.78), rgba(12, 22, 20, 0.32) 54%, rgba(12, 22, 20, 0.64)),
    url("assets/hero-factory-collage.png");
  background-position: center top;
  background-size: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  margin: 0 auto 150px clamp(18px, 7vw, 86px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffb199;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(3.7rem, 9vw, 8.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.22;
}

.hero-copy {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.hero-stats {
  position: absolute;
  right: clamp(18px, 5vw, 68px);
  bottom: 28px;
  left: clamp(18px, 5vw, 68px);
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.hero-stats div {
  min-height: 94px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-stats strong {
  display: block;
  font-size: clamp(1.55rem, 2.4vw, 2.4rem);
  line-height: 1;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
}

.section {
  padding: clamp(64px, 9vw, 118px) 0;
}

.section-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.split-layout,
.section-heading,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(280px, 1.2fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: start;
}

.section-heading {
  align-items: end;
  margin-bottom: 32px;
}

.section-heading p {
  max-width: 610px;
  color: var(--muted);
}

.copy-stack p {
  color: #3f4d47;
  font-size: 1.08rem;
}

.workshop-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

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

.factory-video-frame {
  position: relative;
  overflow: hidden;
  width: min(100%, 980px);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #14201d;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(24, 32, 29, 0.16);
}

.factory-video-frame video,
.factory-video-fallback,
.factory-video-fallback img {
  width: 100%;
  height: 100%;
}

.factory-video-frame video,
.factory-video-fallback img {
  display: block;
  object-fit: cover;
}

.factory-video-fallback {
  position: relative;
}

.factory-video-fallback::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(12, 22, 20, 0.06), rgba(12, 22, 20, 0.48));
}

.factory-video-fallback > div {
  position: absolute;
  right: 24px;
  bottom: 22px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  color: var(--white);
  background: rgba(15, 93, 85, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  font-weight: 800;
}

.factory-video-fallback svg {
  width: 22px;
  height: 22px;
}

.capability-section {
  background:
    linear-gradient(180deg, #f7faf6, #ffffff);
}

.about-band {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background-image:
    linear-gradient(90deg, rgba(11, 18, 17, 0.94), rgba(11, 18, 17, 0.82) 46%, rgba(11, 18, 17, 0.64)),
    url("assets/factory-aerial-main.jpg");
  background-position: center;
  background-size: cover;
}

.about-band .section-inner {
  position: relative;
  z-index: 1;
}

.about-band .copy-stack p {
  color: var(--white);
}

.about-band .copy-stack p {
  color: rgba(255, 255, 255, 0.88);
}

.about-band .eyebrow {
  color: #ffb199;
}

.about-layout {
  grid-template-columns: minmax(260px, 0.72fr) minmax(360px, 1.28fr);
  gap: clamp(38px, 7vw, 92px);
  align-items: start;
}

.about-summary {
  position: sticky;
  top: 112px;
}

.about-summary .eyebrow {
  margin-bottom: 22px;
}

.about-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.about-metrics div {
  min-height: 132px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

.about-metrics strong {
  display: block;
  margin-bottom: 12px;
  color: var(--white);
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.about-metrics span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.about-copy {
  max-width: 760px;
  padding-left: clamp(24px, 4vw, 48px);
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.about-copy p {
  margin: 0;
  font-size: clamp(1rem, 1.45vw, 1.12rem);
  line-height: 1.7;
}

.about-copy p + p {
  margin-top: 22px;
}

.about-copy p:first-child {
  color: var(--white);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  line-height: 1.62;
}

.campus-showcase {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-top: clamp(34px, 5vw, 62px);
}

.campus-copy {
  display: grid;
  align-content: end;
  gap: 10px;
  min-height: 260px;
  padding: 24px;
  color: var(--white);
  background: rgba(15, 93, 85, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.campus-copy strong {
  font-size: 1.35rem;
  line-height: 1.18;
}

.campus-copy span {
  color: rgba(255, 255, 255, 0.84);
}

.campus-gallery {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: repeat(2, minmax(160px, 1fr));
  gap: 10px;
}

.campus-gallery img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  border-radius: 8px;
}

.campus-gallery img:first-child {
  grid-row: 1 / 3;
}

.product-section {
  background:
    linear-gradient(180deg, rgba(238, 244, 241, 0.95), rgba(251, 252, 250, 1) 360px),
    var(--mist);
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(320px, 1fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: end;
  margin-bottom: 18px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(24, 32, 29, 0.08);
  backdrop-filter: blur(10px);
}

.catalog-kpis {
  display: grid;
  gap: 6px;
}

.catalog-kpis span {
  color: var(--coral);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-kpis strong {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
}

.catalog-kpis small {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.product-tools {
  display: flex;
  justify-content: flex-end;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(540px, 100%);
  height: 52px;
  padding: 0 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.search-box svg {
  width: 19px;
  height: 19px;
  color: var(--teal);
}

.search-box input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
}

.category-filter-bar {
  position: sticky;
  top: 79px;
  z-index: 6;
  margin-bottom: 24px;
  padding: 12px;
  background: rgba(251, 252, 250, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(24, 32, 29, 0.08);
  backdrop-filter: blur(12px);
}

.category-tabs,
.admin-tabs,
.segmented-control {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
}

.category-tabs button,
.admin-tabs button,
.segmented-control button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  font-weight: 700;
}

.category-tabs button.active,
.admin-tabs button.active,
.segmented-control button.active {
  color: var(--white);
  background: var(--teal);
  border-color: var(--teal);
}

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

.product-card,
.capability-grid article,
.insight-grid article,
.inquiry-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-card {
  display: grid;
  grid-template-rows: 250px 1fr;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 118, 107, 0.42);
  box-shadow: 0 18px 36px rgba(24, 32, 29, 0.12);
}

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(238, 244, 241, 0.95), rgba(255, 255, 255, 1));
}

.product-body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  padding: 20px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.product-body p {
  color: #4e5c56;
  font-size: 0.94rem;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.product-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 8px;
}

.moq {
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 800;
}

.partners-band {
  background:
    radial-gradient(circle at 16% 14%, rgba(217, 164, 65, 0.18), transparent 28%),
    linear-gradient(135deg, #101c19, #1e332e 58%, #0f5d55);
}

.partner-network-panel {
  padding: clamp(22px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(7, 18, 16, 0.28);
}

.partner-network-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: clamp(18px, 3vw, 28px);
}

.partner-network-kpis div {
  min-height: 112px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.partner-network-kpis strong {
  display: block;
  margin-bottom: 10px;
  color: var(--white);
  font-size: clamp(1.35rem, 2.4vw, 2.2rem);
  line-height: 1;
}

.partner-network-kpis span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.partner-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.partner-logo {
  display: grid;
  grid-template-rows: 62px auto;
  place-items: center;
  gap: 10px;
  min-height: 118px;
  padding: 18px 14px 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: #33423c;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 12px 26px rgba(6, 18, 15, 0.14);
}

.partner-logo img {
  max-width: 152px;
  max-height: 58px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.partner-logo span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.capability-panel {
  padding: clamp(22px, 4vw, 38px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(12, 22, 20, 0.94), rgba(15, 93, 85, 0.86)),
    url("assets/factory-aerial-side.jpg");
  background-position: center;
  background-size: cover;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(24, 32, 29, 0.22);
}

.capability-lead {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1fr);
  gap: clamp(22px, 5vw, 70px);
  align-items: end;
  margin-bottom: 22px;
}

.capability-lead h2 {
  margin-bottom: 0;
  color: var(--white);
  font-size: clamp(2.25rem, 5vw, 5rem);
  line-height: 0.98;
}

.capability-lead p {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.68;
}

.capability-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.capability-stats div {
  min-height: 118px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.capability-stats strong {
  display: block;
  margin-bottom: 10px;
  color: var(--white);
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1;
}

.capability-stats span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

.capability-grid article {
  position: relative;
  min-height: 260px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 14px 34px rgba(6, 18, 15, 0.12);
}

.capability-grid article > span {
  position: absolute;
  top: 18px;
  right: 18px;
  color: rgba(15, 93, 85, 0.16);
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
}

.capability-grid svg {
  width: 28px;
  height: 28px;
  color: var(--teal);
  margin-bottom: 18px;
}

.capability-grid h3 {
  position: relative;
  z-index: 1;
}

.capability-grid p,
.insight-grid p {
  color: var(--muted);
}

.workshop-gallery {
  display: grid;
  grid-template-columns: 1.28fr 0.72fr;
  gap: 12px;
  margin-top: 12px;
}

.workshop-gallery figure {
  position: relative;
  min-height: 320px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--mist);
}

.workshop-gallery figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 10px 12px;
  color: var(--white);
  background: rgba(15, 93, 85, 0.86);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 800;
}

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

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

.insight-grid article {
  min-height: 250px;
  padding: 22px;
}

.insight-grid span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-page {
  background:
    linear-gradient(135deg, rgba(238, 244, 241, 0.92), rgba(255, 255, 255, 1)),
    var(--paper);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(420px, 1.22fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: stretch;
  padding: clamp(22px, 4vw, 38px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(24, 32, 29, 0.12);
}

.contact-lead {
  display: grid;
  align-content: end;
  min-height: 420px;
  padding: 26px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(12, 22, 20, 0.16), rgba(12, 22, 20, 0.86)),
    url("assets/campus-front-gate.jpg");
  background-position: center;
  background-size: cover;
  border-radius: 8px;
}

.contact-lead h2 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.6vw, 4.6rem);
  line-height: 0.98;
}

.contact-lead p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.02rem;
}

.contact-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-method-card,
.contact-qr-card {
  min-height: 210px;
  padding: 22px;
  background: #f8fbf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-method-card {
  display: grid;
  align-content: space-between;
  gap: 14px;
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--white);
  background: var(--teal);
  border-radius: 8px;
}

.contact-method-card span,
.contact-qr-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-method-card strong {
  color: var(--ink);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.12;
}

.contact-method-card a {
  justify-self: start;
  min-height: 38px;
  padding: 8px 14px;
  color: var(--white);
  background: var(--teal);
  border-radius: 8px;
  font-weight: 800;
}

.contact-method-card small,
.contact-qr-card small {
  color: var(--muted);
  font-weight: 700;
}

.contact-qr-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.qr-placeholder {
  width: min(170px, 100%);
  aspect-ratio: 1;
  padding: 12px;
  background:
    linear-gradient(90deg, #0f5d55 12px, transparent 12px) 0 0 / 28px 28px,
    linear-gradient(#0f5d55 12px, transparent 12px) 0 0 / 28px 28px,
    #ffffff;
  border: 10px solid var(--white);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(24, 32, 29, 0.12);
}

.qr-placeholder.whatsapp {
  background:
    linear-gradient(90deg, #14766b 10px, transparent 10px) 0 0 / 24px 24px,
    linear-gradient(#14766b 10px, transparent 10px) 0 0 / 24px 24px,
    #ffffff;
}

.contact-band {
  color: var(--white);
  background: var(--teal-dark);
}

.contact-band .eyebrow {
  color: #f3bd70;
}

.contact-layout {
  align-items: center;
}

.contact-layout h2 {
  margin-bottom: 0;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  justify-content: flex-end;
  background: rgba(13, 20, 17, 0.42);
}

.drawer.open {
  display: flex;
}

.drawer-panel {
  width: min(640px, 100%);
  height: 100%;
  overflow: auto;
  padding: 26px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.drawer-header,
.modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.cart-items {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-item img {
  width: 80px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-control input {
  width: 72px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}

.empty-state {
  padding: 24px;
  color: var(--muted);
  background: var(--mist);
  border-radius: 8px;
}

.rfq-form,
.modal-panel,
.product-form,
.admin-login {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #37463f;
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}

input,
select {
  height: 44px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  padding: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.submit-button {
  width: 100%;
}

.modal {
  width: min(560px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-modal {
  width: min(980px, calc(100% - 28px));
}

.product-detail-modal {
  width: min(1080px, calc(100% - 28px));
}

.modal::backdrop {
  background: rgba(13, 20, 17, 0.48);
}

.modal-panel {
  padding: 24px;
  background: var(--white);
}

.product-detail-panel {
  max-height: min(86vh, 860px);
  overflow: auto;
}

.product-detail-content {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  gap: 24px;
  align-items: start;
}

.detail-gallery,
.detail-info {
  display: grid;
  gap: 14px;
}

.detail-main-image {
  width: 100%;
  aspect-ratio: 1 / 0.88;
  object-fit: contain;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
}

.detail-thumbnails button {
  padding: 0;
  overflow: hidden;
  background: var(--mist);
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.detail-thumbnails button.active {
  border-color: var(--teal);
}

.detail-thumbnails img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.detail-title-row strong {
  display: block;
  font-size: 1.05rem;
}

.detail-title-row span,
.detail-info p {
  color: var(--muted);
}

.detail-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.detail-specs div {
  min-height: 76px;
  padding: 12px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-specs dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-specs dd {
  margin: 6px 0 0;
  color: var(--ink);
  font-weight: 700;
}

.register-only {
  display: none;
  gap: 14px;
}

.registering .register-only {
  display: grid;
}

.admin-workspace {
  display: grid;
  gap: 18px;
}

.admin-toolbar {
  justify-content: space-between;
  margin-bottom: 12px;
}

.inquiry-list,
.admin-product-list {
  display: grid;
  gap: 12px;
  max-height: 430px;
  overflow: auto;
  padding-right: 4px;
}

.inquiry-card {
  padding: 16px;
}

.inquiry-card header,
.admin-product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.inquiry-card small,
.admin-product-row small {
  color: var(--muted);
}

.inquiry-products {
  margin: 12px 0;
  padding-left: 18px;
}

.admin-product-row {
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  max-width: min(380px, calc(100% - 40px));
  padding: 14px 16px;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
  }

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

  .main-nav {
    position: absolute;
    top: 76px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .header-actions {
    justify-content: end;
  }

  .header-actions .ghost span {
    display: none;
  }

  .hero {
    min-height: 780px;
  }

  .hero-content {
    margin-bottom: 270px;
  }

  .hero-stats,
  .product-grid,
  .capability-grid,
  .insight-grid,
  .workshop-gallery,
  .product-detail-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .split-layout,
  .section-heading,
  .catalog-toolbar,
  .capability-lead,
  .contact-panel,
  .contact-layout,
  .campus-showcase {
    grid-template-columns: 1fr;
  }

  .about-summary {
    position: static;
  }

  .about-copy {
    padding-left: 0;
    border-left: 0;
  }

  .product-tools {
    justify-content: stretch;
  }

  .category-filter-bar {
    top: 76px;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
    gap: 10px;
    padding: 10px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .main-nav {
    top: 68px;
    right: 12px;
    left: 12px;
  }

  .header-actions {
    gap: 6px;
  }

  .icon-text-button {
    padding: 0 10px;
  }

  .header-actions .primary span {
    display: none;
  }

  .hero {
    min-height: 820px;
  }

  .hero-content {
    width: calc(100% - 28px);
    margin: 0 auto 330px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-stats,
  .about-metrics,
  .partner-network-kpis,
  .capability-stats,
  .contact-method-grid,
  .product-grid,
  .capability-grid,
  .insight-grid,
  .workshop-gallery,
  .partner-strip,
  .campus-gallery,
  .product-detail-content,
  .detail-specs,
  .form-row {
    grid-template-columns: 1fr;
  }

  .detail-title-row,
  .product-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .product-card-actions {
    justify-content: stretch;
  }

  .product-card-actions > *,
  .detail-title-row > button {
    width: 100%;
  }

  .campus-gallery {
    grid-template-rows: none;
  }

  .campus-gallery img:first-child {
    grid-row: auto;
  }

  .workshop-gallery figure {
    min-height: 230px;
  }

  .hero-stats {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  .hero-stats div {
    min-height: 72px;
    padding: 14px;
  }

  .product-card {
    grid-template-rows: 210px 1fr;
  }

  .product-card img {
    height: 210px;
  }

  .catalog-toolbar,
  .partner-network-panel,
  .capability-panel,
  .contact-panel {
    padding: 16px;
  }

  .contact-lead {
    min-height: 340px;
    padding: 20px;
  }

  .catalog-kpis strong {
    font-size: 2.1rem;
  }

  .category-filter-bar {
    position: static;
  }

  .drawer-panel {
    padding: 18px;
  }

  .cart-item {
    grid-template-columns: 68px 1fr;
  }

  .cart-item img {
    width: 68px;
    height: 62px;
  }

  .cart-item .qty-control {
    grid-column: 1 / -1;
    justify-content: space-between;
  }
}
