:root {
  --red: #D7141A;
  --red-dark: #A80E13;
  --red-soft: #FDECEC;
  --ink: #16181D;
  --ink-2: #23262E;
  --text: #2B2F38;
  --muted: #646B78;
  --line: #E6E2DC;
  --bg: #FFFFFF;
  --tint: #F7F4EF;
  --wa: #1FAF54;
  --wa-dark: #178A42;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(22, 24, 29, .06), 0 8px 24px rgba(22, 24, 29, .07);
  --header-h: 72px;
  --font: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
svg { fill: currentColor; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.3; margin: 0; font-weight: 700; }
p { margin: 0; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 820px; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 600; text-decoration: none; white-space: nowrap;
  border: 0; border-radius: 999px; cursor: pointer;
  padding: 12px 22px;
  transition: background-color .2s, transform .15s, box-shadow .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 16px; font-size: 15px; }
.btn-lg { padding: 15px 28px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(215, 20, 26, .28); }
.btn-primary:hover { background: var(--red-dark); }
.btn-whatsapp { background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgba(31, 175, 84, .28); }
.btn-whatsapp:hover { background: var(--wa-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(22, 24, 29, .05); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { color: var(--red); font-size: 19px; }
.brand-text small { color: var(--muted); font-size: 12px; }

.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--text); padding: 8px 12px; border-radius: 8px; transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--red); background: var(--red-soft); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  font: inherit; font-weight: 700; font-size: 14px; letter-spacing: .04em;
  background: transparent; color: var(--ink); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 6px 14px; cursor: pointer; transition: border-color .2s;
}
.lang-btn:hover { border-color: var(--ink); }

.menu-btn { display: none; width: 44px; height: 44px; background: transparent; border: 0; padding: 10px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: center; color: #fff; isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to left, rgba(16, 17, 21, .9) 0%, rgba(16, 17, 21, .74) 50%, rgba(16, 17, 21, .3) 100%),
    linear-gradient(to top, rgba(16, 17, 21, .6), transparent 40%);
}
[dir="ltr"] .hero-media::after {
  background:
    linear-gradient(to right, rgba(16, 17, 21, .9) 0%, rgba(16, 17, 21, .74) 50%, rgba(16, 17, 21, .3) 100%),
    linear-gradient(to top, rgba(16, 17, 21, .6), transparent 40%);
}
.hero-inner { padding-block: 80px 64px; }
.hero h1 { color: #fff; font-size: clamp(34px, 5.4vw, 62px); max-width: 19ch; letter-spacing: -.01em; }
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em { font-style: normal; color: #FF4A4F; }
.hero .lead { max-width: 54ch; margin-top: 20px; font-size: clamp(17px, 1.6vw, 19px); color: rgba(255, 255, 255, .85); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-proof { list-style: none; padding: 0; margin: 44px 0 0; display: flex; flex-wrap: wrap; gap: 12px 36px; }
.hero-proof li { display: flex; flex-direction: column; padding-inline-start: 14px; border-inline-start: 3px solid var(--red); line-height: 1.4; }
.hero-proof strong { font-size: 18px; }
.hero-proof span { font-size: 14px; color: rgba(255, 255, 255, .7); }

.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--red); margin-bottom: 12px; }
.hero .eyebrow { color: #FF8A8D; }

/* ---------- Features strip ---------- */
.features { position: relative; z-index: 2; margin-top: -44px; }
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 8px;
}
.feature { display: flex; gap: 14px; align-items: flex-start; padding: 22px 20px; }
.feature + .feature { border-inline-start: 1px solid var(--line); }
.feature .ico { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; }
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 17px; }
.feature p { font-size: 14px; color: var(--muted); line-height: 1.55; margin-top: 2px; }

/* ---------- Sections ---------- */
.section { padding-block: 96px; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--ink); color: rgba(255, 255, 255, .8); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: #FF8A8D; }
.section-head { max-width: 700px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.sub { margin-top: 14px; color: var(--muted); font-size: 17px; }
.section-dark .sub, .section-dark .note { color: rgba(255, 255, 255, .65); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service {
  position: relative; padding: 28px 24px 30px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.service:hover { border-color: var(--red); transform: translateY(-3px); box-shadow: var(--shadow); }
.service .num { display: inline-block; font-weight: 700; font-size: 14px; color: var(--red); background: var(--red-soft); border-radius: 8px; padding: 2px 10px; margin-bottom: 18px; }
.service h3 { font-size: 20px; margin-bottom: 8px; }
.service p { font-size: 15.5px; color: var(--muted); }

/* Sizes */
.sizes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.size-card {
  font: inherit; text-align: start; color: inherit; cursor: pointer;
  background: var(--ink-2); border: 1.5px solid rgba(255, 255, 255, .08); border-radius: var(--radius-lg);
  padding: 26px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .2s, transform .2s, background-color .2s;
}
.size-card:hover { border-color: rgba(255, 255, 255, .3); transform: translateY(-3px); }
.size-card.is-selected { border-color: var(--red); background: #2B1517; }
.size-tag { align-self: flex-start; font-size: 13px; font-weight: 600; padding: 3px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; }
.is-popular .size-tag { background: var(--red); }
.size-vis { width: 100%; height: 90px; fill: var(--red); margin-block: 8px; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .35)); }
.size-card strong { font-size: 30px; color: #fff; direction: ltr; unicode-bidi: isolate; align-self: flex-start; justify-self: start; width: fit-content; }
.size-card p { font-size: 15px; color: rgba(255, 255, 255, .65); }
.note { margin-top: 24px; font-size: 15px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding-top: 4px; }
.steps li > span {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 700; font-size: 20px; margin-bottom: 18px;
  box-shadow: 0 0 0 8px var(--red-soft);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 30px; inset-inline-start: 76px; inset-inline-end: -4px;
  border-top: 2px dashed #E9B9BA;
}
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15.5px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: #ddd; aspect-ratio: 4 / 3; }
.gallery .g-wide { aspect-ratio: auto; }
.gallery figure:nth-child(3) { order: 4; }
.gallery figure:nth-child(4) { order: 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.04); }

/* Quote */
.quote-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-inline-start: 34px; font-weight: 500; color: var(--ink); }
.checks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--red-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23D7141A' d='m9.5 16.2-4-4 1.4-1.4 2.6 2.6 6.6-6.6 1.4 1.4z'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.quote-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 32px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); width: 100%;
  background: #FBFAF8; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 14px;
  transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); background: #fff; }
