/* =========================================================================
   HIWAY FIRDOWS — Page-specific components
   A. Home hero   B. Home sections   C. Simulators   D. About
   E. Services    F. Design tool     G. Gallery      H. Contact   I. Datasheet
   ========================================================================= */

/* A. HOME HERO ------------------------------------------------------------- */
.hero {
    position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: #fff;
    min-height: 100svh; display: flex; align-items: center;
    padding: calc(var(--header-h) + 40px) 0 140px;
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.hero__title { color: #fff; font-size: clamp(2.6rem, 5.6vw, 5rem); line-height: 1.04; letter-spacing: -.035em; margin-bottom: 26px; }
[dir="rtl"] .hero__title { line-height: 1.3; letter-spacing: 0; font-size: clamp(2.3rem, 5vw, 4.4rem); }
.hero__sub { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: rgba(220, 238, 250, .78); max-width: 560px; margin-bottom: 38px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }
.hero__badges { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__badge { display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: var(--radius-pill); font-weight: 600; font-size: .95rem; }
[dir="rtl"] .hero__badge { padding: 10px 10px 10px 18px; }
.hero__badge b { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-brand); font-size: .95rem; }
.hero__badge .icon { width: 18px; height: 18px; }

.hero__visual { position: relative; height: clamp(420px, 46vw, 620px); perspective: 1400px; }
.facade {
    position: absolute; inset: 4% 2% 4% 8%; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr); gap: 6px;
    padding: 6px; border-radius: 6px; background: linear-gradient(160deg, #1c3a55, #0a1f33);
    box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(160, 215, 255, .18);
    transform: rotateY(calc(-16deg * var(--rx) + var(--ty, 0deg))) rotateX(calc(6deg + var(--tx, 0deg)));
    transform-style: preserve-3d; transition: transform .8s var(--ease);
}
.pane {
    position: relative; overflow: hidden; border-radius: 2px;
    background: linear-gradient(160deg, rgba(120, 200, 255, .38), rgba(18, 70, 115, .5) 45%, rgba(6, 30, 52, .85));
    box-shadow: inset 0 0 0 1px rgba(170, 220, 255, .25);
    opacity: 0; animation: pane-in .9s var(--ease) forwards; animation-delay: calc(var(--i) * 60ms + 300ms);
}
.pane:nth-child(3n) { background: linear-gradient(160deg, rgba(160, 225, 255, .5), rgba(30, 100, 160, .45) 50%, rgba(6, 30, 52, .9)); }
.pane:nth-child(5n) { background: linear-gradient(160deg, rgba(255, 210, 140, .25), rgba(30, 90, 140, .4) 55%, rgba(6, 30, 52, .9)); }
.pane::after {
    content: ''; position: absolute; inset: -20%;
    background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .55) 50%, transparent 58%);
    transform: translateX(-120%); animation: glass-sweep 6s var(--ease-in-out) infinite; animation-delay: calc(var(--col) * 180ms + 1.6s);
}
.pane::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .18), transparent 30%); }
.hero__photo {
    position: absolute; z-index: 2; width: 58%; aspect-ratio: 4 / 5; inset-inline-end: 0; bottom: 0;
    border-radius: 26px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .25);
    box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .8);
    transform: translate3d(var(--px, 0), var(--py, 0), 0); transition: transform .9s var(--ease);
    animation: photo-in 1.3s var(--ease) .6s both;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.hero__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(130deg, rgba(255, 255, 255, .25), transparent 35%, transparent 70%, rgba(0, 113, 183, .35)); mix-blend-mode: screen; }
.float-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 16px; font-weight: 600; font-size: .9rem; white-space: nowrap; animation: float-y 6s ease-in-out infinite; }
.float-chip .icon-badge { width: 40px; height: 40px; border-radius: 12px; }
.float-chip .icon-badge .icon { width: 20px; height: 20px; }
.float-chip small { display: block; font-weight: 400; opacity: .75; font-size: .78rem; }
.float-chip--a { top: 6%; inset-inline-end: 4%; }
.float-chip--b { bottom: 30%; inset-inline-start: 0; animation-delay: -2s; }
.float-chip--c { bottom: 2%; inset-inline-start: 22%; animation-delay: -4s; }

.scroll-cue { position: absolute; bottom: 104px; left: 50%; translate: -50% 0; width: 28px; height: 46px; border-radius: 20px; border: 2px solid rgba(255, 255, 255, .4); display: flex; justify-content: center; }
.scroll-cue span { width: 4px; height: 8px; border-radius: 4px; background: #fff; margin-top: 8px; animation: scroll-dot 1.8s var(--ease) infinite; }

@media (max-width: 960px) {
    .hero { min-height: auto; padding-bottom: 130px; }
    .hero__inner { grid-template-columns: 1fr; text-align: center; }
    .hero__sub { margin-inline: auto; }
    .hero__actions, .hero__badges { justify-content: center; }
    .hero__visual { height: 400px; max-width: 520px; width: 100%; margin-inline: auto; order: -1; }
    .scroll-cue { display: none; }
}
@media (max-width: 520px) {
    .hero__visual { height: 330px; }
    .float-chip { font-size: .8rem; padding: 8px 12px; }
    .float-chip small { display: none; }
    .float-chip--c { display: none; }
    .hero__badge { font-size: .85rem; }
}

/* B. HOME SECTIONS --------------------------------------------------------- */
.stats-band { position: relative; z-index: 5; margin-top: -90px; }
.stats-band__card {
    display: grid; grid-template-columns: repeat(4, 1fr); border-radius: var(--radius-l);
    background: var(--surface);
    border: 1px solid var(--line); box-shadow: var(--shadow-l); overflow: hidden;
}
.stats-band .stat { padding: clamp(24px, 3.5vw, 44px) 16px; position: relative; transition: background .4s; }
.stats-band .stat + .stat { border-inline-start: 1px solid var(--line); }
.stats-band .stat:hover { background: color-mix(in srgb, var(--brand) 5%, transparent); }
.stats-band .stat .icon-badge { margin: 0 auto 16px; width: 52px; height: 52px; border-radius: 16px; }
.stats-band .stat .icon-badge .icon { width: 24px; height: 24px; }
@media (max-width: 760px) {
    .stats-band__card { grid-template-columns: 1fr 1fr; }
    .stats-band .stat:nth-child(3) { border-inline-start: 0; }
    .stats-band .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Services bento */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 26px); }
