/* =====================================================================
   Ethq Sweets — عذق سويت
   One family (Readex Pro, Arabic + Latin), self-hosted.
   Palette taken from the brand's own box: cream card + purple ink.
   ===================================================================== */

@font-face {
  font-family: 'Readex Pro';
  font-style: normal; font-display: swap; font-weight: 160 700;
  src: url(fonts/readex-pro-arabic-wght-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: 'Readex Pro';
  font-style: normal; font-display: swap; font-weight: 160 700;
  src: url(fonts/readex-pro-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

:root {
  --ground: #F5EFE1;      /* the box card */
  --ground-2: #EBE2CC;    /* one tone step */
  --ink: #1E0F33;         /* deep plum ink */
  --ink-2: #4B3D5C;       /* secondary notes only */
  --accent: #6A3F9A;      /* the logo's purple */
  --accent-press: #57307F;
  --field: #2A1050;       /* full plum field */
  --field-2: #351664;
  --on-field: #F5EFE1;
  --on-field-2: #D9CBEA;
  --wa: #1D8F4A;          /* WhatsApp, darkened for contrast */

  --font: 'Readex Pro', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;

  --step-hero: clamp(2.6rem, 9.2vw, 7.4rem);
  --step-h2: clamp(2.1rem, 5.6vw, 4.6rem);
  --step-h3: clamp(1.35rem, 2.2vw, 1.75rem);
  --step-lede: clamp(1.15rem, 1.7vw, 1.45rem);
  --step-body: 1.0625rem;
  --step-small: 0.9375rem;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1320px;
  --section: clamp(88px, 13vw, 200px);
  --radius: 999px;

  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font); font-size: var(--step-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--ground); }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Display type. Arabic needs looser leading than Latin. */
.display, h1, h2 { font-weight: 650; letter-spacing: -0.02em; line-height: 1.02; text-wrap: balance; }
html[lang="ar"] .display, html[lang="ar"] h1, html[lang="ar"] h2 { letter-spacing: 0; line-height: 1.22; font-weight: 700; }
h1 { font-size: var(--step-hero); }
h2 { font-size: var(--step-h2); }
h3 { font-size: var(--step-h3); font-weight: 600; line-height: 1.3; }
.lede { font-size: var(--step-lede); line-height: 1.55; max-width: 34ch; }
.note { font-size: var(--step-small); color: var(--ink-2); }

/* ---------- Buttons: fully round, flat, one fill ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: .8em 1.6em; border-radius: var(--radius); border: 0;
  font-weight: 600; font-size: 1.0625rem; text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease-out), background-color .18s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--ground); }
.btn-primary:hover { background: var(--accent-press); }
.btn-ground { background: var(--ground); color: var(--field); }
.btn-ground:hover { background: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #17783d; }
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.flip-rtl { transition: transform .2s var(--ease-out); }
html[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

.textlink {
  display: inline-flex; align-items: center; gap: .45em; min-height: 44px;
  font-weight: 600; text-decoration: none; color: var(--accent);
}
.textlink span { text-decoration: underline 2px transparent; text-underline-offset: 6px; transition: text-decoration-color .2s; }
.textlink:hover span { text-decoration-color: currentColor; }

/* ---------- The box band (Najdi diamond chain from the packaging) ---------- */
.band {
  height: 22px; background-color: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22'%3E%3Cpath d='M22 2 L40 11 L22 20 L4 11 Z M22 7 L12 11 L22 15 L32 11 Z' fill-rule='evenodd'/%3E%3Cpath d='M0 0h44v1.5H0zM0 20.5h44V22H0z'/%3E%3Ccircle cx='0' cy='11' r='2'/%3E%3Ccircle cx='44' cy='11' r='2'/%3E%3C/svg%3E") repeat-x center / 44px 22px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22'%3E%3Cpath d='M22 2 L40 11 L22 20 L4 11 Z M22 7 L12 11 L22 15 L32 11 Z' fill-rule='evenodd'/%3E%3Cpath d='M0 0h44v1.5H0zM0 20.5h44V22H0z'/%3E%3Ccircle cx='0' cy='11' r='2'/%3E%3Ccircle cx='44' cy='11' r='2'/%3E%3C/svg%3E") repeat-x center / 44px 22px;
}
.band-on-field { background-color: var(--on-field-2); }

/* ---------- In-app browser notice ---------- */
.inapp { background: var(--field); color: var(--on-field); position: relative; z-index: 60; }
.inapp .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-block: 12px; }
.inapp p { flex: 1 1 220px; font-size: .95rem; line-height: 1.45; font-weight: 500; }
.inapp .btn { min-height: 44px; padding: .55em 1.2em; font-size: .95rem; }
.inapp-close { background: none; border: 0; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; color: var(--on-field-2); border-radius: 50%; }
.inapp-close:hover { background: var(--field-2); }
.inapp-hint { flex-basis: 100%; font-size: .85rem; color: var(--on-field-2); }
@media (max-width: 560px) {
  .inapp .btn { flex: 1 1 100%; order: 3; }
}

/* ---------- Header ---------- */
.bar { position: sticky; top: 0; z-index: 50; background: var(--ground); transition: background-color .25s; }
.bar.scrolled { background: var(--ground-2); }
.bar .wrap { display: flex; align-items: center; gap: 12px; height: 76px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 52px; width: auto; }
.nav { display: none; gap: 28px; margin-inline-start: 36px; font-weight: 500; }
.nav a { text-decoration: none; padding-block: 10px; position: relative; }
.nav a::after { content: ''; position: absolute; inset-inline: 0; bottom: 4px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s var(--ease-out); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.bar-end { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.lang {
  min-height: 44px; min-width: 52px; padding: 0 14px; border-radius: var(--radius); border: 0;
  background: var(--ground-2); font-weight: 600; cursor: pointer; transition: background-color .2s, transform .18s;
}
.bar.scrolled .lang { background: var(--ground); }
.lang:active { transform: scale(.96); }
.bar .btn { display: none; min-height: 46px; padding: .55em 1.3em; font-size: 1rem; }
.menu-btn { width: 48px; height: 48px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; border-radius: 50%; }
.menu-btn:hover { background: var(--ground-2); }
.menu-btn svg { width: 26px; height: 26px; }
.drawer { background: var(--ground-2); }
.drawer .wrap { display: flex; flex-direction: column; padding-block: 8px 24px; }
.drawer a:not(.btn) { padding: 14px 0; font-size: 1.25rem; font-weight: 600; text-decoration: none; }
.drawer .btn { margin-top: 12px; }
@media (min-width: 640px) { .bar .btn { display: inline-flex; } }
@media (min-width: 1024px) {
  .nav { display: flex; }
  .menu-btn, .drawer { display: none !important; }
  .bar .wrap { height: 88px; }
  .brand img { height: 60px; }
}

/* ---------- Hero ---------- */
.hero { padding-block: 12px 0; }
.hero-grid { display: grid; gap: 24px; }
.hero-media { order: -1; }
.hero h1 { margin-top: 4px; }
.hero h1 { max-width: 16ch; }
.hero .lede { margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
.hero-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3.2; background: var(--ground-2); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; padding-top: 22px; }
.hero-facts b { display: block; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 650; color: var(--accent); line-height: 1.2; }
.hero-facts span { display: block; font-size: var(--step-small); color: var(--ink-2); line-height: 1.4; margin-top: 4px; }
@media (min-width: 1024px) {
  .hero { padding-top: 24px; }
  .hero-grid { grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: end; min-height: calc(100svh - 120px); }
  .hero-media { order: 0; }
  .hero h1 { font-size: clamp(3.4rem, 5.4vw, 6rem); }
  .hero-text { padding-bottom: 48px; }
  .hero-media { aspect-ratio: auto; height: 100%; min-height: 560px; }
}

/* ---------- Story ---------- */
.story { padding-block: var(--section); }
.story-grid { display: grid; gap: 40px; }
.story h2 { max-width: 18ch; }
.story-body { display: grid; gap: 20px; max-width: 60ch; }
.story-body .statement { font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.5; font-weight: 500; color: var(--ink); }
.story-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.story-points { display: grid; gap: 14px; margin-top: 8px; }
.story-points li { display: flex; gap: 14px; align-items: baseline; font-weight: 500; font-size: 1.1rem; }
.story-points li::before { content: ''; flex: none; width: 10px; height: 10px; background: var(--accent); transform: rotate(45deg) translateY(-2px); }
@media (min-width: 1024px) {
  .story-grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
  .story-media { order: 2; }
}

/* ---------- Menu (the live thing) ---------- */
.menu { background: var(--ground-2); padding-block: var(--section); }
.menu-head { display: grid; gap: 18px; }
.menu-head p { max-width: 46ch; font-size: var(--step-lede); line-height: 1.5; }
.tabs { display: flex; gap: 8px; margin-top: 36px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-snap-type: x mandatory; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; scroll-snap-align: start; min-height: 48px; padding: 0 20px; border-radius: var(--radius); border: 0;
  background: var(--ground); color: var(--ink); font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: background-color .2s, color .2s, transform .18s;
}
.tab:hover { background: #fff; }
.tab:active { transform: scale(.96); }
.tab[aria-selected="true"] { background: var(--field); color: var(--on-field); }
.panel { margin-top: 36px; }
.panel-intro { font-size: 1.1rem; color: var(--ink-2); max-width: 52ch; }
.items { display: grid; gap: 48px; margin-top: 28px; }
.item { display: grid; gap: 18px; }
.item-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ground); }
.item-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.item:hover .item-media img { transform: scale(1.04); }
.item-tag { position: absolute; top: 14px; inset-inline-start: 14px; background: var(--ground); color: var(--ink); font-size: .9rem; font-weight: 600; padding: 6px 14px; border-radius: var(--radius); }
.item h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 650; line-height: 1.2; }
.item .alt-name { color: var(--accent); font-weight: 500; margin-top: 2px; }
.item p.desc { max-width: 46ch; }
.item .sizes { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.item .sizes span { background: var(--ground); padding: 6px 14px; border-radius: var(--radius); font-size: .95rem; font-weight: 500; }
.item .sizes .lbl { background: none; padding: 0; margin-inline-end: 4px; color: var(--ink-2); font-weight: 400; }
.item .btn { justify-self: start; margin-top: 4px; }
@media (min-width: 760px) {
  .items { grid-template-columns: 1fr 1fr; gap: 40px; }
  .item:nth-child(2) { margin-top: 96px; }
}
.panel-in { animation: panelIn .45s var(--ease-out) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Gift box ---------- */
.giftbox { padding-block: var(--section); }
.giftbox-grid { display: grid; gap: 36px; }
.giftbox-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.giftbox-text { display: grid; gap: 20px; align-content: start; }
.sizes-list { display: grid; gap: 0; margin-top: 8px; }
.sizes-list li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-size: 1.15rem; font-weight: 500; }
.sizes-list li:nth-child(odd) { background: var(--ground-2); margin-inline: -16px; padding-inline: 16px; }
.sizes-list li span:last-child { color: var(--ink-2); font-weight: 400; font-size: 1rem; }
@media (max-width: 640px) { .sizes-list li { flex-direction: column; gap: 2px; } }
.giftbox-text .btn { justify-self: start; }
@media (min-width: 1024px) {
  .giftbox-grid { grid-template-columns: 1.35fr 1fr; gap: 72px; align-items: center; }
}

/* ---------- Reviews ---------- */
.reviews { background: var(--field); color: var(--on-field); padding-block: var(--section); overflow: hidden; }
.reviews h2 { max-width: 20ch; }
.reviews .sub { color: var(--on-field-2); margin-top: 16px; font-size: 1.1rem; }
.quotes { display: grid; gap: 48px; margin-top: 56px; }
.quote blockquote { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.6; font-weight: 500; }
.quote:first-child blockquote { font-size: clamp(1.45rem, 2.8vw, 2.15rem); line-height: 1.5; }
.quote figcaption { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--on-field-2); font-size: .98rem; }
.quote figcaption b { color: var(--on-field); font-weight: 600; }
.quote .stars { color: #E5B94E; letter-spacing: 2px; }
.quote .prod { background: var(--field-2); padding: 4px 12px; border-radius: var(--radius); color: var(--on-field); font-size: .9rem; }
@media (min-width: 1024px) {
  .quotes { grid-template-columns: 1.4fr 1fr; gap: 56px 80px; }
  .quote:first-child { grid-row: span 2; }
}

/* ---------- Wholesale teaser ---------- */
.wholesale { padding-block: var(--section); }
.wholesale-grid { display: grid; gap: 36px; align-items: center; }
.wholesale-text { display: grid; gap: 20px; justify-items: start; }
.wholesale-text p { max-width: 44ch; font-size: var(--step-lede); line-height: 1.5; }
.wholesale-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 1024px) { .wholesale-grid { grid-template-columns: 1fr 1.1fr; gap: 72px; } }

/* ---------- Supply page ---------- */
.s-hero { padding-block: 12px var(--section); }
.s-hero .hero-grid { align-items: center; }
.s-hero h1 { max-width: 16ch; }
.who { background: var(--ground-2); padding-block: var(--section); }
.who-list { display: grid; gap: 0; margin-top: 44px; }
.who-list li { display: grid; gap: 8px; padding-block: 28px; }
.who-list li + li { border-top: 0; }
.who-list li:nth-child(2) { background: var(--ground); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.who-list h3 { font-size: clamp(1.7rem, 3.6vw, 2.8rem); font-weight: 650; line-height: 1.2; color: var(--accent); }
.who-list p { max-width: 52ch; font-size: 1.1rem; }
@media (min-width: 1024px) {
  .who-list li { grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: baseline; padding-block: 40px; }
}
.supply-products { padding-block: var(--section); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 16px; margin-top: 44px; }
.gallery figure img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--ground-2); }
.gallery figcaption { margin-top: 12px; font-weight: 600; font-size: 1.1rem; line-height: 1.35; }
.gallery figcaption span { display: block; color: var(--ink-2); font-weight: 400; font-size: .92rem; }
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 44px 28px; }
  .gallery figure:nth-child(3n+2) { margin-top: 64px; }
}
.steps { background: var(--field); color: var(--on-field); padding-block: var(--section); }
.steps ol { display: grid; gap: 36px; margin-top: 48px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; counter-increment: s; }
.steps li::before {
  content: counter(s); width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%;
  background: var(--on-field); color: var(--field); font-weight: 700; font-size: 1.4rem;
}
.steps h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 650; line-height: 1.25; }
.steps li p { color: var(--on-field-2); margin-top: 6px; font-size: 1.05rem; }
@media (min-width: 1024px) { .steps ol { grid-template-columns: repeat(3, 1fr); gap: 48px; } .steps li { grid-template-columns: 1fr; } }
.contact { padding-block: var(--section); }
.contact h2 { max-width: 20ch; }
.contact p { font-size: var(--step-lede); margin-top: 18px; max-width: 42ch; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.contact-actions .btn { min-height: 58px; padding-inline: 1.8em; font-size: 1.1rem; }
.btn-outline { background: var(--ground-2); color: var(--ink); }
.btn-outline:hover { background: #E3D8BE; }
.phone { direction: ltr; unicode-bidi: isolate; }

/* Sticky WhatsApp on phones (supply page) */
.sticky-wa { position: fixed; inset-inline: 0; bottom: 0; z-index: 40; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--ground-2); transform: translateY(110%); transition: transform .35s var(--ease-out); }
.sticky-wa.on { transform: none; }
.sticky-wa .btn { width: 100%; }
@media (min-width: 760px) { .sticky-wa { display: none; } }

/* ---------- Footer ---------- */
.foot { background: var(--field); color: var(--on-field); padding-top: clamp(64px, 9vw, 120px); }
.foot-name { font-size: clamp(3.2rem, 15vw, 12rem); font-weight: 700; line-height: 1; letter-spacing: 0; color: var(--on-field); }
html[lang="en"] .foot-name { letter-spacing: -0.04em; }
.foot-grid { display: grid; gap: 36px; margin-top: 48px; padding-bottom: 48px; }
.foot h4 { margin: 0 0 12px; font-size: 1rem; font-weight: 600; color: var(--on-field-2); }
.foot ul { display: grid; gap: 4px; }
.foot ul a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; text-decoration: none; font-size: 1.1rem; }
.foot ul a:hover { color: var(--on-field-2); }
.foot ul svg { width: 20px; height: 20px; flex: none; }
.foot-about { max-width: 36ch; color: var(--on-field-2); }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot-base { background: #1F0B3D; }
.foot-base .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; padding-block: 18px calc(18px + env(safe-area-inset-bottom)); font-size: .9rem; color: var(--on-field-2); }
.onwan { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--radius); background: var(--field); text-decoration: none; color: var(--on-field-2); transition: color .2s, background-color .2s; }
.onwan:hover { color: var(--on-field); background: var(--field-2); }
.onwan svg { width: 13px; height: auto; }
.onwan b { font-weight: 600; color: var(--on-field); }
body.has-sticky .foot-base .wrap { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
@media (min-width: 760px) { body.has-sticky .foot-base .wrap { padding-bottom: 18px; } }

/* Headlines that share the row with a picture on desktop */
@media (min-width: 1024px) {
  .story h2, .giftbox h2, .wholesale h2 { font-size: clamp(2.4rem, 3.9vw, 3.8rem); }
}

/* ---------- Motion ---------- */
.js .rv { opacity: 0; transform: translateY(24px); }
.js .rv.in { opacity: 1; transform: none; transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0ms); }
.hero-media img { animation: drift 18s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.1) translate(-1.5%, -1%); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv, .js .rv.in { opacity: 1; transform: none; transition: none; }
  .hero-media img, .panel-in { animation: none; }
  .item:hover .item-media img { transform: none; }
}
