/* =====================================================================
   Barber Portals website · barbershop character (2026-10-20)
   Less "template", more shop: stamped chapter labels, a cut-here line under titles,
   queue tickets, an old price board, client phones, a big footer and WhatsApp.
   Loaded after landing.css.
   ===================================================================== */

/* 1. chapter labels look like a rubber stamp: "No. 03 · Built for barbers" */
main { counter-reset: chapter; }
.section > .eyebrow { counter-increment: chapter; display: block; width: fit-content; padding: 5px 12px 4px; border: 2px solid currentColor; border-radius: 6px;
  transform: rotate(-2deg); letter-spacing: .16em; font-size: .72rem; }
.section > .eyebrow.center { margin-inline: auto; }
.section > .eyebrow::before { content: "No. " counter(chapter, decimal-leading-zero) "  ·  "; opacity: .75; }
html[dir="rtl"] .section > .eyebrow::before { content: "رقم " counter(chapter, decimal-leading-zero) "  ·  "; }

/* 2. a "cut here" dashed line with scissors under centred titles */
.section > h2.center { position: relative; padding-bottom: 26px; }
.section > h2.center::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: min(260px, 60%); height: 14px; transform: translateX(-50%); opacity: .75;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8102e' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='6' cy='6' r='3'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Cpath d='M20 4 8.1 15.9M14.5 14.5 20 20M8.1 8.1 12 12'/%3E%3C/svg%3E") left center / 14px 14px no-repeat,
    repeating-linear-gradient(90deg, var(--muted) 0 7px, transparent 7px 13px) 22px 50% / calc(100% - 22px) 2px no-repeat;
}
html[dir="rtl"] .section > h2.center::after { transform: translateX(-50%) scaleX(-1); }

