/* =========================================================
   HANOOT.LY — DESIGN SYSTEM
   Concept: "The Ledger" — a modern souq account book.
   Structure reads like ledger rows (rules, tabular numerals,
   eastern-arabic counters); accents borrow the gold of a
   goldsmith's stamp and the teal of an old accounting stamp-ink.
   Built with CSS logical properties so the exact same rules
   serve both ltr (English) and rtl (Arabic) — no mirrored file.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600;700&family=Cairo:wght@600;700;800&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');

:root{
  /* palette */
  --ink:        #1B2143;
  --ink-2:      #262C52;
  --ink-soft:   #4B5079;
  --canvas:     #F6F4EF;
  --paper:      #FFFFFF;
  --gold:       #E3A233;
  --gold-dark:  #B87C1B;
  --teal:       #0E6B60;
  --teal-light: #E3EFEC;
  --slate:      #5B6070;
  --line:       #E3DFD5;
  --line-soft:  #EDEAE2;
  --danger:     #B3432B;

  /* type */
  --font-head-en: 'Plus Jakarta Sans', sans-serif;
  --font-body-en: 'Inter', sans-serif;
  --font-head-ar: 'Cairo', sans-serif;
  --font-body-ar: 'IBM Plex Sans Arabic', sans-serif;

  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 22px;
  --container: 1180px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--canvas);
  color:var(--ink);
  font-family:var(--font-body-en);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
html[lang="ar"] body{ font-family:var(--font-body-ar); }

h1,h2,h3,h4,.eyebrow,.stat-num,.logo-word{ font-family:var(--font-head-en); }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4,
html[lang="ar"] .eyebrow, html[lang="ar"] .stat-num, html[lang="ar"] .logo-word{
  font-family:var(--font-head-ar);
}
h1,h2,h3,h4{ margin:0 0 .5em; color:var(--ink); font-weight:800; letter-spacing:-.01em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4{ letter-spacing:0; }
p{ margin:0 0 1em; color:var(--ink-soft); }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; cursor:pointer; }

