/* JMP — Jordan Modern. Contemporary industrial identity: resin amber, JMP blue, deep navy, white.
   Logical properties throughout so Arabic RTL and English LTR share one stylesheet. */

:root {
  --navy-900: #081437;
  --navy: #0b1b45;
  --blue: #26358f;
  --blue-500: #3348b8;
  --blue-200: #c9d2f2;
  --amber: #e39b2d;
  --amber-300: #f4c47a;
  --amber-ink: #8a4f00;      /* amber for text on white: 5.6:1 */
  --paper: #ffffff;
  --mist: #f3f5fa;
  --line: #dfe3ee;
  --text: #121a33;
  --muted: #535c75;
  --success: #1e6b43;
  --danger: #b3261e;

  --font-en: "IBM Plex Sans", "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "IBM Plex Sans", Tahoma, "Segoe UI", sans-serif;
  --font: var(--font-en);

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
  --step-3: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem);
  --step-4: clamp(2rem, 1.3rem + 2.8vw, 3.35rem);
  --step-hero: clamp(2.3rem, 1.3rem + 3.6vw, 4.4rem);

  --gutter: clamp(16px, 4vw, 44px);
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --shadow-s: 0 1px 2px rgba(8, 20, 55, .06), 0 4px 14px rgba(8, 20, 55, .06);
  --shadow-m: 0 2px 6px rgba(8, 20, 55, .06), 0 18px 40px rgba(8, 20, 55, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 160ms;
  --t-med: 320ms;
  --header-h: 74px;
}
:lang(ar), [lang="ar"] { --font: var(--font-ar); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
[dir="rtl"] body { line-height: 1.85; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-500); text-underline-offset: .2em; }
a:hover { color: var(--blue); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0; font-weight: 700; text-wrap: balance; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { line-height: 1.35; }
p { margin: 0 0 1em; text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-s); }
.skip-link:focus { top: 12px; color: #fff; }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 700px; }
main:focus { outline: none; }
.icon { flex: none; }
[dir="rtl"] .icon-dir { transform: scaleX(-1); }
.count { font-variant-numeric: tabular-nums; }

/* Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .6em 1.2em;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap;
  cursor: pointer; touch-action: manipulation;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-lg { min-height: 54px; padding-inline: 1.6em; font-size: 1rem; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; box-shadow: 0 6px 18px rgba(38, 53, 143, .28); }
.btn-amber { background: var(--amber); color: var(--navy-900); }
.btn-amber:hover { background: var(--amber-300); color: var(--navy-900); box-shadow: 0 8px 24px rgba(227, 155, 45, .35); }
.btn-quiet { background: var(--mist); color: var(--navy); border-color: var(--line); }
.btn-quiet:hover { background: #fff; border-color: var(--blue); color: var(--blue); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--mist); color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--mist); color: var(--navy); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }
.btn-added { background: #e9f4ee; color: var(--success); border-color: #bcdcc8; }
.btn-added:hover { background: #dcefe3; color: var(--success); }
.btn.is-busy { opacity: .7; }
.btn.just-added .icon { animation: pop 420ms var(--ease); }
@keyframes pop { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); cursor: pointer; transition: color var(--t-fast), border-color var(--t-fast); }
.icon-btn:hover { color: var(--danger); border-color: var(--danger); }
.text-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--blue); text-decoration: none; }
.text-link .icon { transition: transform var(--t-fast) var(--ease); }
.text-link:hover { color: var(--navy); }
.text-link:hover .icon-dir { transform: translateX(3px); }
[dir="rtl"] .text-link:hover .icon-dir { transform: scaleX(-1) translateX(3px); }
.text-link-light { color: var(--amber-300); }
.text-link-light:hover { color: #fff; }

/* Motion --------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .enter { animation: enter 700ms var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }
  .reveal-on [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); transition-delay: var(--d, 0ms); }
  .reveal-on [data-reveal].is-in { opacity: 1; transform: none; }
}
@keyframes enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Header ------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.3) blur(10px); border-bottom: 1px solid transparent; transition: border-color var(--t-med), box-shadow var(--t-med); }
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-s); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); margin-inline-end: auto; }
.brand img { width: 100px; }
.brand-text { display: grid; line-height: 1.2; border-inline-start: 1px solid var(--line); padding-inline-start: 12px; }
.brand-name { font-family: var(--font-en); font-weight: 700; letter-spacing: .04em; font-size: .9rem; text-transform: uppercase; }
.brand-tag { font-size: .78rem; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { display: block; padding: 9px 14px; color: var(--text); text-decoration: none; font-weight: 500; border-radius: 999px; transition: background-color var(--t-fast), color var(--t-fast); }
.site-nav ul a:hover { background: var(--mist); color: var(--blue); }
.site-nav ul a[aria-current="page"] { background: var(--mist); color: var(--blue); font-weight: 700; }
.lang-switch { padding: 9px 12px; color: var(--muted); text-decoration: none; font-weight: 600; }
.lang-switch:hover { color: var(--blue); }
.quote-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: var(--navy); color: #fff; text-decoration: none; font-weight: 600; transition: background-color var(--t-fast); }
.quote-link:hover, .quote-link.is-current { background: var(--blue); color: #fff; }
.quote-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding-inline: 6px; border-radius: 12px; background: var(--amber); color: var(--navy-900); font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.quote-count.bump { animation: bump 420ms var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); cursor: pointer; }
.menu-toggle .when-open { display: none; }
.menu-toggle[aria-expanded="true"] .when-open { display: block; }
.menu-toggle[aria-expanded="true"] .when-closed { display: none; }
@media (max-width: 1023px) {
  .brand-text { display: none; }
  .js .menu-toggle { display: inline-flex; }
  .site-nav { flex-wrap: wrap; justify-content: flex-end; }
  .js .site-nav { position: absolute; inset-inline: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-m); }
  .js .site-nav.is-open { display: flex; animation: drop 220ms var(--ease); }
  .js .site-nav ul { flex-direction: column; }
  .js .site-nav ul a { padding: 14px 12px; border-radius: var(--radius-s); }
  .js .lang-switch { padding: 14px 12px; }
  .js .quote-link { justify-content: center; margin-top: 8px; min-height: 50px; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* Flash & toast ------------------------------------------------------ */
.flash-stack { margin-top: 16px; }
.flash { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 8px; padding: 12px 16px; border-radius: var(--radius-s); border-inline-start: 4px solid; }
.flash-success { background: #eef6f1; border-color: var(--success); color: #174f33; }
.flash-error { background: #fbeeed; border-color: var(--danger); color: #7d1a14; }
.toast { position: fixed; inset-inline: 16px; margin-inline: auto; bottom: 24px; z-index: 60; width: fit-content; max-width: min(520px, calc(100vw - 32px)); padding: 14px 20px; border-radius: 999px; background: var(--navy); color: #fff; box-shadow: var(--shadow-m); animation: rise 260ms var(--ease); }
.toast.is-error { background: var(--danger); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* Hero --------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% 20%, #1c2c6e 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%); color: #d6ddf3; padding-block: clamp(40px, 6vw, 88px) 20px; }
[dir="rtl"] .hero { background: radial-gradient(1200px 600px at 15% 20%, #1c2c6e 0%, transparent 60%), linear-gradient(200deg, var(--navy) 0%, var(--navy-900) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--amber-300); font-weight: 500; font-size: var(--step--1); margin-bottom: 20px; max-width: 46ch; }
.hero-kicker::before { content: ""; width: 28px; height: 2px; background: var(--amber); flex: none; }
.hero-title { color: #fff; font-size: var(--step-hero); line-height: 1.08; letter-spacing: -.02em; max-inline-size: 16ch; margin-bottom: 22px; }
[dir="rtl"] .hero-title { line-height: 1.28; letter-spacing: 0; max-inline-size: 18ch; }
.hero-lead { font-size: var(--step-1); max-width: 50ch; color: #c5cdea; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); }
.hero-facts div { display: grid; }
.hero-facts dt { font-size: var(--step--1); color: #9aa6cf; order: 2; }
.hero-facts dd { margin: 0; font-size: var(--step-2); font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; order: 1; }
.hero-media { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(12, minmax(0, 1fr)); aspect-ratio: 1 / .92; }
.hm { margin: 0; overflow: hidden; border-radius: var(--radius-l); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); background: #1c2656; }
.hm img { width: 100%; height: 100%; object-fit: cover; }
.hm-resin { grid-column: 5 / 13; grid-row: 1 / 11; }
.hm-resin img { object-position: 45% 40%; }
.hm-inks { grid-column: 1 / 9; grid-row: 8 / 13; border: 4px solid var(--navy); z-index: 2; }
.hm-inks img { object-position: 50% 30%; }
.hm-granules { grid-column: 1 / 5; grid-row: 2 / 7; }
/* Amber ring sits behind the photos, peeking out from the top corner of the resin image. */
.hm-ring { position: absolute; width: 26%; aspect-ratio: 1; border-radius: 50%; border: 12px solid var(--amber); inset-inline-end: -6%; top: -7%; z-index: -1; opacity: .85; }
.hero-media { isolation: isolate; }
[dir="rtl"] .hm-resin { grid-column: 1 / 9; }
[dir="rtl"] .hm-inks { grid-column: 5 / 13; }
[dir="rtl"] .hm-granules { grid-column: 9 / 13; }
.hero-note { margin: 28px auto 0; font-size: .8rem; color: #8793bd; }
@media (prefers-reduced-motion: no-preference) {
  .hm img { transition: transform 1200ms var(--ease); }
  .hero-media:hover .hm img { transform: scale(1.04); }
}
@media (max-width: 959px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; aspect-ratio: 1 / .78; max-width: 620px; width: 100%; margin-inline: auto; }
  .hero-title, [dir="rtl"] .hero-title { max-inline-size: 18ch; }
}
@media (max-width: 559px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .hm-ring { border-width: 7px; }
}

/* Sections ----------------------------------------------------------- */
.section { padding-block: clamp(64px, 8vw, 116px); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 48px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2, .section-title { font-size: var(--step-4); letter-spacing: -.015em; max-inline-size: 22ch; }
[dir="rtl"] .section-head h2, [dir="rtl"] .section-title { letter-spacing: 0; }
.section-title { margin-bottom: clamp(24px, 4vw, 40px); }
.section-title-light { color: #fff; }
.section-head p { color: var(--muted); font-size: var(--step-1); margin: 0; max-width: 52ch; }

/* Divisions ---------------------------------------------------------- */
.division-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.division-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; transition: box-shadow var(--t-med) var(--ease), transform var(--t-med) var(--ease), border-color var(--t-med); }
.division-card:hover { box-shadow: var(--shadow-m); border-color: transparent; }
.division-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.division-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.division-card:hover .division-media img { transform: scale(1.05); }
.division-count { position: absolute; inset-inline-start: 16px; bottom: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(8, 20, 55, .82); color: #fff; font-size: var(--step--1); font-weight: 600; backdrop-filter: blur(4px); }
.division-body { display: flex; flex-direction: column; gap: 12px; padding: clamp(20px, 2.4vw, 30px); flex: 1; }
.division-body h3 { font-size: var(--step-3); }
.division-body h3 a { color: inherit; text-decoration: none; }
.division-body h3 a:hover { color: var(--blue); }
.division-body > p { color: var(--muted); margin: 0; }
.division-links { list-style: none; margin: 4px 0 8px; padding: 0; border-top: 1px solid var(--line); }
.division-links a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 500; transition: color var(--t-fast), padding var(--t-fast) var(--ease); }
.division-links a:hover { color: var(--blue); padding-inline-start: 8px; }
.division-links .count { color: var(--muted); font-weight: 400; }
.division-body .text-link { margin-top: auto; }
@media (max-width: 959px) { .division-grid { grid-template-columns: 1fr; } .division-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } .division-media { aspect-ratio: auto; min-height: 100%; } }
@media (max-width: 639px) { .division-card { display: flex; } .division-media { aspect-ratio: 16 / 10; } }

/* Product cards ------------------------------------------------------ */
.featured { background: var(--mist); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; transition: box-shadow var(--t-med) var(--ease), border-color var(--t-med); }
.card:hover { box-shadow: var(--shadow-m); border-color: transparent; }
.card-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px 6px; flex: 1; }
.card-cat { margin: 0 0 4px; font-size: .8rem; font-weight: 600; color: var(--amber-ink); }
.card-title { font-size: var(--step-2); line-height: 1.25; overflow-wrap: anywhere; }
.card-title a { color: var(--navy); text-decoration: none; }
.card-title a:hover { color: var(--blue); }
.card-title a::after { content: ""; position: absolute; inset: 0 0 72px 0; }
.card-code { margin: 0; color: var(--muted); font-size: .9rem; font-weight: 500; }
.card-desc { margin: 8px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 20px 20px; }
.card-actions .btn { flex: 1 1 auto; min-height: 44px; padding-inline: 1em; font-size: .88rem; }
.card-actions form { display: flex; flex: 1 1 auto; }
.card-actions form .btn { width: 100%; }
@media (max-width: 1099px) { .card-grid-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 959px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .card-grid, .card-grid-catalog { grid-template-columns: 1fr; } }
.illustrative-note { margin: 24px 0 0; font-size: .82rem; color: var(--muted); }

/* Factory ------------------------------------------------------------ */
.factory { background: var(--navy); color: #c5cdea; }
.factory h2 { color: #fff; }
.factory-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); grid-template-areas: "copy wide" "side wide"; gap: 24px clamp(24px, 4vw, 56px); align-items: start; }
.factory-copy { grid-area: copy; }
.factory-copy h2 { font-size: var(--step-4); margin-bottom: 16px; }
.factory-copy p { font-size: var(--step-1); max-width: 40ch; }
.photo { margin: 0; }
.photo-frame { overflow: hidden; border-radius: var(--radius-m); background: #1c2656; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.photo:hover .photo-frame img { transform: scale(1.03); }
.photo figcaption { margin-top: 12px; font-size: var(--step--1); color: #9aa6cf; line-height: 1.5; }
.photo-wide { grid-area: wide; }
.photo-wide .photo-frame { aspect-ratio: 16 / 9; }
.photo-side { grid-area: side; }
.photo-side .photo-frame { aspect-ratio: 4 / 3; }
@media (max-width: 959px) { .factory-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "wide" "side"; } }

/* CTA band ----------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--blue) 0%, var(--navy) 100%); color: #d6ddf3; padding-block: clamp(52px, 6vw, 88px); }
.cta-band::after { content: ""; position: absolute; width: 360px; aspect-ratio: 1; border-radius: 50%; border: 36px solid rgba(227, 155, 45, .22); inset-inline-end: -120px; top: -140px; }
.cta-inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; font-size: var(--step-3); margin-bottom: 8px; }
.cta-band p { margin: 0; max-width: 54ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-light { background: var(--amber); color: var(--navy-900); }
.cta-band .btn-light:hover { background: var(--amber-300); }

/* Page head ---------------------------------------------------------- */
.page-head { background: var(--mist); border-bottom: 1px solid var(--line); }
.page-head-inner { padding-block: clamp(36px, 5vw, 64px) clamp(24px, 3vw, 40px); }
.page-head h1 { font-size: var(--step-4); letter-spacing: -.015em; margin-bottom: 12px; }
[dir="rtl"] .page-head h1 { letter-spacing: 0; }
.page-lead { color: var(--muted); font-size: var(--step-1); max-width: 62ch; margin: 0; }
.page-crumb { margin-bottom: 8px; color: var(--muted); font-size: var(--step--1); }
.page-crumb a { color: var(--muted); }
.page-head-dark { background: linear-gradient(160deg, var(--navy), var(--navy-900)); border: 0; }
.page-head-dark h1 { color: #fff; }
.page-head-dark .page-lead { color: #c5cdea; }

/* Catalog ------------------------------------------------------------ */
.search-form { display: flex; gap: 8px; max-width: 680px; margin-top: 20px; }
.search-field { position: relative; flex: 1; display: flex; align-items: center; }
.search-field .icon { position: absolute; inset-inline-start: 16px; color: var(--muted); pointer-events: none; }
.search-field input { width: 100%; min-height: 52px; padding-inline: 46px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.search-field input:focus { border-color: var(--blue-500); outline: none; box-shadow: 0 0 0 4px rgba(51, 72, 184, .18); }
.search-form .btn { min-height: 52px; }
.division-tabs { display: flex; gap: 8px; margin-top: 22px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.division-tabs a { flex: none; display: inline-flex; gap: 8px; align-items: center; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--text); text-decoration: none; font-weight: 600; font-size: .92rem; transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.division-tabs a:hover { border-color: var(--blue); color: var(--blue); }
.division-tabs a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.division-tabs .count { color: var(--muted); font-weight: 500; }
.division-tabs a[aria-current="page"] .count { color: var(--amber-300); }

.catalog-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(24px, 3.5vw, 48px); padding-block: clamp(28px, 4vw, 48px) clamp(64px, 8vw, 104px); }
.catalog-filters { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; }
.filter-disclosure summary { font-weight: 700; color: var(--navy); cursor: pointer; padding-block: 8px; list-style: none; }
.filter-disclosure summary::-webkit-details-marker { display: none; }
@media (min-width: 960px) { .filter-disclosure summary { pointer-events: none; } }
.filter-group { padding-block: 10px; }
.filter-group + .filter-group { border-top: 1px solid var(--line); }
.filter-division { margin: 0 0 6px; font-size: .8rem; font-weight: 700; color: var(--amber-ink); }
.filter-group ul { list-style: none; margin: 0; padding: 0; }
.catalog-filters nav a { display: flex; justify-content: space-between; gap: 12px; padding: 7px 12px; border-radius: var(--radius-s); color: var(--text); text-decoration: none; font-size: .93rem; transition: background-color var(--t-fast), color var(--t-fast); }
.catalog-filters nav a:hover { background: var(--mist); color: var(--blue); }
.catalog-filters nav a[aria-current="page"] { background: var(--blue); color: #fff; }
.catalog-filters nav a[aria-current="page"] .count { color: var(--blue-200); }
.catalog-filters .count { color: var(--muted); font-size: .85rem; }
@media (max-width: 959px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-filters { position: static; max-height: none; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 4px 16px; }
  .filter-disclosure summary { display: flex; align-items: center; justify-content: space-between; min-height: 46px; }
  .filter-disclosure summary::after { content: "+"; font-size: 1.4rem; color: var(--blue); }
  .filter-disclosure[open] summary::after { content: "−"; }
}
.results-bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.results-count { font-size: var(--step-1); font-weight: 600; }
.results-q { color: var(--muted); font-weight: 400; }

.add-form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.add-fields { display: flex; gap: 8px; }
.field { display: grid; gap: 6px; }
.field label, .field-group legend { font-weight: 600; color: var(--navy); font-size: .93rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-s); background: #fff; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-500); outline: none; box-shadow: 0 0 0 4px rgba(51, 72, 184, .18); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-qty input { width: 7rem; font-variant-numeric: tabular-nums; }
.field-unit select { width: 8rem; }
.field-hint { margin: 0; color: var(--muted); font-size: var(--step--1); }
.field-error { margin: 0; color: var(--danger); font-size: var(--step--1); font-weight: 600; }
.req, .opt { color: var(--muted); font-weight: 400; font-size: .85em; }
.empty-state { padding: clamp(32px, 5vw, 56px); max-width: 60ch; background: var(--mist); border-radius: var(--radius-m); }
.empty-state h3 { font-size: var(--step-2); margin-bottom: 8px; }
.empty-state p { color: var(--muted); }
.empty-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pagination a { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding-inline: 14px; border: 1.5px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); font-variant-numeric: tabular-nums; transition: border-color var(--t-fast), color var(--t-fast); }
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Product page ------------------------------------------------------- */
.product-top { background: linear-gradient(to bottom, var(--mist) 0, var(--mist) 60%, #fff 60%); padding-block: 20px clamp(40px, 6vw, 80px); }
.breadcrumb ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0 0 clamp(20px, 3vw, 32px); padding: 0; font-size: var(--step--1); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-inline: 10px; color: var(--muted); opacity: .5; }
.breadcrumb a { color: var(--muted); }
.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.product-figure { margin: 0; position: sticky; top: calc(var(--header-h) + 20px); }
.product-image { aspect-ratio: 4 / 3; border-radius: var(--radius-l); overflow: hidden; background: #e9edf5; box-shadow: var(--shadow-m); }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-figure figcaption { margin-top: 12px; font-size: .82rem; color: var(--muted); }
.product-cat { margin: 0 0 10px; }
.product-cat a { display: inline-block; padding: 5px 12px; border-radius: 999px; background: #fdf1de; color: var(--amber-ink); font-size: .82rem; font-weight: 700; text-decoration: none; }
.product-title { font-size: var(--step-4); letter-spacing: -.02em; line-height: 1.08; overflow-wrap: anywhere; }
[dir="rtl"] .product-title { letter-spacing: 0; line-height: 1.3; }
.product-alt { font-size: var(--step-2); color: var(--muted); margin: 6px 0 0; font-weight: 500; }
.product-lead { font-size: var(--step-1); margin: 22px 0 0; max-width: 58ch; }
.product-apps { margin-top: 22px; padding: 18px 20px; border-inline-start: 4px solid var(--amber); background: #fffaf2; border-radius: 0 var(--radius-s) var(--radius-s) 0; }
[dir="rtl"] .product-apps { border-radius: var(--radius-s) 0 0 var(--radius-s); }
.product-apps h2 { font-size: 1rem; margin-bottom: 6px; }
.product-apps p { margin: 0; }
.product-facts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 24px 0; padding-block: 16px; border-block: 1px solid var(--line); }
.product-facts dt { font-size: var(--step--1); color: var(--muted); }
.product-facts dd { margin: 0; font-weight: 600; }
.product-facts a { color: var(--navy); }
.product-order { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: var(--shadow-s); }
.order-title { font-size: var(--step-1); margin-bottom: 14px; }
.order-note { margin: 14px 0 0; color: var(--muted); font-size: var(--step--1); }
.product-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 14px 0 0; }
.product-docs { margin-top: 28px; }
.product-docs h2 { font-size: var(--step-2); margin-bottom: 12px; }
.product-docs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.product-docs a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-s); text-decoration: none; color: var(--navy); }
.product-docs a:hover { border-color: var(--blue); }
.doc-meta { margin-inline-start: auto; color: var(--muted); font-size: var(--step--1); }
.related { background: var(--mist); }
@media (max-width: 959px) {
  .product { grid-template-columns: 1fr; }
  .product-figure { position: static; }
  .product-top { background: var(--mist); }
}

/* Quote -------------------------------------------------------------- */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 64px); padding-block: clamp(28px, 4vw, 48px) clamp(64px, 8vw, 104px); align-items: start; }
.block-title { font-size: var(--step-2); padding-bottom: 14px; border-bottom: 2px solid var(--navy); margin-bottom: 8px; }
.quote-items:focus { outline: none; }
.basket-note { margin: 14px 0 4px; padding: 10px 14px; background: #fffaf2; border-inline-start: 3px solid var(--amber); color: var(--text); font-size: var(--step--1); }
.basket { list-style: none; margin: 0 0 20px; padding: 0; }
.basket-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 12px 20px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.basket-thumb { width: 96px; height: 72px; object-fit: cover; border-radius: var(--radius-s); background: var(--mist); }
.basket-name { display: grid; gap: 2px; min-width: 0; }
.basket-name a { font-weight: 700; font-size: var(--step-1); color: var(--navy); text-decoration: none; overflow-wrap: anywhere; }
.basket-name a:hover { color: var(--blue); text-decoration: underline; }
.basket-meta { color: var(--muted); font-size: var(--step--1); }
.basket-fields { display: flex; align-items: end; gap: 8px; }
.basket-fields label { font-size: var(--step--1); color: var(--muted); font-weight: 500; }
@media (max-width: 719px) { .basket-row { grid-template-columns: 72px minmax(0, 1fr); } .basket-thumb { width: 72px; height: 54px; } .basket-fields { grid-column: 1 / -1; } }
.quote-request { position: sticky; top: calc(var(--header-h) + 20px); background: var(--mist); border-radius: var(--radius-m); padding: clamp(20px, 3vw, 32px); }
.request-form { display: grid; gap: 18px; margin-top: 16px; }
.field-group { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; }
.field-group legend { font-weight: 400; color: var(--muted); margin-bottom: 10px; padding: 0; }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.error-summary { margin-top: 16px; padding: 14px 16px; border: 2px solid var(--danger); border-radius: var(--radius-s); background: #fff; }
.error-summary p { font-weight: 700; margin-bottom: 6px; color: var(--danger); }
.error-summary ul { margin: 0; padding-inline-start: 20px; }
.error-summary a { color: var(--danger); }
@media (max-width: 959px) { .quote-layout { grid-template-columns: 1fr; } .quote-request { position: static; } }
.confirmation, .error-page { padding-block: clamp(56px, 10vw, 120px); text-align: center; }
.confirmation h1, .error-page h1 { font-size: var(--step-4); margin-bottom: 16px; }
.confirmation p, .error-page p { color: var(--muted); font-size: var(--step-1); }
.confirmation-mark { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 24px; border-radius: 50%; background: var(--amber); color: var(--navy-900); }
.confirmation-mark .icon { width: 36px; height: 36px; }
.confirmation-ref { font-size: var(--step-2) !important; color: var(--navy) !important; }
.confirmation-ref strong { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.confirmation-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 32px 0 12px; }
.error-code { font-size: var(--step-hero); font-weight: 700; color: var(--amber); margin: 0; }

/* About & contact ---------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.prose { max-width: 64ch; font-size: var(--step-1); }
.about-text p:first-child { font-size: var(--step-2); color: var(--navy); line-height: 1.55; font-weight: 500; }
.facts { border-top: 3px solid var(--amber); padding-top: 16px; }
.facts-title { font-size: var(--step-1); margin-bottom: 12px; }
.facts dl, .contact-list { margin: 0; }
.facts dl > div { padding-block: 12px; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: var(--step--1); }
.facts dd { margin: 0; font-weight: 600; }
.scope { background: var(--mist); }
.scope-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.scope-item { display: grid; grid-template-rows: auto 1fr; background: #fff; border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); }
.scope-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.scope-item > div { padding: clamp(22px, 3vw, 36px); }
.scope-item h3 { font-size: var(--step-3); margin-bottom: 10px; }
.scope-item p { color: var(--muted); font-size: var(--step-1); }
.inline-links { display: flex; flex-wrap: wrap; gap: 12px 28px; list-style: none; margin: 0; padding: 0; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.gallery-main { grid-column: 1 / -1; }
.gallery-main .photo-frame { aspect-ratio: 21 / 9; }
.gallery .photo:not(.gallery-main) .photo-frame { aspect-ratio: 4 / 3; }
@media (max-width: 767px) { .about-grid, .scope-grid, .gallery { grid-template-columns: 1fr; } .gallery-main .photo-frame { aspect-ratio: 16 / 9; } }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-list { border-top: 3px solid var(--amber); }
.contact-list > div { padding-block: 22px; border-bottom: 1px solid var(--line); }
.contact-list dt { display: flex; align-items: center; gap: 10px; color: var(--muted); margin-bottom: 4px; }
.contact-list dd { margin: 0; font-size: var(--step-2); font-weight: 600; overflow-wrap: anywhere; }
.contact-list dd a { color: var(--navy); text-decoration: none; }
.contact-list dd a:hover { color: var(--blue); text-decoration: underline; }
.contact-list address { font-style: normal; }
.contact-aside figure { margin: 0; }
.contact-aside img { border-radius: var(--radius-m); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.contact-aside figcaption { margin-top: 10px; font-size: var(--step--1); color: var(--muted); }
.contact-quote { margin-top: 28px; padding: 24px; background: var(--mist); border-radius: var(--radius-m); }
.contact-quote h2 { font-size: var(--step-2); margin-bottom: 8px; }
.contact-quote p { color: var(--muted); }
@media (max-width: 767px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer ------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: #b8c1e2; padding-top: clamp(48px, 6vw, 72px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-bottom: 40px; }
.footer-brand img { width: 116px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-company { color: #fff; font-weight: 600; max-width: 32ch; }
.footer-tag { color: var(--amber-300); }
.footer-title { color: #fff; font-size: var(--step-0); font-weight: 700; margin-bottom: 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; color: #b8c1e2; text-decoration: none; overflow-wrap: anywhere; }
.footer-links a:hover { color: #fff; }
.footer-address { display: flex; gap: 8px; padding-top: 6px; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 20px; font-size: var(--step--1); }
.footer-base p { margin: 0; }
.site-footer :focus-visible, .hero :focus-visible, .cta-band :focus-visible, .factory :focus-visible, .page-head-dark :focus-visible { outline-color: var(--amber-300); }
@media (max-width: 959px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 559px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
@media print { .site-header, .site-footer, .add-form, .card-actions, .cta-band, .catalog-filters { display: none; } }
