/* ============================================================
   Vanity Supply China — light, Apple-inspired design system
   Palette: white / #f5f5f7 surfaces, ink #1d1d1f, accent blue
   ============================================================ */

:root {
  color-scheme: light;

  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;

  --line: #d2d2d7;
  --line-soft: #e8e8ed;

  --paper: #fff;
  --paper-2: #f5f5f7;

  --blue: #0071e3;
  --blue-hover: #0077ed;
  --blue-soft: rgba(0, 113, 227, 0.08);

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;

  --wrap: 820px;
  --wrap-mid: 980px;
  --wrap-wide: 1200px;

  --header-h: 54px;
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

/* Scripts toggle `element.hidden`; class-based display rules must not win. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: var(--header-h);
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.53;
  letter-spacing: -0.008em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

button,
select {
  cursor: pointer;
}

section[id] {
  scroll-margin-top: var(--header-h);
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 980px;
  font-size: 14px;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Typography ---------- */
h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}

h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.024em;
}

h2 {
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.09;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(21px, 2.4vw, 28px);
  line-height: 1.18;
  letter-spacing: -0.014em;
}

p {
  margin: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--ink-3);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.004em;
}

.eyebrow.light {
  color: var(--ink-3);
}

.lead {
  margin: 20px auto 0;
  max-width: 44ch;
  color: var(--ink-2);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.42;
  letter-spacing: 0.004em;
}

.fine-print {
  margin: 16px 0 0;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.45;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
  padding: 0 clamp(18px, 4vw, 40px);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-inline-end: auto;
}

.brand-mark {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-copy {
  display: grid;
  gap: 0;
}

.brand-copy strong {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-copy small {
  color: var(--ink-3);
  font-size: 11px;
  letter-spacing: 0;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 30px);
  font-size: 13px;
  font-weight: 400;
}

nav a {
  color: rgba(29, 29, 31, 0.86);
  transition: color 180ms var(--ease);
}

nav a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 7px 14px;
  color: #fff;
  background: var(--blue);
  border-radius: 980px;
  font-weight: 500;
  transition: background 180ms var(--ease);
}

.nav-cta:hover {
  color: #fff;
  background: var(--blue-hover);
}

.language-picker {
  flex: 0 0 auto;
}

.language-picker select {
  min-width: 64px;
  min-height: 32px;
  padding: 0 24px 0 10px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.05);
  border: 0;
  border-radius: 980px;
  font-size: 12px;
  font-weight: 500;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='%236e6e73' d='M0 0h10L5 6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 8px;
}

html[dir="rtl"] .language-picker select {
  padding: 0 10px 0 24px;
  background-position: left 10px center;
}

.language-picker select:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.35);
  outline-offset: 2px;
}

.menu-button {
  display: none;
  padding: 6px 12px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.05);
  border: 0;
  border-radius: 980px;
  font-size: 12px;
  font-weight: 500;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-align: center;
  transition: background 200ms var(--ease), color 200ms var(--ease),
    box-shadow 200ms var(--ease);
}

.button.primary,
.button.dark,
.button.accent {
  color: #fff;
  background: var(--blue);
}

.button.primary:hover,
.button.dark:hover,
.button.accent:hover {
  background: var(--blue-hover);
}

.button.ghost {
  color: var(--blue);
  background: transparent;
  box-shadow: inset 0 0 0 1px currentColor;
}

.button.ghost:hover {
  background: var(--blue-soft);
}

.button:focus-visible,
.text-button:focus-visible,
.inline-link:focus-visible,
nav a:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.4);
  outline-offset: 3px;
  border-radius: 6px;
}

.text-button,
.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0;
  color: var(--blue);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 17px;
  font-weight: 400;
}

.text-button:hover,
.inline-link:hover {
  background: transparent;
  text-decoration: underline;
}

.inline-link {
  font-size: 16px;
}

.hero-actions,
.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: 30px;
}

.hero-actions {
  justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(48px, 6.6vw, 78px) 22px 0;
  text-align: center;
  background: var(--paper);
}