/* 3. "How it works" = four queue tickets torn from a roll */
.how { gap: 26px; }
.how li {
  display: block; background: #f4ead8; color: #2a2016; border-radius: 6px; padding: 30px 22px 24px; box-shadow: 0 18px 30px rgba(0,0,0,.28);
  -webkit-mask: radial-gradient(circle 9px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 9px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 9px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 9px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
  transition: transform .25s;
}
.how li:nth-child(odd) { transform: rotate(-1.6deg); }
.how li:nth-child(even) { transform: rotate(1.4deg) translateY(10px); }
.how li:hover { transform: rotate(0) translateY(-4px); }
.how li::before { content: ""; position: absolute; inset-inline: 14px; top: 12px; border-top: 2px dashed rgba(42,32,22,.25); }
.how b { display: flex; align-items: flex-start; width: auto; height: auto; border-radius: 0; background: none; color: #c8102e;
  font-family: "DM Serif Display", serif; font-weight: 400; font-size: 2.6rem; line-height: 1; margin: 0 0 12px; }
.how b::before { content: "No."; font-family: "Manrope", sans-serif; font-weight: 800; font-size: .8rem; letter-spacing: .14em; margin-inline-end: 4px; }
.how h3 { color: #14244f; }
.how p { color: #5a4a38; opacity: 1; }

/* 4. "Everything a busy shop needs" = the old price board on the shop wall */
.features {
  gap: 0 44px; padding: clamp(30px, 4vw, 46px); border-radius: 18px; color: #f4ead8; position: relative; margin-top: 18px;
  background: radial-gradient(120% 90% at 20% 0%, rgba(255,255,255,.06), transparent 60%), linear-gradient(160deg, #2b1d14, #1a120c);
  border: 10px solid #8b5a2b; box-shadow: inset 0 0 0 2px #d39a5e, inset 0 0 40px rgba(0,0,0,.5), 0 30px 60px rgba(20,36,79,.25);
}
.features::before { content: "✂  THE MENU  ✂"; position: absolute; top: -24px; left: 50%; transform: translateX(-50%); background: #c8102e; color: #fff;
  font: 800 .8rem/1 "Manrope", sans-serif; letter-spacing: .3em; padding: 10px 18px; border-radius: 4px; box-shadow: 0 6px 14px rgba(0,0,0,.3); white-space: nowrap; }
html[dir="rtl"] .features::before { content: "✂  القائمة  ✂"; letter-spacing: .1em; font-family: "Cairo", sans-serif; }
.features > div { background: none; border: 0; border-radius: 0; padding: 18px 0; border-bottom: 1px dashed rgba(244,234,216,.18); box-shadow: none;
  display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; align-items: start; }
.features > div:nth-last-child(-n + 3) { border-bottom: 0; }
.features > div span, .features > div:nth-child(even) span, .features > div:nth-child(3n) span {
  grid-row: span 2; width: 34px; height: 34px; margin: 0; border-radius: 50%; background: none; border: 1.5px solid #d39a5e; color: #d39a5e; font-size: 1rem; }
.features h3 { display: flex; align-items: baseline; gap: 10px; font-family: "DM Serif Display", "Cairo", serif; font-weight: 400; font-size: 1.3rem; color: #fff; margin: 0 0 4px; }
.features h3::after { content: ""; flex: 1; border-bottom: 2px dotted rgba(211,154,94,.6); transform: translateY(-4px); min-width: 20px; }
.features p { color: rgba(244,234,216,.72); font-size: .93rem; }
:root[data-theme="dark"] .features > div { box-shadow: none; }
:root[data-theme="dark"] .features > div span { color: #d39a5e; }

/* 5. the three portal cards hang a little crooked, like signs, and straighten on hover */
.portals .portal { transition: transform .25s, box-shadow .25s; }
.portals .portal:nth-child(1) { transform: rotate(-1deg); }
.portals .portal:nth-child(3) { transform: rotate(1deg); }
.portals .portal:hover { transform: rotate(0) translateY(-6px); }

/* 6. Our clients: a row of live phones */
.clrow { position: relative; }
.clscroll { display: flex; gap: 30px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 6px 20px; scrollbar-width: none; justify-content: safe center; }
.clscroll::-webkit-scrollbar { display: none; }
.clcard { flex: none; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.phone.small { width: 250px; height: 500px; border-radius: 38px; padding: 9px; box-shadow: 0 24px 50px rgba(20,36,79,.28), inset 0 0 0 2px var(--c, #2c4174); }
.phone.small iframe { border-radius: 30px; }
.clmeta { display: flex; align-items: center; gap: 10px; max-width: 270px; }
.clmeta img, .cl-ini { width: 42px; height: 42px; border-radius: 12px; flex: none; object-fit: cover; }
.cl-ini { display: grid; place-items: center; background: var(--c, #c8102e); color: #fff; font: 800 1rem "Manrope", sans-serif; }
.clmeta b { display: block; line-height: 1.2; }
.clmeta small { color: var(--muted); font-size: .8rem; }
.cl-st { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  border: 1.5px solid currentColor; border-radius: 999px; padding: 4px 11px; }
.cl-st i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.cl-st.live { color: #2f7d5b; }
.cl-st.live i { animation: clpulse 1.6s ease-in-out infinite; }
.cl-st.onboarding { color: var(--brass); }
.cl-st.demo { color: var(--blue); }
:root[data-theme="dark"] .cl-st.live { color: #5fd197; }
:root[data-theme="dark"] .cl-st.demo { color: #8fa9f0; }
@keyframes clpulse { 50% { opacity: .3; } }
.cl-open { font-weight: 800; font-size: .88rem; color: var(--red); text-decoration: none; border: 1.5px solid currentColor; border-radius: 999px; padding: 7px 16px; }
.cl-open:hover { background: var(--red); color: #fff; }
.clnav { position: absolute; top: calc(50% - 60px); z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); font: 800 1.6rem/1 "Manrope", sans-serif; cursor: pointer; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.clnav.prev { inset-inline-start: -8px; }
.clnav.next { inset-inline-end: -8px; }
.clnav[hidden] { display: none; }

/* 7. the big footer */
.footer { display: block; padding: 0; background: var(--night); color: #cfd5e6; font-size: .95rem; border-top: 6px solid; border-image: var(--pole) 1; }
.foot-top { max-width: 1200px; margin: 0 auto; padding: 60px clamp(16px, 4vw, 48px) 40px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; }
.foot-brand { display: flex; gap: 22px; align-items: flex-start; }
.foot-stamp { position: relative; width: 120px; height: 120px; flex: none; }
.foot-stamp svg { width: 100%; height: 100%; animation: spin 26s linear infinite; overflow: visible; }
.foot-stamp text { font: 800 13px "Manrope", sans-serif; letter-spacing: 1.7px; fill: #e9b98a; }
.foot-stamp img { position: absolute; inset: 30px; width: 60px; height: 60px; border-radius: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }
.brand.big { font-family: "DM Serif Display", serif; font-size: 1.9rem; color: #fff; text-decoration: none; }
.foot-tag { margin: 8px 0 18px; color: #b9c1d6; max-width: 360px; }
.foot-col { display: grid; align-content: start; gap: 10px; }
.foot-col h4 { margin: 0 0 6px; color: #fff; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; }
.foot-col a, .foot-col > span { color: #cfd5e6; text-decoration: none; display: inline-flex; align-items: center; gap: 9px; width: fit-content; }
.foot-col a[hidden] { display: none; }
.foot-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot-col [data-icon] svg, .foot-contact .wa-ic svg { width: 17px; height: 17px; color: #e9b98a; display: block; }
.foot-bottom { max-width: 1200px; margin: 0 auto; padding: 18px clamp(16px, 4vw, 48px) 90px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: #8f98b3; font-size: .85rem; }
.to-top { color: #e9b98a; text-decoration: none; font-weight: 800; }
.btn.wa { background: #25d366; color: #0b3d1e; border: 0; display: inline-flex; align-items: center; gap: 8px; }
.btn.wa:hover { filter: brightness(1.05); }
.btn.wa .wa-ic svg { width: 20px; height: 20px; display: block; }

/* 8. WhatsApp button (bottom corner, opposite the music button); it steps aside at the footer */
.wa-float { position: fixed; bottom: 22px; inset-inline-end: 20px; z-index: 40; display: flex; align-items: center; gap: 9px; height: 52px; padding: 0 18px 0 14px;
  border-radius: 999px; background: #25d366; color: #0b3d1e; font-weight: 800; font-size: .92rem; text-decoration: none;
  box-shadow: 0 12px 30px rgba(37,211,102,.35), 0 4px 10px rgba(0,0,0,.2); transition: transform .25s, opacity .25s; }
.wa-float .wa-ic svg { width: 26px; height: 26px; display: block; }
.wa-float:hover { transform: translateY(-3px); }
.wa-float.away { opacity: 0; transform: translateY(20px); pointer-events: none; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: inherit; animation: wapulse 2.6s ease-out infinite; }
@keyframes wapulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70%, 100% { box-shadow: 0 0 0 14px rgba(37,211,102,0); } }

@media (max-width: 960px) {
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .features { gap: 0 28px; }
}
@media (max-width: 620px) {
  .foot-top { grid-template-columns: 1fr; gap: 28px; padding-top: 44px; }
  .foot-brand { flex-direction: column; align-items: center; text-align: center; }
  .foot-tag { margin-inline: auto; }
  .foot-bottom { flex-direction: column; align-items: center; text-align: center; }
  .wa-float { height: 48px; padding: 0 12px; bottom: 16px; }
  .wa-float .wa-txt { display: none; }
  .features { border-width: 7px; padding: 34px 18px 18px; }
  .features > div:nth-last-child(-n + 3) { border-bottom: 1px dashed rgba(244,234,216,.18); }
  .features > div:last-child { border-bottom: 0; }
  .how li { display: block; }
  .how li:nth-child(even) { transform: rotate(1deg); }
  .phone.small { width: 230px; height: 460px; }
  .portals .portal:nth-child(1), .portals .portal:nth-child(3) { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .foot-stamp svg, .wa-float::after, .cl-st.live i { animation: none; }
}

/* menu: one line per link; on medium screens the less important links step out */
.nav-links a { white-space: nowrap; }
@media (max-width: 1180px) { .nav-links a[href="#how"] { display: none; } }
@media (max-width: 1060px) { .nav-links a[href="#features"] { display: none; } }
/* footer: the brand column never gets squeezed */
.foot-top { grid-template-columns: minmax(330px, 1.7fr) 1fr 1fr 1.25fr; }
.brand.big, .btn.wa { white-space: nowrap; }
@media (max-width: 1100px) {
  .foot-top { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) { .foot-top { grid-template-columns: 1fr 1fr; } }
html[dir="rtl"] .how b::before { content: "رقم"; letter-spacing: 0; font-family: "Cairo", sans-serif; }

/* chosen meeting time stays readable with the mouse on it */
.mslots button.on, .mslots button.on:hover, .mslots button.on:focus-visible { background: var(--red); border-color: var(--red); color: #fff; }
.cal button.on:hover { color: #fff; }

/* footer: nothing may run into the next column */
.foot-top > * { min-width: 0; }
.foot-brand > div { min-width: 0; }
.btn.wa { white-space: normal; max-width: 100%; text-align: start; line-height: 1.25; }
.brand.big { white-space: normal; }
.foot-col a, .foot-col > span { max-width: 100%; overflow-wrap: anywhere; }

/* "Find a barbershop" (the customer list of shops) stands out a little in the menu */
.nav-links .nav-find { color: var(--red); font-weight: 800; }
:root[data-theme="dark"] .nav-links .nav-find { color: #ff8fa1; }
@media (max-width: 1300px) { .nav-links a[href="#portals"] { display: none; } }

/* "Our clients": the shop page inside each small phone is shown at 78% (like a real phone screen),
   so the words are smaller and more of the page fits. The real shop pages are not changed. */
.phone.small { overflow: hidden; direction: ltr; }
.phone.small iframe { width: calc(100% / .7); height: calc(100% / .7); transform: scale(.7); transform-origin: 0 0; border-radius: calc(30px / .7); }   /* about 330px inside: the shop name and "Sign in" fit, like on a real phone */
