:root {
  --orange: #f04b2f;
  --orange-dark: #c93520;
  --navy: #172131;
  --navy-2: #223047;
  --steel: #9aa2a8;
  --ink: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --paper: #f6f7f8;
  --white: #fff;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(15, 23, 42, .15);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Cairo", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
  overflow-x: hidden;
}

html,
body {
  max-width: 100%;
}

body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body {
  scrollbar-width: none;
}

html,
body {
  scrollbar-width: auto !important;
}

body::-webkit-scrollbar,
html::-webkit-scrollbar {
  width: 12px !important;
  height: 12px !important;
}

body::-webkit-scrollbar-track,
html::-webkit-scrollbar-track {
  background: #eef1f4;
}

body::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-thumb {
  border: 3px solid #eef1f4;
  border-radius: 999px;
  background: var(--steel);
}

body::-webkit-scrollbar-thumb:hover,
html::-webkit-scrollbar-thumb:hover {
  background: var(--orange);
}

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

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

main,
section,
header,
footer,
form,
div,
article {
  min-width: 0;
}

.topbar {
  position: fixed;
  z-index: 20;
  inset: 18px 24px auto;
  width: auto;
  max-width: calc(100vw - 48px);
  height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 18px;
  background: rgba(23, 33, 49, .92);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(14px);
  border-radius: var(--radius);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.45rem;
  line-height: 1;
}

.brand-logo {
  width: 168px;
  max-width: 168px;
  height: 52px;
  min-width: 0;
  overflow: hidden;
  flex: 0 0 168px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.topbar .brand-logo img,
.brand-logo img {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: 100% !important;
  max-height: 52px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.18));
}

.footer-logo img,
.admin-logo img,
.centered-brand img {
  filter: none;
}

.footer-logo {
  display: inline-flex;
  width: 170px;
  max-width: 170px;
  height: auto;
  padding: 8px 10px;
  background: var(--white);
  border-radius: var(--radius);
}

.footer-logo img {
  width: 100%;
  height: 54px;
}

.admin-logo {
  width: 160px;
  max-width: 160px;
  height: auto;
  padding: 8px 10px;
  background: var(--white);
  border-radius: var(--radius);
}

.admin-logo img {
  width: 100%;
  height: 52px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--white);
  background: var(--orange);
  clip-path: polygon(50% 0, 94% 25%, 94% 75%, 50% 100%, 6% 75%, 6% 25%);
  font-size: .9rem;
}

.site-loader {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--navy);
  transition: opacity .45s ease, visibility .45s ease;
}

.site-loader img {
  width: clamp(90px, 12vw, 150px);
  max-width: 150px;
  max-height: 150px;
  object-fit: contain;
  animation: mascotLoad 1.1s ease-in-out infinite alternate;
}

.hero-bg {
  background: var(--navy);
}

.premium-hero > .hero-bg[src*="logo"],
.premium-hero > .hero-bg[src*="mascot"] {
  object-fit: contain;
  padding: 18vh 12vw;
  background: var(--navy);
  opacity: .08;
}

.is-loaded .site-loader {
  opacity: 0;
  visibility: hidden;
}

@keyframes mascotLoad {
  from { transform: scale(.92) rotate(-3deg); opacity: .78; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  font-weight: 700;
  font-size: .92rem;
  color: rgba(255,255,255,.82);
}

.main-nav a {
  white-space: nowrap;
}

.main-nav a:hover { color: var(--white); }

.top-actions { display: flex; gap: 10px; align-items: center; min-width: 0; }

.top-actions .nav-quote-btn {
  min-width: 120px;
  min-height: 48px;
  padding: 0 16px;
  white-space: nowrap;
  line-height: 1;
  font-size: .9rem;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
}

.btn {
  border: 0;
  border-radius: var(--radius);
  min-height: 42px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: .2s ease;
}

.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-outline { border: 1px solid rgba(255,255,255,.65); color: var(--white); }
.btn-lg { min-height: 52px; padding-inline: 24px; }

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 128px 6vw 6vh;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg { object-fit: cover; }

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(23, 33, 49, .2), rgba(23, 33, 49, .92) 58%),
    linear-gradient(0deg, rgba(23,33,49,.84), rgba(23,33,49,.1) 45%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 16px;
  background: repeating-linear-gradient(-45deg, var(--orange) 0 28px, var(--navy) 28px 56px);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  color: var(--white);
  margin-bottom: 132px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange);
  font-weight: 900;
  font-size: 1.04rem;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: .95;
  font-weight: 900;
}

.hero-copy {
  max-width: 650px;
  color: rgba(255,255,255,.82);
  font-size: 1.18rem;
  line-height: 1.9;
}

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

.quote-console {
  position: absolute;
  z-index: 3;
  inset: auto 6vw 42px;
  display: grid;
  grid-template-columns: 1.1fr 1fr .9fr 1.2fr auto;
  gap: 12px;
  padding: 16px;
  background: rgba(255,255,255,.96);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.field,
label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 12px;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: var(--white);
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

textarea { resize: vertical; }

.ticker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--navy);
  color: var(--white);
}

.ticker div {
  min-height: 108px;
  padding: 24px 6vw;
  border-inline-start: 1px solid rgba(255,255,255,.1);
}

.ticker strong { display: block; color: var(--orange); font-size: 1.4rem; }
.ticker span { color: rgba(255,255,255,.7); font-weight: 700; }

.section {
  padding: 88px 6vw;
  background: var(--white);
  width: 100%;
  overflow: hidden;
}

.section:nth-of-type(even) { background: var(--paper); }

.split {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 42px;
  align-items: start;
}

.section-copy h2,
.section-head h2,
.portal h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.08;
  margin-bottom: 16px;
  color: var(--navy);
  font-weight: 900;
}

.section-copy p,
.portal p {
  color: var(--muted);
  line-height: 1.9;
  font-weight: 700;
}

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

.product-card,
.steps article,
.admin-section,
.admin-metrics article,
.integration-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.product-card {
  min-height: 230px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.product-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 9px;
  background: repeating-linear-gradient(45deg, var(--orange) 0 22px, var(--navy) 22px 44px);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 1.2rem;
  margin-bottom: 22px;
}

.product-card h3,
.steps h3 { color: var(--navy); margin-bottom: 8px; font-size: 1.25rem; }

.product-card p,
.steps p { color: var(--muted); line-height: 1.8; font-weight: 700; }

.calc-preview {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
  margin-top: 24px;
}

.calc-preview div {
  padding: 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
}

.calc-preview span { display: block; color: rgba(255,255,255,.65); font-weight: 700; }
.calc-preview strong { display: block; margin-top: 8px; font-size: 1.25rem; }

.smart-form {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
  margin-top: 30px;
}

.steps article { padding: 24px; min-height: 210px; }
.steps span { color: var(--orange); font-weight: 900; font-size: 1.4rem; }

.portal {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 36px;
  align-items: center;
}

.portal img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.portal-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.portal-list span {
  padding: 9px 12px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 800;
}

.footer {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 32px;
  padding: 72px 6vw;
  color: var(--white);
  background: var(--navy);
}

.footer p { max-width: 560px; color: rgba(255,255,255,.72); line-height: 1.9; font-weight: 700; }
.footer-brand { margin-bottom: 18px; }
.contact-card { display: grid; gap: 14px; padding: 22px; background: rgba(255,255,255,.08); border-radius: var(--radius); }

.admin-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  background: #eef1f4;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  background: var(--navy);
  color: var(--white);
}

.admin-sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 34px;
}

.admin-sidebar nav a {
  padding: 13px 14px;
  border-radius: var(--radius);
  color: rgba(255,255,255,.72);
  font-weight: 800;
}

.admin-sidebar nav a.active,
.admin-sidebar nav a:hover {
  background: var(--orange);
  color: var(--white);
}

.admin-main { padding: 26px; }

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.admin-header h1 {
  font-size: 2.15rem;
  line-height: 1.2;
  margin: 0;
  color: var(--navy);
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.admin-metrics article { padding: 20px; }
.admin-metrics span { display:block; color: var(--muted); font-weight: 800; }
.admin-metrics strong { font-size: 2.2rem; color: var(--orange); }

.analytics-filter-grid,
.analytics-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.analytics-filter-grid {
  grid-template-columns: repeat(5, minmax(150px, 1fr)) auto;
  align-items: end;
}

.analytics-filter-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 900;
}

.analytics-filter-grid input,
.analytics-filter-grid select {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  font: inherit;
  background: #fff;
  color: var(--navy);
}

.analytics-report-grid .cms-card {
  margin: 0;
}

@media (max-width: 1100px) {
  .analytics-filter-grid,
  .analytics-report-grid {
    grid-template-columns: 1fr;
  }
}

.admin-section {
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: 0 8px 26px rgba(15,23,42,.05);
}

.admin-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 16px;
}

.admin-section-head h2 { margin: 0; color: var(--navy); }
.admin-section-head span { color: var(--muted); font-weight: 700; }

.admin-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.admin-form.vertical { grid-template-columns: 1fr; }
.grid-2 { display: grid; grid-template-columns: .9fr 1.1fr; gap: 22px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: start; font-weight: 700; }
th { color: var(--muted); background: #f8fafc; }
.status-pill { padding: 5px 9px; border-radius: 999px; color: var(--white); background: var(--orange); font-size: .78rem; }

.content-list,
.media-grid,
.integration-grid {
  display: grid;
  gap: 12px;
}

.content-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
}

.content-item h3 { margin-bottom: 4px; }
.content-actions { display: flex; gap: 8px; margin-top: 12px; }

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

.media-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #f8fafc;
}

.media-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.media-card div { padding: 12px; font-weight: 800; }

.integration-grid {
  grid-template-columns: repeat(4,1fr);
}

.integration-grid article { padding: 18px; }
.integration-grid strong { color: var(--orange); }
.integration-grid p { color: var(--muted); line-height: 1.8; font-weight: 700; }

@media (max-width: 980px) {
  .topbar { position: absolute; grid-template-columns: 1fr auto; inset: 12px; }
  .main-nav { display: none; }
  .hero { padding: 118px 18px 24px; }
  .hero-content { margin-bottom: 300px; }
  .quote-console { grid-template-columns: 1fr; inset: auto 18px 34px; }
  .ticker, .steps, .admin-metrics, .integration-grid { grid-template-columns: repeat(2,1fr); }
  .split, .portal, .footer, .grid-2, .admin-body { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
  .admin-form { grid-template-columns: 1fr 1fr; }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .topbar { height: auto; padding: 12px; }
  .top-actions .btn { display: none; }
  h1 { font-size: 2.6rem; }
  .product-grid, .calc-preview, .ticker, .steps, .admin-metrics, .admin-form, .media-grid, .integration-grid { grid-template-columns: 1fr; }
  .section { padding: 62px 18px; }
  .footer { padding: 52px 18px; }
}

/* MRS CMS public site */
.site-shell {
  background: #f3f4f6;
}

.clean-nav {
  grid-template-columns: auto 1fr auto;
}

.lang-switch {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: var(--radius);
  color: var(--white);
  font-weight: 900;
}

.brand-hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 120px 6vw 72px;
  width: 100%;
}

.premium-hero {
  min-height: 100vh;
  grid-template-columns: minmax(0, .95fr) minmax(320px, .65fr);
  gap: 38px;
}

.brand-hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  color: var(--white);
}

.premium-hero .brand-hero-content {
  align-self: center;
}

[dir="ltr"] .brand-hero-content {
  margin-inline-start: auto;
}

.brand-hero h1 {
  font-size: clamp(3.8rem, 10vw, 9rem);
  line-height: .88;
  margin-bottom: 22px;
}

.hero-showcase {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  z-index: 2;
  align-self: center;
  height: min(68vh, 620px);
  min-height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 30px 80px rgba(0,0,0,.38);
  transform: perspective(1200px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform .2s ease;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity .7s ease, transform 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(23,33,49,.78), rgba(23,33,49,.05) 54%);
}

.hero-slide div {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  padding: 26px;
  color: var(--white);
}

.hero-slide h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.hero-slide p {
  margin: 0;
  color: rgba(255,255,255,.76);
  line-height: 1.7;
  font-weight: 700;
}

.slide-counter {
  position: absolute;
  z-index: 3;
  inset: 18px 18px auto auto;
  padding: 8px 12px;
  color: var(--white);
  background: rgba(23,33,49,.72);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  font-weight: 900;
}

