:root {
  --black: #050505;
  --ink: #111111;
  --graphite: #2f3331;
  --muted: #6f7470;
  --line: #dedbd4;
  --paper: #f5f2ec;
  --white: #ffffff;
  --bronze: #a07a44;
  --green: #506458;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, "Noto Sans Arabic", sans-serif;
  margin: 0;
}

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

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

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

.topbar {
  align-items: center;
  background: rgba(250, 248, 244, 0.82);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: grid;
  gap: 18px;
  grid-template-columns: auto 1fr auto;
  min-height: 68px;
  padding: 12px clamp(18px, 4vw, 58px);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(22px);
}

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

.brand-mark span {
  align-items: center;
  background: var(--black);
  color: var(--white);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  letter-spacing: 0.04em;
  width: 38px;
}

.brand-mark strong {
  font-size: 0.98rem;
  font-weight: 760;
}

.topbar nav,
.language-switcher {
  align-items: center;
  display: flex;
}

.topbar nav {
  gap: clamp(16px, 3vw, 42px);
  justify-content: center;
}

.topbar nav a,
.language-switcher a {
  color: rgba(17, 17, 17, 0.68);
  font-size: 0.88rem;
  font-weight: 650;
}

.language-switcher {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.1);
  gap: 2px;
  padding: 3px;
}

.language-switcher a {
  padding: 8px 10px;
}

.language-switcher .active {
  background: var(--black);
  color: var(--white);
}

.hero {
  align-items: end;
  background: var(--black);
  color: var(--white);
  display: grid;
  min-height: calc(100vh - 68px);
  overflow: hidden;
  padding: clamp(90px, 13vw, 170px) clamp(18px, 5vw, 72px) clamp(40px, 7vw, 84px);
  position: relative;
}

.hero-backdrop {
  inset: 0;
  position: absolute;
}

.hero-backdrop::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.44) 46%, rgba(0, 0, 0, 0.14)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 42%);
  content: "";
  inset: 0;
  position: absolute;
}

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

.hero-copy {
  max-width: 860px;
  position: relative;
  z-index: 1;
}

.eyebrow,
.product-eyebrow {
  color: var(--bronze);
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

[dir="rtl"] .eyebrow,
[dir="rtl"] .product-eyebrow {
  letter-spacing: 0;
  text-transform: none;
}

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

h1 {
  color: var(--white);
  font-size: clamp(4rem, 12vw, 10.5rem);
  font-weight: 720;
  letter-spacing: 0;
  line-height: 0.88;
  margin-bottom: 24px;
}

h2 {
  color: var(--ink);
  font-size: clamp(2.35rem, 5vw, 5.6rem);
  font-weight: 680;
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0;
}

h3 {
  color: var(--ink);
  font-size: clamp(1.45rem, 2.4vw, 2.25rem);
  font-weight: 680;
  letter-spacing: 0;
  line-height: 1.06;
  margin: 0;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.08rem, 1.6vw, 1.35rem);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 700px;
}

.actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 760;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
}

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

.button.secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.34);
  color: var(--white);
}

.contact .button.primary,
.admin-shell .button.primary,
.login-box .button.primary {
  background: var(--black);
  color: var(--white);
}

.admin-shell .button.secondary {
  border-color: var(--line);
  color: var(--ink);
}

.button.danger {
  background: var(--white);
  border-color: #d8a6a0;
  color: #7d2e25;
}

.metrics {
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(42px, 7vw, 76px);
  max-width: 880px;
}

.metrics div {
  border-inline-end: 1px solid rgba(255, 255, 255, 0.18);
  padding: 20px 22px 4px 0;
}

[dir="rtl"] .metrics div {
  padding: 20px 0 4px 22px;
}

.metrics div:last-child {
  border-inline-end: 0;
}

.metrics strong {
  color: var(--white);
  display: block;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 760;
}

.metrics span {
  color: rgba(255, 255, 255, 0.58);
  display: block;
  line-height: 1.45;
  margin-top: 6px;
}

.intro,
.contact,
.quality {
  padding: clamp(66px, 10vw, 128px) clamp(18px, 5vw, 72px);
}

.intro {
  align-items: end;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: clamp(28px, 6vw, 80px);
  grid-template-columns: minmax(0, 0.86fr) minmax(280px, 0.62fr);
}

.intro p {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.75;
  margin: 0;
}

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

.product-card {
  background: var(--white);
  display: grid;
  min-height: 720px;
}

