/* Hiak website. Same colours as the app ("gahwa and saffron"). Logical properties, so Arabic (RTL) needs no extra rules. */
:root {
  --primary: #5b3a29;
  --primary-dark: #4a2f21;
  --primary-soft: #f1e6da;
  --gold: #946510;
  --gold-light: #e0b35a;
  --gold-soft: #f7ebd3;
  --bg: #f8f4ef;
  --card: #ffffff;
  --text: #2a1e17;
  --muted: #6e5f55;
  --border: #eadfd3;
  --whatsapp: #0e7d41;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(42, 30, 23, 0.05), 0 6px 24px rgba(42, 30, 23, 0.07);
  --font: system-ui, -apple-system, 'Segoe UI', 'Noto Sans Arabic', 'Geeza Pro', Tahoma, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
}

html[lang='ar'] body,
section[lang='ar'] {
  line-height: 1.8;
}

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

a {
  color: var(--primary);
}

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

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

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 20px;
}

/* header */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 244, 239, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
}

.nav a:hover {
  background: var(--primary-soft);
}

.nav .lang {
  border: 1px solid var(--border);
  background: var(--card);
  margin-inline-start: 6px;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 14px;
  font: 700 16px/1.2 var(--font);
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-wa {
  background: var(--whatsapp);
  color: #fff;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-ghost {
  background: var(--card);
  color: var(--primary);
  border-color: var(--border);
}

.btn-light {
  background: #fff;
  color: var(--primary);
}

/* hero */
.hero {
  padding: 64px 0 72px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 14px;
}

.eyebrow svg {
  width: 18px;
  height: 18px;
}

h1 {
  font-size: clamp(34px, 5.2vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

[lang='ar'] h1 {
  letter-spacing: 0;
  line-height: 1.35;
}

.lead {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 34em;
}

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

.soon {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 15px;
}

.soon svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.cats {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.cats h2 {
  font-size: 18px;
  margin: 0 0 20px;
  text-align: center;
}

.cats ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 10px;
}

.cats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.cats .ic {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
}

.cats .ic svg {
  width: 26px;
  height: 26px;
}

/* sections */
section {
  padding: 80px 0;
}

.alt {
  background: var(--card);
  border-block: 1px solid var(--border);
}

.head {
  max-width: 640px;
  margin: 0 0 40px;
}

h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.2;
  margin: 0 0 10px;
}

.head p {
  color: var(--muted);
  margin: 0;
  font-size: 18px;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

/* four cards: 4 in a row on wide screens, 2 + 2 on tablets, 1 per row on phones */
.grid.g4 {
  grid-template-columns: repeat(4, 1fr);
}

section[id] {
  scroll-margin-top: 72px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.alt .card {
  background: var(--bg);
}

.card h3 {
  font-size: 19px;
  margin: 16px 0 6px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.card .ic {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
}

.card .ic svg {
  width: 24px;
  height: 24px;
}

.step {
  position: relative;
}

.step .n {
  position: absolute;
  top: 22px;
  inset-inline-end: 24px;
  font-size: 40px;
  font-weight: 800;
  color: var(--primary-soft);
  line-height: 1;
}

/* for home businesses */
.shops {
  background: var(--primary);
  color: #fff;
}

.shops .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
}

.shops .eyebrow {
  color: var(--gold-light);
}

.shops .lead {
  color: rgba(255, 255, 255, 0.82);
}

.feats {
  list-style: none;
  margin: 8px 0 32px;
  padding: 0;
  display: grid;
  gap: 20px;
}

.feats li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feats .ic {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold-light);
  display: grid;
  place-items: center;
}

.feats .ic svg {
  width: 22px;
  height: 22px;
}

.feats b {
  display: block;
  font-size: 17px;
}

.feats span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
}

.price {
  background: #fff;
  color: var(--text);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.price h3 {
  font-size: 22px;
  margin: 0 0 18px;
}

.price dl {
  margin: 0;
}

.price .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.price dt {
  font-weight: 600;
}

.price dt small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 14px;
  margin-top: 2px;
}

.price dd {
  margin: 0;
  font-weight: 800;
  font-size: 20px;
  white-space: nowrap;
}

.offer {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--gold-soft);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 15px;
}

.offer svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
  color: var(--gold);
}

.fine {
  color: var(--muted);
  font-size: 14px;
  margin: 14px 0 0;
}

/* contact */
.contact {
  text-align: center;
}

.contact .head {
  margin-inline: auto;
}

.contact .actions {
  justify-content: center;
}

.contact .mail {
  margin-top: 18px;
  color: var(--muted);
}

/* footer */
footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 44px 0;
  font-size: 15px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  justify-content: space-between;
  align-items: flex-start;
}

footer .brand {
  color: #fff;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

footer a {
  color: #fff;
}

footer p {
  margin: 10px 0 0;
  max-width: 36em;
}

/* legal pages */
.legal {
  padding: 48px 0 72px;
}

.legal .wrap {
  max-width: 760px;
}

.legal h1 {
  font-size: clamp(28px, 4vw, 38px);
}

.legal h2 {
  font-size: 21px;
  margin-top: 32px;
}

.legal small {
  color: var(--muted);
}

.legal hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

.legal .jump {
  margin: 0 0 28px;
}

/* phones and small tablets */
@media (max-width: 1000px) {
  .grid.g4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero .wrap,
  .shops .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero {
    padding: 40px 0 56px;
  }
  section {
    padding: 60px 0;
  }
}

@media (max-width: 760px) {
  .grid,
  .grid.g4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav a:not(.lang) {
    display: none;
  }
  .btn {
    width: 100%;
  }
  .cats {
    padding: 22px 16px;
  }
  .price {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
  .btn:hover {
    transform: none;
  }
}