.hero-copy {
  max-width: var(--wrap);
  margin: 0 auto;
}

.hero-visual {
  max-width: 1040px;
  margin: clamp(28px, 3.8vw, 46px) auto 0;
}

.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center;
  gap: 0;
  max-width: var(--wrap-mid);
  margin: 0 auto;
  padding: clamp(26px, 3vw, 34px) 0 0;
  text-align: center;
}

.hero-facts div {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  padding: 0 clamp(12px, 2.5vw, 30px);
  border-inline-start: 1px solid var(--line-soft);
}

.hero-facts div:first-child {
  border-inline-start: 0;
}

.hero-facts dt {
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.014em;
  white-space: nowrap;
}

.hero-facts dd {
  margin: 0;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.4;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px clamp(24px, 5vw, 56px);
  padding: 24px 22px 30px;
  color: var(--ink-2);
  font-size: 14px;
  text-align: center;
}

.trust-strip span {
  position: relative;
}

/* ---------- Section shell ---------- */
.section {
  padding: clamp(66px, 8.5vw, 118px) 22px;
}

.section-intro,
.range-heading,
.gallery-heading,
.service-title,
.catalogue-copy,
.inquiry-copy {
  max-width: 760px;
  margin: 0 auto clamp(38px, 5vw, 60px);
  text-align: center;
}

.section-intro > p:not(.eyebrow),
.range-heading > p:not(.eyebrow),
.catalogue-copy > p:not(.eyebrow),
.inquiry-copy > p:not(.eyebrow) {
  margin: 18px auto 0;
  max-width: 60ch;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.5;
}

.collections {
  padding-bottom: clamp(30px, 4vw, 50px);
  background: var(--paper);
}

/* ---------- Product features ---------- */
.product-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  max-width: var(--wrap-wide);
  margin: 0 auto;
  padding: clamp(30px, 4vw, 54px) 0;
}

.product-feature.reverse .product-image {
  order: 2;
}

.product-image {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
}

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

.model-tag {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  padding: 6px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 980px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.product-content {
  padding: 0;
}

.product-kicker {
  margin: 0 0 10px;
  color: var(--ink-3);
  font-size: 15px;
  font-weight: 600;
}

.product-summary {
  margin: 16px 0 0;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.52;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(20px, 3vw, 40px);
  margin: 28px 0 0;
}

.spec-list div {
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
}

.spec-list dt {
  color: var(--ink-3);
  font-size: 13px;
}

.spec-list dd {
  margin: 5px 0 0;
  font-size: 17px;
  letter-spacing: -0.01em;
}

/* ---------- Range grid ---------- */
.catalogue-range {
  padding: clamp(66px, 8.5vw, 118px) 22px;
  background: var(--paper-2);
}

.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 26px);
  max-width: var(--wrap-wide);
  margin: 0 auto;
}

.catalogue-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  border-radius: var(--radius-lg);
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease);
}

.catalogue-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.catalogue-card > img,
.card-media,
.catalogue-photo-pending {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
}

.catalogue-card > img {
  object-fit: cover;
}

.catalogue-photo-pending {
  display: grid;
  place-items: center;
  padding: 20px;
  background: #ececed;
  color: var(--ink-3);
  font-size: 13px;
  text-align: center;
}

.catalogue-photo-pending::before {
  display: block;
  margin: 0 auto 10px;
  content: "";
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.catalogue-card > div:last-child {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px 26px;
}

.catalogue-model {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.014em;
}

.catalogue-size {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.45;
}

.catalogue-size span {
  color: var(--ink-3);
}

.catalogue-price {
  display: grid;
  gap: 2px;
  margin-top: auto;
  padding-top: 14px;
  color: var(--ink-3);
  font-size: 12px;
}

.catalogue-price strong {
  color: var(--ink);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.014em;
}

.catalogue-card .button {
  justify-content: flex-start;
  min-height: 0;
  margin-top: 14px;
  padding: 0;
  color: var(--blue);
  background: transparent;
  font-size: 15px;
}

.catalogue-card .button:hover {
  background: transparent;
  text-decoration: underline;
}

.catalogue-card .button::after {
  margin-inline-start: 0.3em;
  content: "\203A";
}

html[dir="rtl"] .catalogue-card .button::after {
  content: "\2039";
}

/* ---------- Detail gallery ---------- */
.gallery {
  background: var(--paper);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 26px);
  max-width: var(--wrap-wide);
  margin: 0 auto;
}