[dir="rtl"] .slide-counter {
  inset: 18px auto auto 18px;
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  inset: auto 6vw 28px auto;
  color: rgba(255,255,255,.8);
  font-weight: 900;
  writing-mode: vertical-rl;
  letter-spacing: 0;
}

[dir="rtl"] .scroll-cue {
  inset: auto auto 28px 6vw;
}

.scroll-cue::after {
  content: "";
  display: block;
  width: 1px;
  height: 54px;
  margin: 12px auto 0;
  background: var(--orange);
  animation: cuePulse 1.6s ease-in-out infinite;
}

@keyframes cuePulse {
  0%, 100% { transform: scaleY(.45); transform-origin: top; opacity: .5; }
  50% { transform: scaleY(1); opacity: 1; }
}

.manifesto-section {
  min-height: 72vh;
  display: grid;
  align-content: center;
  background: var(--navy);
  color: var(--white);
}

.manifesto-section h2 {
  max-width: 980px;
  color: var(--white);
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: .96;
}

.manifesto-section p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255,255,255,.74);
  line-height: 1.9;
  font-weight: 700;
}

.brand-hero p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255,255,255,.78);
  font-size: 1.15rem;
  line-height: 1.9;
  font-weight: 700;
}

.compact-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.compact-head p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.8;
  font-weight: 700;
}

.visual-gallery-section {
  background: var(--white);
  padding-top: 70px;
}

.brand-gallery {
  display: grid;
  grid-template-columns: 1.35fr .85fr .85fr;
  grid-auto-rows: 260px;
  gap: 14px;
}

.gallery-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy);
}

.gallery-tile:first-child {
  grid-row: span 2;
}

.gallery-tile img,
.clean-card img,
.about-section img,
.quality-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease, filter .45s ease;
}

.gallery-tile:hover img,
.clean-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.gallery-tile div {
  position: absolute;
  inset: auto 0 0;
  padding: 24px;
  color: var(--white);
  background: linear-gradient(0deg, rgba(23,33,49,.92), transparent);
  transform: translateY(16px);
  transition: transform .25s ease;
}

.gallery-tile:hover div {
  transform: translateY(0);
}

.gallery-tile h3,
.clean-card h3 {
  margin-bottom: 6px;
}

.gallery-tile p {
  margin: 0;
  color: rgba(255,255,255,.75);
  line-height: 1.6;
  font-weight: 700;
}

.about-section,
.quality-band,
.quote-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.about-section h2,
.quality-band h2,
.quote-section h2,
.compact-head h2 {
  color: var(--navy);
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 1;
}

.about-section p:not(.eyebrow),
.quality-band p:not(.eyebrow),
.quote-section p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.9;
  font-weight: 700;
}

.about-section img,
.quality-band img {
  min-height: 430px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.clean-cards-section {
  background: #f7f8fa;
}

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

.numbered-services {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.numbered-services article {
  position: relative;
  display: grid;
  grid-template-columns: 90px minmax(0, .65fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 160px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.numbered-services span {
  color: var(--orange);
  font-size: 1.5rem;
  font-weight: 900;
}

.numbered-services h3 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.5rem, 3vw, 2.6rem);
}

.numbered-services p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 700;
}

.numbered-services img {
  position: absolute;
  inset: 50% 65% auto auto;
  width: 230px;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(.94) rotate(-2deg);
  box-shadow: var(--shadow);
  transition: opacity .25s ease, transform .25s ease;
}

[dir="rtl"] .numbered-services img {
  inset: 50% auto auto 65%;
  transform: translateY(-50%) scale(.94) rotate(2deg);
}

.numbered-services article:hover img {
  opacity: 1;
  transform: translateY(-50%) scale(1) rotate(0);
}

.reveal-on-scroll,
.gallery-tile,
.clean-card,
.numbered-services article,
.stats-grid article,
.client-logo-card {
  opacity: 1;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}

.js-ready .reveal-on-scroll,
.js-ready .gallery-tile,
.js-ready .clean-card,
.js-ready .numbered-services article,
.js-ready .stats-grid article,
.js-ready .client-logo-card {
  opacity: 0;
}

.reveal-on-scroll.is-visible,
.gallery-tile.is-visible,
.clean-card.is-visible,
.numbered-services article.is-visible,
.stats-grid article.is-visible,
.client-logo-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.clean-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  min-height: 360px;
}

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

.clean-card div {
  padding: 20px;
}

.clean-card p {
  color: var(--muted);
  line-height: 1.7;
  font-weight: 700;
}

.quote-section {
  background: #f5f6f8;
  color: var(--navy);
}

.quote-section h2 {
  color: var(--navy);
}

.quote-section p:not(.eyebrow) {
  color: #617086;
}

.quote-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: var(--white);
  border: 1px solid rgba(23,33,49,.08);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(15,23,42,.07);
  min-width: 0;
}

.quote-form label,
.quote-form input,
.quote-form select,
.quote-form textarea {
  min-width: 0;
}

.stats-section {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 54px;
  align-items: center;
  background: var(--white);
}

.stats-visual {
  position: relative;
  min-height: 520px;
}

.stats-main-img,
.stats-float-img {
  position: absolute;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stats-main-img {
  inset: 0 auto auto 0;
  width: 68%;
  height: 78%;
}

[dir="rtl"] .stats-main-img {
  inset: 0 0 auto auto;
}

.stats-float-img {
  inset: auto 0 0 auto;
  width: 58%;
  height: 48%;
}

[dir="rtl"] .stats-float-img {
  inset: auto auto 0 0;
}

.stats-section h2,
.clients-section h2 {
  color: var(--navy);
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1;
}

.stats-section p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.9;
  font-weight: 700;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 42px;
  margin-top: 34px;
}

.stats-grid strong {
  display: block;
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
}

.stats-grid span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 800;
  font-size: 1.05rem;
}

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

.centered-head {
  margin-inline: auto;
  text-align: center;
}

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

.client-logo-card {
  min-height: 130px;
  display: grid;
  place-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fafafa;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.client-logo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240,75,47,.45);
  box-shadow: 0 12px 30px rgba(15,23,42,.08);
}

.client-logo-card img {
  max-height: 76px;
  object-fit: contain;
}

.client-logo-card strong {
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 900;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .75fr) minmax(0, .75fr) minmax(0, 1fr);
  gap: 34px;
  padding: 76px 6vw 28px;
  color: var(--white);
  background: #202020;
}

.site-footer h3 {
  margin: 0 0 18px;
  color: var(--orange);
  font-size: 1.1rem;
}

.site-footer p {
  color: rgba(255,255,255,.76);
  line-height: 1.9;
  font-weight: 700;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.site-footer li,
.site-footer a {
  color: rgba(255,255,255,.78);
  font-weight: 700;
}

.site-footer a:hover {
  color: var(--white);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.social-row a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-weight: 900;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 26px;
  margin-top: 26px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.7);
  font-weight: 700;
}

.thanks-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--white);
  background: var(--navy);
}

.thanks-box {
  max-width: 720px;
  text-align: center;
}

.thanks-box h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
}

.thanks-box p:not(.eyebrow) {
  color: rgba(255,255,255,.76);
  line-height: 1.9;
  font-weight: 700;
}

.centered-brand {
  justify-content: center;
  margin-bottom: 22px;
}

/* CMS Admin */
.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(23,33,49,.92), rgba(23,33,49,.72)),
    url("../images/mrs-office-factory.jpeg") center/cover;
}

.login-box {
  width: min(420px, calc(100vw - 32px));
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.96);
  box-shadow: 0 30px 90px rgba(0,0,0,.34);
  border: 1px solid rgba(255,255,255,.4);
}

.login-box h1 {
  color: var(--navy);
  font-size: 2rem;
  margin-bottom: 0;
}

.login-brand {
  width: 190px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: var(--radius);
  background: var(--white);
}

.login-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-copy {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 700;
}

.cms-admin {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  background: #eef1f4;
}

.cms-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  background: var(--navy);
  color: var(--white);
}

.cms-sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.cms-sidebar nav a {
  padding: 12px 14px;
  border-radius: var(--radius);
  color: rgba(255,255,255,.72);
  font-weight: 800;
}

.cms-sidebar nav a:hover {
  background: var(--orange);
  color: var(--white);
}

.cms-main {
  padding: 26px;
}

.cms-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.cms-head h1 {
  font-size: 2.2rem;
  color: var(--navy);
  margin: 0;
}

.cms-card {
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
}

.cms-card h2 {
  color: var(--navy);
  font-size: 1.35rem;
}

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

.cms-media-row {
  display: grid;
  grid-template-columns: 160px 1fr auto auto;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
}

.mini-card .cms-media-row {
  grid-template-columns: 140px 1fr auto;
}

.cms-media-row img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: var(--radius);
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inline-check input {
  width: auto;
  min-height: auto;
}

.admin-success,
.admin-alert {
  padding: 12px 14px;
  border-radius: var(--radius);
  font-weight: 800;
}

.admin-success {
  color: #065f46;
  background: #d1fae5;
}

.admin-alert {
  color: #991b1b;
  background: #fee2e2;
}

.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.admin-control-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-control-map article {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 190px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
}

.admin-control-map strong {
  color: var(--navy);
  font-size: 1.1rem;
}

.admin-control-map span {
  color: var(--muted);
  line-height: 1.7;
  font-weight: 700;
}

.admin-control-map a {
  align-self: end;
  color: var(--orange);
  font-weight: 900;
}

.admin-mini-link {
  display: inline-flex;
  margin-inline-start: 10px;
  color: var(--orange);
  font-size: .9rem;
  font-weight: 900;
}

.setting-image-preview {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
}

.setting-image-preview img {
  max-width: 220px;
  max-height: 110px;
  object-fit: contain;
  padding: 8px;
  border-radius: var(--radius);
  background: var(--white);
}

@media (max-width: 980px) {
  .topbar {
    inset: 12px;
    max-width: calc(100vw - 24px);
    grid-template-columns: auto 1fr;
    height: auto;
    padding: 12px;
  }

  .clean-nav .main-nav {
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-block: 8px 2px;
    scrollbar-width: none;
  }

  .clean-nav .main-nav::-webkit-scrollbar {
    display: none;
  }

  [dir="rtl"] .clean-nav .main-nav {
    justify-content: flex-start;
  }

  .top-actions {
    justify-content: flex-end;
  }

  .brand-hero {
    min-height: 82vh;
    padding: 190px 18px 56px;
  }

  .premium-hero {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    height: 420px;
    min-height: 360px;
  }

  .brand-hero h1 {
    font-size: clamp(3rem, 16vw, 6rem);
  }

  .brand-gallery,
  .about-section,
  .quality-band,
  .quote-section,
  .stats-section,
  .site-footer,
  .cms-admin,
  .cms-grid,
  .cms-media-row,
  .mini-card .cms-media-row {
    grid-template-columns: 1fr;
  }

  .admin-control-map {
    grid-template-columns: 1fr;
  }

  .cms-sidebar {
    position: static;
    height: auto;
  }

  .clean-card-grid {
    grid-template-columns: 1fr;
  }

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

  .numbered-services article {
    grid-template-columns: 58px 1fr;
  }

  .numbered-services p {
    grid-column: 2;
  }

  .numbered-services img {
    display: none;
  }

  .stats-visual {
    min-height: 420px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .brand-gallery {
    grid-auto-rows: 260px;
  }

  .gallery-tile:first-child {
    grid-row: span 1;
  }
}

@media (max-width: 620px) {
  .client-logo-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Premium admin login */
body.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 15% 20%, rgba(247,73,45,.26), transparent 28%),
    linear-gradient(135deg, rgba(14,23,36,.96), rgba(31,42,58,.9)),
    url("../images/mrs-office-factory.jpeg") center/cover;
}

.admin-login .login-shell {
  width: min(1120px, calc(100vw - 32px));
  min-height: min(680px, calc(100vh - 48px));
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 28px;
  background: rgba(255,255,255,.08);
  box-shadow: 0 34px 110px rgba(0,0,0,.36);
  backdrop-filter: blur(18px);
}

.admin-login .login-visual {
  position: relative;
  display: grid;
  align-content: end;
  gap: 16px;
  padding: clamp(32px, 5vw, 64px);
  background:
    linear-gradient(160deg, rgba(16,26,40,.28), rgba(16,26,40,.92)),
    url("../images/mrs-headquarters.jpeg") center/cover;
}

.admin-login .login-visual::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 7px;
  height: 100%;
  background: var(--orange);
}

.admin-login .login-mascot {
  position: absolute;
  top: 42px;
  inset-inline-start: 46px;
  width: 86px;
  height: 86px;
  object-fit: contain;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
}

