:root {
  --bg: #F2EDE4;
  --bg-soft: #E8E0D0;
  --bg-deep: #1A1817;
  --ink: #1A1817;
  --ink-soft: #4A4540;
  --ink-mute: #837B70;
  --copper: #3B5C3B;
  --copper-deep: #2A4A2A;
  --copper-light: #A0B89A;
  --sage: #6E7F66;
  --line: rgba(26, 24, 23, 0.14);
  --line-soft: rgba(26, 24, 23, 0.07);

  --display: 'Instrument Serif', 'Times New Roman', serif;
  --body: 'Geist', -apple-system, sans-serif;
  --display-ar: 'Amiri', serif;
  --body-ar: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', sans-serif;

  --container: 1320px;
  --pad-x: clamp(1.5rem, 4vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.09 0 0 0 0 0.08 0 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  position: relative;
  z-index: 2;
}

/* ----------------- Typography ----------------- */
.display {
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.02em;
  font-size: clamp(3.2rem, 9vw, 8.5rem);
}
.display em { font-style: italic; color: var(--copper-deep); }

.h2 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.015em;
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
}
.h2 em { font-style: italic; color: var(--copper-deep); }

.h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
}

.eyebrow {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 38ch;
}

p { color: var(--ink-soft); }

.ar-tag { font-family: 'Amiri', serif; color: var(--copper-deep); }

/* ----------------- Nav ----------------- */
nav.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 237, 228, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--pad-x);
  max-width: var(--container);
  margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; line-height: 1; color: #2A4A2A; }
.brand-mark {
  height: 48px;
  width: auto;
  mix-blend-mode: multiply;
  transition: opacity 0.2s;
  display: block;
}
.brand-name {
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: 0.03em;
  color: var(--ink);
  line-height: 1;
}
.brand:hover .brand-mark { opacity: 0.85; }
.nav-links {
  display: flex;
  gap: 2.2rem;
  align-items: center;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}
.nav-links a {
  position: relative;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--copper-deep); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--copper-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
@media (max-width: 720px) {
  .brand-mark { height: 38px; }
  .brand-name { font-size: 1.3rem; }
  .nav-links { gap: 1.1rem; font-size: 0.78rem; }
  .nav-links a:nth-child(3) { display: none; }
}

.foot-logo {
  height: 90px;
  width: auto;
  display: block;
  margin-bottom: 1rem;
}

/* ----------------- Buttons ----------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.5rem;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--copper-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ----------------- Page hero (used on internal pages) ----------------- */
.page-hero {
  padding: clamp(3.5rem, 8vh, 6rem) 0 clamp(2rem, 4vh, 3rem);
}
.page-hero .meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}
.page-hero .meta .num {
  font-family: var(--display);
  font-style: italic;
  color: var(--copper-deep);
  font-size: 1.1rem;
}
.page-hero h1 { margin-bottom: 1.5rem; }
.page-hero .lede { max-width: 50ch; }

/* ----------------- Hero (landing) ----------------- */
.hero { padding: clamp(4rem, 10vh, 8rem) 0 clamp(3rem, 6vh, 5rem); position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}
.hero-meta .num {
  font-family: var(--display);
  font-style: italic;
  color: var(--copper-deep);
  font-size: 1.1rem;
}
.hero h1 { margin-bottom: 2rem; }
.hero-aside { padding-bottom: 1.5rem; }
.hero-aside .lede { margin-bottom: 2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

/* ----------------- Origin block ----------------- */
.origin {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}
.origin-inner { max-width: 680px; margin: 0 auto; padding: 0 var(--pad-x); }
.ar-display {
  font-family: 'Amiri', serif;
  font-size: clamp(4.5rem, 11vw, 7.5rem);
  color: var(--copper-deep);
  display: block;
  line-height: 1;
  margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
}
.origin-text {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  color: var(--ink);
  line-height: 1.45;
}
.origin-text em { font-style: italic; color: var(--copper-deep); }

/* ----------------- Trust strip ----------------- */
.trust {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  padding: 1.6rem var(--pad-x);
  max-width: var(--container);
  margin: 0 auto;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.trust-row .dot { color: var(--copper-deep); }

/* ----------------- Section frame ----------------- */
section.block { padding: clamp(3.5rem, 8vw, 6rem) 0; position: relative; }
.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 3rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.section-head .num {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--copper-deep);
}
.section-head .lede { justify-self: end; text-align: right; margin-left: auto; }
@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head .lede { text-align: left; justify-self: start; }
}

