/* Enhancement 10 — For Owners page (host-with-us.html). Approved: hero 1a, services 5a (tabbed panel with
   composed visuals), timeline 7a (numerals, simplified labels). Additive layer; owners-pass.js builds the
   DOM the tab panel needs from the existing .pb articles, so no content is duplicated. */

/* ---------- 1a · Hero: Home language — navy, static pattern, weave tiles fading in from the right ---------- */
#host-hero { background: #101C32; }
#host-hero > .absolute.inset-0 > img { display: none; }            /* Unsplash photo out */
#host-hero .hero-pattern-spotlight { display: none !important; }    /* flashlight out */
#host-hero .hero-overlay { background: linear-gradient(90deg, #101C32 46%, rgba(16,28,50,0.55) 68%, rgba(16,28,50,0.10) 100%) !important; }
#host-hero .op-pattern { position: absolute; inset: 0; background: url('../brand_assets/Pattern/Arabia_Residence_Pattern-01.webp') center / 900px repeat; opacity: 0.045; pointer-events: none; }
#host-hero .op-weave { position: absolute; right: 0; top: 0; bottom: 0; width: 48%; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 8px; padding: 8px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 40%); mask-image: linear-gradient(to right, transparent 0%, #000 40%); }
#host-hero .op-weave img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; opacity: 0.85; display: block; }
#host-hero .hero-subtitle { color: rgba(255,255,255,0.78) !important; }
@media (min-width: 1024px) { #host-hero .max-w-3xl { max-width: 560px !important; } #host-hero .op-weave { width: 44%; } }
@media (max-width: 1023px) {
  #host-hero .op-weave { width: 100%; grid-template-columns: repeat(4, 1fr); -webkit-mask-image: linear-gradient(to bottom, transparent 30%, #000 100%); mask-image: linear-gradient(to bottom, transparent 30%, #000 100%); opacity: 0.55; }
  #host-hero .hero-overlay { background: linear-gradient(180deg, #101C32 55%, rgba(16,28,50,0.6) 100%) !important; }
}
[dir="rtl"] #host-hero .op-weave { right: auto; left: 0; -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 40%); mask-image: linear-gradient(to left, transparent 0%, #000 40%); }
[dir="rtl"] #host-hero .hero-overlay { background: linear-gradient(270deg, #101C32 46%, rgba(16,28,50,0.55) 68%, rgba(16,28,50,0.10) 100%) !important; }

/* Metrics strip removed (owner decision) */
#host-hero + section.bg-brand-dark { display: none !important; }

/* ---------- 5a · Services: one panel, five tabs ---------- */
.pillars { display: grid !important; grid-template-columns: 300px minmax(0, 1fr); gap: 0 !important; background: #fff; border: 1px solid #ECEFF3; border-radius: 20px; overflow: hidden; box-shadow: 0 2px 6px rgba(15,28,50,0.03), 0 16px 40px rgba(15,28,50,0.05); }
.op-tabs { grid-column: 1; border-inline-end: 1px solid #ECEFF3; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.op-tabs > .op-tab { flex: 1 1 0; }
.op-tab { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border: 1px solid #ECEFF3; border-radius: 14px; background: #fff; cursor: pointer; text-align: start; font-family: inherit; color: #101C32; transition: background .2s, border-color .2s, box-shadow .2s, transform .2s; }
.op-tab::after { content: ''; width: 8px; height: 8px; flex: none; border-right: 2px solid #B8C0CE; border-bottom: 2px solid #B8C0CE; transform: rotate(-45deg); transition: border-color .2s, transform .2s; }
[dir="rtl"] .op-tab::after { transform: rotate(135deg); }
.op-tab:hover { border-color: #C9D1DC; box-shadow: 0 6px 18px rgba(16,28,50,0.08); transform: translateX(2px); }
[dir="rtl"] .op-tab:hover { transform: translateX(-2px); }
.op-tab:hover::after { border-color: #00794A; }
.op-tab[aria-selected="true"] { background: #F6F8FA; border-color: #00AF6C; box-shadow: inset 3px 0 0 #00AF6C; }
[dir="rtl"] .op-tab[aria-selected="true"] { box-shadow: inset -3px 0 0 #00AF6C; }
.op-tab[aria-selected="true"]::after { border-color: #00AF6C; }
.op-tab:focus-visible { outline: 2px solid #00AF6C; outline-offset: 2px; }
.op-tab-n { width: 36px; height: 36px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; background: #E8FBF1; color: #00794A; }
.op-tab[aria-selected="true"] .op-tab-n { background: #00AF6C; color: #fff; }
.op-tab-t { display: block; font-size: 15px; font-weight: 700; line-height: 1.25; }
.op-tab-s { display: block; font-size: 12.5px; color: #6B7488; margin-top: 2px; line-height: 1.35; }
.pb { grid-column: 2; grid-row: 1; display: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; min-height: 520px; transform: none !important; }
.pb.op-active { display: grid !important; grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr) !important; animation: op-fade .3s ease-out; }
@keyframes op-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.pb-body { padding-block: 40px !important; padding-inline: 40px 0 !important; position: relative; z-index: 3; } /* start/end, so Arabic keeps the 40px clear of the tab list */
.pb-num { display: none; }
.pb-sub { order: -1; font-size: 12px !important; font-weight: 700 !important; letter-spacing: 0.06em; text-transform: uppercase; color: #00794A !important; margin: 0 0 8px !important; }
.pb-body { display: flex; flex-direction: column; }
.pb-title { font-size: 28px !important; line-height: 1.15 !important; margin: 0 !important; }
.pb-copy { font-size: 15px !important; line-height: 1.65 !important; color: #46506A !important; margin: 12px 0 22px !important; }
.pb-chips { display: flex !important; flex-direction: column; gap: 10px !important; flex-wrap: nowrap !important; }
.pb-chip { background: transparent !important; border: 0 !important; padding: 0 !important; font-size: 14.5px !important; font-weight: 500 !important; display: flex; align-items: center; gap: 10px; color: #101C32 !important; }
.pb-chip svg { width: 18px !important; height: 18px !important; padding: 4px; border-radius: 50%; background: #D1FBE0; color: #00563A !important; box-sizing: border-box; }
/* Composed visual replaces the old image cell */
.pb-img { min-height: 0 !important; background: #fff !important; }
#pillar-revenue .pb-img::before, #pillar-revenue .pb-img::after { display: none !important; }
#pillar-revenue .pb-img-blend::before { display: block !important; }
#pillar-revenue .pb-img > img { filter: none; }
.pb-img > img { filter: saturate(0.85) brightness(1.04); transform: none !important; }
.pb-img::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.92) 18%, rgba(255,255,255,0.35) 45%, rgba(255,255,255,0.05) 100%) !important; }
.pb-img::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; display: block !important; background: linear-gradient(180deg, rgba(251,243,226,0.25), rgba(251,243,226,0) 40%, rgba(16,28,50,0.08)) !important; }
[dir="rtl"] .pb-img::before { background: linear-gradient(270deg, #fff 0%, rgba(255,255,255,0.92) 18%, rgba(255,255,255,0.35) 45%, rgba(255,255,255,0.05) 100%) !important; }
.op-vis { position: absolute; inset: 0; z-index: 2; pointer-events: none; font-family: 'Alexandria', system-ui, sans-serif; color: #101C32; }
/* The page's .pb-img img rule (absolute, inset 0, cover) must not reach images inside the composed cards */
.pb-img .op-vis img { position: static !important; inset: auto !important; width: auto; height: auto; object-fit: contain !important; filter: none !important; transition: none !important; }
.pb-img .op-vis .op-card > img:first-child { width: 100% !important; height: 120px !important; object-fit: cover !important; }
.op-logo { width: 22px !important; height: 22px !important; display: block; }
.op-logo-sm { width: 26px !important; height: 26px !important; display: block; }
.op-card { position: absolute; background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(16,28,50,0.22); overflow: hidden; }
.op-card-soft { background: rgba(255,255,255,0.96); box-shadow: 0 16px 40px rgba(16,28,50,0.18); border-radius: 14px; }
.op-k { font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #6B7488; }
.op-chip { font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #D1FBE0; color: #00563A; white-space: nowrap; }
.op-pill { font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: #F6F8FA; }
.op-row { display: flex; justify-content: space-between; margin: 0; font-size: 12px; }
.op-row span:first-child { color: #46506A; }
.op-row span:last-child { font-weight: 600; }
.op-check { width: 18px; height: 18px; border-radius: 5px; flex: none; display: flex; align-items: center; justify-content: center; border: 1.5px solid #D1D5DB; background: #fff; }
.op-check.on { background: #00AF6C; border-color: #00AF6C; }
.op-bar { height: 6px; border-radius: 3px; background: #E6E9EF; overflow: hidden; }
.op-bar > span { display: block; height: 100%; background: #00AF6C; border-radius: 3px; }
.op-wa { background: #ECE5DD; display: flex; flex-direction: column; gap: 7px; padding: 12px; min-height: 250px; }
.op-wa-in, .op-wa-out { max-width: 86%; padding: 7px 10px; font-size: 12px; line-height: 1.45; border-radius: 12px; }
.op-wa-in { align-self: flex-start; background: #fff; border-end-start-radius: 2px; }
.op-wa-out { align-self: flex-end; background: #DCF8C6; border-end-end-radius: 2px; }
.op-wa-t { display: block; font-size: 9.5px; color: #6B7488; text-align: end; margin-top: 2px; }
/* RTL: swap anchors */
.op-vis[dir="rtl"] .op-card:not(.op-sec) { left: 24px; right: auto; }
.op-vis[dir="rtl"] .op-sec { right: 24px; left: auto; }
.op-vis[dir="rtl"] .op-card[style*="border-radius:22px"] { left: 24px; right: auto; }
@media (max-width: 1023px) {
  .pillars { grid-template-columns: 1fr; }
  .op-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; border-inline-end: 0; border-bottom: 1px solid #ECEFF3; padding: 12px; gap: 6px; }
  .op-tabs::-webkit-scrollbar { display: none; }
  .op-tabs > .op-tab { flex: none; padding: 10px 12px; }
  .op-tab::after { display: none; }
  .op-tab-s { display: none; }
  .pb { grid-column: 1; grid-row: 2; min-height: 0; }
  .pb.op-active { grid-template-columns: 1fr !important; }
  .pb-body { padding: 24px 20px 8px !important; }
  .pb-title { font-size: 22px !important; }
  .pb-img { min-height: 400px !important; }
  .op-sec { display: none !important; }
  .op-card { transform: none; right: 16px !important; top: 20px !important; }
  .pb-img::before { background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.7) 20%, rgba(255,255,255,0.1) 60%) !important; }
}

/* ---------- 7a · How it works: numerals on the spine, no illustrations ---------- */
.hiw2-illu { display: none !important; }
.hiw2-node { width: 56px !important; height: 56px !important; font-size: 20px !important; font-weight: 800 !important; }
.hiw2-item { grid-template-columns: 1fr 108px 1fr !important; }
.hiw2-card { padding: 20px 24px !important; }
.hiw2-body h3 { font-size: 17px; }
.hiw2-day { white-space: nowrap; }
@media (max-width: 767px) {
  .hiw2-item { grid-template-columns: 56px 1fr !important; }
  .hiw2-spine { left: 28px !important; }
  .hiw2-card { padding: 16px 18px !important; }
}

/* ---------- Before/after first-frame flash: give the before wrapper a width before JS runs ---------- */
/* Founder, 2026-09-11: this default must live on .ba-slider, not on .ba-before-wrap. The slider script writes --ba-pos on
   .ba-slider and the wrapper's clip-path reads the inherited value; declaring it on the wrapper itself overrode that, so the
   handle moved but the reveal stayed at 50% on every tab. */
.ba-slider { --ba-pos: 50%; }

/* ---------- 1a (revised, founder 2026-09-11) · Hero tiles in the Home weave language ----------
   The 3x3 photo wall read as heavy. The right-hand grid is now nine square cells styled like the Home hero weave
   (#0A1526 faces with the brand pattern at 13%, 13px radius, hairline inset) with four photo windows in a diamond,
   each carrying the weave's green hairline and drop shadow. Fade toward the text and RTL mirror unchanged. */
#host-hero .op-weave { grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; align-content: center; gap: 10px; padding: 24px; }
#host-hero .op-weave .op-cell { position: relative; aspect-ratio: 1 / 1; border-radius: 13px; overflow: hidden; background: #0A1526; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05); }
#host-hero .op-weave .op-cell::before { content: ''; position: absolute; inset: 0; background: url('../brand_assets/Pattern/Arabia_Residence_Pattern-01.webp') center / 235% repeat; opacity: 0.13; }
#host-hero .op-weave .op-cell.open { box-shadow: 0 14px 30px -14px rgba(0,0,0,0.55); }
#host-hero .op-weave .op-cell.open::before { display: none; }
#host-hero .op-weave .op-cell.open::after { content: ''; position: absolute; inset: 0; border-radius: 13px; box-shadow: inset 0 0 0 1.5px rgba(0,199,122,0.45); pointer-events: none; }
#host-hero .op-weave .op-cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; border-radius: 0; display: block; }
@media (max-width: 1023px) { #host-hero .op-weave { grid-template-columns: repeat(3, 1fr); align-content: end; padding: 16px; gap: 8px; } }
