/* Page CSS: only what sits inside a visual and the kit lacks (SKILL.md step 5). */

/* The hero's data cards, the customer prices, the reports and accounts boards and the store preview are in
   assets/viz/viz.css (D113 d). */

/* the orders board is in assets/viz/viz.css */


/* WhatsApp from the store's number: the board is in assets/viz/viz.css, the facts beside it here */
.facts { list-style: none; padding: 0; margin: var(--s-5) 0 0; display: grid; gap: 10px; }
.facts li { padding-top: 10px; border-top: 1px solid var(--line, var(--p-line)); }

/* credit: the collection methods as a ledger */
.ledger { display: grid; align-content: start; }
.ledger__row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgb(255 255 255 / .14); font-size: 18px; }
.ledger__row span { color: var(--p-inv-muted); }
.ledger__row--head { font-size: 13px; padding-top: 0; }
.ledger__foot { margin-top: var(--s-5); color: var(--p-inv-muted); }


/* the close: the form beside its heading, the name under them */
#request .form { background: var(--surface, var(--p-surface)); padding: 32px; border-radius: var(--r-md, 14px); }
#request input[type="tel"] { text-align: start; }

/* spacing under the split headings, and the price card kept to its rows */
.t-lead-sm { font-size: 19px; line-height: 1.6; margin-top: var(--s-5); max-width: 34em; }
.tab-panels { margin-top: var(--s-5); max-width: 34em; }
/* credit: the customer's statement under the words */
.stmt { margin-top: var(--s-7); background: var(--p-inv-surface); border: 1px solid rgb(255 255 255 / .14); border-radius: var(--r-md, 14px); padding: 20px 24px; display: grid; gap: 12px; max-width: 460px; }
.stmt__head { display: flex; justify-content: space-between; color: var(--p-inv-muted); font-size: 14px; }
.stmt__row { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; font-size: 16px; }
.stmt__bar { height: 8px; border-radius: 99px; background: rgb(255 255 255 / .12); overflow: hidden; }
.stmt__bar i { display: block; height: 100%; width: 42.5%; background: var(--p-accent); }
.ledger__row { padding: 22px 0; font-size: 20px; }

/* Arabic: the drawn arrow points the way the text reads */
[dir="rtl"] .m-arrow { transform: scaleX(-1); }

/* the name under the close: present, not shouting (the kit's 216px read too loud next to the links) */
.close__word { font-size: clamp(48px, 7vw, 112px); letter-spacing: -0.03em; color: var(--p-ink); opacity: .9; }
@media (max-width: 639px) { .close__word { font-size: clamp(40px, 14vw, 64px); } }


/* Every section but the hero takes its content's height, at every width (D113). The kit's one screen per
   section left half a screen empty under a short one (the statement: 467px at 1440x900) and, on a short
   laptop screen (1280x720, 1780x800), laid the taller boards (WhatsApp, the request) over the next section.
   The rhythm between sections is their own padding (--padt over, --padb under). */
main > .section:not(.hero) { height: auto; min-height: 0; }
}

/* the form's hidden field: out of sight and out of the tab order, still in the form */
.form .hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* The BelGomla logo (D115): the horizontal lockup in the nav and footer, the Arabic wordmark set large in the close. */
.nav__logo img { height: 34px; width: auto; display: block; }
@media (max-width: 639px) { .nav__logo img { height: 28px; } }
.close__word img { display: block; height: .9em; width: auto; max-width: 100%; }

/* Arabic in Alexandria (D115): the kit's Latin leading (1.02 to 1.1) stacks Arabic lines into each other's
   dots and ascenders, so headings open up here. */
:is(h1, .t-h1), .hero h1 { line-height: 1.3; }
:is(h2, .t-h2), .mo-wh__text { line-height: 1.34; }

/* the hero's button at the page's one button height (the triptych's 64px made a second size) */
@media (min-width: 1024px) { .hero--triptych .hero__cta .btn { height: var(--btn-h); font-size: inherit; } }


/* request: the store the form leads to is in assets/viz/viz.css */

/* a lead beside its heading in a split starts on the heading's top line */
.grid--top > p.t-lead-sm { margin-top: 0; }
/* accounts: the description column beside the heading starts with its words */
#accounts .tab-panels { margin-top: 0; }

@media (max-width: 639px) {
}

/* the hero: Arabic set in Alexandria needs a wider headline column than the triptych's span-3 (six lines there),
   so every desktop width takes the kit's own 1024-1279 split arrangement: the headline and the button on span-5,
   the collage on span-6 to the far line */
@media (min-width: 1024px) {
  .hero--triptych .hero__grid { grid-template-rows: 1fr auto 1fr; }
  .hero--triptych .hero__grid > :first-child { grid-column: 1 / span 5; grid-row: 1; align-self: end; }
  .hero--triptych .ly-collage { grid-column: 7 / span 6; grid-row: 1 / span 3; }
  .hero--triptych .hero__cta { grid-column: 1 / span 5; grid-row: 2; justify-content: flex-start; margin-top: var(--s-6); }
}