/* ----------------- Preview cards (landing) ----------------- */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
@media (max-width: 900px) { .preview-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .preview-grid { grid-template-columns: 1fr; } }

.preview-card {
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: transform 0.4s, box-shadow 0.4s;
  min-height: 200px;
}
.preview-card:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -30px rgba(26, 24, 23, 0.15); }
.preview-card .num {
  font-family: var(--display);
  font-style: italic;
  color: var(--copper-deep);
  font-size: 1.1rem;
}
.preview-card .name {
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 1;
}
.preview-card .name em { font-style: italic; color: var(--copper-deep); }
.preview-card .meta {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.preview-card .arrow {
  color: var(--copper-deep);
  font-family: var(--display);
  font-style: italic;
  transition: transform 0.2s;
}
.preview-card:hover .arrow { transform: translateX(4px); }

/* ----------------- Product detail (shields.html) ----------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
}
@media (max-width: 900px) { .product-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .product-grid { grid-template-columns: 1fr; } }

.product {
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s, box-shadow 0.4s;
}
.product:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(26, 24, 23, 0.18); }
.product-art {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #E8E0D0 0%, #D8CDB8 100%);
  position: relative;
  overflow: hidden;
}
.product-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.product-body {
  padding: 1.6rem 1.5rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
}
.product-name { font-family: var(--display); font-size: 1.7rem; line-height: 1; }
.product-name em { font-style: italic; color: var(--copper-deep); }
.product-desc { font-size: 0.92rem; line-height: 1.5; color: var(--ink-soft); flex: 1; }
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}
.product-price { font-family: var(--display); font-size: 1.6rem; }
.product-price small {
  font-family: var(--body);
  font-size: 0.78rem;
  color: var(--ink-mute);
  margin-left: 0.4rem;
  letter-spacing: 0.05em;
}
.buy {
  background: var(--ink);
  color: var(--bg);
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}
.buy:hover { background: var(--copper-deep); }
.spec { font-size: 0.78rem; color: var(--ink-mute); letter-spacing: 0.04em; }

/* ----------------- Home services (home.html) ----------------- */
.dark-section { background: var(--bg-deep); color: var(--bg); }
.dark-section .lede, .dark-section p { color: rgba(242, 237, 228, 0.78); }
.dark-section .section-head { border-bottom-color: rgba(242, 237, 228, 0.18); }
.dark-section .section-head .num { color: var(--copper-light); }
.dark-section .h2 em, .dark-section .display em { color: var(--copper-light); }
.dark-section .preview-card .num { color: var(--copper-light); }
.dark-section .preview-card .name em { color: var(--copper-light); }
.dark-section .preview-card .arrow { color: var(--copper-light); }

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(242, 237, 228, 0.15);
}
@media (max-width: 900px) { .services { grid-template-columns: 1fr; } }
.service {
  padding: 2.2rem 1.8rem 2.4rem;
  border-right: 1px solid rgba(242, 237, 228, 0.15);
  border-bottom: 1px solid rgba(242, 237, 228, 0.15);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 360px;
  position: relative;
  transition: background 0.3s;
}
.service:hover { background: rgba(242, 237, 228, 0.03); }
.service:last-child { border-right: none; }
@media (max-width: 900px) { .service { border-right: none; } }
.service .num { font-family: var(--display); font-style: italic; color: var(--copper-light); font-size: 1.25rem; margin-bottom: 0.5rem; }
.service h3 { color: var(--bg); }
.service-desc { font-size: 0.94rem; line-height: 1.55; flex: 1; color: rgba(242, 237, 228, 0.78); }
.service-foot {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--copper-light);
  text-transform: uppercase;
  border-top: 1px solid rgba(242, 237, 228, 0.18);
  padding-top: 1rem;
  font-weight: 500;
}