.admin-login .login-visual h1 {
  max-width: 620px;
  margin: 0;
  color: var(--white);
  font-size: clamp(2.8rem, 5vw, 5.8rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.admin-login .login-visual p:not(.eyebrow) {
  max-width: 560px;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 1.05rem;
  line-height: 1.9;
  font-weight: 800;
}

.admin-login .login-box {
  width: 100%;
  max-width: none;
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(30px, 4vw, 56px);
  border: 0;
  border-radius: 0;
  color: var(--navy);
  background: rgba(255,255,255,.97);
  box-shadow: none;
}

.admin-login .login-brand {
  width: min(240px, 64vw);
  height: 84px;
  margin-bottom: 10px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.admin-login .login-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.admin-login .login-box h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.admin-login .login-copy {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 800;
}

.admin-login .login-box label {
  display: grid;
  gap: 8px;
  color: #536176;
  font-size: .95rem;
  font-weight: 900;
}

.admin-login .login-box input {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid #d7dde6;
  border-radius: 14px;
  color: var(--navy);
  background: #f8fafc;
  font: inherit;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.admin-login .login-box input:focus {
  border-color: var(--orange);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(247,73,45,.14);
}

.admin-login .login-box .btn {
  width: 100%;
  min-height: 56px;
  justify-content: center;
  margin-top: 6px;
  border-radius: 14px;
}

@media (max-width: 820px) {
  body.admin-login {
    overflow: auto;
  }

  .admin-login .login-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .admin-login .login-visual {
    min-height: 320px;
  }

  .admin-login .login-mascot {
    width: 70px;
    height: 70px;
  }
}

/* Helpful closing area for inner pages */
.inner-support-section {
  padding: 34px clamp(24px, 6vw, 96px) 76px;
  background:
    linear-gradient(180deg, rgba(245, 246, 248, 0), #f5f6f8 22%),
    #f5f6f8;
}

.inner-support-cta {
  max-width: 1180px;
  margin: 0 auto 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 28px;
  border-radius: 18px;
  background: #172131;
  color: #fff;
  box-shadow: 0 24px 70px rgba(23, 33, 49, .16);
}

.inner-support-cta h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.15;
}

.inner-support-cta p:not(.eyebrow) {
  max-width: 760px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .76);
  font-weight: 800;
  line-height: 1.9;
}

.inner-support-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.inner-support-actions .btn-outline {
  border-color: rgba(255, 255, 255, .32);
  color: #fff;
}

.inner-support-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.inner-support-grid article {
  min-height: 220px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
  border: 1px solid rgba(23, 33, 49, .08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(23, 33, 49, .08);
}

.inner-support-grid span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(240, 75, 47, .1);
  color: var(--orange);
  font-weight: 900;
}

.inner-support-grid h3 {
  margin: 0;
  color: #172131;
  font-size: 1.18rem;
  font-weight: 900;
}

.inner-support-grid p {
  margin: 0;
  color: #657389;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.8;
}

.inner-support-grid a,
.inner-utility-links a {
  color: var(--orange);
  font-weight: 900;
  text-decoration: none;
}

.inner-utility-links {
  max-width: 1180px;
  margin: 18px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.inner-utility-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(23, 33, 49, .08);
  border-radius: 999px;
  background: #fff;
  color: #172131;
}

@media (max-width: 900px) {
  .inner-support-section {
    padding: 18px 16px 76px;
  }

  .inner-support-cta,
  .inner-support-grid {
    grid-template-columns: 1fr;
  }

  .inner-support-cta {
    padding: 22px;
  }

  .inner-support-actions {
    justify-content: stretch;
  }

  .inner-support-actions .btn {
    width: 100%;
  }
}

/* Admin login polish */
body.admin-login {
  padding: clamp(16px, 2vw, 28px);
  overflow: auto;
  font-family: "Cairo", Tahoma, Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 18%, rgba(240, 75, 47, .22), transparent 28%),
    linear-gradient(135deg, rgba(13, 21, 34, .97), rgba(23, 33, 49, .92)),
    url("../images/mrs-office-factory.jpeg") center/cover;
}

.admin-login .login-shell {
  width: min(1040px, calc(100vw - 36px));
  min-height: min(600px, calc(100vh - 42px));
  max-height: calc(100vh - 42px);
  grid-template-columns: 0.88fr 1.12fr;
  border-radius: 22px;
  box-shadow: 0 28px 86px rgba(0, 0, 0, .34);
}

.admin-login .login-box {
  align-content: center;
  gap: 12px;
  padding: clamp(28px, 3.2vw, 44px);
  text-align: center;
}

.admin-login .login-brand {
  width: min(210px, 56vw);
  height: 68px;
  margin: 0 auto 8px;
}

.admin-login .login-box .eyebrow {
  margin: 0;
  font-size: .82rem;
  letter-spacing: .04em;
}

.admin-login .login-box h2 {
  max-width: 420px;
  margin: 0 auto;
  font-size: clamp(2rem, 3.1vw, 2.85rem);
  line-height: 1.18;
  font-weight: 900;
}

.admin-login .login-copy {
  max-width: 420px;
  margin: 0 auto 8px;
  font-size: .95rem;
  line-height: 1.8;
}

.admin-login .login-box label {
  gap: 7px;
  text-align: start;
  font-size: .88rem;
}

.admin-login .login-box input {
  min-height: 48px;
  border-radius: 12px;
  background: #f3f7fd;
  font-size: .98rem;
  font-weight: 800;
  text-align: start;
}

.admin-login .login-box .btn {
  min-height: 50px;
  margin-top: 4px;
  border-radius: 12px;
  font-size: .95rem;
}

.admin-login .login-visual {
  gap: 12px;
  padding: clamp(28px, 4vw, 48px);
  background:
    linear-gradient(160deg, rgba(16, 26, 40, .36), rgba(16, 26, 40, .9)),
    url("../images/mrs-headquarters.jpeg") center/cover;
}

.admin-login .login-mascot {
  top: 34px;
  inset-inline-start: 38px;
  width: 74px;
  height: 74px;
  padding: 10px;
  border-radius: 20px;
}

.admin-login .login-visual .eyebrow {
  margin: 0;
  font-size: .86rem;
  letter-spacing: .03em;
}

.admin-login .login-visual h1 {
  max-width: 560px;
  font-size: clamp(2.45rem, 4.2vw, 4.25rem);
  line-height: 1.14;
}

.admin-login .login-visual p:not(.eyebrow) {
  max-width: 560px;
  font-size: .98rem;
  line-height: 1.85;
}

@media (max-height: 760px) and (min-width: 821px) {
  .admin-login .login-shell {
    min-height: min(540px, calc(100vh - 30px));
    max-height: calc(100vh - 30px);
  }

  .admin-login .login-box {
    gap: 10px;
    padding: 28px 40px;
  }

  .admin-login .login-brand {
    height: 58px;
    margin-bottom: 4px;
  }

  .admin-login .login-box h2 {
    font-size: clamp(1.8rem, 2.8vw, 2.45rem);
  }

  .admin-login .login-visual h1 {
    font-size: clamp(2.2rem, 3.6vw, 3.5rem);
  }
}

@media (max-width: 820px) {
  .admin-login .login-shell {
    width: min(520px, calc(100vw - 24px));
    max-height: none;
    border-radius: 18px;
  }

  .admin-login .login-visual {
    min-height: 240px;
  }

  .admin-login .login-visual h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }
}

/* Hard admin layout guard */
body.cms-admin {
  width: 100%;
  min-height: 100vh;
  display: grid !important;
  grid-template-columns: 286px minmax(0, 1fr) !important;
  align-items: stretch;
  overflow-x: hidden;
  color: var(--ink);
  background: #eef1f4;
}

body.cms-admin .cms-sidebar {
  position: sticky;
  top: 0;
  width: 286px;
  height: 100vh;
  overflow-y: auto;
  padding: 22px;
  background: var(--navy);
  color: var(--white);
}

body.cms-admin .cms-sidebar .admin-logo,
body.cms-admin .cms-sidebar .brand-logo {
  width: 190px !important;
  max-width: 190px !important;
  height: 72px !important;
  min-height: 72px !important;
  flex: 0 0 auto !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px !important;
  border-radius: 14px !important;
  background: var(--white) !important;
}

body.cms-admin .cms-sidebar .admin-logo img,
body.cms-admin .cms-sidebar .brand-logo img {
  display: block !important;
  width: 100% !important;
  max-width: 170px !important;
  height: 52px !important;
  max-height: 52px !important;
  object-fit: contain !important;
  filter: none !important;
}

body.cms-admin .cms-sidebar nav {
  display: grid !important;
  gap: 8px;
  margin-top: 26px;
}

body.cms-admin .cms-sidebar nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(255,255,255,.74);
  font-size: .95rem;
  font-weight: 900;
}

body.cms-admin .cms-sidebar nav a:hover {
  color: var(--white);
  background: var(--orange);
}

body.cms-admin .cms-main {
  min-width: 0;
  width: 100%;
  padding: 26px;
}

body.cms-admin .cms-head {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 20px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(15,23,42,.06);
}

body.cms-admin .cms-head h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: 0;
}

body.cms-admin .cms-card {
  max-width: 100%;
  overflow: hidden;
}

body.cms-admin .cms-sidebar nav a.active {
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 12px 28px rgba(240,75,47,.24);
}

.simple-admin-helper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -4px 0 18px;
  padding: 14px 18px;
  border: 1px solid rgba(240,75,47,.18);
  border-radius: 16px;
  background: #fff7f4;
  color: #172131;
  box-shadow: 0 10px 28px rgba(15,23,42,.05);
}

.simple-admin-helper strong {
  min-width: max-content;
  color: var(--orange);
  font-size: 1.05rem;
  font-weight: 900;
}

.simple-admin-helper span {
  color: #5f6f85;
  font-weight: 900;
  line-height: 1.7;
}

.simple-quick-actions,
.simple-admin-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}

.simple-quick-actions {
  flex-wrap: wrap;
}

.simple-quick-actions a,
.simple-quick-actions button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #172131;
  color: #fff;
  font: inherit;
  font-size: .86rem;
  font-weight: 900;
  cursor: pointer;
}

.simple-quick-actions a:first-child {
  background: var(--orange);
}

.simple-quick-actions button[aria-pressed="true"] {
  background: var(--orange);
}

.simple-admin-search {
  padding: 12px;
  border: 1px solid rgba(23,33,49,.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15,23,42,.045);
}

.simple-admin-search input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(23,33,49,.1);
  border-radius: 12px;
  padding: 0 14px;
  font: inherit;
  font-weight: 900;
  outline: none;
}

.simple-admin-search input:focus {
  border-color: rgba(240,75,47,.55);
  box-shadow: 0 0 0 4px rgba(240,75,47,.1);
}

.simple-admin-search span {
  min-width: max-content;
  color: var(--orange);
  font-weight: 900;
}

.admin-advanced-box {
  grid-column: 1 / -1;
  margin: 12px 0;
  padding: 0;
  border: 1px solid rgba(23,33,49,.08);
  border-radius: 14px;
  background: #f7f9fc;
}

.admin-advanced-box summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: #172131;
  font-weight: 900;
  cursor: pointer;
}

.admin-advanced-box[open] {
  padding: 0 14px 14px;
}

.admin-advanced-box[open] summary {
  margin: 0 -14px 12px;
  border-bottom: 1px solid rgba(23,33,49,.08);
}

.admin-advanced-box label {
  margin-bottom: 10px;
}

.simple-reorder-card {
  position: relative;
  border: 1px solid rgba(23,33,49,.08);
}

.simple-reorder-card.has-unsaved-change {
  border-color: rgba(240,75,47,.38);
  box-shadow: 0 0 0 4px rgba(240,75,47,.08);
}

.simple-reorder-card.has-unsaved-change::after {
  content: "لم يتم الحفظ";
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 5;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff2ed;
  color: var(--orange);
  font-size: .75rem;
  font-weight: 900;
}

.simple-card-tools,
.simple-row-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -4px 0 16px;
  padding: 10px;
  border-radius: 14px;
  background: #172131;
  color: #fff;
}

.simple-card-tools strong,
.simple-row-tools strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .95rem;
  font-weight: 900;
}

.simple-card-tools div,
.simple-row-tools div {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.simple-card-tools button,
.simple-row-tools button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font: inherit;
  font-size: .78rem;
  font-weight: 900;
  cursor: pointer;
}