.field input[aria-invalid="true"] { border-color: var(--red); background: var(--red-soft); }
.form-error { color: var(--red-dark); font-size: 14px; font-weight: 500; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: var(--red); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: grid; place-items: center; font-size: 20px; font-weight: 500; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--muted); }

/* Contact */
.contact { background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%); color: #fff; }
.contact h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); }
.contact .eyebrow { color: rgba(255, 255, 255, .8); }
.contact .sub { color: rgba(255, 255, 255, .85); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contact-cards { display: grid; gap: 12px; }
.c-card {
  display: flex; align-items: center; gap: 16px; text-decoration: none;
  background: #fff; color: var(--ink); border-radius: var(--radius); padding: 16px 20px;
  transition: transform .2s, box-shadow .2s;
}
.c-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, .18); }
.c-ico { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; }
.c-ico.wa { background: #E6F7EC; color: var(--wa); }
.c-ico svg { width: 24px; height: 24px; }
.c-card small { display: block; color: var(--muted); font-size: 13px; line-height: 1.3; }
.c-card strong { display: block; font-size: 18px; overflow-wrap: anywhere; }
[dir="rtl"] .c-card strong { text-align: right; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .6); padding: 32px 0 32px; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer .brand-text strong { color: #fff; font-size: 17px; }
.site-footer .brand-text small { color: rgba(255, 255, 255, .55); }

/* Floating / sticky actions */
.wa-float {
  position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 40;
  width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 28px rgba(31, 175, 84, .4);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 32px; height: 32px; }

.action-bar { display: none; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* LTR tweaks */
[dir="ltr"] body { font-size: 16.5px; }
[dir="ltr"] .hero h1 { max-width: 17ch; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav a { padding: 8px 8px; font-size: 14.5px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(3) { border-inline-start: 0; }
  .feature:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .menu-btn { display: flex; }
  .nav {
    position: fixed; top: var(--header-h); inset-inline: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 20px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(0, 0, 0, .08);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 8px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .header-actions { margin-inline-start: auto; }
  .hide-sm { display: none; }

  .quote-wrap, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .steps li::after { display: none; }
  .sizes-grid { grid-template-columns: 1fr; }
  .size-card { display: grid; grid-template-columns: 130px 1fr; grid-template-areas: "vis tag" "vis num" "vis txt"; column-gap: 20px; row-gap: 4px; align-items: center; }
  .size-vis { grid-area: vis; height: 70px; margin: 0; }
  .size-tag { grid-area: tag; justify-self: start; }
  .size-card strong { grid-area: num; font-size: 24px; }
  .size-card p { grid-area: txt; }
}

@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: 68px; }
  .container { padding-inline: 16px; }
  .section { padding-block: 64px; }
  .section-head { margin-bottom: 32px; }
  .hero { min-height: auto; }
  .hero-inner { padding-block: 56px 80px; }
  .hero-media::after, [dir="ltr"] .hero-media::after { background: linear-gradient(to top, rgba(16, 17, 21, .92) 10%, rgba(16, 17, 21, .65) 100%); }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-proof { gap: 12px 20px; margin-top: 32px; }
  .hero-proof strong { font-size: 16px; }
  .features-grid { grid-template-columns: 1fr 1fr; padding: 4px; }
  .feature { flex-direction: column; gap: 10px; padding: 18px 14px; }
  .feature .ico { width: 40px; height: 40px; }
  .services-grid { grid-template-columns: 1fr; gap: 12px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery .g-wide { grid-column: 1 / -1; }
  .quote-form { padding: 22px 18px; }
  .field-row { grid-template-columns: 1fr; }
  .size-card { grid-template-columns: 96px 1fr; padding: 20px; }
  .brand-text small { display: none; }

  .wa-float { display: none; }
  .action-bar {
    display: grid; grid-template-columns: 1fr 1fr 1fr; position: fixed; inset-inline: 0; bottom: 0; z-index: 45;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .08);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 8px;
  }
  .action-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 15px; border-radius: 12px; padding: 11px 6px; }
  .action-bar svg { width: 20px; height: 20px; }
  .ab-call { background: var(--red-soft); color: var(--red); }
  .ab-wa { background: var(--wa); color: #fff; }
  .ab-quote { background: var(--ink); color: #fff; }
}

@media (max-width: 380px) {
  .steps { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .feature + .feature { border-inline-start: 0; border-top: 1px solid var(--line); }
  .feature { flex-direction: row; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