.container{ max-width:var(--container); margin-inline:auto; padding-inline:24px; }
.section{ padding-block:88px; }
.section--tight{ padding-block:56px; }
.section--ink{ background:var(--ink); color:#fff; }
.section--ink p{ color:#B9BEDC; }
.section--ink h2, .section--ink h3{ color:#fff; }
.section--paper{ background:var(--paper); }
.section--canvas{ background:var(--canvas); }

.eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-size:13px; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:var(--teal); margin-bottom:14px;
}
html[lang="ar"] .eyebrow{ letter-spacing:0; text-transform:none; }
.eyebrow::before{ content:""; width:22px; height:2px; background:var(--gold); display:inline-block; }

.section-head{ max-width:640px; margin-bottom:52px; }
.section-head.center{ margin-inline:auto; text-align:center; }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 26px; border-radius:999px; font-weight:700; font-size:15px;
  border:1.5px solid transparent; transition:.18s ease; white-space:nowrap;
}
.btn-gold{ background:var(--gold); color:var(--ink); }
.btn-gold:hover{ background:var(--gold-dark); }
.btn-outline{ border-color:rgba(27,33,67,.22); color:var(--ink); }
.btn-outline:hover{ border-color:var(--ink); }
.btn-ghost-light{ border-color:rgba(255,255,255,.35); color:#fff; }
.btn-ghost-light:hover{ border-color:#fff; background:rgba(255,255,255,.08); }
.btn-block{ width:100%; }
.btn-sm{ padding:10px 18px; font-size:14px; }

/* ---------- nav ---------- */
.nav{
  position:sticky; top:0; z-index:50; background:rgba(246,244,239,.9);
  backdrop-filter:blur(10px); border-block-end:1px solid var(--line);
}
.nav-inner{ display:flex; align-items:center; justify-content:space-between; padding-block:16px; gap:24px; }
.brand{ display:flex; align-items:center; gap:10px; font-weight:800; font-size:20px; color:var(--ink); }
.brand-mark{
  width:34px; height:34px; border-radius:9px; background:var(--ink);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.brand-mark svg{ width:18px; height:18px; }
.nav-links{ display:flex; align-items:center; gap:30px; }
.nav-links a{ font-size:14.5px; font-weight:600; color:var(--ink-soft); }
.nav-links a:hover, .nav-links a.active{ color:var(--ink); }
.nav-right{ display:flex; align-items:center; gap:14px; }
.lang-switch{
  display:flex; border:1.5px solid var(--line); border-radius:999px; padding:3px; gap:2px; background:var(--paper);
}
.lang-switch button{
  border:none; background:transparent; padding:6px 13px; border-radius:999px; font-size:12.5px; font-weight:700;
  color:var(--slate);
}
.lang-switch button.active{ background:var(--ink); color:#fff; }
.nav-toggle{ display:none; background:none; border:none; }
.dropdown{ position:relative; }
.dropdown-panel{
  position:absolute; inset-inline-start:0; top:calc(100% + 14px); background:var(--paper);
  border:1px solid var(--line); border-radius:var(--radius-m); padding:14px; width:300px;
  box-shadow:0 24px 48px -18px rgba(27,33,67,.28); opacity:0; visibility:hidden; transform:translateY(6px);
  transition:.16s ease; display:grid; gap:2px;
}
.dropdown:hover .dropdown-panel, .dropdown:focus-within .dropdown-panel{ opacity:1; visibility:visible; transform:translateY(0); }
.dropdown-panel a{ display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:8px; font-size:14px; font-weight:600; color:var(--ink); }
.dropdown-panel a:hover{ background:var(--canvas); }
.dropdown-panel .num{ font-size:11px; color:var(--gold-dark); font-weight:800; min-width:18px; }

/* ---------- hero ---------- */
.hero{ padding-block:64px 40px; position:relative; overflow:hidden; }
.hero-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:60px; align-items:center; }
.hero h1{ font-size:clamp(34px,4.6vw,58px); line-height:1.06; margin-bottom:22px; }
.hero h1 em{ font-style:normal; color:var(--teal); }
.hero .lede{ font-size:18px; max-width:520px; margin-bottom:32px; }
.hero-cta{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:40px; }
.hero-trustline{ display:flex; align-items:center; gap:18px; font-size:12.5px; color:var(--slate); font-weight:600; flex-wrap:wrap; }
.hero-trustline .dot{ width:5px; height:5px; border-radius:50%; background:var(--gold); }

/* ledger visual */
.ledger{
  background:var(--ink); border-radius:var(--radius-l); padding:30px 26px; color:#fff; position:relative;
  box-shadow:0 40px 70px -30px rgba(27,33,67,.5);
}
.ledger-top{ display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; padding-bottom:16px; border-bottom:1px solid rgba(255,255,255,.14); }
.ledger-top .tag{ font-size:11.5px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:#B9BEDC; }
html[lang="ar"] .ledger-top .tag{ letter-spacing:0; text-transform:none; }
.ledger-top .live{ display:flex; align-items:center; gap:6px; font-size:12px; color:#8FE3C7; font-weight:700; }
.ledger-top .live span{ width:7px; height:7px; border-radius:50%; background:#3FD8A0; box-shadow:0 0 0 4px rgba(63,216,160,.18); }
.ledger-row{ display:flex; justify-content:space-between; align-items:baseline; padding-block:13px; border-bottom:1px dashed rgba(255,255,255,.16); }
.ledger-row:last-child{ border-bottom:none; }
.ledger-row .label{ font-size:13.5px; color:#C4C8E4; }
.ledger-row .num{ font-variant-numeric:tabular-nums; font-weight:800; font-size:19px; }
.ledger-row .num small{ font-size:12px; font-weight:600; color:#8FE3C7; margin-inline-start:6px; }
.ledger-foot{ margin-top:18px; padding-top:16px; border-top:1px solid rgba(255,255,255,.14); font-size:12px; color:#9297BC; }

/* pattern watermark */
.pattern-wrap{ position:relative; }
.pattern-wrap::after{
  content:""; position:absolute; inset-block-start:0; inset-inline-end:-80px; width:420px; height:420px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%231B2143' stroke-width='1'%3E%3Cpath d='M60 0 L90 30 L60 60 L30 30 Z'/%3E%3Cpath d='M60 60 L90 90 L60 120 L30 90 Z'/%3E%3Cpath d='M0 60 L30 30 L60 60 L30 90 Z'/%3E%3Cpath d='M60 60 L90 30 L120 60 L90 90 Z'/%3E%3C/g%3E%3C/svg%3E");
  opacity:.06; pointer-events:none;
}

/* ---------- logo strip ---------- */
.logo-strip{ display:flex; flex-wrap:wrap; gap:40px; align-items:center; justify-content:space-between; opacity:.7; }
.logo-strip span{ font-weight:800; font-size:15px; letter-spacing:.02em; color:var(--ink-soft); }

/* ---------- stat band ---------- */
.stat-band{ display:grid; grid-template-columns:repeat(4,1fr); border:1px solid var(--line); border-radius:var(--radius-l); overflow:hidden; background:var(--paper); }
.stat-cell{ padding:30px 24px; border-inline-end:1px solid var(--line); }
.stat-cell:last-child{ border-inline-end:none; }
.stat-num{ font-size:34px; font-weight:800; color:var(--ink); font-variant-numeric:tabular-nums; }
.stat-num .accent{ color:var(--teal); }
.stat-label{ font-size:13.5px; color:var(--slate); margin-top:6px; }

/* ---------- cards ---------- */
.grid{ display:grid; gap:24px; }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }

.card{
  background:var(--paper); border:1px solid var(--line); border-radius:var(--radius-l);
  padding:30px; transition:.2s ease;
}
.card:hover{ border-color:var(--ink); transform:translateY(-3px); box-shadow:0 24px 40px -26px rgba(27,33,67,.3); }
.card .num-tag{
  font-size:12.5px; font-weight:800; color:var(--gold-dark); background:#FBF0DB; display:inline-block;
  padding:4px 10px; border-radius:999px; margin-bottom:16px; font-variant-numeric:tabular-nums;
}
.card-icon{
  width:48px; height:48px; border-radius:12px; background:var(--teal-light); color:var(--teal);
  display:flex; align-items:center; justify-content:center; margin-bottom:18px;
}
.card-icon svg{ width:24px; height:24px; }
.card h3{ font-size:19px; margin-bottom:10px; }
.card p{ font-size:14.5px; margin-bottom:14px; }
.card .link{ font-size:13.5px; font-weight:700; color:var(--ink); display:inline-flex; align-items:center; gap:6px; }
.card .link .arrow{ transition:.16s; }
.card:hover .link .arrow{ transform:translateX(4px); }
html[dir="rtl"] .card:hover .link .arrow{ transform:translateX(-4px); }

/* service band row (ledger style list) */
.service-list{ border-top:1px solid var(--line); }
.service-row{
  display:grid; grid-template-columns:70px 1.4fr 2fr auto; align-items:center; gap:24px;
  padding-block:26px; border-bottom:1px solid var(--line); transition:.15s;
}
.service-row:hover{ background:var(--paper); }
.service-row .row-num{ font-size:14px; font-weight:800; color:var(--gold-dark); font-variant-numeric:tabular-nums; }
.service-row h3{ font-size:19px; margin:0; }
.service-row p{ margin:0; font-size:14px; color:var(--slate); }
.service-row .btn{ padding:10px 20px; }

/* ---------- testimonial ---------- */
.testi{ background:var(--paper); border:1px solid var(--line); border-radius:var(--radius-l); padding:34px; }
.testi p{ font-size:17px; color:var(--ink); margin-bottom:20px; }
.testi-who{ display:flex; align-items:center; gap:12px; }
.avatar{ width:42px; height:42px; border-radius:50%; background:var(--ink); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:14px; }
.testi-who .role{ font-size:12.5px; color:var(--slate); }

/* ---------- pricing ---------- */
.price-card{ background:var(--paper); border:1.5px solid var(--line); border-radius:var(--radius-l); padding:34px; display:flex; flex-direction:column; }
.price-card.featured{ border-color:var(--ink); box-shadow:0 30px 60px -30px rgba(27,33,67,.35); position:relative; }
.price-card .badge{ position:absolute; inset-block-start:-14px; inset-inline-start:34px; background:var(--gold); color:var(--ink); font-size:12px; font-weight:800; padding:5px 14px; border-radius:999px; }
.price-amount{ font-size:38px; font-weight:800; margin-block:14px 4px; }
.price-amount span{ font-size:14px; color:var(--slate); font-weight:600; }
.price-feats{ margin-block:24px; display:grid; gap:12px; }
.price-feats li{ display:flex; gap:10px; font-size:14.5px; color:var(--ink-soft); align-items:flex-start; }
.check{ flex-shrink:0; width:18px; height:18px; border-radius:50%; background:var(--teal-light); color:var(--teal); display:flex; align-items:center; justify-content:center; margin-top:2px; }
.check svg{ width:11px; height:11px; }

/* ---------- footer ---------- */
.footer{ background:var(--ink); color:#B9BEDC; padding-block:64px 30px; }
.footer h4{ color:#fff; font-size:14px; text-transform:uppercase; letter-spacing:.1em; margin-bottom:18px; }
html[lang="ar"] .footer h4{ letter-spacing:0; text-transform:none; }
.footer-grid{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr 1.2fr; gap:36px; margin-bottom:50px; }
.footer a{ font-size:14px; color:#B9BEDC; display:block; margin-bottom:11px; }
.footer a:hover{ color:#fff; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.14); padding-top:24px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:13px; color:#8286A8; }
.footer-bottom a{ color:#8286A8; margin:0; display:inline; }
.social-row{ display:flex; gap:10px; margin-top:16px; }
.social-row a{ width:36px; height:36px; border:1px solid rgba(255,255,255,.18); border-radius:50%; display:flex; align-items:center; justify-content:center; margin:0; }
.social-row svg{ width:15px; height:15px; }

/* ---------- forms ---------- */
.form-field{ margin-bottom:18px; }
.form-field label{ display:block; font-size:13.5px; font-weight:700; margin-bottom:7px; color:var(--ink); }
.form-field input, .form-field select, .form-field textarea{
  width:100%; padding:13px 15px; border:1.5px solid var(--line); border-radius:var(--radius-s);
  font-family:inherit; font-size:14.5px; background:var(--paper); color:var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{ outline:2px solid var(--teal); outline-offset:1px; border-color:var(--teal); }
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }

/* ---------- breadcrumb / page header ---------- */
.page-head{ padding-block:52px 40px; border-bottom:1px solid var(--line); }
.crumbs{ font-size:13px; color:var(--slate); margin-bottom:16px; }
.crumbs a{ color:var(--slate); font-weight:600; }
.crumbs a:hover{ color:var(--ink); }
.crumbs .sep{ margin-inline:8px; }

/* utility */
.mt-0{ margin-top:0; } .center{ text-align:center; }
.badge-soft{ display:inline-block; background:var(--teal-light); color:var(--teal); font-size:12px; font-weight:700; padding:5px 12px; border-radius:999px; }
.flex{ display:flex; } .items-center{ align-items:center; } .gap-10{ gap:10px; }
.two-col{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
.divider{ height:1px; background:var(--line); margin-block:56px; }

/* skip link */
.skip-link{ position:absolute; inset-inline-start:-999px; top:auto; }
.skip-link:focus{ inset-inline-start:12px; top:12px; z-index:999; background:#fff; padding:10px 16px; border-radius:8px; }

@media (max-width: 980px){
  .hero-grid, .two-col{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .grid-4{ grid-template-columns:1fr 1fr; }
  .grid-3{ grid-template-columns:1fr 1fr; }
  .grid-2{ grid-template-columns:1fr; }
  .stat-band{ grid-template-columns:1fr 1fr; }
  .stat-cell{ border-bottom:1px solid var(--line); }
  .nav-links{ display:none; }
  .nav-toggle{ display:block; }
  .service-row{ grid-template-columns:1fr; gap:8px; }
}
@media (max-width: 620px){
  .grid-4, .grid-3, .grid-2{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .form-grid{ grid-template-columns:1fr; }
  .section{ padding-block:56px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}