.simple-card-tools [data-admin-drag],
.simple-row-tools [data-admin-nav-drag] {
  background: var(--orange);
  cursor: grab;
}

.simple-card-tools [data-admin-drag]:active,
.simple-row-tools [data-admin-nav-drag]:active {
  cursor: grabbing;
}

.simple-card-tools button:hover,
.simple-row-tools button:hover {
  background: var(--orange);
}

.simple-nav-row {
  padding: 10px;
  border: 1px solid rgba(23,33,49,.08);
  border-radius: 14px;
  background: #fff;
}

.simple-nav-row + .simple-nav-row {
  margin-top: 10px;
}

.simple-reorder-card.is-dragging,
.simple-nav-row.is-dragging {
  opacity: .62;
  box-shadow: 0 22px 60px rgba(240,75,47,.18);
}

.admin-simple-toast {
  position: fixed;
  z-index: 99999;
  left: 50%;
  bottom: 22px;
  min-width: 220px;
  max-width: calc(100vw - 28px);
  padding: 13px 18px;
  border-radius: 999px;
  background: #172131;
  color: #fff;
  text-align: center;
  font-weight: 900;
  box-shadow: 0 18px 50px rgba(15,23,42,.26);
  transform: translateX(-50%);
}

.admin-simple-toast.is-error {
  background: #b42318;
}

body.cms-admin .cms-grid > label,
body.cms-admin .cms-card label {
  font-weight: 900;
}

body.cms-admin .cms-card input,
body.cms-admin .cms-card textarea,
body.cms-admin .cms-card select {
  border-radius: 12px;
}

body.cms-admin .cms-card button[disabled] {
  opacity: .62;
  cursor: wait;
}

body.cms-admin .cms-card label[data-file-count]::after {
  content: attr(data-file-count);
  display: block;
  margin-top: 6px;
  color: var(--orange);
  font-size: .8rem;
  font-weight: 900;
}

@media (max-width: 920px) {
  body.cms-admin {
    display: block !important;
  }

  body.cms-admin .cms-sidebar {
    position: static;
    width: 100%;
    height: auto;
  }

  body.cms-admin .cms-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.cms-admin .cms-main {
    padding: 16px;
  }

  .simple-admin-helper,
  .simple-card-tools,
  .simple-row-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .simple-card-tools div,
  .simple-row-tools div {
    justify-content: stretch;
  }

  .simple-card-tools button,
  .simple-row-tools button {
    flex: 1;
  }

  .simple-quick-actions,
  .simple-admin-search {
    align-items: stretch;
    flex-direction: column;
  }

  .simple-quick-actions a,
  .simple-quick-actions button {
    width: 100%;
  }
}

/* Visual editing layer for logged-in admins */
.visual-edit-toolbar {
  position: fixed;
  z-index: 9998;
  left: 50%;
  bottom: 18px;
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(23,33,49,.92);
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.visual-edit-toolbar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--white);
  font-size: .88rem;
  font-weight: 900;
  white-space: nowrap;
}

.visual-edit-toolbar a:first-child {
  background: var(--orange);
}

.visual-edit-mode .visual-edit-target {
  position: relative;
  outline: 2px dashed rgba(240,75,47,.58);
  outline-offset: 4px;
  cursor: pointer;
}

.visual-edit-mode .visual-edit-target:hover {
  outline-color: var(--orange);
  box-shadow: 0 0 0 6px rgba(240,75,47,.08);
}

.visual-edit-badge {
  position: absolute;
  z-index: 45;
  top: 10px;
  inset-inline-start: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--white) !important;
  background: var(--orange);
  border: 0;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  font-size: .82rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
}

.visual-add-badge {
  position: absolute;
  z-index: 46;
  top: 10px;
  inset-inline-start: 160px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #172131;
  color: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .22);
  font-family: inherit;
  font-size: .84rem;
  font-weight: 900;
  cursor: pointer;
}

.visual-section-tools {
  position: absolute;
  z-index: 47;
  top: 52px;
  inset-inline-start: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(23, 33, 49, .94);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 14px 34px rgba(15,23,42,.22);
  backdrop-filter: blur(10px);
}

.visual-section-tools button {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-family: inherit;
  font-size: .76rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.visual-section-tools button:hover {
  background: var(--orange);
}

.visual-section-tools [data-section-drag] {
  cursor: grab;
  background: var(--orange);
}

.visual-section-tools [data-section-drag]:active {
  cursor: grabbing;
}

.visual-edit-mode .visual-edit-target.is-dragging {
  opacity: .58;
  outline-color: var(--orange);
  box-shadow: 0 18px 50px rgba(240,75,47,.2);
}

.visual-edit-mode .visual-edit-target::before {
  content: "اضغط هنا للتعديل";
  position: absolute;
  z-index: 44;
  top: -16px;
  inset-inline-end: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(23, 33, 49, .92);
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

.visual-edit-mode .visual-edit-target:hover::before {
  opacity: 1;
  transform: translateY(0);
}

.visual-edit-mode .main-nav .visual-edit-target::before,
.visual-edit-mode .brand-logo.visual-edit-target::before {
  display: none;
}

.visual-edit-mode .visual-edit-target a:not(.visual-edit-badge) {
  pointer-events: none;
}

.visual-edit-mode .main-nav .visual-edit-badge,
.visual-edit-mode .brand-logo .visual-edit-badge {
  top: calc(100% + 8px);
}

.visual-edit-mode .site-footer .visual-edit-badge {
  top: -14px;
}

.visual-edit-mode .quote-form {
  pointer-events: none;
}

.visual-edit-mode .quote-form::after {
  content: "";
  position: absolute;
  inset: 0;
}

@media (max-width: 720px) {
  .visual-edit-toolbar {
    right: 10px;
    left: 10px;
    bottom: 10px;
    justify-content: center;
    transform: none;
    overflow-x: auto;
  }

  .visual-edit-toolbar a {
    font-size: .78rem;
    padding: 0 10px;
  }

  .visual-section-tools {
    top: 50px;
    max-width: calc(100vw - 44px);
    overflow-x: auto;
  }

  .visual-section-tools button {
    padding: 0 9px;
    font-size: .72rem;
  }
}

/* Public site polish pass */
.site-shell {
  overflow-x: hidden;
}

.clean-card,
.numbered-services article,
.gallery-tile,
.client-logo-card,
.stats-grid article {
  transform: translateY(18px);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.clean-card:hover,
.numbered-services article:hover,
.gallery-tile:hover,
.client-logo-card:hover,
.stats-grid article:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 70px rgba(15,23,42,.14);
}

.stats-grid article {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  border: 1px solid rgba(23,33,49,.08);
}

.stats-grid article::after {
  content: "";
  position: absolute;
  inset-inline-end: -40px;
  bottom: -48px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(240,75,47,.1);
}

.stats-grid strong {
  position: relative;
  z-index: 1;
  color: var(--orange);
}

.stats-grid span {
  position: relative;
  z-index: 1;
}

.client-logo-card {
  min-height: 118px;
  display: grid;
  place-items: center;
  padding: 20px;
}

.client-logo-card img {
  width: 100%;
  max-width: 180px;
  max-height: 74px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .72;
  transition: filter .25s ease, opacity .25s ease, transform .25s ease;
}

.client-logo-card:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.04);
}

.site-footer {
  overflow: hidden;
}

.section h2,
.about-section h2,
.quality-band h2,
.stats-section h2,
.clients-section h2,
.quote-section h2 {
  margin-bottom: 26px !important;
  line-height: 1.16 !important;
}

.section .eyebrow + h2 {
  margin-top: 10px !important;
}

.about-section p:not(.eyebrow),
.quality-band p:not(.eyebrow),
.stats-section p:not(.eyebrow),
.clients-section .section-head p:not(.eyebrow),
.quote-section p:not(.eyebrow) {
  margin-top: 0 !important;
  clear: both;
}

.clients-section {
  padding-bottom: 116px !important;
}

.client-trust-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: min(1180px, 100%);
  margin: 0 auto 34px;
}

.client-trust-stats article {
  min-height: 132px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(23,33,49,.08);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(15,23,42,.07);
  text-align: center;
}

.client-trust-stats strong {
  color: var(--orange);
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1;
  font-weight: 900;
}

.client-trust-stats span {
  color: var(--navy);
  font-weight: 900;
}

.client-marquee {
  width: min(1280px, 100%);
  margin: 0 auto;
  overflow: hidden;
  padding: 6px 0 18px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.client-marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: clientMarquee 28s linear infinite;
}

[dir="rtl"] .client-marquee-track {
  animation-direction: reverse;
}

.client-marquee:hover .client-marquee-track {
  animation-play-state: paused;
}

.client-marquee .client-logo-card {
  width: 260px;
  flex: 0 0 260px;
}

@keyframes clientMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.clients-section + .quote-section,
.clients-section + #contact,
.quote-section {
  margin-top: 44px !important;
}

/* Section contrast audit: every text color follows its actual background. */
.manifesto-section,
.visual-gallery-section,
.clean-cards-section,
.about-section,
.quality-band,
.stats-section,
.clients-section {
  color: var(--navy);
}

.manifesto-section {
  background: #f4f6f8 !important;
  color: var(--navy) !important;
}

.manifesto-section h2,
.visual-gallery-section h2,
.clean-cards-section h2,
.about-section h2,
.quality-band h2,
.stats-section h2,
.clients-section h2,
.compact-head h2,
.section-head h2,
.centered-head h2 {
  color: var(--navy) !important;
  text-shadow: none !important;
}

.manifesto-section p:not(.eyebrow),
.visual-gallery-section .section-head p:not(.eyebrow),
.clean-cards-section .section-head p:not(.eyebrow),
.about-section p:not(.eyebrow),
.quality-band p:not(.eyebrow),
.stats-section p:not(.eyebrow),
.clients-section .section-head p:not(.eyebrow),
.compact-head p:not(.eyebrow),
.centered-head p:not(.eyebrow) {
  color: #617086 !important;
  opacity: 1 !important;
  text-shadow: none !important;
  line-height: 1.9;
}

.manifesto-section p:not(.eyebrow) {
  max-width: 920px;
  margin: 18px auto 0 !important;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}

.brand-hero h1,
.brand-hero p,
.brand-hero .eyebrow,
.gallery-tile h3,
.gallery-tile p {
  color: var(--white) !important;
}

.site-footer {
  color: var(--white);
}

.site-footer h2,
.site-footer h3 {
  color: var(--white) !important;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: rgba(255,255,255,.78) !important;
}

.site-footer .eyebrow {
  color: var(--orange) !important;
}

.quote-section {
  background: #f5f6f8 !important;
  color: var(--navy) !important;
}

.quote-section h2 {
  color: var(--navy) !important;
  text-shadow: none !important;
}

.quote-section p:not(.eyebrow) {
  color: #617086 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

.quote-section .eyebrow,
.quote-form label {
  color: #526071 !important;
}

/* Footer alignment and editable social links */
.site-footer {
  grid-template-columns: minmax(280px, 1.25fr) repeat(3, minmax(180px, .85fr)) !important;
  align-items: start !important;
  gap: clamp(24px, 3vw, 48px) !important;
  padding-top: 82px !important;
  background: var(--navy) !important;
}

.footer-about {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-about p {
  max-width: 560px;
  margin: 18px auto 0 !important;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.95 !important;
}

.site-footer .footer-logo {
  width: min(220px, 100%) !important;
  max-width: 220px !important;
  height: 74px !important;
  flex-basis: 220px !important;
  min-height: 72px;
  justify-content: center;
  border-radius: 10px;
}

.site-footer .footer-logo img {
  width: 100% !important;
  height: 58px !important;
  max-width: 200px !important;
  max-height: 58px !important;
  object-fit: contain;
}

.site-footer > div:not(.footer-about):not(.footer-bottom) {
  text-align: start;
}

.site-footer h3 {
  color: var(--orange) !important;
  margin-bottom: 18px !important;
}

.site-footer ul {
  gap: 13px !important;
}

.social-row {
  justify-content: center;
  gap: 12px !important;
  margin-top: 28px !important;
}

.social-row a {
  width: 48px !important;
  min-width: 48px;
  height: 48px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50% !important;
  color: var(--white) !important;
  text-decoration: none;
  line-height: 1;
}

.social-row a[data-social="whatsapp"] {
  background: #25d366 !important;
}

.social-row a[data-social="youtube"] {
  background: #ff0000 !important;
}

.social-row a[data-social="facebook"] {
  background: #1877f2 !important;
}

.social-row a[data-social="linkedin"] {
  background: #0a66c2 !important;
}

.social-row a[data-social="instagram"] {
  background: #e4405f !important;
}

.social-row a[data-social="x"] {
  background: #111827 !important;
}

.social-row a[data-social="link"] {
  background: var(--orange) !important;
}

.social-row a .social-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  display: grid;
  place-items: center;
  color: var(--white);
}

.social-row a .social-icon svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: currentColor;
}

