/* Al Bassam — home page sections. Page-specific styles ported from the inline
   <style> in docs/mockups/home.html. The shared kit (buttons, masthead, forms,
   accordion, chips) lives in site.css; tokens come from tokens.css. */

/* ---- hero (full-width photo slider) ---- */
.hero{position:relative;overflow:hidden;min-height:clamp(520px,68vh,700px);background:var(--night);display:flex;flex-direction:column;}
.hero-slides{position:absolute;inset:0;}
.hero-slide{position:absolute;inset:0;inline-size:100%;block-size:100%;object-fit:cover;object-position:center top;}
/* Functional photo scrim (not a decorative fill): dark on the text side (inline-start = right in RTL). */
.hero::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:
    linear-gradient(to left,color-mix(in srgb,var(--night) 92%,transparent) 0%,color-mix(in srgb,var(--night) 74%,transparent) 62%,transparent 100%), /* scrim */
    linear-gradient(to top,color-mix(in srgb,var(--night) 70%,transparent) 0%,transparent 30%); /* scrim */}
[dir="ltr"] .hero::before{background:
    linear-gradient(to right,color-mix(in srgb,var(--night) 92%,transparent) 0%,color-mix(in srgb,var(--night) 74%,transparent) 62%,transparent 100%), /* scrim */
    linear-gradient(to top,color-mix(in srgb,var(--night) 70%,transparent) 0%,transparent 30%); /* scrim */}
.hero-content{position:relative;z-index:2;flex:1;display:flex;align-items:center;padding-block:clamp(3rem,7vh,5rem) clamp(1.5rem,3vh,2.5rem);color:var(--on-color);}
.hero-content .wrap{display:block;inline-size:100%;}
.hero-content .wrap > *{max-width:min(100%,34rem);}
.hero h1{font-size:clamp(2rem,5vw,3.8rem);color:var(--on-color);margin-block:.4rem .3rem;line-height:1.2;}
/* Eyebrow and chips carry the red-tint accent, which needs a near-solid night backing to stay 4.5:1 over any photo. */
.hero .eyebrow{display:inline-block;margin:0;padding:.25rem .8rem;border-radius:999px;background:color-mix(in srgb,var(--night) 96%,transparent);color:var(--on-dark-accent);}
.hero-swoosh{background:var(--on-dark-accent);}
.hero .lead{font-size:clamp(1rem,2vw,1.2rem);color:color-mix(in srgb,var(--on-color) 88%,transparent);max-width:44ch;margin-bottom:1.5rem;}
.hero .cta{display:flex;gap:1rem;flex-wrap:wrap;margin-bottom:1.5rem;}
.hero-chips{list-style:none;margin:0;padding:0;}
.hero .hero-chip{background:color-mix(in srgb,var(--night) 96%,transparent);color:var(--on-color);border-color:color-mix(in srgb,var(--on-color) 20%,transparent);}
.hero .hero-chip b{color:var(--on-dark-accent);}
/* controls */
.hero-nav{position:relative;z-index:2;display:flex;align-items:center;gap:.5rem;padding:.4rem clamp(1.25rem,4vw,3rem) 1.4rem;}
.hero-arr{inline-size:44px;block-size:44px;padding:0;border-radius:50%;background:color-mix(in srgb,var(--on-color) 12%,transparent);border:1px solid color-mix(in srgb,var(--on-color) 28%,transparent);color:var(--on-color);display:grid;place-items:center;cursor:pointer;flex:none;transition:background .2s;}
.hero-arr:hover{background:color-mix(in srgb,var(--on-color) 28%,transparent);}
.hero-pause{margin-inline-start:auto;}
.hero-dots{display:flex;}
.hero-dot{inline-size:24px;block-size:24px;padding:0;border:0;background:transparent;display:grid;place-items:center;cursor:pointer;}
.hero-dot::before{content:"";inline-size:8px;block-size:8px;border-radius:4px;background:color-mix(in srgb,var(--on-color) 35%,transparent);transition:background .35s,transform .35s cubic-bezier(.16,1,.3,1);}
.hero-dot[aria-current="true"]::before{background:var(--on-color);transform:scaleX(2.4);}
.hero-count{display:none;color:var(--on-color);font-weight:600;font-size:.95rem;min-inline-size:3.5rem;text-align:center;}
@media(max-width:900px){
  .hero::before,[dir="ltr"] .hero::before{background:
    linear-gradient(to top,color-mix(in srgb,var(--night) 85%,transparent) 0%,color-mix(in srgb,var(--night) 50%,transparent) 55%), /* scrim */
    linear-gradient(color-mix(in srgb,var(--night) 60%,transparent),color-mix(in srgb,var(--night) 60%,transparent)); /* scrim */}
  .hero-content .wrap > *{max-width:100%;}
}
@media(max-width:560px){
  .hero{min-height:460px;}
  .hero h1{font-size:clamp(1.7rem,7vw,2.4rem);}
  .hero .eyebrow{font-size:.8rem;}
}
@media(max-width:480px){
  .hero-dots{display:none;}
  .hero-count{display:inline-block;}
  /* Two CTAs barely fit on one row at 412px: the fallback font (before Plex 600 arrives) wrapped them and
     pushed the chips down 62px (CLS 0.062). Stack them so the row height never depends on the font. */
  .hero .cta{flex-direction:column;align-items:stretch;}
}