.product-card > img {
  aspect-ratio: 4 / 3;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.product-body {
  align-content: start;
  border-inline-end: 1px solid var(--line);
  display: grid;
  gap: 18px;
  padding: clamp(28px, 4vw, 48px);
}

.product-card:last-child .product-body {
  border-inline-end: 0;
}

.product-body p,
.use-box span,
.contact p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

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

.spec-row span {
  border: 1px solid var(--line);
  color: var(--graphite);
  font-size: 0.78rem;
  font-weight: 760;
  padding: 8px 10px;
}

.use-box {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 18px;
}

.use-box strong {
  color: var(--ink);
}

.quality {
  align-items: center;
  background: #e8e4dc;
  display: grid;
  gap: clamp(34px, 6vw, 90px);
  grid-template-columns: minmax(0, 0.8fr) minmax(330px, 0.74fr);
}

.quality ul {
  display: grid;
  gap: 0;
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
}

.quality li {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  color: var(--graphite);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 630;
  line-height: 1.55;
  padding: 18px 0;
}

.quality li:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.quality img {
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
  object-fit: cover;
  width: 100%;
}

.contact {
  align-items: start;
  background: var(--black);
  color: var(--white);
  display: grid;
  gap: clamp(28px, 6vw, 92px);
  grid-template-columns: minmax(0, 0.8fr) minmax(340px, 0.65fr);
}

.contact h2 {
  color: var(--white);
}

.contact p {
  color: rgba(255, 255, 255, 0.66);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  margin-top: 20px;
}

form {
  display: grid;
  gap: 14px;
}

.contact form,
.login-box,
.admin-panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(18px, 3vw, 30px);
}

.contact form {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
}

label {
  display: grid;
  gap: 8px;
}

label span,
legend {
  color: currentColor;
  font-size: 0.86rem;
  font-weight: 700;
  opacity: 0.72;
}

input,
select,
textarea {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid transparent;
  color: var(--ink);
  min-height: 48px;
  outline: none;
  padding: 12px;
  width: 100%;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--bronze);
  box-shadow: 0 0 0 3px rgba(160, 122, 68, 0.2);
}

.notice {
  background: #eef1ed;
  border-inline-start: 4px solid var(--green);
  color: var(--green) !important;
  font-weight: 750;
  padding: 12px;
}

.error {
  background: #fff0ee;
  border-inline-start: 4px solid #8f3d2f;
  color: #7d2e25;
  font-weight: 750;
  padding: 12px;
}

footer {
  align-items: center;
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  padding: 24px clamp(18px, 5vw, 72px);
}

footer span,
footer a {
  color: rgba(255, 255, 255, 0.58);
}

.admin-login-body {
  align-items: center;
  display: grid;
  min-height: 100vh;
  padding: 18px;
}

.login-box {
  display: grid;
  gap: 18px;
  margin: auto;
  max-width: 460px;
  width: 100%;
}

.login-box h1 {
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 0;
}

.admin-shell {
  background: #f3f1ec;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--black);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 34px;
  height: 100vh;
  padding: 24px;
  position: sticky;
  top: 0;
}

.admin-sidebar .brand-mark span {
  background: var(--white);
  color: var(--black);
}

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

.admin-sidebar nav a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
  font-weight: 720;
  padding: 12px 0;
}

.admin-main {
  padding: clamp(22px, 4vw, 48px);
}

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

.admin-header h1 {
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  margin-bottom: 10px;
}

.admin-header p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  max-width: 780px;
}

.admin-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
}

.admin-panel {
  min-width: 0;
}

.panel-heading {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
}

.panel-heading h2 {
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  margin: 0;
}

.product-admin-list,
.lead-list {
  display: grid;
  gap: 10px;
}

.product-admin-list a {
  align-items: center;
  background: #f8f6f1;
  border: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 76px minmax(0, 1fr);
  padding: 10px;
}

.product-admin-list a.selected {
  border-color: var(--bronze);
  box-shadow: 0 0 0 3px rgba(160, 122, 68, 0.14);
}

.product-admin-list img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 76px;
}

.product-admin-list span,
.lead-list span {
  display: grid;
  gap: 4px;
}

.product-admin-list small,
.lead-list small,
.lead-list em {
  color: var(--muted);
}

fieldset {
  border: 1px solid var(--line);
  display: grid;
  gap: 12px;
  margin: 8px 0;
  padding: 14px;
}

.delete-form {
  margin-top: 14px;
}

.lead-list div {
  align-items: center;
  background: #f8f6f1;
  border: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 14px;
}

.lead-list em {
  font-style: normal;
}

.lead-list b {
  background: #ece8df;
  color: var(--green);
  font-size: 0.78rem;
  padding: 8px 10px;
}

@media (max-width: 1100px) {
  .topbar,
  .intro,
  .quality,
  .contact {
    grid-template-columns: 1fr;
  }

  .topbar {
    justify-items: start;
    position: static;
  }

  .product-grid,
  .admin-shell,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: auto;
  }

  .product-body {
    border-inline-end: 0;
  }

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

@media (max-width: 760px) {
  .hero,
  .intro,
  .quality,
  .contact,
  .admin-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .language-switcher {
    flex-wrap: wrap;
  }

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

  .metrics div {
    border-inline-end: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .product-card > img {
    aspect-ratio: 4 / 3;
  }

  .admin-header {
    align-items: stretch;
    flex-direction: column;
  }

  .lead-list div {
    align-items: start;
    grid-template-columns: 1fr;
  }
}