.social-row a small {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.social-row a:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(240,75,47,.28);
}

@media (max-width: 980px) {
  .site-footer {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  .site-footer > div:not(.footer-about):not(.footer-bottom) {
    text-align: center;
  }

  .site-footer ul {
    justify-items: center;
  }
}

@media (max-width: 520px) {
  .social-row a small {
    display: none;
  }
}

.inline-editor[hidden] {
  display: none !important;
}

.inline-editor {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
}

.inline-editor-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 13, 23, .66);
  backdrop-filter: blur(8px);
}

.inline-editor-panel {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100vw - 28px));
  max-height: calc(100vh - 44px);
  overflow: auto;
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 34px 120px rgba(0,0,0,.34);
}

.inline-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.inline-editor-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
}

.inline-editor-help {
  margin: -6px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(240, 75, 47, .18);
  border-radius: 12px;
  background: rgba(240, 75, 47, .08);
  color: #172131;
  font-weight: 900;
  line-height: 1.7;
}

.inline-editor-head button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--navy);
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
}

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

.inline-editor-grid [hidden] {
  display: none !important;
}

.inline-editor-grid label {
  display: grid;
  gap: 8px;
  color: #526071;
  font-size: .92rem;
  font-weight: 900;
}

.inline-editor-grid label small {
  color: #7a8798;
  font-size: .78rem;
  font-weight: 800;
}

.inline-editor-grid input,
.inline-editor-grid textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border: 1px solid #d7dde7;
  border-radius: 12px;
  color: var(--navy);
  background: #f8fafc;
  font: inherit;
}

.inline-editor-grid textarea {
  resize: vertical;
}

.inline-editor-grid .inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
}

.inline-editor-grid .inline-check input {
  width: auto;
  min-height: auto;
}

.inline-editor-message {
  min-height: 24px;
  margin: 0;
  color: #065f46;
  font-weight: 900;
}

.inline-editor-message.is-error {
  color: #991b1b;
}

.inline-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.inline-editor-actions .btn {
  min-width: 150px;
  justify-content: center;
}

@media (max-width: 760px) {
  .inline-editor-grid {
    grid-template-columns: 1fr;
  }

  .visual-add-badge {
    top: 54px;
    inset-inline-start: 10px;
  }
}

/* Mobile-first correction: every page must work on phone and desktop together */
@media (max-width: 820px) {
  html,
  body,
  .site-shell {
    width: 100%;
    min-width: 0;
    overflow-x: hidden !important;
    background: #f5f6f8;
  }

  .topbar.clean-nav,
  .topbar {
    position: relative !important;
    inset: auto !important;
    width: calc(100% - 28px) !important;
    max-width: none !important;
    min-height: 92px !important;
    height: auto !important;
    margin: 14px auto 0 !important;
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 12px !important;
    padding: 14px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: #172131 !important;
  }

  .topbar .brand-logo,
  .brand-logo {
    grid-column: 1 / 2;
    grid-row: 1;
    justify-self: start;
    width: 180px !important;
    max-width: min(180px, 58vw) !important;
    height: 58px !important;
    flex-basis: auto !important;
  }

  [dir="rtl"] .topbar .brand-logo,
  [dir="rtl"] .brand-logo {
    justify-self: end;
  }

  .topbar .brand-logo img,
  .brand-logo img {
    width: 100% !important;
    height: 100% !important;
    max-height: 58px !important;
    object-fit: contain !important;
  }

  .top-actions {
    grid-column: 2 / 3;
    grid-row: 1;
    justify-self: end;
    gap: 8px;
  }

  [dir="rtl"] .top-actions {
    justify-self: start;
  }

  .top-actions .btn-primary {
    display: none !important;
  }

  .lang-switch {
    min-width: 52px;
    min-height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 12px;
    color: #fff;
    font-weight: 900;
  }

  .main-nav {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100%;
    display: flex !important;
    justify-content: flex-start !important;
    gap: 18px !important;
    overflow-x: auto !important;
    padding: 10px 2px 2px !important;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    flex: 0 0 auto;
    font-size: .95rem;
    color: rgba(255,255,255,.82) !important;
  }

  #home {
    display: block;
    width: 100%;
  }

  .brand-hero,
  .premium-hero {
    position: relative !important;
    width: 100% !important;
    min-height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 22px !important;
    padding: 28px 18px 44px !important;
    margin-top: 0 !important;
    overflow: hidden !important;
    background: #172131 !important;
  }

  .hero-bg,
  .hero-overlay {
    position: absolute !important;
    inset: 0 !important;
  }

  .hero-bg {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: .42 !important;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(23,33,49,.82), rgba(23,33,49,.96)) !important;
  }

  .hero-showcase {
    order: 1;
    width: 100% !important;
    min-height: 310px !important;
    height: 310px !important;
    border-radius: 18px !important;
  }

  .brand-hero-content {
    order: 2;
    width: 100%;
    text-align: start;
  }

  .brand-hero h1 {
    font-size: clamp(2.5rem, 16vw, 4.8rem) !important;
    line-height: 1.04 !important;
  }

  .brand-hero-content > p:not(.eyebrow) {
    font-size: 1rem !important;
    line-height: 1.8 !important;
  }

  .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .scroll-cue {
    display: none !important;
  }

  .section {
    padding: 56px 18px !important;
  }

  .section h2 {
    font-size: clamp(2rem, 11vw, 3.4rem) !important;
    margin-bottom: 20px !important;
    line-height: 1.18 !important;
  }

  .about-section,
  .quality-band,
  .stats-section,
  .quote-section,
  .site-footer {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .clean-card-grid,
  .numbered-services,
  .stats-grid,
  .client-logo-grid,
  .brand-gallery {
    grid-template-columns: 1fr !important;
  }

  .quote-form {
    grid-template-columns: 1fr !important;
    padding: 18px !important;
  }

  .site-footer {
    padding-bottom: 96px !important;
  }

  .clients-section {
    padding-bottom: 76px !important;
  }

  .client-trust-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 26px;
  }

  .client-trust-stats article {
    min-height: 112px;
    padding: 14px 10px;
  }

  .client-marquee .client-logo-card {
    width: 210px;
    flex-basis: 210px;
  }

  .client-marquee-track {
    animation-duration: 20s;
  }

  .clients-section + .quote-section,
  .clients-section + #contact,
  .quote-section {
    margin-top: 32px !important;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 380px) {
  .topbar.clean-nav,
  .topbar {
    width: calc(100% - 18px) !important;
    margin-top: 9px !important;
    padding: 12px !important;
  }

  .topbar .brand-logo,
  .brand-logo {
    width: 150px !important;
  }

  .hero-showcase {
    min-height: 270px !important;
    height: 270px !important;
  }
}

/* Services layout correction */
.clean-cards-section .numbered-services {
  width: min(1220px, 100%);
  margin: 0 auto;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
  border: 0 !important;
}

.clean-cards-section .numbered-services article {
  position: relative !important;
  min-height: 390px !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: 210px auto !important;
  gap: 0 !important;
  align-items: start !important;
  overflow: hidden !important;
  padding: 0 !important;
  border: 1px solid rgba(23,33,49,.08) !important;
  border-radius: 14px !important;
  background: var(--white) !important;
  box-shadow: 0 18px 50px rgba(15,23,42,.07);
}

.clean-cards-section .numbered-services article > span {
  position: absolute;
  z-index: 2;
  inset-block-start: 14px;
  inset-inline-start: 14px;
  min-width: 46px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white) !important;
  background: var(--orange);
  font-size: 1rem !important;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(240,75,47,.26);
}

.clean-cards-section .numbered-services img {
  position: static !important;
  width: 100% !important;
  height: 210px !important;
  display: block !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
  box-shadow: none !important;
}

[dir="rtl"] .clean-cards-section .numbered-services img {
  position: static !important;
  transform: none !important;
}

.clean-cards-section .numbered-services article:hover img {
  transform: scale(1.04) !important;
}

.clean-cards-section .numbered-services article > div {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
}

.clean-cards-section .numbered-services h3 {
  margin: 0 !important;
  color: var(--navy) !important;
  font-size: clamp(1.55rem, 2.4vw, 2.25rem) !important;
  line-height: 1.15 !important;
}

.clean-cards-section .numbered-services p {
  margin: 0 !important;
  color: #617086 !important;
  font-size: 1.02rem;
  line-height: 1.85 !important;
}

@media (max-width: 980px) {
  .clean-cards-section .numbered-services {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .clean-cards-section .numbered-services {
    grid-template-columns: 1fr !important;
  }

  .clean-cards-section .numbered-services article {
    min-height: auto !important;
  }
}

/* Product detail pages */
.product-card-link {
  display: grid;
}

.product-card-cta {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 16px;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--white) !important;
  background: var(--navy);
  font-size: .92rem;
  font-weight: 900;
}

.product-card-cta:hover {
  background: var(--orange);
}

.product-page {
  background: #f5f6f8;
}

.product-page .topbar {
  position: relative !important;
  inset: auto !important;
  width: calc(100% - 60px);
  max-width: none;
  margin: 30px auto 0;
}

.product-hero {
  min-height: calc(100svh - 132px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: 70px clamp(24px, 6vw, 110px) 72px;
}

.product-hero-copy {
  min-width: 0;
}

.product-back {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 18px;
  padding: 6px 12px;
  border: 1px solid rgba(23,33,49,.12);
  border-radius: 999px;
  color: var(--navy);
  background: var(--white);
  font-size: .9rem;
  font-weight: 900;
}

.product-hero h1 {
  max-width: 720px;
  color: var(--navy);
  font-size: clamp(3.3rem, 7vw, 7.5rem);
  line-height: .96;
}

.product-hero p:not(.eyebrow) {
  max-width: 680px;
  color: #617086;
  font-size: 1.16rem;
  line-height: 1.9;
  font-weight: 800;
}

.product-page .btn-outline {
  border-color: rgba(23,33,49,.24);
  color: var(--navy);
  background: var(--white);
}

.product-hero-media {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: var(--navy);
  box-shadow: 0 30px 90px rgba(15,23,42,.18);
}

.product-hero-media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.product-detail-section {
  background: var(--white);
}

.product-muted-section {
  background: #f5f6f8;
}

.product-info-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-info-grid article,
.product-info-list article {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid rgba(23,33,49,.08);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 14px 38px rgba(15,23,42,.06);
}

.product-info-grid strong,
.product-info-list strong {
  color: var(--navy);
  font-size: 1.12rem;
  font-weight: 900;
}

.product-info-grid span,
.product-info-list span {
  color: #617086;
  line-height: 1.75;
  font-weight: 800;
}

.product-two-col {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.product-two-col h2 {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.12;
}

.product-info-list {
  display: grid;
  gap: 12px;
}

.product-quote-section {
  margin-top: 0 !important;
}

@media (max-width: 980px) {
  .product-page .topbar {
    width: calc(100% - 28px);
  }

  .product-hero,
  .product-two-col {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .product-hero {
    padding: 34px 18px 52px;
  }

  .product-info-grid {
    grid-template-columns: 1fr;
  }
}

.products-index-hero {
  padding: 96px 24px 42px;
  text-align: center;
}

.products-index-hero h1 {
  max-width: 900px;
  margin-inline: auto;
  color: var(--navy);
  font-size: clamp(3.2rem, 8vw, 7rem);
  line-height: 1;
}

.products-index-hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 0 auto;
  color: #617086;
  font-size: 1.12rem;
  line-height: 1.9;
  font-weight: 800;
}

.products-index-list {
  padding-top: 42px !important;
}

.empty-products-state {
  width: min(780px, 100%);
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: clamp(28px, 6vw, 58px);
  border: 1px dashed rgba(23,33,49,.2);
  border-radius: 18px;
  background: var(--white);
  text-align: center;
}

.empty-products-state h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.15;
}

.empty-products-state p:not(.eyebrow) {
  max-width: 560px;
  margin: 0;
  color: #617086;
  line-height: 1.9;
  font-weight: 800;
}

/* Industrial premium experience pass */
.topbar.clean-nav {
  border: 1px solid rgba(255,255,255,.10) !important;
  background: rgba(23,33,49,.96) !important;
  box-shadow: 0 22px 70px rgba(9,14,25,.16) !important;
}

.brand-hero.premium-hero {
  min-height: 100svh !important;
  grid-template-columns: minmax(0, .9fr) minmax(360px, .82fr) !important;
  gap: clamp(30px, 5vw, 70px) !important;
  padding: 136px clamp(24px, 6vw, 110px) 76px !important;
  background: #111a29 !important;
}

.brand-hero.premium-hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(0deg, rgba(17,26,41,.92), transparent);
  pointer-events: none;
}