/* ---- about ---- */
.about{background:var(--raised);border-block:1px solid var(--hairline);}
.about .wrap{display:grid;grid-template-columns:1fr auto;gap:2.5rem;align-items:center;}
.about p.body{font-size:clamp(1.15rem,2.4vw,1.5rem);font-family:var(--fd);color:var(--ink);line-height:1.7;max-width:32ch;}
.seal{flex:none;width:150px;height:150px;border-radius:50%;border:3px solid var(--blue);display:grid;place-items:center;text-align:center;color:var(--blue);background:var(--paper);}
.seal .n{font-family:var(--fd);font-size:2.6rem;line-height:1;} .seal small{display:block;font-size:.72rem;color:var(--muted);margin-top:.2rem;padding-inline:.5rem;}

/* ---- specialty band ---- */
.band{background:var(--blue);color:var(--on-color);}
.band .wrap{padding-block:clamp(3rem,6vw,4.75rem);}
.band .eyebrow{color:var(--on-dark-accent);}
.band h2{color:var(--on-color);font-size:clamp(1.7rem,3.6vw,2.5rem);max-width:24ch;margin-block:.4rem 1rem;}
.band p{color:color-mix(in srgb,var(--on-color) 86%,transparent);max-width:62ch;}
.stats{display:flex;gap:clamp(1.5rem,5vw,4rem);margin-top:2.25rem;flex-wrap:wrap;}
.stats .n{font-family:var(--fd);font-size:2.6rem;line-height:1;color:var(--on-color);} .stats .n span{color:var(--on-dark-accent);}
.stats .l{font-size:.88rem;opacity:.85;margin-top:.3rem;}

/* ---- clients (سابقة الأعمال) — uniform NAMED cards. The old site listed 24
   clients by name (10 with a logo, 14 name-only); we show all 24. Every card
   carries the company name; a logo OR a brand-tinted Amiri monogram fills a
   shared media slot — name-only cards are peers, never a lesser tier or a broken
   image. Staggered scroll-reveal reuses the [data-reveal] observer in site.js. ---- */
.clients{background:var(--raised);border-block:1px solid var(--hairline);}
.logos{display:grid;grid-template-columns:repeat(5,1fr);gap:1.25rem;margin-top:2.25rem;}