.gallery-grid figure {
  margin: 0;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--paper-2);
  border-radius: var(--radius-lg);
}

.gallery-grid figcaption {
  padding: 14px 4px 0;
  color: var(--ink-3);
  font-size: 14px;
}

/* ---------- Service steps ---------- */
.service {
  background: var(--paper-2);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 40px);
  max-width: var(--wrap-wide);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.steps li {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.step-number {
  display: block;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.steps h3 {
  margin: 12px 0 8px;
  font-size: 20px;
}

.steps p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
}

/* ---------- Catalogues ---------- */
.catalogues {
  background: var(--paper);
}

.download-grid {
  display: grid;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
}

.download-grid a {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: var(--paper-2);
  border-radius: var(--radius);
  transition: background 200ms var(--ease), transform 200ms var(--ease);
}

.download-grid a:hover {
  background: #ebebef;
  transform: translateY(-2px);
}

.download-grid a:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.4);
  outline-offset: 3px;
}

.language-code {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--ink-2);
  background: var(--paper);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
}

.download-grid span > strong {
  display: block;
  font-size: 17px;
  font-weight: 500;
}

.download-grid small {
  display: block;
  margin-top: 3px;
  color: var(--ink-3);
  font-size: 13px;
}

.download-grid a > span[aria-hidden] {
  color: var(--blue);
  font-size: 18px;
}

/* ---------- Inquiry ---------- */
.inquiry {
  background: var(--paper-2);
}

.privacy-note {
  display: grid;
  gap: 4px;
  max-width: 460px;
  margin: 26px auto 0;
  padding: 16px 20px;
  background: var(--paper);
  border-radius: var(--radius);
  text-align: center;
}

.privacy-note strong {
  font-size: 15px;
  font-weight: 600;
}

.privacy-note span {
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.45;
}

.inquiry-copy > .direct-contact {
  margin: 18px auto 0;
  max-width: 340px;
  padding: 16px 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--paper);
  text-align: start;
  font-size: 14px;
  color: var(--ink-2);
}

.direct-contact-name {
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-3);
}

.direct-contact-name strong {
  margin-inline-start: 6px;
  color: var(--ink);
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.contact-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

/* Fixed key column keeps the numbers aligned in all four languages. */
.contact-key {
  flex: 0 0 84px;
  color: var(--ink-3);
}

.direct-contact a {
  font-weight: 600;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  /* Long numbers must not push the panel wide on small phones. */
  overflow-wrap: anywhere;
}

.footer-contact strong {
  margin-inline-start: 6px;
  color: inherit;
}

.footer-contact a + a {
  margin-inline-start: 10px;
}

.footer-contact a {
  margin-inline-start: 6px;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rfq-form {
  display: grid;
  gap: 22px;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 3.4vw, 40px);
  background: var(--paper);
  border-radius: var(--radius-lg);
}

.rfq-form fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.rfq-form fieldset:not(.contact-fieldset) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.rfq-form legend {
  margin-bottom: 14px;
  padding: 0;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 600;
}

.rfq-form label {
  display: grid;
  gap: 8px;
}

.rfq-form label > span {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
}

.rfq-form label > span em {
  color: var(--ink-3);
  font-style: normal;
}

.rfq-form label.check-card {
  display: flex;
}

.check-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--paper-2);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 180ms var(--ease), border-color 180ms var(--ease);
}

.check-card:hover {
  background: #ebebef;
}

.check-card:has(input:checked) {
  background: var(--blue-soft);
  border-color: var(--blue);
}

.check-card input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--blue);
  flex: 0 0 auto;
}

