/* Kibarona site. White page, one deep-green ink, product photos on soft neutral tiles.
   Mobile-first, RTL. Components: .btn, .tile, .room, .search, .chip, .block. */
:root {
  --bg: #FFFFFF;
  --tile: #F3F5EF;
  --tile-hover: #EAEEE4;
  --ink: #0C2F27;
  --ink-2: #44574F;
  --ink-3: #5F6F68;
  --line: #E2E7DC;
  --brand: #0E392F;
  --brand-2: #155545;
  --lime: #9FC244;
  --lime-soft: #E9F5C6;
  --cream: #F5FCE3;
  --danger: #B3261E;
  --gutter: 20px;
  --r-tile: 28px;
  --font: 'IBM Plex Sans Arabic', 'SF Arabic', 'Geeza Pro', Tahoma, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.75; color: var(--ink); background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 10px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nw { white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: -80px; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 12px; z-index: 30; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow > * { max-width: 720px; }
.fine { font-size: 14.5px; color: var(--ink-3); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 8px 26px; border: 1.5px solid var(--brand); border-radius: 999px; background: var(--brand); color: #fff; font: inherit; font-size: 17px; font-weight: 600; line-height: 1.4; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.ghost { background: transparent; color: var(--brand); border-color: #B9C6B5; }
.btn.ghost:hover { background: var(--tile); border-color: var(--brand); }
.btn.small { min-height: 44px; padding-inline: 18px; font-size: 15.5px; }
.btn.copied { background: var(--lime-soft); border-color: var(--lime); color: var(--brand); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid rgba(12, 47, 39, .08); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { height: 30px; width: auto; }
.site-header nav { display: flex; align-items: center; gap: 4px; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px; border-radius: 999px; font-size: 16px; font-weight: 500; text-decoration: none; color: var(--ink-2); }
.nav-link:hover, .nav-link[aria-current] { color: var(--ink); background: var(--tile); }
.nav-link.wide { display: none; }
.site-header .btn { margin-inline-start: 8px; }
@media (min-width: 720px) { .nav-link.wide { display: inline-flex; } .brand img { height: 32px; } }

/* Breadcrumb and page heads */
.crumb { display: flex; align-items: center; gap: 8px; padding-top: 14px; font-size: 15px; color: var(--ink-3); }
.crumb a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.crumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.page-head { padding-top: 8px; padding-bottom: 28px; }
.page-head h1 { font-size: clamp(36px, 7vw, 60px); line-height: 1.25; font-weight: 700; }
.page-head p { margin-top: 10px; font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-2); max-width: 34em; }
.page-head .fine { font-size: 14.5px; color: var(--ink-3); }

/* Home hero */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: clamp(36px, 8vw, 88px); padding-bottom: clamp(28px, 5vw, 56px); }
.hero h1 { font-size: clamp(40px, 8.4vw, 84px); line-height: 1.2; font-weight: 700; max-width: 12em; }
.hero > p { margin-top: 14px; font-size: clamp(18px, 2.4vw, 23px); line-height: 1.7; color: var(--ink-2); max-width: 30em; }
.hero .search { margin-top: 28px; width: 100%; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.wrap.hero-actions { justify-content: flex-start; padding-bottom: 56px; }
@media (max-width: 479px) { .hero-actions { width: 100%; flex-direction: column; } .hero-actions .btn { width: 100%; } }

/* Search */
.search { position: relative; display: flex; align-items: center; }
.search svg { position: absolute; inset-inline-start: 20px; width: 22px; height: 22px; color: var(--ink-3); pointer-events: none; }
.search input { width: 100%; height: 60px; padding-inline: 54px 20px; border: 1.5px solid transparent; border-radius: 999px; background: var(--tile); font: inherit; font-size: 17px; color: var(--ink); transition: background .15s, border-color .15s; }
.search input::placeholder { color: var(--ink-3); }
.search input:hover { background: var(--tile-hover); }
.search input:focus { outline: 0; background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px var(--lime-soft); }

/* Blocks */
.block { padding-top: clamp(40px, 7vw, 80px); }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.block-head h2 { font-size: clamp(28px, 4.6vw, 44px); line-height: 1.3; font-weight: 700; }
.block-head p { margin-top: 2px; font-size: 17px; color: var(--ink-2); }
.block-head .more { flex: none; display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 500; text-underline-offset: 5px; }

/* Product tile: the one card used everywhere */
.tile { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.tile-img { position: relative; display: block; aspect-ratio: 1 / 1; margin-bottom: 14px; border-radius: var(--r-tile); background: var(--tile); overflow: hidden; transition: background .2s; }
.tile-img img { position: absolute; inset: 13%; width: 74%; height: 74%; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.tile:hover .tile-img { background: var(--tile-hover); }
.tile:hover .tile-img img { transform: scale(1.05); }
.tile strong { font-size: 17px; line-height: 1.5; font-weight: 600; }
.tile .sub { margin-top: 2px; font-size: 15px; line-height: 1.6; color: var(--ink-3); }
.tile .where { font-size: 13.5px; line-height: 1.6; font-weight: 500; color: var(--ink-3); }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
@media (min-width: 720px) { .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; } }
@media (min-width: 1000px) { .tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 479px) { .tile strong { font-size: 16px; } .tile .sub { font-size: 14px; } .tile-img { border-radius: 22px; margin-bottom: 10px; } }

/* Carousel (daily picks, related tools) */
.picks-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(var(--gutter), calc((100vw - 1120px) / 2 + var(--gutter))) 12px; scroll-padding-inline: max(var(--gutter), calc((100vw - 1120px) / 2 + var(--gutter))); scrollbar-width: none; }
.picks-track::-webkit-scrollbar { display: none; }
.pick { flex: 0 0 min(66vw, 264px); scroll-snap-align: start; }
.picks-nav { display: none; gap: 8px; flex: none; }
.picks-nav button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--tile); color: var(--ink); cursor: pointer; }
.picks-nav button:hover { background: var(--tile-hover); }
.picks-nav svg { width: 20px; height: 20px; }
@media (min-width: 720px) { .picks-nav:not([hidden]) { display: flex; } }

/* Rooms */
.rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.room { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 230px; padding: 18px 18px 0; border-radius: var(--r-tile); background: var(--tile); text-decoration: none; overflow: hidden; transition: background .2s; }
.room:hover { background: var(--tile-hover); }
.room-text { display: flex; flex-direction: column; }
.room strong { font-size: clamp(19px, 2.6vw, 26px); line-height: 1.4; font-weight: 700; }
.room-text span { font-size: 14.5px; color: var(--ink-3); }
.room img { width: 78%; height: 130px; margin: auto auto 14px; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.room:hover img { transform: scale(1.05); }
.room.all { justify-content: space-between; padding-bottom: 18px; background: var(--brand); color: #fff; }
.room.all:hover { background: var(--brand-2); }
.room.all .room-text span { color: #C9D8C6; }
.room.all svg { width: 32px; height: 32px; align-self: flex-end; color: var(--lime); }
@media (min-width: 720px) { .rooms { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } .room { min-height: 300px; padding: 24px 24px 0; } .room img { height: 170px; margin-bottom: 22px; } .room.all { padding-bottom: 24px; } }

/* Guide download band */
.guide-band { margin-top: clamp(48px, 8vw, 96px); }
.guide-band { display: grid; gap: 8px; }
.guide-band > * { grid-column: 1; }
.gb-text { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 32px 24px 8px; border-radius: var(--r-tile) var(--r-tile) 0 0; background: var(--lime-soft); }
.gb-text h2 { font-size: clamp(28px, 4.6vw, 44px); line-height: 1.3; font-weight: 700; }
.gb-text p { color: var(--ink-2); max-width: 26em; }
.gb-text .btn { margin-top: 6px; }
.gb-text .fine { color: var(--ink-2); }
.gb-art { position: relative; height: 300px; margin-top: -8px; border-radius: 0 0 var(--r-tile) var(--r-tile); background: var(--lime-soft); overflow: hidden; }
.gb-art img { position: absolute; top: 28px; width: 190px; border-radius: 22px; box-shadow: 0 18px 40px rgba(12, 47, 39, .18); }
.gb-art .p1 { inset-inline-start: calc(50% - 150px); transform: rotate(4deg); }
.gb-art .p2 { inset-inline-start: calc(50% - 30px); top: 52px; transform: rotate(-5deg); }
@media (min-width: 800px) {
  .guide-band { grid-template-columns: 1.1fr 1fr; gap: 0; }
  .guide-band > .gb-art { grid-column: 2; }
  .gb-text { justify-content: center; padding: 56px; border-radius: 0 var(--r-tile) var(--r-tile) 0; }
  .gb-art { height: 420px; margin-top: 0; border-radius: var(--r-tile) 0 0 var(--r-tile); }
  .gb-art img { width: 240px; top: 48px; }
  .gb-art .p1 { inset-inline-start: calc(50% - 200px); }
  .gb-art .p2 { inset-inline-start: calc(50% - 40px); top: 80px; }
}

/* Community */
.community { display: grid; gap: 14px; }
@media (min-width: 720px) { .community { grid-template-columns: 1fr 1fr; gap: 20px; } }
.comm { display: flex; flex-direction: column; align-items: flex-start; padding: 28px 24px; border-radius: var(--r-tile); background: var(--tile); text-decoration: none; transition: background .2s; }
.comm:hover { background: var(--tile-hover); }
.comm strong { font-size: 22px; line-height: 1.5; font-weight: 700; }
.comm span { color: var(--ink-2); }
.comm em { margin-top: 16px; font-style: normal; font-size: 17px; font-weight: 600; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--lime); }

/* Room page */
.groups section + section { margin-top: clamp(40px, 6vw, 64px); }
.groups h2 { margin-bottom: 18px; font-size: clamp(22px, 3vw, 28px); line-height: 1.4; font-weight: 700; }
.next-room { display: flex; align-items: center; gap: 16px; margin-top: clamp(48px, 7vw, 80px); padding: 18px 24px; border-radius: var(--r-tile); background: var(--tile); text-decoration: none; transition: background .2s; }
.next-room:hover { background: var(--tile-hover); }
.next-room .txt { display: flex; flex-direction: column; flex: 1; }
.next-room .txt span { font-size: 15px; color: var(--ink-3); }
.next-room strong { font-size: clamp(22px, 3vw, 30px); line-height: 1.4; font-weight: 700; }
.next-room img { width: 84px; height: 84px; object-fit: contain; mix-blend-mode: multiply; }
.next-room .chev { width: 26px; height: 26px; flex: none; }

/* Tool page */
.tool-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 4px; }
.tool-body { min-width: 0; }
.tool .photo { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-tile); background: var(--tile); }
.tool .photo img { position: absolute; inset: 11%; width: 78%; height: 78%; object-fit: contain; mix-blend-mode: multiply; }
.tool h1 { font-size: clamp(32px, 5.4vw, 52px); line-height: 1.3; font-weight: 700; }
.tool .en { font-size: 16px; color: var(--ink-3); text-align: right; }
.tool .tagline { margin-top: 18px; font-size: clamp(20px, 2.4vw, 24px); line-height: 1.6; font-weight: 600; }
.tool .description { margin-top: 10px; color: var(--ink-2); }
.tool h2 { margin: 36px 0 10px; font-size: 22px; line-height: 1.5; font-weight: 700; }
.features li { display: flex; align-items: flex-start; gap: 12px; padding-block: 12px; border-top: 1px solid var(--line); }
.features li:last-child { border-bottom: 1px solid var(--line); }
.features svg { width: 22px; height: 22px; margin-top: 5px; flex: none; color: var(--lime); stroke-width: 2.6; }
.ask { margin-top: 36px; padding: 24px; border-radius: 24px; background: var(--tile); }
.tool .ask h2 { margin: 0 0 8px; font-size: 16px; font-weight: 500; color: var(--ink-3); }
.ask .ar { font-size: 22px; line-height: 1.5; font-weight: 700; }
.ask .where { margin-top: 10px; font-size: 16px; color: var(--ink-2); }
.stores, .tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tool-actions .btn { min-height: 48px; font-size: 16px; }
.disclaimer { margin-top: 24px; font-size: 14px; line-height: 1.7; color: var(--ink-3); }
@media (max-width: 479px) { .stores .btn, .tool-actions .btn { flex: 1 1 100%; } }
@media (min-width: 860px) {
  .tool-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
  .tool .photo { position: sticky; top: 88px; }
}

/* All tools */
.tools-controls { display: flex; flex-direction: column; gap: 16px; padding-bottom: 24px; }
.tools-controls .search { max-width: 620px; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 760px) { .chips { flex-wrap: wrap; overflow: visible; } }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding-inline: 18px; border-radius: 999px; background: var(--tile); text-decoration: none; font-size: 16px; font-weight: 500; color: var(--ink-2); }
.chip:hover { background: var(--tile-hover); }
.chip[aria-current] { background: var(--brand); color: #fff; }
.result-count { font-size: 15.5px; color: var(--ink-3); min-height: 1.75em; }
.empty { padding: 32px 0 48px; color: var(--ink-2); }

/* Guide prose */
.prose { padding-bottom: 16px; }
.prose section { margin-bottom: 44px; }
.prose h2 { margin-bottom: 10px; font-size: clamp(24px, 3vw, 30px); line-height: 1.4; font-weight: 700; }
.prose p { margin-bottom: 14px; }
.prose a { text-underline-offset: 5px; }
.prose .big { font-size: 21px; font-weight: 600; }
.prose .basmala { font-weight: 600; }
.prose .cite { font-size: 15px; color: var(--ink-3); }
.goals, .adl, .team { display: grid; gap: 12px; }
@media (min-width: 640px) { .goals, .adl, .team { grid-template-columns: 1fr 1fr; } }
.goals li, .team li, .adl a { padding: 18px 20px; border-radius: 20px; background: var(--tile); }
.team strong { display: block; }
.team span { font-size: 15.5px; color: var(--ink-3); }
.adl a { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.adl a:hover { background: var(--tile-hover); }
.adl span { flex: 1; font-size: 16px; color: var(--ink-2); }
.adl em { margin-top: 6px; font-style: normal; font-size: 14.5px; font-weight: 600; }
.note { padding: 22px 24px; border-radius: 20px; background: var(--tile); font-size: 16px; }
.prose .note h2 { font-size: 19px; }
.prose ul:not([class]) li { padding-block: 4px; }

/* Forms */
.kb-form { display: flex; flex-direction: column; gap: 22px; padding-bottom: 24px; }
.kb-form .f { display: flex; flex-direction: column; gap: 6px; }
.kb-form label { font-size: 17px; font-weight: 600; }
.kb-form .req, .kb-form .opt { margin-inline-start: 6px; font-size: 13.5px; font-weight: 400; color: var(--ink-3); }
.kb-form .hint { font-size: 15px; color: var(--ink-3); }
.kb-form input[type="text"], .kb-form input[type="url"], .kb-form textarea, .kb-form select { width: 100%; min-height: 56px; padding: 13px 18px; border: 1.5px solid transparent; border-radius: 16px; background: var(--tile); font: inherit; color: var(--ink); transition: background .15s, border-color .15s; }
.kb-form textarea { resize: vertical; line-height: 1.75; }
.kb-form input[type="file"] { min-height: 44px; font: inherit; font-size: 15.5px; }
.kb-form input:focus, .kb-form textarea:focus, .kb-form select:focus { outline: 0; background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px var(--lime-soft); }
.kb-form [aria-invalid="true"] { border-color: var(--danger); }
.kb-form .check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; font-size: 16.5px; font-weight: 400; cursor: pointer; }
.kb-form .check input { width: 22px; height: 22px; margin-top: 5px; accent-color: var(--brand); flex: none; }
.kb-form .hp { position: absolute; inset-inline-start: -9999px; }
.kb-form .btn { align-self: flex-start; min-height: 56px; padding-inline: 36px; font-size: 18px; }
@media (max-width: 479px) { .kb-form .btn { align-self: stretch; } }
.form-msg { padding: 14px 18px; border-radius: 16px; background: #FDECEA; color: #7A1C16; font-size: 16px; }
.form-done { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 32px 24px; border-radius: var(--r-tile); background: var(--lime-soft); }
.form-done h2 { font-size: 26px; line-height: 1.4; }
.form-done:focus { outline: 0; }
.voices { padding-bottom: 36px; }
.voices h2 { margin-bottom: 14px; font-size: 26px; }
.voices ul { display: grid; gap: 12px; }
.voices blockquote { padding: 22px 24px; border-radius: 22px; background: var(--tile); }
.voices footer { margin-top: 10px; font-size: 15px; font-weight: 600; }
.voices footer span { font-weight: 400; color: var(--ink-3); }

/* Footer */
.site-footer { margin-top: clamp(56px, 9vw, 112px); background: var(--brand); color: #C9D8C6; font-size: 16px; }
.site-footer a { color: #fff; text-underline-offset: 5px; text-decoration-color: rgba(255, 255, 255, .35); }
.site-footer a:hover { text-decoration-color: var(--lime); }
.foot-inner { display: grid; gap: 36px; max-width: 1120px; margin-inline: auto; padding: 48px var(--gutter) 32px; }
@media (min-width: 760px) { .foot-inner { grid-template-columns: 1.5fr 1fr; gap: 80px; padding-top: 64px; } }
.foot-logo { height: 36px; width: auto; margin-bottom: 16px; }
.foot-about p { max-width: 30em; margin-bottom: 10px; }
.foot-team strong { color: #fff; font-weight: 600; }
.foot-more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
.foot-contact h2 { margin-bottom: 4px; font-size: 17px; line-height: 1.6; font-weight: 700; color: #fff; }
.foot-contact li a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.waqf { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); }
.waqf img { width: 44px; flex: none; }
.waqf p { font-size: 14.5px; line-height: 1.6; }
.foot-legal { max-width: 1120px; margin-inline: auto; padding: 20px var(--gutter) 32px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13.5px; line-height: 1.7; color: #A5B8A3; }
.foot-legal p { max-width: 56em; margin-bottom: 6px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .site-header, .site-footer, .tool-actions, .related, .skip, .picks, .guide-band, .crumb, .stores { display: none !important; }
  .photo, .ask { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { size: A4; margin: 14mm; }
}