.client-card{
  display:grid;grid-template-rows:auto auto;align-content:center;gap:.9rem;
  min-height:190px;padding:1.5rem 1.2rem 1.2rem;
  background:var(--surface);border:1px solid var(--hairline);border-radius:16px;
  box-shadow:0 1px 2px color-mix(in srgb,var(--ink) 5%,transparent);text-align:center;
  transition:transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease, border-color .3s ease;
}
.client-card:hover{transform:translateY(-7px);box-shadow:0 20px 44px color-mix(in srgb,var(--blue) 16%,transparent);border-color:transparent;}

/* media slot: one fixed-height box so logos and monograms sit on a shared baseline */
.cc-slot{block-size:92px;display:grid;place-items:center;}
.cc-slot img{inline-size:auto;block-size:auto;max-height:76px;max-width:100%;object-fit:contain;transition:transform .3s cubic-bezier(.16,1,.3,1);}
.client-card:hover .cc-slot img{transform:scale(1.05);}

/* monogram tile — sized to a logo's optical mass (not a chip), brand-tinted, dignified */
.cc-mono{
  position:relative;inline-size:76px;block-size:76px;display:grid;place-items:center;overflow:hidden;
  border-radius:16px;font-family:var(--fd);font-weight:700;font-size:2.35rem;line-height:1;color:var(--blue);
  background:color-mix(in srgb,var(--blue) 9%,transparent);
  border:1px solid color-mix(in srgb,var(--blue) 18%,transparent);
  transition:transform .3s cubic-bezier(.16,1,.3,1);
}
.cc-mono > *{position:relative;z-index:1;}
/* faint paper-grain so a dense cluster of monogram tiles never reads as a stamped template */
.cc-mono::before{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.45;mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}
.client-card:hover .cc-mono{transform:scale(1.05);}

/* name caption — identical on EVERY card; this is what equalizes the two types.
   Reserve two lines so 1- and 2-line names keep the slot on one baseline; the
   max-block-size is a fallback for browsers without -webkit-line-clamp. */
.cc-name{
  margin:0;font-family:var(--fb);font-weight:600;font-size:.84rem;line-height:1.45;color:var(--ink);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  min-block-size:2.5em;max-block-size:2.9em;
}

/* site.js adds .reveal-ready (JS active) then .in-view when the wall scrolls in */
.logos.reveal-ready:not(.in-view) .client-card{opacity:0;}
.logos.in-view .client-card{animation:logoIn .7s cubic-bezier(.16,1,.3,1) backwards;animation-delay:calc(var(--i,0) * 55ms);}
@keyframes logoIn{from{opacity:0;transform:translateY(22px) scale(.97);}to{opacity:1;transform:none;}}
@media(prefers-reduced-motion:reduce){.logos.reveal-ready:not(.in-view) .client-card{opacity:1;}.logos.in-view .client-card{animation:none;}}

/* ---- services: section heading + intro spacing (shared kit is in site.css) ---- */
.svc-intro{max-width:62ch;color:var(--muted);margin-top:.4rem;}
/* ---- services: numbered editorial list ---- */
.svc-list{list-style:none;margin:2rem 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:clamp(2rem,5vw,4.5rem);}
.svc-item{display:grid;grid-template-columns:auto 1fr;gap:1.1rem;align-items:start;padding-block:1.4rem 1.6rem;border-top:1px solid var(--hairline);}
.svc-item:nth-child(-n+2){border-top:2px solid var(--blue);}
.svc-n{font-family:var(--fd);font-size:2rem;line-height:1;color:var(--red-text);min-inline-size:2.4ch;}
.svc-item h3{font-size:1.25rem;margin-bottom:.35rem;}
.svc-item p{color:var(--muted);font-size:.98rem;line-height:1.75;max-width:52ch;white-space:pre-line;overflow-wrap:anywhere;}
@media(max-width:760px){
  .svc-list{grid-template-columns:1fr;}
  .svc-item:nth-child(2){border-top:1px solid var(--hairline);}
}