.rfq-form .check-card > span {
  display: grid;
  gap: 1px;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.check-card strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

.check-card small {
  display: block;
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 13px;
}

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

.rfq-form input[type="text"],
.rfq-form input[type="email"],
.rfq-form input[type="tel"],
.rfq-form select,
.rfq-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 16px;
}

.rfq-form textarea {
  min-height: 120px;
  resize: vertical;
}

.rfq-form input::placeholder,
.rfq-form textarea::placeholder {
  color: #a1a1a6;
}

.rfq-form input:focus,
.rfq-form select:focus,
.rfq-form textarea:focus {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.16);
}

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  opacity: 0;
  pointer-events: none;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
}

.rfq-form .button {
  min-width: 160px;
}

.rfq-form button[disabled] {
  opacity: 0.55;
  cursor: progress;
}

.form-status {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  min-height: 1.2em;
}

.form-status.is-error {
  color: #b3261e;
}

/* Shown only when the RFQ endpoint is unreachable — gives the buyer a route
   that does not depend on the network path that just failed. */
.rfq-fallback {
  margin: 14px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
}

.rfq-fallback p {
  margin: 0 0 12px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}

.rfq-fallback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rfq-fallback-actions .button {
  flex: 0 1 auto;
}

.form-privacy {
  margin: 0;
  color: var(--ink-3);
  font-size: 13px;
}

/* ---------- Footer ---------- */
footer {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: center;
  justify-content: space-between;
  padding: 32px clamp(22px, 5vw, 60px);
  background: var(--paper-2);
  border-top: 1px solid var(--line-soft);
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-brand strong {
  font-size: 14px;
  font-weight: 600;
}

.footer-brand p {
  margin: 2px 0 0;
  color: var(--ink-3);
  font-size: 13px;
  max-width: 46ch;
}

.footer-meta {
  display: grid;
  gap: 4px;
  color: var(--ink-3);
  font-size: 12px;
  text-align: right;
}

html[dir="rtl"] .footer-meta {
  text-align: left;
}

/* Social row. social.js removes the whole row while no account is configured,
   so these rules only ever apply to links that actually resolve. */
.social-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  margin: 6px 0 2px;
}

html[dir="rtl"] .social-links {
  justify-content: flex-start;
}

.social-label {
  color: var(--ink-3);
  font-size: 12px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  color: var(--ink-2);
  background: var(--paper);
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}

.social-links a:hover {
  color: var(--ink);
  border-color: var(--line);
}

.social-links a:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.4);
  outline-offset: 3px;
}

/* ---------- Social feed (hidden until a Facebook page is configured) ---------- */
.social-feed {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  max-width: var(--wrap-wide);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) clamp(22px, 5vw, 60px);
}

@media (min-width: 900px) {
  .social-feed {
    grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  }
}

.social-feed-copy h2 {
  margin: 8px 0 12px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.02em;
}

.social-feed-copy p {
  margin: 0 0 16px;
  color: var(--ink-2);
  max-width: 46ch;
}

.social-feed-note {
  color: var(--ink-3);
  font-size: 13px;
}

/* Reserve height so a slow or blocked embed does not shift the page under the
   buyer's cursor once it finally paints. */
.social-feed-embed {
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.social-feed-embed iframe {
  max-width: 100%;
  border: 0;
}

/* ---------- Scroll reveal (added by script.js) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 720ms var(--ease), transform 720ms var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- RTL ---------- */
html[dir="rtl"] body {
  font-family: "SF Arabic", "Geeza Pro", "Noto Naskh Arabic", Tahoma, Arial,
    sans-serif;
  letter-spacing: 0;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
  font-family: inherit;
  letter-spacing: 0;
}

/* ---------- Product photo galleries ---------- */
.card-media {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  background: var(--paper-2);
  border: 0;
  cursor: zoom-in;
}

.card-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}

.catalogue-card:hover .card-media img,
.card-media:focus-visible img {
  transform: scale(1.035);
}

.card-media:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.45);
  outline-offset: -3px;
}

.photo-badge,
.gallery-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 980px;
  font-size: 12px;
  font-weight: 600;
}