.premium-hero .hero-overlay {
  background:
    linear-gradient(90deg, rgba(9,14,25,.96), rgba(9,14,25,.65) 44%, rgba(9,14,25,.88)),
    linear-gradient(0deg, rgba(9,14,25,.92), rgba(9,14,25,.08) 46%) !important;
}

.premium-hero .brand-hero-content {
  width: min(820px, 100%) !important;
}

.premium-hero .brand-hero h1,
.premium-hero h1,
.brand-hero h1 {
  max-width: 820px;
  font-size: clamp(3.6rem, 8.2vw, 8.8rem) !important;
  line-height: .9 !important;
  letter-spacing: 0 !important;
}

.premium-hero .brand-hero-content > p:not(.eyebrow) {
  max-width: 680px !important;
  color: rgba(255,255,255,.80) !important;
  font-size: clamp(1.02rem, 1.35vw, 1.28rem) !important;
}

.premium-hero .hero-showcase {
  min-height: clamp(440px, 62vh, 660px) !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  box-shadow: 0 34px 100px rgba(0,0,0,.38) !important;
}

.premium-hero .hero-slide div {
  inset: auto 18px 18px !important;
  border-radius: 12px !important;
  background: rgba(17,26,41,.84) !important;
  backdrop-filter: blur(10px);
}

.trust-rail {
  position: relative;
  z-index: 5;
  width: min(1180px, calc(100% - 36px));
  margin: -42px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(23,33,49,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 24px 80px rgba(15,23,42,.12);
}

.trust-rail article {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 22px;
  border-inline-start: 1px solid rgba(23,33,49,.08);
  text-align: center;
}

.trust-rail article:first-child {
  border-inline-start: 0;
}

.trust-rail strong {
  color: var(--orange);
  font-size: clamp(2rem, 3.4vw, 3.8rem);
  line-height: 1;
  font-weight: 900;
}

.trust-rail span {
  color: var(--navy);
  font-weight: 900;
}

.clean-card,
.clean-cards-section .numbered-services article,
.product-info-grid article,
.product-info-list article,
.empty-products-state {
  border-color: rgba(23,33,49,.08) !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 58px rgba(15,23,42,.075) !important;
}

.clean-card img,
.clean-cards-section .numbered-services img,
.product-hero-media img {
  filter: saturate(1.03) contrast(1.02);
}

.about-section,
.quality-band,
.stats-section {
  gap: clamp(28px, 5vw, 70px) !important;
}

.quality-band {
  background: #111a29 !important;
  color: var(--white) !important;
}

.quality-band h2,
.quality-band p:not(.eyebrow) {
  color: var(--white) !important;
}

.quality-band p:not(.eyebrow) {
  color: rgba(255,255,255,.74) !important;
}

.quality-band .eyebrow {
  color: var(--orange) !important;
}

.before-pricing-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.before-pricing-list span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255,255,255,.08);
  font-weight: 900;
}

.stats-section {
  background: #f4f6f8 !important;
}

.quote-section {
  border-top: 1px solid rgba(23,33,49,.06);
}

.mobile-quick-cta {
  position: fixed;
  z-index: 9997;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  background: rgba(23,33,49,.94);
  box-shadow: 0 22px 60px rgba(0,0,0,.24);
  backdrop-filter: blur(14px);
}

.mobile-quick-cta a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
  font-weight: 900;
}

.mobile-quick-cta a:first-child {
  background: var(--orange);
}

.mobile-quick-cta a:last-child {
  background: rgba(255,255,255,.10);
}

@media (max-width: 820px) {
  .brand-hero.premium-hero {
    padding: 28px 18px 76px !important;
  }

  .premium-hero .hero-showcase {
    min-height: 300px !important;
    height: 300px !important;
  }

  .trust-rail {
    width: calc(100% - 28px);
    margin: -18px auto 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-rail article {
    min-height: 104px;
    padding: 16px 10px;
  }

  .mobile-quick-cta {
    display: grid;
  }

  body {
    padding-bottom: 74px;
  }
}

/* Locations / warehouses */
.locations-section {
  background:
    linear-gradient(180deg, #fff 0%, #f4f6f8 100%);
}

.locations-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.location-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(230px, .9fr) minmax(0, 1fr);
  min-height: 300px;
  border: 1px solid rgba(23,33,49,.08);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 20px 64px rgba(15,23,42,.08);
}

.location-card figure {
  position: relative;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--navy);
}

.location-card figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17,26,41,.38), transparent 54%);
}

.location-card img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  transition: transform .45s ease, filter .45s ease;
}

.location-card:hover img {
  transform: scale(1.05);
  filter: saturate(1.08) contrast(1.03);
}

.location-card figure span {
  position: absolute;
  z-index: 2;
  inset-block-start: 16px;
  inset-inline-start: 16px;
  min-width: 48px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--orange);
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(240,75,47,.28);
}

.location-card > div {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: clamp(22px, 3vw, 34px);
}

.location-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.12;
  font-weight: 900;
}

.location-card p:not(.eyebrow) {
  margin: 0;
  color: #617086;
  font-weight: 800;
  line-height: 1.85;
}

.location-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.location-meta-line span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(23,33,49,.08);
  border-radius: 999px;
  color: #526071;
  background: #f7f8fa;
  font-size: .86rem;
  font-weight: 900;
}

.locations-more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.locations-directory {
  background: #f4f6f8;
  padding-top: 32px !important;
}

.locations-tools {
  width: min(1180px, 100%);
  margin: 0 auto 20px;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(23,33,49,.08);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 18px 56px rgba(15,23,42,.06);
}

.locations-search {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 900;
}

.locations-search input {
  min-height: 54px;
  border-radius: 12px;
  background: #f8fafc;
}

.locations-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.locations-filter-row button {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid rgba(23,33,49,.10);
  border-radius: 999px;
  color: var(--navy);
  background: #f8fafc;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.locations-filter-row button.is-active {
  color: var(--white);
  border-color: var(--orange);
  background: var(--orange);
}

.locations-directory-layout {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, .72fr);
  gap: 18px;
  align-items: start;
}

.locations-list {
  display: grid;
  gap: 12px;
}

.location-list-card {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(23,33,49,.08);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(15,23,42,.055);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.location-list-card:hover,
.location-list-card.is-selected {
  transform: translateY(-2px);
  border-color: rgba(240,75,47,.42);
  box-shadow: 0 18px 52px rgba(15,23,42,.09);
}

.location-list-card img {
  width: 100%;
  height: 132px;
  object-fit: cover;
  border-radius: 12px;
}

.location-list-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.18;
}

.location-list-card p:not(.eyebrow) {
  margin: 0;
  color: #617086;
  line-height: 1.7;
  font-weight: 800;
}

.location-list-card a {
  width: fit-content;
  margin-top: 10px;
  display: inline-flex;
  color: var(--orange);
  font-weight: 900;
}

.locations-map-panel {
  position: sticky;
  top: 112px;
  overflow: hidden;
  border: 1px solid rgba(23,33,49,.08);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 20px 64px rgba(15,23,42,.08);
}

.locations-map-preview {
  min-height: 360px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--white);
}

.locations-map-preview iframe {
  width: 100%;
  height: 420px;
  border: 0;
}

.locations-map-preview > div {
  display: grid;
  gap: 8px;
  padding: 28px;
  text-align: center;
}

.locations-map-preview span {
  color: rgba(255,255,255,.72);
  font-weight: 800;
}

.locations-map-copy {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.locations-map-copy h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  line-height: 1.12;
}

.locations-map-copy p:not(.eyebrow) {
  color: #617086;
  line-height: 1.8;
  font-weight: 800;
}

.locations-empty {
  display: grid;
  gap: 8px;
  padding: 28px;
  border: 1px dashed rgba(23,33,49,.18);
  border-radius: 16px;
  background: var(--white);
  text-align: center;
}

@media (max-width: 1080px) {
  .locations-grid {
    grid-template-columns: 1fr;
  }

  .locations-directory-layout {
    grid-template-columns: 1fr;
  }

  .locations-map-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  .location-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .location-card img {
    min-height: 220px;
    height: 220px;
  }

  .location-list-card {
    grid-template-columns: 1fr;
  }

  .location-list-card img {
    height: 190px;
  }

  .locations-map-preview,
  .locations-map-preview iframe {
    min-height: 280px;
    height: 280px;
  }
}

/* MRS mockup direction pass */
.premium-hero .brand-hero-content {
  display: grid;
  gap: 22px;
}

.hero-quote-strip {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.hero-quote-strip a {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  color: var(--white);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
}

.hero-quote-strip strong {
  color: var(--orange);
  font-size: 1.18rem;
  line-height: 1;
  font-weight: 900;
}

.hero-quote-strip span {
  color: rgba(255,255,255,.86);
  font-size: .94rem;
  font-weight: 900;
}

.clean-cards-section {
  position: relative;
  background:
    linear-gradient(180deg, #f7f8fa 0%, #fff 42%, #f3f5f7 100%) !important;
}

.clean-cards-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: linear-gradient(90deg, var(--orange) 0 18%, var(--navy) 18% 30%, transparent 30% 100%);
}

.clean-cards-section .section-head {
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(260px, .42fr);
  gap: 24px;
  align-items: end;
  margin-inline: auto;
  text-align: start;
}

.clean-cards-section .section-head::after {
  content: "RFQ READY";
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  padding: 10px 18px;
  border: 1px solid rgba(23,33,49,.10);
  border-radius: 999px;
  color: var(--navy);
  background: var(--white);
  box-shadow: 0 14px 36px rgba(15,23,42,.07);
  font-weight: 900;
}

.clean-card-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  gap: 18px !important;
}

.clean-card {
  position: relative;
  min-height: 430px !important;
  display: grid;
  grid-template-rows: 230px 1fr;
  overflow: hidden;
  border-radius: 14px !important;
}

.clean-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset-block-start: 14px;
  inset-inline-start: 14px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, transparent 42%, rgba(255,255,255,.24) 42% 52%, transparent 52%),
    var(--orange);
  box-shadow: 0 14px 30px rgba(240,75,47,.28);
}

.clean-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 7px;
  background: linear-gradient(90deg, var(--orange), var(--navy));
}

.clean-card img {
  height: 230px !important;
}

.clean-card div {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px !important;
}

.clean-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  line-height: 1.12;
  font-weight: 900;
}

.product-card-cta {
  border-radius: 10px !important;
  background: var(--orange) !important;
}

.quote-command,
.quote-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 18%, rgba(240,75,47,.12), transparent 30%),
    linear-gradient(135deg, #111a29 0%, #172131 52%, #f5f6f8 52%, #f5f6f8 100%) !important;
  color: var(--white) !important;
}

.quote-command::before,
.quote-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 calc(100% - 150px), rgba(240,75,47,.08) calc(100% - 150px)),
    repeating-linear-gradient(135deg, transparent 0 28px, rgba(255,255,255,.035) 28px 29px);
}

.quote-copy,
.quote-form {
  position: relative;
  z-index: 1;
}

.quote-section h2 {
  color: var(--white) !important;
}

.quote-section p:not(.eyebrow) {
  color: rgba(255,255,255,.76) !important;
}

.quote-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.quote-proof-grid article {
  min-height: 118px;
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.08);
}

.quote-proof-grid strong {
  color: var(--white);
  font-weight: 900;
}

.quote-proof-grid span {
  color: rgba(255,255,255,.68);
  line-height: 1.65;
  font-weight: 800;
}

.quote-form-pro {
  gap: 16px !important;
  padding: clamp(18px, 3vw, 28px) !important;
  border: 1px solid rgba(23,33,49,.10) !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.98) !important;
  box-shadow: 0 30px 90px rgba(15,23,42,.18) !important;
}

.quote-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(23,33,49,.08);
}

.quote-form-head span {
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 900;
}

.quote-form-head strong {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--white);
  background: var(--orange);
  font-size: .86rem;
  font-weight: 900;
}

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