/* ----------------- Process steps ----------------- */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
@media (max-width: 800px) { .process { grid-template-columns: 1fr; } }
.step { padding: 2rem 1.8rem; border-right: 1px solid var(--line); background: var(--bg-soft); }
.step:last-child { border-right: none; }
@media (max-width: 800px) {
  .step { border-right: none; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: none; }
}
.step .num { font-family: var(--display); font-style: italic; color: var(--copper-deep); font-size: 1.6rem; margin-bottom: 0.5rem; }
.step h3 { margin-bottom: 0.7rem; }

/* ----------------- Science stats ----------------- */
.science {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 800px) { .science { grid-template-columns: 1fr; } }
.science-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1rem; }
.stat-card { border-top: 1px solid var(--line); padding-top: 1rem; }
.stat-card .num { font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; }
.stat-card .num em { font-style: italic; color: var(--copper-deep); }
.stat-card .label { margin-top: 0.5rem; font-size: 0.82rem; color: var(--ink-mute); letter-spacing: 0.05em; }

/* ----------------- FAQ ----------------- */
.faq-list { border-top: 1px solid var(--line); }
details.faq { border-bottom: 1px solid var(--line); padding: 1.4rem 0; cursor: pointer; }
details.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: baseline;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.2;
  transition: color 0.2s;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: '+';
  font-family: var(--display);
  color: var(--copper-deep);
  font-size: 1.5rem;
  transition: transform 0.3s;
  flex-shrink: 0;
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq[open] summary { color: var(--copper-deep); }
details.faq p { margin-top: 1rem; max-width: 65ch; font-size: 0.98rem; }

/* ----------------- Form ----------------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 800px) { .form-grid { grid-template-columns: 1fr; } }
form.consult-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
form.consult-form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.field input, .field select, .field textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.85rem 0.95rem;
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--copper-deep);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 110px; }
.form-status { grid-column: 1 / -1; font-size: 0.88rem; padding: 0.7rem 0; min-height: 1.5rem; }
.form-status.ok { color: var(--sage); }
.form-status.err { color: #b8423a; }

/* ----------------- Quiet CTA strip ----------------- */
.cta-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  text-align: center;
}
.cta-strip h2 { margin-bottom: 1.2rem; }
.cta-strip .sub {
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0 auto 1.8rem;
  font-size: 1rem;
}

/* ----------------- Footer ----------------- */
footer { background: var(--bg-deep); color: rgba(242, 237, 228, 0.7); padding: 4rem 0 2rem; }
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(242, 237, 228, 0.15);
}
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-brand {
  font-family: var(--display);
  font-size: 2.6rem;
  color: var(--bg);
  line-height: 1;
  margin-bottom: 0.8rem;
  display: inline-flex;
  align-items: baseline;
  gap: 0.7rem;
}
.foot-brand-name { font-family: var(--display); color: var(--bg); letter-spacing: 0.02em; }
.foot-brand-ar { font-family: 'Amiri', serif; font-size: 2.4rem; color: var(--copper-light); }
.foot-brand .ar { font-family: 'Amiri', serif; font-size: 2.4rem; color: var(--copper-light); }
.foot-col h4 {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-light);
  margin-bottom: 1rem;
  font-weight: 500;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.foot-col a { color: rgba(242, 237, 228, 0.7); font-size: 0.92rem; }
.foot-col a:hover { color: var(--bg); }
.foot-bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* ----------------- Reveal ----------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }

::selection { background: var(--copper-deep); color: var(--bg); }

/* ================================================================== */
/*  Language toggle + RTL                                             */
/* ================================================================== */

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-inline-start: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(242, 237, 228, 0.5);
}
.lang-btn {
  background: transparent;
  border: none;
  padding: 0.4rem 0.85rem;
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}
.lang-btn[data-lang="ar"] { font-family: var(--body-ar); font-size: 0.92rem; }
.lang-btn:hover { color: var(--ink); }
.lang-btn.active {
  background: var(--ink);
  color: var(--bg);
}
@media (max-width: 720px) {
  .lang-toggle { margin-inline-start: 0.7rem; }
  .lang-btn { padding: 0.35rem 0.6rem; font-size: 0.72rem; }
}