@media (max-width: 980px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .svc-grid { grid-template-columns: 1fr; } }
.svc-card { display: flex; flex-direction: column; gap: 16px; min-height: 290px; }
.svc-card__num { position: absolute; top: 18px; inset-inline-end: 22px; font-size: 4.2rem; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--line-strong); transition: color .5s, -webkit-text-stroke-color .5s; font-family: var(--font); }
.svc-card:hover .svc-card__num { color: color-mix(in srgb, var(--brand) 12%, transparent); -webkit-text-stroke-color: color-mix(in srgb, var(--brand) 50%, transparent); }
.svc-card p { flex: 1; }
.svc-card--feature { background: var(--grad-dark); color: #fff; border: 0; }
.svc-card--feature h3 { color: #fff; }
.svc-card--feature p { color: rgba(220, 238, 250, .8); }
.svc-card--feature .link-arrow { color: var(--cyan); }
.svc-card--feature .svc-card__num { -webkit-text-stroke-color: rgba(255, 255, 255, .25); }
.svc-card__art { position: absolute; inset: 0 0 30% 30%; z-index: -1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 30px; opacity: .55; transform: perspective(600px) rotateX(35deg) translateY(-10%); }
.svc-card__art span { border: 1px solid rgba(140, 210, 255, .35); border-radius: 2px; background: linear-gradient(160deg, rgba(120, 200, 255, .2), transparent); animation: pane-flicker 5s ease-in-out infinite; animation-delay: calc(var(--i) * 120ms); }

/* Portfolio rail */
.rail-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.rail-controls { display: flex; gap: 10px; }
.rail-btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); background: var(--surface); transition: all .35s var(--spring); }
.rail-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: scale(1.08); }
[dir="rtl"] .rail-btn .icon { transform: scaleX(-1); }
.rail { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px var(--gutter) 30px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging a { pointer-events: none; }
.work-card {
    position: relative; flex: 0 0 clamp(260px, 30vw, 360px); aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; scroll-snap-align: start;
    background: var(--grad-dark); color: #fff; box-shadow: var(--shadow); isolation: isolate;
}
.work-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease), filter .6s; }
.work-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(2, 12, 22, .92)); transition: opacity .5s; }
.work-card:hover img { transform: scale(1.1) rotate(1deg); filter: saturate(1.15); }
.work-card__body { position: absolute; inset: auto 0 0 0; padding: 26px; transform: translateY(46px); transition: transform .6s var(--ease); }
.work-card:hover .work-card__body, .work-card:focus-within .work-card__body { transform: none; }
.work-card__tag { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--cyan); font-weight: 700; }
[dir="rtl"] .work-card__tag { letter-spacing: 0; }
.work-card h3 { color: #fff; font-size: 1.6rem; margin: 6px 0 16px; }
.work-card .btn { opacity: 0; transition: opacity .5s var(--ease) .1s, transform .45s var(--spring); }
.work-card:hover .btn, .work-card:focus-within .btn { opacity: 1; }
@media (hover: none) { .work-card__body { transform: none; } .work-card .btn { opacity: 1; } }

/* Glass types */
.glass-card { padding: 0; display: flex; flex-direction: column; }
.glass-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--grad-dark); }
.glass-card__img { position: absolute; inset: 0; overflow: hidden; }
.glass-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.glass-card:hover .glass-card__media img { transform: scale(1.08); }
.glass-card__media .icon-badge { position: absolute; inset-inline-start: 22px; bottom: -28px; z-index: 2; }
.glass-card__tag { position: absolute; top: 16px; inset-inline-end: 16px; padding: 6px 12px; border-radius: var(--radius-pill); font-size: .8rem; font-weight: 700; }
.glass-card__body { padding: 44px 26px 28px; display: flex; flex-direction: column; gap: 18px; flex: 1; }
.glass-card__body h3 { margin: 0; font-size: 1.45rem; }
.meters { display: grid; gap: 12px; }
.meter { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 12px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.meter__bar { height: 8px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.meter__bar span { display: block; height: 100%; border-radius: 8px; background: var(--grad-brand); width: 0; transition: width 1.4s var(--ease) .3s; }
.is-visible .meter__bar span { width: var(--v); }
.meter b { color: var(--ink); min-width: 56px; text-align: end; font-size: .85rem; }
.glass-card .check-list { gap: 8px; font-size: .95rem; margin-top: auto; }

/* Certifications */
.cert-card { text-align: center; }
.cert-card .icon-badge { margin: 0 auto 22px; width: 76px; height: 76px; border-radius: 24px; }
.cert-card .icon-badge .icon { width: 34px; height: 34px; }
.cert-card__seal { position: absolute; top: -40px; inset-inline-end: -40px; width: 120px; height: 120px; border-radius: 50%; border: 1px dashed var(--line-strong); animation: spin 30s linear infinite; }

/* Warranty (dark) */
.warranty-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .warranty-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .warranty-grid { grid-template-columns: 1fr; } }
.w-card { padding: 30px 26px; transition: transform .5s var(--ease), background .4s, border-color .4s; position: relative; overflow: hidden; }
.w-card:hover { transform: translateY(-8px); background: linear-gradient(140deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .05)); border-color: rgba(63, 208, 255, .45); }
.w-card h3 { color: #fff; font-size: 1.2rem; margin: 20px 0 10px; }
.w-card p { color: rgba(220, 238, 250, .72); font-size: .97rem; }
.w-card__big { position: absolute; bottom: -18px; inset-inline-end: 10px; font-size: 5rem; font-weight: 800; color: rgba(255, 255, 255, .05); line-height: 1; font-family: var(--font); }
.shield-hero { width: 120px; height: 120px; margin: 0 auto 26px; position: relative; display: grid; place-items: center; }
.shield-hero::before, .shield-hero::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(63, 208, 255, .35); animation: ripple-ring 3s var(--ease) infinite; }
.shield-hero::after { animation-delay: 1.5s; }
.shield-hero .icon { width: 56px; height: 56px; color: var(--cyan); }