.quote-product-choice label {
  min-height: 86px;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px solid rgba(23,33,49,.10);
  border-radius: 14px;
  color: var(--navy);
  background: #f8fafc;
  text-align: center;
  cursor: pointer;
}

.quote-product-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.quote-product-choice label:has(input:checked) {
  border-color: rgba(240,75,47,.55);
  color: var(--orange);
  background: #fff5f2;
  box-shadow: inset 0 0 0 1px rgba(240,75,47,.24);
}

.quote-product-choice span {
  font-weight: 900;
}

.quote-form-pro > label {
  color: #526071 !important;
}

.quote-form-pro input,
.quote-form-pro select,
.quote-form-pro textarea {
  min-height: 52px;
  border-radius: 12px;
  background: #f8fafc;
}

.quote-estimate-panel {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 14px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(240,75,47,.92), rgba(201,53,32,.92)),
    var(--orange);
}

.quote-estimate-panel span {
  color: rgba(255,255,255,.76);
  font-size: .82rem;
  font-weight: 900;
}

.quote-estimate-panel strong {
  font-size: clamp(1.45rem, 2.6vw, 2.3rem);
  line-height: 1.1;
  font-weight: 900;
}

.quote-estimate-panel small {
  color: rgba(255,255,255,.78);
  line-height: 1.6;
  font-weight: 800;
}

.products-index-hero {
  min-height: 52svh;
  display: grid;
  align-content: end;
  padding: 150px clamp(24px, 6vw, 110px) 64px !important;
  color: var(--white);
  text-align: start !important;
  background:
    linear-gradient(90deg, rgba(17,26,41,.94), rgba(17,26,41,.64)),
    url("../images/mrs-headquarters.jpeg") center / cover;
}

.products-index-hero h1 {
  margin-inline: 0 !important;
  color: var(--white) !important;
}

.products-index-hero p:not(.eyebrow) {
  margin: 0 !important;
  color: rgba(255,255,255,.78) !important;
}

@media (max-width: 980px) {
  .clean-cards-section .section-head,
  .quote-section {
    grid-template-columns: 1fr !important;
  }

  .clean-cards-section .section-head::after {
    justify-self: start;
  }

  .quote-command,
  .quote-section {
    background: linear-gradient(180deg, #111a29 0%, #172131 48%, #f5f6f8 48%, #f5f6f8 100%) !important;
  }
}

@media (max-width: 680px) {
  .hero-quote-strip,
  .quote-proof-grid,
  .quote-product-choice {
    grid-template-columns: 1fr;
  }

  .hero-quote-strip a {
    min-height: 68px;
  }

  .clean-card {
    min-height: auto !important;
  }

  .quote-form-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Quote contrast fix */
.quote-section {
  background:
    linear-gradient(135deg, rgba(240,75,47,.16), transparent 34%),
    linear-gradient(120deg, #0f1724 0%, #172131 58%, #223047 100%) !important;
}

.quote-section::before {
  background:
    linear-gradient(90deg, rgba(255,255,255,.04), transparent 36%),
    repeating-linear-gradient(135deg, transparent 0 28px, rgba(255,255,255,.04) 28px 29px) !important;
}

.quote-section h2,
.quote-section .quote-copy h2 {
  color: #fff !important;
  text-shadow: 0 10px 30px rgba(0,0,0,.28);
}

.quote-section p:not(.eyebrow),
.quote-section .quote-copy p:not(.eyebrow) {
  color: rgba(255,255,255,.82) !important;
}

.quote-form-pro label,
.quote-form-pro .quote-product-choice label {
  color: #334155 !important;
  text-shadow: none !important;
}

/* Balanced two-line hero title */
.premium-hero .brand-hero-content h1.hero-title-balanced {
  display: grid !important;
  gap: .08em !important;
  max-width: 980px !important;
  color: #fff !important;
  font-size: clamp(3.2rem, 7.2vw, 7.6rem) !important;
  line-height: .92 !important;
  text-wrap: auto !important;
}

.hero-title-balanced > span {
  display: block;
  white-space: nowrap;
}

.hero-title-word {
  display: inline-block;
}

.hero-title-dot {
  color: var(--orange);
}

.terminal-dot {
  color: var(--orange);
}

@media (max-width: 820px) {
  .premium-hero .brand-hero-content h1.hero-title-balanced {
    font-size: clamp(2.6rem, 13vw, 4.6rem) !important;
  }

  .hero-title-balanced > span {
    white-space: normal;
  }
}

/* Match product/service headers with the gallery header style */
.clean-cards-section .section-head,
.clean-cards-section .compact-head {
  width: min(1120px, 100%) !important;
  max-width: 1120px !important;
  display: block !important;
  margin: 0 auto 42px !important;
  text-align: center !important;
}

.clean-cards-section .section-head::after,
.clean-cards-section .compact-head::after {
  content: none !important;
  display: none !important;
}

.clean-cards-section .section-head .eyebrow,
.clean-cards-section .compact-head .eyebrow {
  display: block !important;
  margin: 0 0 16px !important;
  color: var(--orange) !important;
  text-align: center !important;
}

.clean-cards-section .section-head h2,
.clean-cards-section .compact-head h2 {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  color: var(--navy) !important;
  font-size: clamp(3rem, 6vw, 6.8rem) !important;
  line-height: 1.02 !important;
  white-space: nowrap !important;
  text-align: center !important;
}

.clean-cards-section .section-head p:not(.eyebrow),
.clean-cards-section .compact-head p:not(.eyebrow) {
  max-width: none !important;
  margin: 22px auto 0 !important;
  color: #617086 !important;
  font-size: clamp(1rem, 1.35vw, 1.28rem) !important;
  line-height: 1.8 !important;
  white-space: nowrap !important;
  text-align: center !important;
}

@media (max-width: 980px) {
  .clean-cards-section .section-head h2,
  .clean-cards-section .compact-head h2,
  .clean-cards-section .section-head p:not(.eyebrow),
  .clean-cards-section .compact-head p:not(.eyebrow) {
    white-space: normal !important;
  }
}

/* Unified section title rhythm */
.visual-gallery-section .section-head,
.clean-cards-section .section-head,
.clean-cards-section .compact-head,
.clients-section .section-head,
.locations-section .section-head {
  width: min(1180px, calc(100% - 48px)) !important;
  max-width: 1180px !important;
  margin: 0 auto 42px !important;
  text-align: center !important;
}

.visual-gallery-section .section-head h2,
.clean-cards-section .section-head h2,
.clean-cards-section .compact-head h2,
.clients-section .section-head h2,
.locations-section .section-head h2 {
  max-width: 1180px !important;
  margin: 0 auto !important;
  color: var(--navy) !important;
  font-size: clamp(2.7rem, 4.8vw, 5.4rem) !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  text-wrap: balance;
}

.visual-gallery-section .section-head p:not(.eyebrow),
.clean-cards-section .section-head p:not(.eyebrow),
.clean-cards-section .compact-head p:not(.eyebrow),
.clients-section .section-head p:not(.eyebrow),
.locations-section .section-head p:not(.eyebrow) {
  max-width: 920px !important;
  margin: 18px auto 0 !important;
  color: #617086 !important;
  font-size: clamp(1rem, 1.25vw, 1.2rem) !important;
  line-height: 1.75 !important;
  white-space: normal !important;
  text-wrap: balance;
}

.visual-gallery-section .section-head .eyebrow,
.clean-cards-section .section-head .eyebrow,
.clean-cards-section .compact-head .eyebrow,
.clients-section .section-head .eyebrow,
.locations-section .section-head .eyebrow {
  margin-bottom: 14px !important;
  text-align: center !important;
}

@media (min-width: 1180px) {
  .clean-cards-section .compact-head h2,
  .visual-gallery-section .section-head h2 {
    white-space: nowrap !important;
  }
}

@media (max-width: 680px) {
  .visual-gallery-section .section-head,
  .clean-cards-section .section-head,
  .clean-cards-section .compact-head,
  .clients-section .section-head,
  .locations-section .section-head {
    width: calc(100% - 32px) !important;
    margin-bottom: 28px !important;
  }

  .visual-gallery-section .section-head h2,
  .clean-cards-section .section-head h2,
  .clean-cards-section .compact-head h2,
  .clients-section .section-head h2,
  .locations-section .section-head h2 {
    font-size: clamp(2.1rem, 10vw, 3.2rem) !important;
    line-height: 1.16 !important;
    white-space: normal !important;
  }
}

/* One-row product carousel */
.mrs-carousel-shell {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  position: relative;
}

.clean-card-grid.is-carousel-row {
  width: 100% !important;
  display: grid !important;
  grid-auto-flow: column !important;
  grid-auto-columns: minmax(340px, 31%) !important;
  grid-template-columns: none !important;
  gap: 18px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 4px 2px 18px !important;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.clean-card-grid.is-carousel-row::-webkit-scrollbar {
  display: none;
}

.clean-card-grid.is-carousel-row .clean-card {
  scroll-snap-align: start;
  min-width: 0;
}

.mrs-carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 14px;
}

.mrs-carousel-controls button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23,33,49,.10);
  border-radius: 999px;
  color: var(--white);
  background: var(--navy);
  font: inherit;
  font-size: 1.7rem;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(15,23,42,.10);
}

.mrs-carousel-controls button:hover {
  background: var(--orange);
}

@media (max-width: 980px) {
  .clean-card-grid.is-carousel-row {
    grid-auto-columns: minmax(300px, 48%) !important;
  }
}

@media (max-width: 680px) {
  .mrs-carousel-shell {
    width: calc(100% - 28px);
  }

  .clean-card-grid.is-carousel-row {
    grid-auto-columns: minmax(260px, 88%) !important;
  }

  .mrs-carousel-controls {
    justify-content: center;
  }
}

/* Legal pages */
.legal-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 132px 0 80px;
}

.legal-hero {
  overflow: hidden;
  padding: clamp(34px, 5vw, 58px);
  border-radius: 18px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(17,26,41,.95), rgba(17,26,41,.82)),
    url("../images/mrs-headquarters.jpeg") center / cover;
  text-align: center;
  box-shadow: 0 24px 80px rgba(15,23,42,.12);
}

.legal-hero h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 1.08;
}

.legal-hero p:not(.eyebrow) {
  max-width: 780px;
  margin: 18px auto 0;
  color: rgba(255,255,255,.78);
  font-size: 1.1rem;
  line-height: 1.9;
  font-weight: 800;
}

.legal-jump-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.legal-jump-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255,255,255,.08);
  font-weight: 900;
}

.legal-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.legal-content article {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(23,33,49,.08);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 18px 58px rgba(15,23,42,.065);
  scroll-margin-top: 120px;
}

.legal-content h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.15;
}

.legal-content p {
  margin: 0;
  color: #617086;
  line-height: 1.9;
  font-weight: 800;
}

.legal-content .eyebrow {
  margin: 0;
}

@media (max-width: 900px) {
  .legal-content {
    grid-template-columns: 1fr;
  }
}

.developer-credit {
  color: rgba(255,255,255,.72);
  font-weight: 900;
}

.developer-credit:hover {
  color: var(--orange);
}

.footer-legal-separator {
  display: inline-block;
  margin: 0 8px;
  color: var(--orange);
  font-weight: 900;
}

.form-legal-note {
  margin: -4px 0 0;
  color: #64748b;
  font-size: .88rem;
  line-height: 1.6;
  font-weight: 800;
  text-align: center;
}

.form-legal-note a {
  color: var(--orange);
  font-weight: 900;
}