/* When Arabic is active, switch body and headings to Arabic font stacks */
html[dir="rtl"] body {
  font-family: var(--body-ar);
  font-size: 16.5px;       /* Arabic reads slightly larger */
  line-height: 1.7;
}
html[dir="rtl"] .display,
html[dir="rtl"] .h2,
html[dir="rtl"] .h3,
html[dir="rtl"] .product-name,
html[dir="rtl"] .preview-card .name,
html[dir="rtl"] details.faq summary,
html[dir="rtl"] .origin-text {
  font-family: var(--display-ar);
  font-style: normal;
  letter-spacing: 0;
  line-height: 1.25;
}
html[dir="rtl"] em {
  font-style: normal;       /* italics don't render meaningfully in Arabic */
  color: var(--copper-deep);
}

/* RTL display headlines render larger comfortably */
html[dir="rtl"] .display { font-size: clamp(2.8rem, 8vw, 7rem); line-height: 1.1; }
html[dir="rtl"] .h2 { line-height: 1.15; }

/* The brand name "EL-HISN" should always read LTR — Latin letters */
html[dir="rtl"] .brand-name,
html[dir="rtl"] .foot-brand-name {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: var(--display);
}

/* Hero meta row: the "Est. 2026" / numerical line stays LTR-readable */
html[dir="rtl"] .hero-meta .num,
html[dir="rtl"] .hero-meta .eyebrow,
html[dir="rtl"] .num,
html[dir="rtl"] .spec,
html[dir="rtl"] .product-price small,
html[dir="rtl"] .stat-card .num,
html[dir="rtl"] .stat-card .label,
html[dir="rtl"] .ar-tag {
  unicode-bidi: isolate;
}

/* Section heads in RTL: numbered eyebrow stays correct */
html[dir="rtl"] .section-head { grid-template-columns: 1fr auto; }
html[dir="rtl"] .section-head .lede {
  justify-self: start;
  text-align: left;       /* RTL flips this naturally; keep numbers LTR */
}

/* Form labels and inputs — caret on the right naturally */
html[dir="rtl"] .field input,
html[dir="rtl"] .field select,
html[dir="rtl"] .field textarea {
  text-align: right;
  font-family: var(--body-ar);
}
html[dir="rtl"] .field input[type="email"],
html[dir="rtl"] .field input[type="tel"] {
  text-align: left;       /* email and phone stay LTR */
  direction: ltr;
}

/* Product preview meta row — numbers/prices stay LTR */
html[dir="rtl"] .preview-card .meta { unicode-bidi: isolate; }

/* Footer columns flip naturally in RTL but tighten spacing */
html[dir="rtl"] .foot-brand { direction: rtl; }

/* Italic copper-deep `em` styling stays consistent */
html[dir="rtl"] .display em,
html[dir="rtl"] .h2 em,
html[dir="rtl"] .origin-text em,
html[dir="rtl"] .product-name em,
html[dir="rtl"] .preview-card .name em {
  color: var(--copper-deep);
  font-style: normal;
}

/* Nav links spacing on RTL should mirror correctly */
html[dir="rtl"] .nav-links {
  font-family: var(--body-ar);
  font-size: 0.95rem;
}

/* Eyebrow uppercase doesn't apply meaningfully to Arabic — undo */
html[dir="rtl"] .eyebrow {
  text-transform: none;
  font-family: var(--body-ar);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

/* "Hide on opposite language" helpers — used by HTML strings that differ */
html[dir="ltr"] .ar-only { display: none !important; }
html[dir="rtl"] .en-only { display: none !important; }


/* ================================================================== */
/*  Notify-me modal + Coming soon badge                                */
/* ================================================================== */

.coming-soon {
  font-family: var(--body);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-deep);
  background: rgba(42, 74, 42, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  margin-inline-start: 0.6rem;
  font-weight: 500;
  vertical-align: middle;
  white-space: nowrap;
}
html[dir="rtl"] .coming-soon { font-family: var(--body-ar); font-size: 0.7rem; }

.notify-modal {
  position: fixed;
  inset: 0;
  background: rgba(26, 24, 23, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.notify-modal.open { opacity: 1; pointer-events: auto; }

.notify-card {
  background: var(--bg);
  border-radius: 6px;
  max-width: 460px;
  width: 100%;
  padding: 2.5rem 2rem 2rem;
  position: relative;
  transform: translateY(12px);
  transition: transform 0.3s ease;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.4);
}
.notify-modal.open .notify-card { transform: translateY(0); }

.notify-close {
  position: absolute;
  top: 0.75rem;
  inset-inline-end: 1rem;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink-mute);
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  transition: color 0.2s;
}
.notify-close:hover { color: var(--ink); }

.notify-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper-deep);
  font-weight: 500;
  margin-bottom: 0.6rem;
}
html[dir="rtl"] .notify-eyebrow { text-transform: none; font-family: var(--body-ar); }