.photo-badge {
  bottom: 12px;
  inset-inline-end: 12px;
}

.product-image.has-gallery {
  cursor: zoom-in;
}

.product-feature:hover .product-image img {
  transform: scale(1.03);
}

.gallery-trigger {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: zoom-in;
}

.gallery-trigger:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.45);
  outline-offset: -3px;
  border-radius: var(--radius-lg);
}

.gallery-pill {
  bottom: 16px;
  inset-inline-end: 16px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 0;
}

.lightbox-panel {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(1080px, 94vw);
  max-height: 92vh;
  padding: 56px 8px 18px;
}

.lightbox-stage {
  grid-column: 2;
  display: grid;
  gap: 12px;
  margin: 0;
  justify-items: center;
  min-height: 0;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: min(66vh, 700px);
  object-fit: contain;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.lightbox-stage figcaption {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.lightbox-nav,
.lightbox-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 0;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  transition: background 180ms var(--ease);
}

.lightbox-nav:hover,
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-nav:focus-visible,
.lightbox-close:focus-visible,
.lightbox-thumb:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
}

.lightbox-nav.prev {
  grid-column: 1;
  justify-self: start;
}

.lightbox-nav.next {
  grid-column: 3;
  justify-self: end;
}

.lightbox-close {
  position: absolute;
  top: 6px;
  inset-inline-end: 6px;
  font-size: 22px;
}

.lightbox-thumbs {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.lightbox-thumb {
  width: 56px;
  height: 68px;
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  border-radius: 10px;
  opacity: 0.55;
  transition: opacity 180ms var(--ease), border-color 180ms var(--ease);
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-thumb.active,
.lightbox-thumb:hover {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.85);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .menu-button {
    display: inline-flex;
    order: 3;
  }

  .language-picker {
    order: 4;
  }

  nav {
    position: fixed;
    inset: calc(var(--header-h) + 8px) 14px auto;
    display: none;
    padding: 10px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-radius: var(--radius);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
    font-size: 16px;
  }

  nav.open {
    display: grid;
    gap: 2px;
  }

  nav a {
    padding: 12px 14px;
    border-radius: 10px;
  }

  nav a:hover {
    background: var(--paper-2);
  }

  .nav-cta {
    margin-top: 4px;
    padding: 13px 14px;
    border-radius: 10px;
    text-align: center;
  }

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

  .product-feature,
  .product-feature.reverse {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .product-feature.reverse .product-image {
    order: 0;
  }

  .product-image {
    aspect-ratio: 5 / 4;
  }

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

  .rfq-form fieldset:not(.contact-fieldset) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  .brand-copy small {
    display: none;
  }

  .hero {
    padding-top: clamp(40px, 9vw, 64px);
  }

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

  .hero-facts {
    gap: 0;
    padding-top: 26px;
  }

  .hero-facts div {
    display: grid;
    gap: 4px;
    padding: 0 8px;
  }

  .hero-facts dt {
    font-size: 16px;
  }

  .hero-facts dd {
    font-size: 11px;
  }

  .hero-visual img {
    border-radius: var(--radius);
  }

  .spec-list,
  .form-grid,
  .rfq-form fieldset,
  .rfq-form fieldset:not(.contact-fieldset) {
    grid-template-columns: 1fr;
  }

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

  .rfq-form .button,
  .form-actions .button {
    width: 100%;
  }

  .footer-meta {
    text-align: inherit;
  }

  .lightbox-panel {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    padding: 48px 4px 14px;
  }
}

@media (max-width: 560px) {
  .catalogue-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .catalogue-card > img,
  .card-media,
  .card-media img,
  .catalogue-photo-pending,
  .gallery-grid img {
    aspect-ratio: 5 / 4;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .catalogue-card,
  .product-image img,
  .card-media img,
  .download-grid a {
    transition: none;
  }

  .catalogue-card:hover,
  .download-grid a:hover {
    transform: none;
  }

  .product-feature:hover .product-image img,
  .catalogue-card:hover .card-media img {
    transform: none;
  }
}