/* ---- contact ---- */
.contact{background:var(--raised);border-top:1px solid var(--hairline);}
.contact .wrap{display:grid;grid-template-columns:.9fr 1.1fr;gap:clamp(2rem,4vw,3.5rem);}
.info .row{display:flex;gap:.9rem;align-items:flex-start;margin-bottom:1.3rem;}
.info .ic{width:42px;height:42px;border-radius:10px;background:var(--blue);color:var(--on-color);display:grid;place-items:center;flex:none;}
.info h3{margin:0 0 .15rem;font-family:var(--fb);font-size:.95rem;color:var(--blue);font-weight:700;}
.contact-title{font-size:clamp(1.7rem,3.6vw,2.4rem);margin-block:.4rem 1.4rem;}
.info-list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:0 1.1rem;color:var(--muted);}
.info a{color:var(--blue);display:inline-flex;align-items:center;min-block-size:44px;}
.map-frame{display:block;border:0;inline-size:100%;block-size:100%;}
.cform-title{font-size:1.35rem;margin-bottom:1rem;}
.info p{color:var(--muted);font-size:.95rem;}
.map{margin-top:.5rem;border-radius:12px;overflow:hidden;border:1px solid var(--hairline);block-size:220px;background:var(--raised);}
.map-facade{all:unset;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;inline-size:100%;block-size:100%;color:var(--blue);font-family:var(--fb);font-weight:600;text-align:center;}
.map-facade:hover{background:var(--paper);}
.map-facade:active{background:var(--hairline);}
.map-facade:focus-visible{outline:var(--focus-ring);outline-offset:-4px;}
.cform{background:var(--paper);border:1px solid var(--hairline);border-radius:16px;padding:clamp(1.5rem,3vw,2.25rem);}

@media(max-width:900px){
  .about .wrap{grid-template-columns:1fr;justify-items:start;gap:1.5rem;}
  .logos{grid-template-columns:repeat(3,1fr);}
  .contact .wrap{grid-template-columns:1fr;}
}
@media(max-width:560px){
  .logos{grid-template-columns:repeat(2,1fr);gap:.9rem;}
  .client-card{min-height:170px;padding:1.2rem 1rem 1.05rem;gap:.75rem;}
  .cc-slot{block-size:74px;} .cc-slot img{max-height:60px;}
  .cc-mono{inline-size:62px;block-size:62px;font-size:1.95rem;}
  .cc-name{font-size:.8rem;}
}

/* ---- splash "فجر الخليج" (Views/Shared/_Dawn.cshtml) ----
   The logo plays as a sunrise, then hands over to the masthead logo. Shown only while <html> has .dawn-play, which the
   head gate in Index.cshtml adds once per tab session and never under reduced motion. Only transform and opacity
   animate (visibility for the final switch-off). Timeline, ms: night lifts 100-650 · red horizon wipes in right to
   left 80-620 · B rises 380-860 · flame ignites 540-840 · rays fan right to left 780-1155 · wordmark 820-1080 ·
   mark flies to the masthead 1150-1570 · paper fades 1250-1600 · mark and logo cross-fade 1450-1600 · overlay off 1600.
   With no JS at all the last keyframe still hides the overlay; site.js removes it on animationend or any input. */
.dawn{display:none;}
html.dawn-play .dawn{display:block;position:fixed;inset:0;z-index:40;contain:strict;pointer-events:none;animation:dw-end 1ms 1600ms both;
  --dw-expo:cubic-bezier(.16,1,.3,1);--dw-quint:cubic-bezier(.22,1,.36,1);--dw-quart-io:cubic-bezier(.76,0,.24,1);}