.notify-title {
  font-family: var(--display);
  font-size: 1.9rem;
  line-height: 1.05;
  margin-bottom: 0.9rem;
  color: var(--ink);
}
html[dir="rtl"] .notify-title { font-family: var(--display-ar); }

.notify-sub {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

#notifyForm {
  display: flex;
  gap: 0.7rem;
  align-items: stretch;
  flex-wrap: wrap;
}
#notifyEmail {
  flex: 1;
  min-width: 180px;
  padding: 0.85rem 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
}
#notifyEmail:focus {
  outline: none;
  border-color: var(--copper-deep);
  background: #fff;
}
html[dir="rtl"] #notifyEmail { text-align: left; direction: ltr; }

#notifyForm .btn { flex-shrink: 0; }

.notify-status {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  min-height: 1.5rem;
}
.notify-status.ok { color: var(--sage); }
.notify-status.err { color: #b8423a; }


/* ================================================================== */
/*  Garments page — 4-product layout                                  */
/* ================================================================== */

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2.5rem;
  padding-bottom: 6rem;
}
@media (max-width: 720px) {
  .products { grid-template-columns: 1fr; gap: 1.5rem; }
}

.product {
  background: var(--bg-soft);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -20px rgba(0,0,0,0.18);
}

.product-image-placeholder {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #E8E0D0 0%, #D8CFB8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.6rem;
  color: rgba(26, 24, 23, 0.35);
  letter-spacing: 0.02em;
}
html[dir="rtl"] .product-image-placeholder { direction: ltr; }

.product-body { padding: 1.8rem; display: flex; flex-direction: column; gap: 1rem; }
.product-name {
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--ink);
  direction: ltr;
  unicode-bidi: isolate;
}
html[dir="rtl"] .product-name { font-family: var(--display); }
.product-name .coming-soon {
  display: inline-block;
  vertical-align: middle;
}
.product-desc { font-size: 0.95rem; line-height: 1.6; color: var(--ink-soft); }
.spec {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--copper-deep);
  font-weight: 500;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}
html[dir="rtl"] .spec { font-family: var(--body-ar); }
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  gap: 1rem;
}
.product-price {
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink);
  direction: ltr;
  unicode-bidi: isolate;
}
.product-price small {
  font-family: var(--body);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  margin-inline-start: 0.3rem;
  vertical-align: middle;
}
.buy {
  background: var(--ink);
  color: var(--bg);
  border: none;
  padding: 0.7rem 1.2rem;
  font-family: var(--body);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s;
}
html[dir="rtl"] .buy { font-family: var(--body-ar); font-size: 0.95rem; }
.buy:hover { background: var(--copper-deep); transform: translateY(-1px); }


/* 4-column preview grid for landing page (was 3 for phone shields) */
.preview-grid.four-cols {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* How-it-works features (replaces the dark-section preview grid for home shielding) */
.how-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.how-feature {
  padding: 1.8rem;
  border: 1px solid rgba(242, 237, 228, 0.15);
  border-radius: 4px;
  background: rgba(242, 237, 228, 0.04);
}
.how-num {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--copper-light);
  display: block;
  margin-bottom: 0.8rem;
}
.how-feature h3 {
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--bg);
  line-height: 1.25;
}
html[dir="rtl"] .how-feature h3 { font-family: var(--display-ar); }


/* ================================================================== */
/*  Placeholder images (test layout — swap for real photography later) */
/* ================================================================== */

/* Garments page: full product images */
.product-image-placeholder { padding: 0; background: none; }
.product-image-placeholder img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* Landing page preview cards: smaller thumbnail at top of card */
.preview-image {
  margin: -1.8rem -1.8rem 1.2rem;  /* extend to card edges, then space below */
  overflow: hidden;
}
.preview-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
html[dir="rtl"] .preview-image { direction: ltr; }

/* Hero placeholder image */
.hero-image {
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: 2px;
}
.hero-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
html[dir="rtl"] .hero-image { direction: ltr; }