/* Clients marquee */
.client { display: flex; align-items: center; gap: 14px; padding: 14px 26px 14px 14px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-s); white-space: nowrap; font-weight: 700; transition: border-color .3s, transform .4s var(--spring); }
[dir="rtl"] .client { padding: 14px 14px 14px 26px; }
.client:hover { border-color: var(--brand); transform: translateY(-4px); }
.client__logo { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-brand); color: #fff; font-size: .95rem; letter-spacing: .03em; }
.marquee + .marquee { margin-top: 18px; }

/* C. SIMULATORS ------------------------------------------------------------- */
.sim { display: grid; grid-template-columns: 380px 1fr; gap: 26px; align-items: stretch; }
@media (max-width: 1000px) { .sim { grid-template-columns: 1fr; } }
.sim__controls { display: flex; flex-direction: column; gap: 26px; }
.ctrl-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 700; margin-bottom: 12px; }
.ctrl-label output { font-size: 1.05rem; color: var(--brand); font-variant-numeric: tabular-nums; }
.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt > span { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-s); border: 1.5px solid var(--line-strong); font-weight: 600; font-size: .92rem; cursor: pointer; transition: all .3s var(--ease); height: 100%; }
.opt > span > .icon { width: 20px; height: 20px; color: var(--brand); flex-shrink: 0; }
.opt small { display: block; color: var(--muted); font-weight: 500; font-size: .78rem; }
.opt > input:checked + span { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, var(--surface)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); }
.opt > input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 50%, transparent); }
.opt--wide { grid-column: 1 / -1; }

.sim__stage { position: relative; overflow: hidden; border-radius: var(--radius-l); background: var(--grad-dark); color: #fff; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 26px; min-height: 460px; isolation: isolate; }
.sim__stage::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(120, 200, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 200, 255, .06) 1px, transparent 1px); background-size: 40px 40px; }