/* Polished interaction pass */
.main-nav a {
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 -10px;
  height: 3px;
  border-radius: 999px;
  background: var(--orange);
  opacity: 0;
  transform: scaleX(.35);
  transition: opacity .2s ease, transform .2s ease;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.main-nav a.is-active {
  color: var(--white) !important;
}

.clean-card,
.numbered-services article,
.location-card,
.product-info-grid article,
.product-info-list article {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.clean-card:hover,
.numbered-services article:hover,
.location-card:hover,
.product-info-grid article:hover,
.product-info-list article:hover {
  transform: translateY(-4px);
  border-color: rgba(240,75,47,.24) !important;
  box-shadow: 0 24px 70px rgba(15,23,42,.12) !important;
}

.clean-card:hover .product-card-cta,
.numbered-services article:hover .product-card-cta,
.location-card:hover .product-card-cta {
  transform: translateY(-2px);
}

.product-card-cta,
.btn {
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.product-card-cta:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(240,75,47,.22);
}

.clean-card::before,
.location-card figure span,
.clean-cards-section .numbered-services article > span {
  box-shadow: 0 14px 34px rgba(240,75,47,.28);
}

.quote-trust-note {
  margin: -4px 0 0;
  color: #526071;
  font-size: .96rem;
  line-height: 1.6;
  font-weight: 900;
  text-align: center;
}

.quote-form-pro .quote-trust-note {
  color: #526071;
}

.rfq-verify-box {
  max-width: 640px;
}

.verify-email {
  margin: 0 auto 12px;
  width: fit-content;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(240,75,47,.08);
  color: var(--orange);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.verify-code-form {
  margin: 18px 0;
  grid-template-columns: 1fr;
}

.verify-code-form input {
  text-align: center;
  font-size: 1.35rem;
  letter-spacing: .16em;
  font-weight: 900;
}

.site-footer .footer-bottom {
  align-items: center;
}

.footer-bottom > span,
.developer-credit {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.footer-bottom a {
  transition: color .2s ease;
}

.footer-bottom a:hover {
  color: var(--orange);
}

@media (max-width: 820px) {
  .footer-bottom {
    align-items: flex-start;
  }
}

/* Mobile polish pass: compact, readable headers across iPhone and Android */
@media (max-width: 820px) {
  .topbar.clean-nav,
  .topbar {
    width: calc(100% - 20px) !important;
    margin: 10px auto 0 !important;
    padding: 10px !important;
    gap: 8px !important;
    border-radius: 14px !important;
    overflow: visible !important;
    box-shadow: 0 14px 42px rgba(9,14,25,.16) !important;
  }

  .topbar .brand-logo,
  .brand-logo {
    width: 148px !important;
    max-width: 54vw !important;
    height: 48px !important;
  }

  .topbar .brand-logo img,
  .brand-logo img {
    max-height: 48px !important;
  }

  .lang-switch {
    min-width: 46px !important;
    min-height: 46px !important;
    border-radius: 10px !important;
    font-size: .9rem !important;
  }

  .main-nav {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 2px 2px 2px 12px !important;
    scroll-padding-inline: 12px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
  }

  [dir="rtl"] .main-nav {
    justify-content: flex-start !important;
    padding: 2px 12px 2px 2px !important;
  }

  .main-nav a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 10px;
    background: rgba(255,255,255,.06);
    font-size: .82rem !important;
    line-height: 1.05;
    white-space: nowrap;
  }

  .main-nav a::after {
    display: none !important;
  }

  .main-nav a.is-active {
    color: var(--white) !important;
    border-color: rgba(240,75,47,.42);
    background: rgba(240,75,47,.16);
  }

  .brand-hero,
  .premium-hero {
    padding-top: 20px !important;
  }

  .premium-hero .hero-showcase,
  .hero-showcase {
    min-height: 280px !important;
    height: 280px !important;
  }

  .brand-hero h1,
  .premium-hero h1,
  .product-hero h1,
  .products-index-hero h1,
  .legal-hero h1 {
    text-wrap: balance;
  }

  .products-index-hero {
    min-height: auto !important;
    padding: 64px 18px 46px !important;
  }

  .products-index-hero h1 {
    font-size: clamp(3rem, 15vw, 4.6rem) !important;
    line-height: 1.05 !important;
  }

  .products-index-hero p:not(.eyebrow) {
    font-size: 1rem !important;
    line-height: 1.75 !important;
  }

  .product-hero {
    padding: 42px 18px 44px !important;
    gap: 22px !important;
  }

  .product-hero h1 {
    font-size: clamp(3.1rem, 16vw, 4.9rem) !important;
    line-height: .98 !important;
  }

  .legal-shell {
    width: calc(100% - 28px) !important;
    padding: 48px 0 64px !important;
  }

  .legal-hero {
    padding: 34px 18px !important;
    border-radius: 16px !important;
  }

  .legal-hero h1 {
    font-size: clamp(2.4rem, 12vw, 3.8rem) !important;
  }

  .legal-hero p:not(.eyebrow) {
    font-size: .98rem !important;
    line-height: 1.75 !important;
  }

  .legal-jump-links a {
    width: 100%;
    justify-content: center;
  }

  .locations-tools {
    border-radius: 14px !important;
    padding: 16px !important;
  }

  .locations-filter-row {
    gap: 8px !important;
  }

  .locations-filter-row button {
    flex: 1 1 auto;
    min-height: 40px;
  }

  .mobile-quick-cta {
    left: 10px !important;
    right: 10px !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    border-radius: 14px !important;
  }
}

@media (max-width: 380px) {
  .topbar .brand-logo,
  .brand-logo {
    width: 132px !important;
  }

  .main-nav a {
    padding-inline: 8px;
    font-size: .78rem !important;
  }

  .premium-hero .hero-showcase,
  .hero-showcase {
    min-height: 252px !important;
    height: 252px !important;
  }
}

/* Suppliers / sourcing partners */
.suppliers-section {
  position: relative;
  background:
    linear-gradient(180deg, rgba(245, 246, 248, .96), #fff 46%, rgba(245, 246, 248, .92)),
    radial-gradient(circle at 12% 18%, rgba(240, 75, 47, .08), transparent 32%);
}

.suppliers-section .section-head {
  max-width: 920px;
}

.suppliers-grid {
  width: min(1180px, 100%);
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.supplier-card {
  position: relative;
  min-height: 260px;
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 28px 22px;
  border: 1px solid rgba(23, 33, 49, .08);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 24px 70px rgba(23, 33, 49, .08);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.supplier-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--orange), #d92f1d);
  opacity: .95;
}

[dir="rtl"] .supplier-card::before {
  inset: 0 0 0 auto;
}

.supplier-card > span {
  position: absolute;
  top: 18px;
  inset-inline-start: 18px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 32px rgba(240, 75, 47, .28);
}

.supplier-card img {
  width: min(190px, 72%);
  max-height: 92px;
  margin: 24px auto 4px;
  object-fit: contain;
  filter: saturate(.92) contrast(1.03);
}

.supplier-card strong {
  margin: 28px auto 4px;
  color: var(--navy);
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.15;
  text-align: center;
}

.supplier-card p {
  max-width: 260px;
  margin: 0 auto;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.75;
  text-align: center;
}

.supplier-card .product-card-cta {
  justify-self: center;
  margin-top: 2px;
}

.supplier-card:hover {
  transform: translateY(-6px);
  border-color: rgba(240, 75, 47, .32);
  box-shadow: 0 32px 86px rgba(23, 33, 49, .13);
}

@media (max-width: 1100px) {
  .suppliers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .suppliers-grid {
    grid-template-columns: 1fr;
  }

  .supplier-card {
    min-height: 220px;
    padding: 26px 18px;
  }
}

/* MRS smart assistant */
.mrs-ai-assistant {
  position: fixed;
  z-index: 80;
  inset-inline-end: 22px;
  bottom: 92px;
  width: min(320px, calc(100vw - 28px));
  pointer-events: none;
  font-family: Cairo, Arial, sans-serif;
}

.mrs-ai-assistant button,
.mrs-ai-assistant input {
  font-family: inherit;
}

.mrs-ai-orb,
.mrs-ai-greeting,
.mrs-ai-panel {
  pointer-events: auto;
}

.mrs-ai-orb {
  position: absolute;
  inset-inline-end: 0;
  bottom: 0;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .24), 0 0 0 4px rgba(240, 75, 47, .13);
  cursor: pointer;
  overflow: hidden;
}

.mrs-ai-orb::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 3px solid rgba(240, 75, 47, .15);
  box-shadow: inset 0 -22px 30px rgba(23, 33, 49, .07);
}

.mrs-ai-orb img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  image-rendering: auto;
  backface-visibility: hidden;
  transform: none;
}

.mrs-ai-greeting {
  position: absolute;
  inset-inline-end: 90px;
  bottom: 12px;
  width: min(252px, calc(100vw - 116px));
  display: grid;
  gap: 4px;
  padding: 11px 13px;
  border: 1px solid rgba(23, 33, 49, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  color: #172131;
  box-shadow: 0 18px 54px rgba(23, 33, 49, .16);
  text-align: start;
  cursor: pointer;
}

.mrs-ai-greeting strong {
  font-size: .92rem;
  font-weight: 900;
}

.mrs-ai-greeting span {
  color: #5f6f85;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.55;
}

.mrs-ai-panel {
  position: absolute;
  inset-inline-end: 0;
  bottom: 116px;
  width: min(320px, calc(100vw - 28px));
  height: min(390px, calc(100vh - 138px));
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  border: 1px solid rgba(23, 33, 49, .12);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 72px rgba(15, 23, 42, .24);
  overflow: hidden;
}

.mrs-ai-panel[hidden],
.mrs-ai-greeting[hidden] {
  display: none;
}

.mrs-ai-panel header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: linear-gradient(135deg, #172131, #263449);
  color: #fff;
}

.mrs-ai-panel header img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
  background: #fff;
}

.mrs-ai-panel header div {
  min-width: 0;
  display: grid;
  gap: 3px;
  flex: 1;
}

.mrs-ai-panel header strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .88rem;
  font-weight: 900;
}

.mrs-ai-panel header span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, .74);
  font-size: .7rem;
  font-weight: 800;
}

.mrs-ai-panel header button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 11px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.mrs-ai-panel header .mrs-ai-sound {
  font-size: 1rem;
  background: rgba(255, 255, 255, .1);
}

.mrs-ai-panel header .mrs-ai-sound.is-on {
  background: var(--orange);
  box-shadow: 0 10px 22px rgba(240, 75, 47, .24);
}

.mrs-ai-messages {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  padding: 10px;
  overflow: auto;
  background: linear-gradient(180deg, #f7f8fb, #fff);
}

.mrs-ai-message {
  max-width: 92%;
  padding: 8px 10px;
  border-radius: 13px;
  font-weight: 800;
  line-height: 1.55;
  font-size: .84rem;
}

.mrs-ai-message p {
  margin: 0;
}

.mrs-ai-message.is-bot {
  justify-self: start;
  background: #fff;
  color: #172131;
  border: 1px solid rgba(23, 33, 49, .08);
}

.mrs-ai-message.is-user {
  justify-self: end;
  background: var(--orange);
  color: #fff;
}

.mrs-ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.mrs-ai-actions a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #172131;
  color: #fff;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 900;
}

.mrs-ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 7px 9px 0;
  overflow: visible;
}

.mrs-ai-suggestions button {
  flex: 1 1 calc(50% - 8px);
  min-height: 32px;
  border: 1px solid rgba(240, 75, 47, .24);
  border-radius: 999px;
  background: rgba(240, 75, 47, .08);
  color: #172131;
  padding: 0 9px;
  font-size: .75rem;
  font-weight: 900;
  cursor: pointer;
}

.mrs-ai-form {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 6px;
  padding: 8px;
  border-top: 1px solid rgba(23, 33, 49, .08);
  background: #fff;
}

.mrs-ai-form input {
  min-width: 0;
  height: 38px;
  border: 1px solid rgba(23, 33, 49, .14);
  border-radius: 12px;
  padding: 0 10px;
  color: #172131;
  font-weight: 800;
  outline: none;
}

.mrs-ai-form input:focus {
  border-color: rgba(240, 75, 47, .6);
  box-shadow: 0 0 0 3px rgba(240, 75, 47, .12);
}

.mrs-ai-form button {
  min-width: 44px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.mrs-ai-form .mrs-ai-voice {
  min-width: 38px;
  background: #172131;
  font-size: 1.05rem;
}

.mrs-ai-form .mrs-ai-voice.is-listening {
  background: #10b981;
  animation: aiPulse 1s infinite;
}

@keyframes aiPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .36); }
  50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

@media (max-width: 820px) {
  .mrs-ai-assistant {
    inset-inline-end: 12px;
    bottom: 78px;
    width: min(312px, calc(100vw - 28px));
  }

  .mrs-ai-orb {
    width: 82px;
    height: 82px;
    border-radius: 20px;
  }

  .mrs-ai-greeting {
    inset-inline-end: 78px;
    bottom: 7px;
    width: min(208px, calc(100vw - 106px));
    padding: 10px 11px;
  }

  .mrs-ai-panel {
    position: fixed;
    inset: auto 14px 86px auto;
    width: min(330px, calc(100vw - 28px));
    height: min(384px, calc(100vh - 118px));
    border-radius: 16px;
  }

  .mrs-ai-panel header {
    gap: 6px;
    padding: 8px;
  }

  .mrs-ai-panel header img {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .mrs-ai-panel header button {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }
}