.dawn-paper,.dawn-night,.dawn-stage{position:absolute;inset:0;}
.dawn-paper{background:var(--paper);animation:dw-fade 350ms 1250ms var(--dw-quint) both;}
.dawn-night{background:var(--night);animation:dw-fade 550ms 100ms var(--dw-quint) both;}
/* Optical centre about 42% from the top. */
.dawn-stage{display:grid;place-items:center;padding-block-end:16vh;}
/* The slot never moves: site.js measures it for the flight vector (--dx, --dy, --s); the mark inside it flies. */
.dw-slot{position:relative;inline-size:min(72vw,420px);aspect-ratio:267/160;}
.dw-mark{position:absolute;inset:0;will-change:transform;animation:dw-fly 420ms 1150ms var(--dw-quart-io) both,dw-fade 150ms 1450ms linear both;}
.dw-mark>div,.dw-wipe-in{position:absolute;inset:0;}
.dw-mark svg{display:block;inline-size:100%;block-size:100%;}
.dw-sun svg,.dw-word svg,.dw-rays svg{fill:var(--blue);}
.dw-flames svg,.dw-wipe svg{fill:var(--red);}
/* Horizon: the ring wipes in from the right (the reading direction); the outer box travels, the art counter-moves. */
.dw-wipe{overflow:hidden;animation:dw-wipe-o 540ms 80ms var(--dw-expo) both;}
.dw-wipe-in{animation:dw-wipe-i 540ms 80ms var(--dw-expo) both;}
/* Sun: the B rises from behind a horizon at 62% of the mark (its lowest point sits at 60%). */
.dw-mark>.dw-horizon{inset-block-end:auto;block-size:62%;overflow:hidden;}
.dw-horizon>.dw-sun{position:absolute;inset:0;inset-block-end:auto;block-size:calc(100% / .62);animation:dw-rise 480ms 380ms var(--dw-quint) both;}
/* Flame and rays grow from their roots (viewBox units, 2x grid). */
.dw-ray,.dw-sray{transform-box:view-box;}
.dw-ray{transform-origin:236px 112px;animation:dw-ignite 300ms 540ms var(--dw-expo) both;}
.dw-sray{transform-origin:400px 216px;animation:dw-ignite 240ms 915ms var(--dw-expo) both;}
.dw-sray:nth-child(4){animation-delay:780ms;}
.dw-sray:nth-child(3){animation-delay:825ms;}
.dw-sray:nth-child(2){animation-delay:870ms;}
.dw-word{animation:dw-word 260ms 820ms var(--dw-quint) both;}
/* Hand-off: the masthead logo stays hidden under the overlay, then fades in as the flown mark fades out on top of it.
   Opacity only, its width and height attributes never change, so nothing shifts. */
html.dawn-play .bar .logo img{animation:dw-in 150ms 1450ms linear both;}
/* The parked skip link peeks a sliver above the paper; it stays above the overlay (z 50 > 40) for when it is focused. */
html.dawn-play .skip-link:not(:focus){opacity:0;}
/* Skip (any key, click, wheel or touch): the overlay fades in 180 ms and the logo is shown at once. */
html.dawn-skip .dawn{animation:dw-fade 180ms linear both;}
html.dawn-skip .dawn *{animation-play-state:paused;}
html.dawn-skip .bar .logo img{animation:none;}
@keyframes dw-end{to{visibility:hidden;}}
@keyframes dw-fade{to{opacity:0;}}
@keyframes dw-in{from{opacity:0;}}
@keyframes dw-wipe-o{from{transform:translateX(100%);}}
@keyframes dw-wipe-i{from{transform:translateX(-100%);}}
@keyframes dw-rise{from{transform:translateY(62%);}}
@keyframes dw-ignite{from{transform:scale(.2) rotate(-12deg);opacity:0;}}
@keyframes dw-word{from{transform:translateY(6px);opacity:0;}}
@keyframes dw-fly{to{transform:translate(var(--dx,0px),var(--dy,-8px)) scale(var(--s,.9));}}
@media(prefers-reduced-motion:reduce){html.dawn-play .dawn{display:none;}html.dawn-play .bar .logo img{animation:none;}}
