@font-face {
  font-family: "Saudi";
  src: url("../fonts/SaudiWeb-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Saudi";
  src: url("../fonts/SaudiWeb-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --lime: #EEF0E8;      /* coral plaster */
  --teal: #0E6B6B;      /* painted rawshan wood */
  --teal-deep: #0A4348;
  --madder: #B81D2B;    /* sadu red */
  --saffron: #FFB627;   /* light behind the lattice */
  --ink: #1C1714;       /* goat-hair black */
  --wool: #F1EDE3;
  --wa: #25D366;

  --display: "Saudi", "Cairo", "IBM Plex Sans Arabic", sans-serif;
  --text: "IBM Plex Sans Arabic", system-ui, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --section: clamp(72px, 12vw, 148px);

  --lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72'%3E%3Cpath fill='%230E6B6B' fill-rule='evenodd' d='M0 0H72V72H0ZM63 36L55.1 43.9L55.1 55.1L43.9 55.1L36 63L28.1 55.1L16.9 55.1L16.9 43.9L9 36L16.9 28.1L16.9 16.9L28.1 16.9L36 9L43.9 16.9L55.1 16.9L55.1 28.1ZM0 0H8L0 8ZM72 0V8L64 0ZM72 72H64L72 64ZM0 72V64L8 72Z'/%3E%3Cpath fill='none' stroke='%230A4348' stroke-width='1.6' d='M63 36L55.1 43.9L55.1 55.1L43.9 55.1L36 63L28.1 55.1L16.9 55.1L16.9 43.9L9 36L16.9 28.1L16.9 16.9L28.1 16.9L36 9L43.9 16.9L55.1 16.9L55.1 28.1Z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
::selection { background: var(--saffron); color: var(--ink); }
input { caret-color: var(--madder); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--lime);
  color: var(--ink);
  font: 400 clamp(17px, 1.3vw, 19px)/1.8 var(--text);
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
h1, h2 { font-family: var(--display); font-weight: 700; line-height: 1.15; text-wrap: balance; }
h2 { font-size: clamp(44px, 9vw, 104px); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; }
.street .toggle:focus-visible { outline-color: #fff; }
.contact :focus-visible, .packages :focus-visible, .offer :focus-visible { outline-color: var(--ink); }

.wrap { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.lead { max-width: 34em; margin-top: 16px; font-size: 1.1em; }

.skip {
  position: fixed; top: 8px; right: 8px; z-index: 100;
  padding: 8px 16px; background: var(--saffron); color: var(--ink);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 10px 24px;
  border: 2px solid transparent; border-radius: 3px;
  font: 700 1em/1.2 var(--text); text-decoration: none; cursor: pointer;
  touch-action: manipulation;
  transition: transform .12s ease-out, background-color .15s ease-out, color .15s ease-out;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-sun { background: var(--saffron); color: var(--ink); }
.btn-line { color: var(--lime); }
.btn-ink { background: var(--ink); color: var(--lime); }
@media (hover: hover) {
  .btn-sun:hover { background: var(--lime); }
  .btn-line:hover { color: var(--saffron); }
  .btn-ink:hover { background: var(--teal-deep); }
}

/* ---------- hero: the page is a rawshan ---------- */
.hero { height: 210svh; background: var(--teal-deep); }
.rawshan {
  position: sticky; top: 0;
  display: flex; flex-direction: column;
  height: 100svh; overflow: hidden;
  background: var(--teal-deep);
}
.crown {
  position: relative; z-index: 3; flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 10px var(--gutter) 22px;
  background: var(--teal-deep);
  color: var(--lime);
}
.crown::after { /* carved cresting */
  content: ""; position: absolute; inset: auto 0 -1px; height: 14px;
  background: radial-gradient(circle at 12px 16px, var(--saffron) 0 9px, transparent 9.5px) 0 0 / 24px 14px repeat-x;
}
.logo {
  display: inline-flex; align-items: baseline; gap: 10px;
  min-height: 44px; padding-top: 2px;
  font: 700 32px/1.2 var(--display); text-decoration: none;
}
.logo small { font: 400 14px/1 var(--display); opacity: .85; }
.crown nav { display: none; gap: 28px; }
.crown nav a { text-decoration: none; font-weight: 500; padding-block: 8px; }
.crown nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

.window {
  position: relative; flex: 1 1 auto; min-height: 150px;
  perspective: 1100px; perspective-origin: 50% 45%;
  overflow: hidden;
  border-block: 10px solid var(--teal);
}
.room {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 24px clamp(28px, 10vw, 180px);
  background-color: var(--saffron);
  background-image: var(--lattice);
  background-size: 180px;
  background-blend-mode: soft-light;
  text-align: center;
  cursor: pointer;
}
.room-text span {
  display: block; margin-top: 10px;
  font: 700 clamp(17px, 1.7vw, 24px)/1.5 var(--text);
  color: var(--ink);
}
.room p {
  font: 700 clamp(38px, 8.6vw, 104px)/1.2 var(--display);
  color: var(--ink);
  text-wrap: balance;
}
.leaf {
  position: absolute; inset-block: 0; width: 50.1%;
  display: grid; grid-template-rows: 1fr 1fr 1fr;
  will-change: transform;
  backface-visibility: visible;
}
.leaf-r { right: 0; transform-origin: 100% 50%; transform: rotateY(5deg); }
.leaf-l { left: 0; transform-origin: 0 50%; transform: rotateY(-5deg); }
.leaf i {
  display: block;
  border: 7px solid var(--teal);
  outline: 1px solid var(--teal-deep); outline-offset: -8px;
  background-image: var(--lattice);
  background-size: 48px;
  background-position: center;
}
.leaf-r { border-left: 5px solid var(--teal-deep); }
.leaf-l { border-right: 5px solid var(--teal-deep); }
.leaf b { /* shade as the leaf turns from the light */
  position: absolute; inset: 0; background: var(--ink); opacity: 0;
  pointer-events: none;
}

.sill {
  position: relative; z-index: 3; flex: none;
  display: grid; gap: 12px;
  padding: 18px var(--gutter) max(20px, env(safe-area-inset-bottom));
  background: var(--teal-deep);
  color: var(--lime);
}
.sill h1 { font-size: clamp(46px, 13.6vw, 132px); line-height: 1.16; }
.sill-side p { max-width: 32em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.actions .btn-sun { flex: 1 1 100%; }
.actions .btn-line {
  min-height: 44px; padding: 4px 10px 4px 4px; border: 0;
  text-decoration: underline; text-underline-offset: 6px;
}

@media (max-height: 640px) and (max-width: 899px) {
  .sill-side p { display: none; }
}
@media (max-height: 560px) {
  .hero { height: auto; }
  .rawshan { position: static; height: auto; }
  .window { order: 2; min-height: 220px; }
  .sill h1 { font-size: 40px; }
  .sill-side p { display: none; }
  .leaf { display: none; }
}

/* ---------- offer ---------- */
.offer { padding-block: var(--section); }
.offer-list { margin-top: clamp(32px, 6vw, 72px); }
.offer-list li {
  display: grid; gap: 4px;
  padding-block: clamp(18px, 3vw, 30px);
  border-top: 2px solid var(--ink);
}
.offer-list li:last-child { border-bottom: 2px solid var(--ink); }
.offer-list h3 {
  font: 700 clamp(32px, 6vw, 68px)/1.2 var(--display);
  color: var(--teal);
}
.offer-list li:last-child h3 { color: var(--madder); }
.offer-list p { max-width: 30em; }

/* ---------- how: sadu loom ---------- */
.how { padding-block: var(--section); background: var(--ink); color: var(--lime); }
.steps {
  --loom: 76px;
  position: relative;
  display: grid; grid-template-columns: var(--loom) 1fr; gap: 24px;
  margin-top: clamp(36px, 6vw, 72px);
}
.loom { position: relative; overflow: hidden; }
.loom canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.loom-cover { /* bare warp threads, not woven yet */
  position: absolute; inset: 0;
  background: repeating-linear-gradient(to left, #5b534c 0 1px, var(--ink) 1px 7px);
  transform-origin: 50% 100%;
  will-change: transform;
}
.loom-shuttle {
  position: absolute; inset: 0 0 auto; height: 8px;
  background: var(--saffron);
  will-change: transform;
}
.steps ol { counter-reset: step; }
.steps li {
  counter-increment: step;
  min-height: 46svh;
  padding-block: 8px 48px;
  opacity: .55;
  transition: opacity .3s ease-out;
}
.steps li:last-child { min-height: 0; padding-bottom: 0; }
.steps li.on { opacity: 1; }
.steps li::before {
  content: counter(step);
  display: block;
  font: 700 clamp(56px, 11vw, 120px)/1 var(--display);
  color: var(--saffron);
}
.steps h3 { font: 700 clamp(24px, 3.4vw, 38px)/1.3 var(--display); margin-top: 8px; }
.steps p { max-width: 28em; margin-top: 8px; }

/* ---------- street: demo shops ---------- */
.street { padding-block: var(--section) 0; background: var(--madder); color: #fff; }
.shops {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(84%, 340px); gap: 16px;
  margin-top: clamp(28px, 5vw, 48px);
  margin-inline: calc(var(--gutter) * -1);
  padding: 0 var(--gutter) 40px;
  scroll-padding-inline: var(--gutter);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.shops::-webkit-scrollbar { display: none; }
.shop { min-width: 0; scroll-snap-align: start; }
.sign {
  position: relative;
  padding: 12px 18px 14px;
  border: 3px solid var(--ink); border-bottom: 0;
}
.sign h3 { font-size: 40px; line-height: 1.2; font-weight: 400; }
.sign p { font-size: 15px; }
.tag {
  position: absolute; top: 12px; left: 12px;
  padding: 3px 10px;
  background: var(--ink); color: #fff;
  font: 700 14px/1.4 var(--text);
}
.bay {
  position: relative; height: 440px; overflow: hidden;
  border: 3px solid var(--ink);
  background: var(--ink);
}
.shutter {
  position: absolute; inset: 0;
  background:
    linear-gradient(to left, rgba(0,0,0,.18), transparent 12% 88%, rgba(0,0,0,.18)),
    repeating-linear-gradient(to bottom, #aeb6b3 0 13px, #8d9693 13px 15px, #cfd5d2 15px 17px, #aeb6b3 17px 18px);
  transform: translateY(-101%);
  transition: transform 1.1s cubic-bezier(.3, 1.08, .45, 1);
  will-change: transform;
}
.shutter-handle {
  position: absolute; bottom: 14px; left: 50%; margin-left: -34px;
  width: 68px; height: 12px; border-radius: 2px; background: var(--ink);
}
.shop.closed .shutter { transform: none; }
.toggle {
  display: block; min-height: 44px; margin-top: 4px; padding: 4px 0;
  border: 0; background: none; color: #fff;
  font: 500 16px/1.2 var(--text); cursor: pointer; touch-action: manipulation;
  text-decoration: underline; text-underline-offset: 5px;
}
@media (hover: hover) { .toggle:hover { color: var(--saffron); } }
.street::after { /* pavement */
  content: ""; display: block; height: 28px; background: var(--ink);
}

.mock { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 20px; overflow: hidden; }
.mock strong { font-weight: 400; }
.mock-bar { display: flex; gap: 14px; margin-top: auto; padding-top: 10px; border-top: 2px solid currentColor; }
.mock-bar span { font: 500 13px/1.2 var(--text); }

.shop-bakery .sign { background: #F7D98B; color: #4A2411; }
.shop-bakery .sign h3 { font-family: "Aref Ruqaa", var(--display); font-weight: 700; }
.m-bakery { background: #F7D98B; color: #4A2411; }
.m-bakery strong { font: 700 44px/1.25 "Aref Ruqaa", var(--display); }
.m-bakery ul { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-weight: 500; }
.loaf {
  position: relative; width: 170px; height: 98px; margin: 0 auto 16px;
  border-radius: 50% 50% 46% 46% / 72% 72% 28% 28%;
  background: #A9601F;
  box-shadow: inset 0 -12px 0 #7E4312;
}
.loaf::before {
  content: ""; position: absolute; top: 24px; right: 34px; width: 102px; height: 8px;
  border-radius: 8px; background: #F7D98B; transform: rotate(-7deg);
  box-shadow: 4px 20px 0 #F7D98B;
}

.shop-barber .sign { background: var(--wool); color: var(--ink); }
.shop-barber .sign h3 { font-family: "Lalezar", var(--display); }
.m-barber { background: var(--wool); color: var(--ink); padding-inline: 20px 84px; }
.m-barber strong { font: 400 84px/1.05 "Lalezar", var(--display); }
.pole {
  position: absolute; inset: 0 auto 0 0; width: 64px;
  background: repeating-linear-gradient(-45deg, #1F3F8F 0 18px, var(--wool) 18px 36px, #C42430 36px 54px, var(--wool) 54px 72px);
}

.shop-flower .sign { background: #12422F; color: #F9CFDA; }
.shop-flower .sign h3 { font-family: "Reem Kufi", var(--display); font-weight: 500; }
.m-flower { background: #F9CFDA; color: #12422F; align-items: center; text-align: center; }
.m-flower svg { width: 220px; margin-block: 8px; fill: #D9436C; }
.m-flower circle { fill: #12422F; }
.m-flower strong { font: 500 34px/1.3 "Reem Kufi", var(--display); }
.m-flower .mock-bar { width: 100%; justify-content: center; }
.bloom { animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- packages ---------- */
.packages { padding-block: var(--section); }
.plans { display: grid; gap: 36px; margin-top: clamp(32px, 5vw, 56px); }
.plan { display: grid; gap: 4px; align-content: start; }
.bays { display: flex; align-items: flex-end; gap: 6px; height: clamp(64px, 8vw, 112px); margin-bottom: 12px; }
.bays span {
  width: clamp(44px, 5.2vw, 74px); height: 100%;
  border: 6px solid var(--teal);
  border-radius: 40px 40px 0 0;
  background: var(--saffron) var(--lattice) center / 26px;
}
.plan h3 { font: 700 24px/1.3 var(--display); }
.price { font: 700 clamp(52px, 6.4vw, 80px)/1.15 var(--text); color: var(--teal); font-variant-numeric: tabular-nums; }
.price small { font: 500 17px/1 var(--text); color: var(--ink); margin-inline-start: 6px; }
.yearly { font-weight: 700; }
.plan ul { margin-top: 10px; padding-top: 10px; border-top: 2px solid var(--ink); }
.plan .btn { margin-top: 16px; justify-self: start; }
.basics { margin-top: clamp(24px, 4vw, 40px); padding: 18px 22px; background: var(--teal-deep); color: var(--lime); }
.basics h3 { font: 700 20px/1.3 var(--display); color: var(--saffron); }
.basics ul { display: grid; gap: 2px 32px; margin-top: 6px; }

/* ---------- contact ---------- */
.contact { padding-block: var(--section); background: var(--saffron); }
.contact-grid { display: grid; gap: 36px; }
.signmaker { display: grid; gap: 10px; min-width: 0; }
.plaque {
  display: grid; place-items: center;
  min-height: 150px; padding: 16px; margin-bottom: 14px;
  border: 8px solid var(--ink);
  text-align: center; overflow-wrap: anywhere; line-height: 1.25;
  font-size: var(--fit, 56px);
  transition: background-color .2s ease-out, color .2s ease-out;
}
.plaque[data-style="ruqaa"] { background: var(--teal-deep); color: var(--saffron); font-family: "Aref Ruqaa", var(--display); font-weight: 700; }
.plaque[data-style="kufi"] { background: var(--wool); color: var(--madder); font-family: "Reem Kufi", var(--display); font-weight: 600; }
.plaque[data-style="poster"] { background: var(--madder); color: #fff; font-family: "Lalezar", var(--display); }
.signmaker > label, legend { font-weight: 700; }
.signmaker input[type="text"] {
  width: 100%; min-height: 54px; padding: 10px 14px;
  border: 2px solid var(--ink); border-radius: 3px;
  background: var(--lime); color: var(--ink);
  font: 500 18px/1.4 var(--text);
}
.signmaker input::placeholder { color: #5b534c; }
fieldset { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 8px; padding: 0; border: 0; }
legend { padding: 0; margin-bottom: 6px; }
fieldset label { flex: 1; cursor: pointer; }
fieldset input { position: absolute; opacity: 0; }
fieldset span {
  display: grid; place-items: center; min-height: 48px; padding: 4px 12px;
  border: 2px solid var(--ink); border-radius: 3px; font-weight: 700;
  transition: background-color .15s ease-out, color .15s ease-out;
}
.f-ruqaa { font-family: "Aref Ruqaa", var(--text); }
.f-kufi { font-family: "Reem Kufi", var(--text); }
.f-poster { font-family: "Lalezar", var(--text); font-weight: 400; }
fieldset input:checked + span { background: var(--ink); color: var(--saffron); }
fieldset input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.form-note { font-weight: 700; }

.foot { padding-block: 32px 96px; background: var(--ink); color: var(--lime); }
.foot-made { font: 700 1.05em/1.5 var(--display); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }

/* sticky whatsapp */
.wa-float {
  position: fixed; z-index: 50;
  bottom: max(16px, env(safe-area-inset-bottom)); left: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 54px; padding: 8px 18px 8px 16px;
  border-radius: 28px;
  background: var(--wa); color: #06281A;
  box-shadow: 0 0 0 2px var(--ink);
  font-weight: 700; text-decoration: none;
  touch-action: manipulation;
  transform: translateY(90px); visibility: hidden;
  transition: transform .25s ease-out, visibility .25s;
}
.wa-float.show { transform: none; visibility: visible; }
.wa-float:focus-visible { outline: 3px solid #fff; box-shadow: 0 0 0 6px var(--ink); }
.wa-float.show:active { transform: scale(.96); }
.wa-float svg { width: 26px; height: 26px; }

/* ---------- wider screens ---------- */
@media (min-width: 900px) {
  .crown nav { display: flex; }
  .leaf { grid-template-rows: 1fr; grid-template-columns: 1fr 1fr 1fr; }
  .leaf i { background-size: 64px; }
  .sill {
    grid-template-columns: 1fr minmax(320px, 34em);
    align-items: end; gap: 48px;
    padding-block: 20px 28px;
  }
  .sill h1 { font-size: clamp(62px, 6.6vw, 112px); }
  .actions .btn-sun { flex: 0 1 auto; }
  .offer-list li { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: 40px; }
  .steps { --loom: clamp(240px, 30vw, 400px); gap: 64px; }
  .plans { grid-template-columns: repeat(3, 1fr); gap: 48px; align-items: start; }
  .basics ul { grid-template-columns: repeat(3, auto); justify-content: start; }
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
}

@media (min-width: 1040px) {
  .swipe-hint { display: none; }
  .shops {
    grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 20px;
    margin-inline: 0; padding-inline: 0; overflow: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { height: auto; }
  .rawshan { position: static; }
  .window { min-height: 46svh; }
  .leaf { display: none; }
  .room { cursor: auto; }
  .wa-float { transition: none; }
  .loom-cover, .loom-shuttle { display: none; }
  .steps li { opacity: 1; }
  .shutter { transition: none; }
  .bloom { animation: none; }
}