/* Acoustic */
.acoustic { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; flex: 1; }
.zone { text-align: center; }
.zone__label .icon { display: inline-block; vertical-align: -4px; width: 18px; height: 18px; margin-inline-end: 4px; }
.zone__label { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; opacity: .7; font-weight: 700; }
[dir="rtl"] .zone__label { letter-spacing: 0; }
.zone__db { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; line-height: 1; margin: 10px 0 18px; font-variant-numeric: tabular-nums; }
.zone__db small { font-size: .4em; opacity: .7; margin-inline-start: 4px; }
.waves { display: flex; align-items: center; justify-content: center; gap: 4px; height: 120px; }
.waves i { width: 5px; border-radius: 4px; background: linear-gradient(var(--cyan), var(--brand)); height: calc(var(--h) * var(--amp, 1) * 1%); min-height: 4px; animation: wave 1.1s ease-in-out infinite alternate; animation-delay: calc(var(--d) * -1s); transition: height .6s var(--ease); }
.zone--in .waves i { background: linear-gradient(#8ef0c4, #1fb57a); }
.sim-window { width: 92px; height: 200px; border-radius: 6px; position: relative; background: linear-gradient(160deg, rgba(160, 220, 255, .45), rgba(20, 80, 130, .55)); box-shadow: inset 0 0 0 5px #c9d6e0, inset 0 0 0 6px rgba(0, 0, 0, .25), 0 20px 50px -10px rgba(0, 0, 0, .6); overflow: hidden; }
.sim-window::after { content: ''; position: absolute; inset: -20%; background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, .5) 50%, transparent 60%); animation: glass-sweep 4s var(--ease-in-out) infinite; }
.sim-window__layers { position: absolute; inset: 5px; display: flex; justify-content: center; gap: var(--gap, 0px); }
.sim-window__layers i { flex: 0 0 var(--w, 6px); background: rgba(200, 240, 255, .55); border-radius: 2px; transition: flex-basis .5s var(--ease); }
.sim-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sim-results > div { padding: 16px; border-radius: var(--radius-s); text-align: center; }
.sim-results b { display: block; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.sim-results span { font-size: .85rem; opacity: .75; }
.sim-note { font-size: .82rem; opacity: .6; text-align: center; }
@media (max-width: 560px) {
    .acoustic { grid-template-columns: 1fr; }
    .sim-window { width: 200px; height: 60px; margin-inline: auto; }
    .sim-window__layers { flex-direction: column; }
    .waves { height: 70px; }
    .sim-results { grid-template-columns: 1fr; }
}

/* Weather */
.weather-tabs { display: flex; justify-content: center; margin-bottom: 34px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .compare { grid-template-columns: 1fr; } }
.compare__side { border-radius: var(--radius); padding: 20px; position: relative; }
.compare__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-weight: 700; }
.compare__head .pill { font-size: .78rem; padding: 4px 10px; border-radius: var(--radius-pill); background: rgba(229, 72, 77, .2); color: #ff9a9d; }
.compare__side--good .compare__head .pill { background: rgba(31, 181, 122, .2); color: #8ef0c4; }
.scene { position: relative; height: 240px; border-radius: var(--radius-s); overflow: hidden; background: linear-gradient(180deg, #0d2a42, #164a6e); }
.scene__window { position: absolute; inset: 22px 22%; border-radius: 4px; background: linear-gradient(160deg, rgba(160, 220, 255, .35), rgba(20, 80, 130, .45)); box-shadow: inset 0 0 0 6px var(--frame, #c9d6e0); overflow: hidden; transition: transform .4s var(--ease); }
.scene__window::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 6px; translate: -50% 0; background: var(--frame, #c9d6e0); }
.scene__window::after { content: ''; position: absolute; inset: -20%; background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, .35) 50%, transparent 60%); animation: glass-sweep 5s var(--ease-in-out) infinite; }
.scene__metric { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding: 12px 16px; border-radius: var(--radius-s); background: rgba(0, 0, 0, .25); font-size: .92rem; }
.scene__metric b { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.drop { position: absolute; top: -20px; width: 2px; height: 16px; border-radius: 2px; background: linear-gradient(transparent, #9fdcff); animation: rain-fall var(--t, .8s) linear infinite; animation-delay: var(--d, 0s); }
.leak { position: absolute; bottom: 22px; width: 3px; border-radius: 3px; background: linear-gradient(#9fdcff, rgba(159, 220, 255, .2)); animation: leak 2.4s ease-in infinite; animation-delay: var(--d, 0s); }
.puddle { position: absolute; bottom: 6px; left: 20%; right: 20%; height: 8px; border-radius: 50%; background: radial-gradient(ellipse, rgba(159, 220, 255, .7), transparent 70%); transform: scaleX(var(--p, 0)); transition: transform 1s var(--ease); }
.scene--thermal .scene__window { background: linear-gradient(180deg, var(--t1, #ff6b4a), var(--t2, #ffb340)); filter: saturate(1.2); }
.heat-arrows { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; gap: 10px; pointer-events: none; }
.heat-arrows i { width: 3px; height: var(--len, 40px); border-radius: 3px; background: linear-gradient(transparent, #ffb340); opacity: var(--op, .8); animation: heat-rise 1.6s linear infinite; animation-delay: calc(var(--d) * -1s); }
.scene--wind .scene__window { transform: perspective(500px) rotateY(var(--bend, 0deg)) scaleX(var(--squash, 1)); }
.wind-line { position: absolute; height: 2px; width: 70px; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(220, 245, 255, .9), transparent); animation: wind-flow var(--t, 1.4s) linear infinite; animation-delay: var(--d, 0s); }
.uv-rays { position: absolute; inset: 0; background: repeating-linear-gradient(120deg, rgba(190, 120, 255, var(--uv-o, .4)) 0 3px, transparent 3px 22px); animation: uv-move 2s linear infinite; }
.uv-shield { position: absolute; inset: 22px 22%; z-index: 2; background: rgba(5, 78, 117, .35); }
.uv-inside { position: absolute; inset: auto 22% 22px; height: var(--uv-in, 50%); background: linear-gradient(transparent, rgba(190, 120, 255, .45)); transition: height .6s var(--ease); }
.weather-controls { margin-top: 26px; max-width: 520px; margin-inline: auto; }

/* D. ABOUT ------------------------------------------------------------------ */
.collage { position: relative; min-height: 520px; }
.collage__main { position: absolute; inset: 0 12% 12% 0; border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-l); background: var(--grad-dark); }
[dir="rtl"] .collage__main { inset: 0 0 12% 12%; }
.collage__main img { width: 100%; height: 100%; object-fit: cover; scale: 1.15; }
.collage__card { position: absolute; bottom: 0; inset-inline-end: 0; width: 56%; padding: 26px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-l); border: 1px solid var(--line); }
.collage__card .stat__num { font-size: 2.6rem; text-align: start; }
.collage__card p { color: var(--muted); font-size: .95rem; margin-top: 8px; }
.since-badge { position: absolute; top: -28px; inset-inline-end: 4%; width: 150px; height: 150px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-l); }
.since-badge svg { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); animation: spin 22s linear infinite; }
.since-badge text { fill: rgba(255, 255, 255, .85); font-size: 10.5px; font-weight: 700; letter-spacing: 3px; font-family: var(--font); }
.since-badge b { font-size: 1.9rem; font-family: var(--font); }
@media (max-width: 560px) { .collage { min-height: 420px; } .collage__card { width: 80%; } .since-badge { width: 112px; height: 112px; } .since-badge b { font-size: 1.4rem; } }
.story p + p { margin-top: 18px; }
.story p { color: var(--ink-2); font-size: 1.07rem; }
.story .signature { margin-top: 28px; display: flex; align-items: center; gap: 16px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-brand); color: #fff; font-weight: 800; font-size: 1.1rem; flex-shrink: 0; }

.mv-card { padding: clamp(30px, 4vw, 50px); }
.mv-card .icon-badge { margin-bottom: 26px; width: 70px; height: 70px; border-radius: 22px; }
.mv-card h3 { font-size: 1.8rem; margin-bottom: 14px; }
.mv-card p { font-size: 1.08rem; }
.mv-card__bg { position: absolute; inset-inline-end: -30px; bottom: -40px; z-index: -1; color: color-mix(in srgb, var(--brand) 7%, transparent); }
.mv-card__bg .icon { width: 220px; height: 220px; stroke-width: 1; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .values-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .values-grid { grid-template-columns: 1fr; } }
.value-card { display: flex; gap: 20px; align-items: flex-start; }
.value-card h3 { font-size: 1.2rem; margin-bottom: 6px; }

.team-card { padding: 0; text-align: center; }
.team-card__photo { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; background: var(--grad-dark); overflow: hidden; }
.team-card__photo::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(120, 200, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 200, 255, .08) 1px, transparent 1px); background-size: 28px 28px; }
.team-card__initials { position: relative; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; font-size: 2.4rem; font-weight: 800; color: #fff; background: linear-gradient(140deg, rgba(255, 255, 255, .25), rgba(255, 255, 255, .05)); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(6px); transition: transform .7s var(--spring); }
.team-card__initials::after { content: ''; position: absolute; inset: -12px; border-radius: 50%; border: 1px dashed rgba(63, 208, 255, .5); animation: spin 18s linear infinite; }
.team-card:hover .team-card__initials { transform: scale(1.1) rotate(-6deg); }
.team-card__body { padding: 24px 22px 28px; }
.team-card__role { color: var(--brand); font-weight: 700; font-size: .95rem; margin-bottom: 8px; }
.team-card__socials { position: absolute; bottom: 14px; left: 50%; translate: -50% 0; display: flex; gap: 8px; opacity: 0; transform: translateY(16px); transition: all .5s var(--ease); }
.team-card:hover .team-card__socials { opacity: 1; transform: none; }
.team-card__socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .15); color: #fff; backdrop-filter: blur(6px); }
.team-card__socials .icon { width: 17px; height: 17px; }

.facility { display: grid; grid-template-columns: 1.2fr 2fr; gap: 26px; align-items: stretch; }
@media (max-width: 960px) { .facility { grid-template-columns: 1fr; } }
.facility__hero { background: var(--grad-dark); color: #fff; border: 0; display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px; }
.facility__hero h3 { color: #fff; }
.facility__hero .stat__num { color: #fff; text-align: start; }
.facility__hero .stat__num .suffix { color: var(--cyan); }
.facility__hero p { color: rgba(220, 238, 250, .75); }
.facility__list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .facility__list { grid-template-columns: 1fr; } }
.facility__item { display: flex; align-items: center; gap: 16px; padding: 22px; }
.facility__item h3 { font-size: 1.05rem; margin: 0; }

.achievements { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 860px) { .achievements { grid-template-columns: 1fr 1fr; } }
.ring-stat { text-align: center; padding: 30px 18px; }
.ring { position: relative; width: 130px; height: 130px; margin: 0 auto 18px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring .ring__track { stroke: var(--surface-2); }
.ring .ring__fill { stroke: url(#ringGrad); stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 339.3; transition: stroke-dashoffset 2s var(--ease) .2s; }
.is-visible .ring .ring__fill { stroke-dashoffset: calc(339.3 - 339.3 * var(--p)); }
.ring .stat__num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.9rem; }

.cert-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .cert-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cert-row { grid-template-columns: 1fr; } }
.cert-pill { display: flex; align-items: center; gap: 16px; padding: 20px 22px; }
.cert-pill h3 { font-size: 1.02rem; margin: 0; }

/* Timeline */
.timeline { position: relative; max-width: 1000px; margin-inline: auto; padding-block: 10px; }
.timeline__line { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; translate: -50% 0; background: var(--line-strong); border-radius: 3px; overflow: hidden; }
.timeline__line span { position: absolute; inset: 0; background: linear-gradient(var(--brand-700), var(--brand), var(--cyan)); transform-origin: top; transform: scaleY(var(--tl, 0)); }
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 90px 1fr; align-items: center; margin-bottom: 46px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-item__card { grid-column: 1; }
.tl-item--alt .tl-item__card { grid-column: 3; }
.tl-item__dot { grid-column: 2; grid-row: 1; justify-self: center; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 3px solid var(--line-strong); font-weight: 800; font-size: .95rem; z-index: 1; transition: all .6s var(--spring); }
.tl-item.is-visible .tl-item__dot { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: 0 0 0 8px color-mix(in srgb, var(--brand) 15%, transparent); }
.tl-item__card { grid-row: 1; }
.tl-item__card h3 { font-size: 1.3rem; margin-bottom: 8px; }
@media (max-width: 760px) {
    .timeline__line { left: 38px; }
    [dir="rtl"] .timeline__line { left: auto; right: 38px; translate: 50% 0; }
    .tl-item { grid-template-columns: 76px 1fr; gap: 16px; }
    .tl-item__dot { grid-column: 1; width: 64px; height: 64px; font-size: .85rem; }
    .tl-item__card, .tl-item--alt .tl-item__card { grid-column: 2; }
}

/* E. SERVICES --------------------------------------------------------------- */
.subnav { position: sticky; top: calc(var(--header-h) + 10px); z-index: 50; display: flex; justify-content: center; margin-top: -32px; margin-bottom: 20px; pointer-events: none; }
.subnav .tabs { pointer-events: auto; overflow-x: auto; max-width: 100%; flex-wrap: nowrap; scrollbar-width: none; }
.subnav .tab { white-space: nowrap; }
.svc-block { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 80px); align-items: center; padding-block: clamp(40px, 6vw, 80px); }
.svc-block:nth-of-type(even) .svc-visual { order: 2; }
@media (max-width: 900px) { .svc-block { grid-template-columns: 1fr; } .svc-block:nth-of-type(even) .svc-visual { order: 0; } }
.svc-visual { position: relative; aspect-ratio: 5 / 4; border-radius: var(--radius-l); background: var(--grad-dark); overflow: hidden; box-shadow: var(--shadow-l); isolation: isolate; perspective: 900px; }
.svc-visual__grid { position: absolute; inset: 12%; display: grid; gap: 6px; transform: rotateY(calc(-12deg * var(--rx))) rotateX(8deg); transition: transform 1s var(--ease); }
.svc-block:hover .svc-visual__grid { transform: none; }
.svc-visual__grid span { border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(170, 220, 255, .3); background: linear-gradient(160deg, rgba(140, 210, 255, .35), rgba(20, 80, 130, .45) 50%, rgba(6, 30, 52, .85)); position: relative; overflow: hidden; }
.svc-visual__grid span::after { content: ''; position: absolute; inset: -30%; background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .45) 50%, transparent 58%); transform: translateX(-120%); animation: glass-sweep 5s var(--ease-in-out) infinite; animation-delay: calc(var(--i) * 150ms); }
.svc-visual--windows .svc-visual__grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: 2fr 1fr; }
.svc-visual--facades .svc-visual__grid { grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(4, 1fr); inset: 6% 18%; }
.svc-visual--curtain .svc-visual__grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(5, 1fr); inset: 4% 24%; }
.svc-visual--partitions .svc-visual__grid { grid-template-columns: repeat(4, 1fr); inset: 18% 8%; }
.svc-visual__badge { position: absolute; bottom: 20px; inset-inline-start: 20px; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; z-index: 2; font-weight: 700; }
.svc-visual__num { position: absolute; top: 14px; inset-inline-end: 22px; font-size: 5rem; font-weight: 800; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .25); font-family: var(--font); line-height: 1; }
.svc-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin-bottom: 14px; }
.svc-copy .lead { margin-bottom: 26px; }
.svc-copy .check-list { grid-template-columns: 1fr 1fr; margin-bottom: 32px; }
@media (max-width: 560px) { .svc-copy .check-list { grid-template-columns: 1fr; } }
.svc-copy__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.benefit { text-align: center; }
.benefit .icon-badge { margin: 0 auto 20px; width: 72px; height: 72px; border-radius: 22px; }
.benefit .icon-badge .icon { width: 32px; height: 32px; }

/* Process stepper */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.steps__line { position: absolute; top: 44px; left: 12%; right: 12%; height: 3px; background: var(--line-strong); border-radius: 3px; overflow: hidden; }
.steps__line span { position: absolute; inset: 0; background: linear-gradient(90deg, var(--brand-700), var(--brand), var(--cyan)); transform: scaleX(0); transform-origin: left; transition: transform 2.4s var(--ease) .3s; }
[dir="rtl"] .steps__line span { transform-origin: right; background: linear-gradient(270deg, var(--brand-700), var(--brand), var(--cyan)); }
.steps.is-visible .steps__line span { transform: scaleX(1); }
.step { position: relative; text-align: center; }
.step__icon { position: relative; z-index: 1; width: 90px; height: 90px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 3px solid var(--line-strong); color: var(--brand); transition: all .6s var(--spring); transition-delay: calc(var(--i) * 450ms + 300ms); }
.steps.is-visible .step__icon { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: 0 0 0 10px color-mix(in srgb, var(--brand) 12%, transparent); }
.step__icon .icon { width: 36px; height: 36px; }
.step__no { position: absolute; top: -6px; inset-inline-end: -6px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: .78rem; font-weight: 800; border: 2px solid var(--surface); }
.step .card { text-align: start; padding: 24px; }
.step .card h3 { font-size: 1.2rem; }
.step .check-list { font-size: .92rem; gap: 8px; margin-top: 14px; }
.step .check-list .icon { width: 18px; height: 18px; padding: 3px; }
.duration { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 7px 14px; border-radius: var(--radius-pill); font-weight: 700; font-size: .88rem; color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }
.duration .icon { width: 16px; height: 16px; }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } .steps__line { display: none; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.total-time { margin-top: 50px; padding: clamp(26px, 4vw, 44px); border-radius: var(--radius-l); background: var(--grad-dark); color: #fff; display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center; }
.total-time h3 { color: #fff; font-size: 1.5rem; }
.total-time p { color: rgba(220, 238, 250, .8); }
.gantt { display: grid; gap: 8px; }
.gantt__row { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 12px; font-size: .85rem; }
.gantt__track { position: relative; height: 12px; border-radius: 12px; background: rgba(255, 255, 255, .1); }
.gantt__bar { position: absolute; top: 0; bottom: 0; inset-inline-start: var(--s); width: 0; border-radius: 12px; background: linear-gradient(90deg, var(--cyan), var(--brand)); transition: width 1.2s var(--ease); transition-delay: calc(var(--i) * 350ms + 200ms); }
.is-visible .gantt__bar { width: var(--w); }
@media (max-width: 760px) { .total-time { grid-template-columns: 1fr; } .gantt__row { grid-template-columns: 90px 1fr; } }

/* F. DESIGN TOOL ------------------------------------------------------------ */
.tool { display: grid; grid-template-columns: 1.7fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 1000px) { .tool { grid-template-columns: 1fr; } }
.tool__stage { position: relative; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 16px; min-height: 420px; display: flex; flex-direction: column; }
.dropzone { flex: 1; display: grid; place-items: center; text-align: center; padding: 40px 20px; border-radius: var(--radius); border: 2px dashed color-mix(in srgb, var(--brand) 45%, transparent); background: repeating-linear-gradient(45deg, transparent 0 12px, color-mix(in srgb, var(--brand) 3%, transparent) 12px 24px); transition: all .35s var(--ease); cursor: pointer; }
.dropzone:hover, .dropzone.is-over { border-color: var(--brand); background-color: color-mix(in srgb, var(--brand) 6%, transparent); transform: scale(1.01); }
.dropzone .icon-badge { margin: 0 auto 18px; width: 80px; height: 80px; border-radius: 26px; animation: float-y 4s ease-in-out infinite; }
.dropzone .icon-badge .icon { width: 36px; height: 36px; }
.dropzone h3 { font-size: 1.5rem; margin-bottom: 8px; }
.dropzone p { color: var(--muted); margin-bottom: 20px; }
.canvas-wrap { position: relative; display: none; border-radius: var(--radius); overflow: hidden; background: #0b1b2a; }
.canvas-wrap.is-active { display: block; }
.canvas-wrap canvas { width: 100%; height: auto; touch-action: none; cursor: move; }
.canvas-hint { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: .85rem; }
.canvas-hint .icon { width: 16px; height: 16px; }
.tool__bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.tool__panel { display: grid; gap: 16px; align-content: start; }
.tool__group { padding: 22px; }
.tool__group:hover { transform: none; }
.tool__group h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.tool__group h3 .icon { color: var(--brand); }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; }
.swatch span { display: block; aspect-ratio: 1; border-radius: 14px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); cursor: pointer; transition: transform .35s var(--spring), box-shadow .3s; position: relative; }
.swatch input:checked + span { transform: scale(1.06); box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--brand); }
.swatch input:checked + span::after { content: ''; position: absolute; inset: 0; margin: auto; width: 10px; height: 18px; border: solid var(--tick, #fff); border-width: 0 3px 3px 0; transform: translateY(-2px) rotate(45deg); }
.swatch small { display: block; text-align: center; font-size: .78rem; margin-top: 6px; color: var(--muted); font-weight: 600; }
.swatches--glass span { background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 40%, #fff)); }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 11px 10px; border-radius: 12px; border: 1.5px solid var(--line-strong); font-weight: 700; font-size: .88rem; cursor: pointer; transition: all .3s var(--ease); text-align: center; }
.seg span .icon { width: 16px; height: 16px; }
.seg input:checked + span { background: var(--grad-brand); color: #fff; border-color: transparent; }
.seg input:focus-visible + span, .swatch input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 50%, transparent); outline-offset: 2px; }

/* G. GALLERY ----------------------------------------------------------------- */
.filters { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 44px; }
.filters .chip small { opacity: .7; font-size: .8em; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 20px; }
.gallery-grid .g-item:nth-child(1) { grid-row: span 2; }
.gallery-grid .g-item:nth-child(4) { grid-column: span 2; }
.gallery-grid .g-item:nth-child(5) { grid-column: 1 / -1; }
@media (max-width: 960px) { .gallery-grid { grid-template-columns: 1fr 1fr; } .gallery-grid .g-item:nth-child(4) { grid-column: auto; } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 300px; } .gallery-grid .g-item:nth-child(1) { grid-row: auto; } }
.g-item { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--grad-dark); color: #fff; box-shadow: var(--shadow); isolation: isolate; transition: opacity .5s var(--ease), transform .6s var(--ease), filter .5s; }
.g-item.is-hidden { display: none; }
.g-item.is-leaving { opacity: 0; transform: scale(.92); }
.g-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.g-item::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(2, 12, 22, .05) 30%, rgba(2, 12, 22, .9)); }
.g-item:hover img { transform: scale(1.08); }
.g-item__body { position: absolute; inset: auto 0 0 0; padding: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.g-item__body h3 { color: #fff; font-size: 1.5rem; }
.g-item__body small { display: block; color: var(--cyan); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 4px; }
[dir="rtl"] .g-item__body small { letter-spacing: 0; }
.g-item__actions { display: flex; gap: 8px; }
.g-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); color: #fff; backdrop-filter: blur(8px); transition: all .4s var(--spring); transform: translateY(14px); opacity: 0; }
.g-btn:nth-child(2) { transition-delay: .06s; }
.g-item:hover .g-btn, .g-item:focus-within .g-btn { transform: none; opacity: 1; }
.g-btn:hover { background: #fff; color: var(--brand-700); }
.g-btn .icon { width: 20px; height: 20px; }
@media (hover: none) { .g-btn { transform: none; opacity: 1; } }
.g-item__shine { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .25) 50%, transparent 60%); transform: translateX(-100%); transition: transform 1s var(--ease); }
.g-item:hover .g-item__shine { transform: translateX(100%); }

/* H. CONTACT ----------------------------------------------------------------- */
.quick-contacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: -70px; position: relative; z-index: 5; }
@media (max-width: 960px) { .quick-contacts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .quick-contacts { grid-template-columns: 1fr; } }
.qc { display: flex; align-items: center; gap: 16px; padding: 22px; }
.qc small { display: block; color: var(--muted); font-size: .82rem; font-weight: 600; }
.qc b { font-size: .98rem; overflow-wrap: anywhere; }
.qc .icon-badge { width: 52px; height: 52px; border-radius: 16px; }
.qc .icon-badge .icon { width: 24px; height: 24px; }
.qc--wa .icon-badge { background: linear-gradient(135deg, #128c7e, #25d366); box-shadow: 0 14px 30px -12px rgba(37, 211, 102, .7); }

.contact-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 1000px) { .contact-layout { grid-template-columns: 1fr; } }
.form-card { padding: clamp(26px, 4vw, 48px); }
.form-card:hover { transform: none; }
.form-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--brand-700), var(--brand), var(--cyan)); }
.form-steps { display: flex; gap: 8px; margin-bottom: 28px; }
.form-steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; position: relative; }
.form-steps span::after { content: ''; position: absolute; inset: 0; background: var(--grad-brand); transform: scaleX(var(--f, 0)); transform-origin: left; transition: transform .5s var(--ease); }
[dir="rtl"] .form-steps span::after { transform-origin: right; }
.service-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.service-picks label { position: relative; }
.service-picks input { position: absolute; opacity: 0; }
.service-picks span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--radius-pill); border: 1.5px solid var(--line-strong); font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .3s var(--ease); }
.service-picks span .icon { width: 17px; height: 17px; color: var(--brand); }
.service-picks input:checked + span { background: var(--grad-brand); color: #fff; border-color: transparent; }
.service-picks input:checked + span .icon { color: #fff; }
.service-picks input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 50%, transparent); }
.picks-label { font-weight: 700; margin-bottom: 12px; display: block; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.form-foot small { color: var(--muted); display: flex; align-items: center; gap: 8px; }
.form-foot small .icon { width: 16px; height: 16px; color: var(--success); }
.form-success { display: none; text-align: center; padding: 40px 10px; }
.form-success.is-shown { display: block; animation: panel-in .6s var(--ease); }
.form-success .check-burst { width: 96px; height: 96px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #12a26b, #2fd394); color: #fff; box-shadow: 0 20px 40px -12px rgba(31, 181, 122, .6); animation: pop .7s var(--spring); }
.form-success .check-burst .icon { width: 46px; height: 46px; stroke-width: 3; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s var(--ease) .35s forwards; }

.info-stack { display: grid; gap: 18px; }
.info-card h3 { display: flex; align-items: center; gap: 12px; font-size: 1.15rem; margin-bottom: 18px; }
.info-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); }
.info-row:first-of-type { border-top: 0; padding-top: 0; }
.info-row .icon-badge { width: 42px; height: 42px; border-radius: 12px; }
.info-row .icon-badge .icon { width: 20px; height: 20px; }
.info-row small { display: block; color: var(--muted); font-size: .82rem; font-weight: 600; }
.info-row b { font-weight: 600; }
.copy-btn { margin-inline-start: auto; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); transition: all .3s; flex-shrink: 0; }
.copy-btn:hover { color: var(--brand); border-color: var(--brand); }
.copy-btn .icon { width: 16px; height: 16px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--radius-pill); font-size: .82rem; font-weight: 700; margin-top: 8px; background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.status-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-pill.is-open { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
.status-pill.is-open::before { animation: pulse-green 1.8s infinite; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 14px; }
.week span { text-align: center; padding: 8px 0; border-radius: 10px; font-size: .74rem; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.week span.is-on { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.week span.is-today { outline: 2px solid var(--brand); outline-offset: 1px; }
.emergency { background: linear-gradient(135deg, #b4232a, #e5484d); color: #fff; border: 0; text-align: center; }
.emergency h3 { color: #fff; justify-content: center; }
.emergency a { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: .04em; margin-top: 6px; }
.emergency .siren { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .15); position: relative; }
.emergency .siren::before, .emergency .siren::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .6); animation: ripple-ring 2s var(--ease) infinite; }
.emergency .siren::after { animation-delay: 1s; }
.emergency .siren .icon { width: 28px; height: 28px; }

.map-frame { position: relative; border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-l); border: 1px solid var(--line); height: clamp(340px, 45vw, 520px); background: var(--surface-2); }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: saturate(.9) contrast(1.05); }
[data-theme="dark"] .map-frame iframe { filter: invert(.9) hue-rotate(180deg) saturate(.7); }
.map-card { position: absolute; top: 20px; inset-inline-start: 20px; max-width: 320px; padding: 22px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-l); }
.map-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.map-card p { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.map-pin { position: absolute; top: 50%; left: 50%; translate: -50% -100%; pointer-events: none; color: var(--brand); }
@media (max-width: 600px) { .map-card { position: static; max-width: none; border-radius: 0; box-shadow: none; } .map-frame { height: auto; } .map-frame iframe { height: 320px; } }

/* I. DATASHEET ---------------------------------------------------------------- */
.ds-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.ds-head { display: grid; grid-template-columns: 1fr 1.2fr; gap: 26px; align-items: stretch; margin-bottom: 26px; }
@media (max-width: 900px) { .ds-head { grid-template-columns: 1fr; } }
.ds-media { position: relative; border-radius: var(--radius-l); overflow: hidden; min-height: 320px; background: var(--grad-dark); box-shadow: var(--shadow); }
.ds-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ds-media__label { position: absolute; inset: auto 16px 16px 16px; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 700; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--radius-pill); font-size: .8rem; font-weight: 700; }
.badge--safe { background: color-mix(in srgb, var(--success) 18%, transparent); color: var(--success); }
.badge--warn { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }
.ds-media .badge--safe { background: #1fb57a; color: #fff; }
.ds-media .badge--warn { background: #e5484d; color: #fff; }
.spec-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.spec-tile { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform .4s var(--ease), border-color .3s; }
.spec-tile:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.spec-tile small { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
[dir="rtl"] .spec-tile small { letter-spacing: 0; font-size: .88rem; }
.spec-tile small .icon { width: 16px; height: 16px; color: var(--brand); }
.spec-tile b { font-size: 1.12rem; display: block; }
.spec-tile::after { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; background: var(--grad-brand); }
.ds-section-title { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; margin: 34px 0 16px; }
.ds-section-title .icon { color: var(--brand); }
.thick-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.thick-chip { padding: 10px 16px; border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--line); font-weight: 700; transition: all .3s var(--ease); cursor: pointer; text-align: center; }
.thick-chip small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }
.thick-chip:hover, .thick-chip.is-active { background: var(--grad-brand); color: #fff; border-color: transparent; transform: translateY(-3px); }
.thick-chip:hover small, .thick-chip.is-active small { color: rgba(255, 255, 255, .8); }
.lists3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .lists3 { grid-template-columns: 1fr; } }
.lists3 .card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin-bottom: 16px; }
.list-minus .icon { background: linear-gradient(135deg, #b4232a, #e5484d) !important; }
.list-plus .icon { background: linear-gradient(135deg, #12a26b, #2fd394) !important; }
.weight-calc { display: grid; grid-template-columns: 1fr 1fr auto; gap: 18px; align-items: end; }
@media (max-width: 700px) { .weight-calc { grid-template-columns: 1fr; } }
.weight-out { text-align: center; padding: 18px 26px; border-radius: var(--radius); background: var(--grad-dark); color: #fff; min-width: 180px; }
.weight-out b { display: block; font-size: 2rem; font-variant-numeric: tabular-nums; }
.weight-out small { opacity: .75; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-s); background: var(--surface); }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.cmp-table th, .cmp-table td { padding: 16px 20px; text-align: start; border-bottom: 1px solid var(--line); }
.cmp-table thead th { background: var(--navy); color: #fff; font-size: .95rem; position: sticky; top: 0; }
.cmp-table tbody th { font-weight: 700; color: var(--ink-2); background: var(--surface-2); width: 26%; }
.cmp-table tbody tr { transition: background .3s; }
.cmp-table tbody tr:hover td { background: color-mix(in srgb, var(--brand) 6%, transparent); }
.cmp-table td.is-best { color: var(--success); font-weight: 700; }
.bars { display: grid; gap: 22px; }
.bar-group h4 { font-size: 1rem; margin-bottom: 10px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 50px; gap: 12px; align-items: center; font-size: .9rem; font-weight: 600; margin-bottom: 8px; }
.bar-row .meter__bar { height: 12px; }
.guide-card h3 { display: flex; align-items: center; gap: 12px; }

/* KEYFRAMES ------------------------------------------------------------------- */
@keyframes pane-in { from { opacity: 0; transform: translateZ(-60px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes glass-sweep { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes photo-in { from { opacity: 0; transform: translateY(60px) scale(.94); } to { opacity: 1; } }
@keyframes scroll-dot { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }
@keyframes pane-flicker { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes wave { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
@keyframes rain-fall { to { transform: translateY(280px); } }
@keyframes leak { 0% { height: 0; opacity: 0; } 30% { opacity: 1; } 100% { height: 40px; opacity: 0; } }
@keyframes heat-rise { from { transform: translateY(30px); opacity: 0; } 40% { opacity: var(--op, .8); } to { transform: translateY(-40px); opacity: 0; } }
@keyframes wind-flow { from { transform: translateX(-80px); opacity: 0; } 20% { opacity: 1; } to { transform: translateX(110%); opacity: 0; } }
@keyframes uv-move { to { background-position: 50px 0; } }
@keyframes pulse-green { 0% { box-shadow: 0 0 0 0 rgba(31, 181, 122, .6); } 100% { box-shadow: 0 0 0 8px transparent; } }
@keyframes pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Sticky subnav active state (anchor links, no ink) */
.subnav .tab[aria-selected="true"] { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-brand); }
.subnav .tab { transition: color .3s, background .3s; }

/* Keep "number + unit" readouts in natural order inside RTL pages */
.thick-chip, .weight-out b, .ctrl-label output, .meter b, .sim-results b, .scene__metric b, .zone__db, .compare__head .pill, .opt small, .ring .stat__num, .stat__num { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .collage__card .stat__num, [dir="rtl"] .facility__hero .stat__num { text-align: right; }
