/* ==========================================================================
   نيفورا للتكييف — الواجهة الأمامية (Mobile-first، يدعم RTL و LTR بالخصائص المنطقية)
   ========================================================================== */
:root {
  --bg: #faf8f5;
  --card: #ffffff;
  --border: #e6e1d9;
  --fg: #171717;
  --muted: #6b6b6b;
  --soft: #f1ede6;
  --on-dark-muted: rgba(255, 255, 255, .68);
  --radius: 12px;
  --shadow: 0 8px 28px rgba(0, 0, 0, .08);
  --bar-h: 58px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: calc(var(--bar-h) + var(--safe-b));
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0; font-weight: 800; }
p { margin: 0 0 1em; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1rem; }
.muted { color: var(--muted); }
.small { font-size: .8rem; }
.c-primary { color: var(--primary); }
.row { display: flex; gap: .5rem; align-items: flex-start; }
.ic { flex-shrink: 0; }
[dir="ltr"] .arrow { transform: scaleX(-1); }

.skip { position: absolute; inset-inline-start: -999px; top: 0; background: var(--primary); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { inset-inline-start: 0; }

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; flex-wrap: wrap;
  min-height: 46px; padding: .65rem 1.25rem; border-radius: 8px; border: 1px solid transparent;
  font-weight: 700; font-size: .95rem; line-height: 1.3; text-align: center;
  transition: opacity .2s, transform .2s, background .2s, border-color .2s;
}
.btn:active { transform: scale(.98); }
.btn small { font-weight: 500; opacity: .85; font-size: .72rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { opacity: .9; }
.btn-ghost { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-wa { background: #25d366; color: #fff; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-block { width: 100%; }

/* ---------- الترويسة ---------- */
.site-header { position: sticky; top: 0; z-index: 40; }
.topbar { display: none; background: var(--dark); color: #fff; font-size: .78rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.topbar .muted { color: var(--on-dark-muted); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .45rem; }
.topbar-phones { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.topbar-phones a { display: inline-flex; align-items: center; gap: .4rem; }
.topbar-phones a:hover { color: var(--primary); }

.mainbar { background: rgba(250, 248, 245, .97); border-bottom: 1px solid var(--border); box-shadow: 0 1px 6px rgba(0, 0, 0, .04); backdrop-filter: blur(8px); }
.mainbar-in { display: flex; align-items: center; justify-content: space-between; gap: .75rem; height: 64px; }
.brand { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.brand img { height: 40px; width: auto; border-radius: 6px; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--primary); color: #fff; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text b { font-size: .92rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { font-size: .6rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav { display: none; align-items: center; gap: .15rem; }
.nav > a, .dd > a { display: inline-flex; align-items: center; gap: .25rem; padding: .5rem .75rem; font-size: .88rem; font-weight: 700; color: rgba(23, 23, 23, .8); border-radius: 6px; transition: color .2s; }
.nav a:hover, .nav a.on { color: var(--primary); }
.dd { position: relative; }
.dd-menu {
  position: absolute; inset-inline-end: 0; top: 100%; width: 290px; padding: .4rem; z-index: 50;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  visibility: hidden; opacity: 0; transform: translateY(6px); transition: .18s;
}
.dd:hover .dd-menu, .dd:focus-within .dd-menu { visibility: visible; opacity: 1; transform: none; }
.dd-menu a { display: block; padding: .55rem .75rem; border-radius: 6px; font-size: .86rem; font-weight: 700; color: rgba(23, 23, 23, .8); }
.dd-menu a:hover { background: var(--soft); color: var(--primary); }

.actions { display: flex; align-items: center; gap: .5rem; }
.burger { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 8px; background: var(--soft); }
.hide-sm { display: none; }

/* ---------- القائمة الجانبية للجوال ---------- */
.drawer-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 90; opacity: 0; transition: opacity .25s; }
.drawer-bg.open { opacity: 1; }
.drawer {
  position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 95; width: min(86vw, 360px);
  background: #fff; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); transition: transform .28s ease; visibility: hidden;
  padding-bottom: var(--safe-b);
}
[dir="ltr"] .drawer { transform: translateX(-100%); }
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .75rem 1rem; border-bottom: 1px solid var(--border); }
.drawer-head b { font-size: .95rem; }
.drawer-nav { padding: .5rem; flex: 1; }
.drawer-nav > a, .acc-row > a { display: block; padding: .85rem .75rem; font-weight: 700; border-radius: 8px; }
.drawer-nav a.on { color: var(--primary); background: var(--soft); }
.acc-row { display: flex; align-items: center; }
.acc-row > a { flex: 1; }
.acc-btn { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; border-radius: 8px; transition: transform .2s; }
.acc-btn[aria-expanded="true"] { transform: rotate(180deg); }
.acc-body { display: none; padding-inline-start: 1rem; margin-bottom: .35rem; border-inline-start: 2px solid var(--border); margin-inline-start: .75rem; }
.acc-body.open { display: block; }
.acc-body a { display: block; padding: .6rem .75rem; font-size: .88rem; font-weight: 600; color: rgba(23, 23, 23, .75); }
.drawer-foot { display: grid; gap: .6rem; padding: 1rem; border-top: 1px solid var(--border); }
body.lock { overflow: hidden; }

/* ---------- الهيرو (الرئيسية) ---------- */
.hero { position: relative; background: var(--dark) center/cover no-repeat; color: #fff; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(10, 10, 10, .93) 30%, rgba(10, 10, 10, .6)); }
[dir="ltr"] .hero::before { background: linear-gradient(260deg, rgba(10, 10, 10, .93) 30%, rgba(10, 10, 10, .6)); }
.hero-in { padding-block: 3rem 2.25rem; }
.badge { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .8rem; border: 1px solid rgba(255, 255, 255, .2); border-radius: 99px; font-size: .78rem; font-weight: 700; color: var(--primary); background: rgba(255, 255, 255, .05); }
.hero h1 { margin-top: 1rem; font-size: clamp(1.9rem, 7vw, 3.4rem); font-weight: 900; max-width: 18ch; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero p.lead { margin-top: 1rem; max-width: 56ch; color: var(--on-dark-muted); font-size: 1rem; }
.hero-btns { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.hero-btns .btn { flex: 1 1 200px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-top: 2rem; }
.stat { padding: 1rem; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); background: rgba(255, 255, 255, .05); }
.stat b { display: block; font-size: 1.7rem; font-weight: 900; color: var(--primary); line-height: 1.2; }
.stat span { font-size: .8rem; color: var(--on-dark-muted); }

/* ---------- الشريط المتحرك ---------- */
.ticker { position: relative; direction: ltr; overflow: hidden; background: #0c0c0c; color: #fff; border-block: 1px solid rgba(255, 255, 255, .08); }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 2; width: clamp(24px, 8vw, 120px); pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(to right, #0c0c0c, transparent); }
.ticker::after { right: 0; background: linear-gradient(to left, #0c0c0c, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker-move var(--dur, 40s) linear infinite; will-change: transform; backface-visibility: hidden; }
.ticker-group { display: flex; flex-shrink: 0; align-items: center; }
.ticker-item { display: inline-flex; align-items: center; gap: .85rem; padding: .95rem 1.5rem; white-space: nowrap; font-size: .9rem; font-weight: 700; }
.ticker-item::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 28%, transparent); }
.ticker-item > span { unicode-bidi: isolate; }
.ticker:hover .ticker-track, .ticker:active .ticker-track { animation-play-state: paused; }
@keyframes ticker-move { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@media (prefers-reduced-motion: reduce) { .ticker { overflow-x: auto; } .ticker-track { animation: none !important; } }
@media (min-width: 768px) { .ticker-item { padding: 1.1rem 2rem; font-size: 1rem; } }

/* ---------- ترويسة الصفحات الداخلية ---------- */
.page-hero { background: var(--dark); color: #fff; padding-block: 2.5rem; }
.page-hero h1 { font-size: clamp(1.7rem, 5.5vw, 2.6rem); font-weight: 900; }
.page-hero p { margin: .9rem 0 0; max-width: 42rem; font-size: .92rem; color: var(--on-dark-muted); }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; font-size: .78rem; color: var(--on-dark-muted); }
.crumbs a:hover { color: var(--primary); }

/* ---------- الأقسام ---------- */
.sec { padding-block: 2.75rem; }
.sec-dark { background: var(--dark); color: #fff; }
.sec-soft { background: var(--soft); }
.sec-head { max-width: 40rem; margin: 0 auto 2rem; text-align: center; }
.sec-head h2 { margin-top: .6rem; font-size: clamp(1.5rem, 5vw, 2.3rem); font-weight: 900; }
.sec-head p { margin: .9rem 0 0; color: var(--muted); }
.sec-head.on-dark p { color: var(--on-dark-muted); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 700; color: var(--primary); }
.eyebrow i { width: 24px; height: 1px; background: var(--primary); }
.grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.sec-foot { margin-top: 1.75rem; text-align: center; }

/* ---------- البطاقات ---------- */
.card { display: block; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary); }
.card-img { width: 100%; object-fit: cover; }
.card-body { padding: 1.15rem; }
.card h2, .card h3 { font-size: 1.05rem; font-weight: 800; margin-top: .4rem; }
.card p { margin: .5rem 0 0; font-size: .88rem; line-height: 1.8; color: var(--muted); }
.card .meta { font-size: .75rem; font-weight: 700; color: var(--primary); }
.svc-ic { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 10px; background: var(--soft); color: var(--primary); }
.svc h3 { margin-top: .9rem; }
.more { display: inline-flex; align-items: center; gap: .35rem; margin-top: .9rem; font-size: .85rem; font-weight: 800; color: var(--primary); }
.ph { display: grid; place-items: center; width: 100%; background: linear-gradient(135deg, #2a2a2a, #121212); color: rgba(255, 255, 255, .3); min-height: 120px; }

.feat { padding: 1.25rem; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); background: rgba(255, 255, 255, .05); }
.feat .svc-ic { background: rgba(255, 255, 255, .08); }
.feat h3 { margin-top: .9rem; font-size: 1.02rem; }
.feat p { margin: .45rem 0 0; font-size: .86rem; color: var(--on-dark-muted); }

/* ---------- المعرض ---------- */
.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.gal-it { position: relative; margin: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); aspect-ratio: 4/3; background: #1c1c1c; }
.gal-it.gal-lg { grid-column: span 2; aspect-ratio: 1/1; }
.gal-it.gal-wide { grid-column: span 2; }
.gal-btn { all: unset; position: absolute; inset: 0; cursor: zoom-in; display: block; }
.gal-it img, .gal-it .gal-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gal-it:hover img { transform: scale(1.05); }
.gal-it figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 1.4rem .65rem .55rem; font-size: .7rem; font-weight: 700; color: #fff; background: linear-gradient(to top, rgba(0, 0, 0, .82), transparent); pointer-events: none; }

.lb { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; background: rgba(0, 0, 0, .94); padding: 4rem .75rem 5rem; overflow: hidden; }
.lb[hidden] { display: none; }
.lb-fig { margin: 0; width: 100%; min-width: 0; text-align: center; }
.lb-fig img { width: auto; max-width: 100%; max-height: calc(100vh - 11rem); max-height: calc(100dvh - 11rem); object-fit: contain; margin-inline: auto; border-radius: 8px; }
.lb-fig figcaption { margin-top: .75rem; padding-inline: .5rem; color: #fff; font-size: .9rem; line-height: 1.6; }
.lb-x, .lb-nav { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; z-index: 2; }
.lb-x { top: max(.75rem, env(safe-area-inset-top)); inset-inline-end: .75rem; }
.lb-nav { bottom: max(1rem, calc(env(safe-area-inset-bottom) + .5rem)); }
.lb-prev { inset-inline-start: calc(50% - 56px); }
.lb-next { inset-inline-end: calc(50% - 56px); }
.lb-prev .ic { transform: rotate(-90deg); }
.lb-next .ic { transform: rotate(90deg); }
[dir="ltr"] .lb-prev .ic { transform: rotate(90deg); }
[dir="ltr"] .lb-next .ic { transform: rotate(-90deg); }
@media (min-width: 768px) {
  .lb { padding: 3rem 5rem; }
  .lb-fig img { max-height: calc(100vh - 9rem); }
  .lb-nav { top: 50%; bottom: auto; transform: translateY(-50%); }
  .lb-prev { inset-inline-start: 1rem; }
  .lb-next { inset-inline-end: 1rem; }
}

/* ---------- من نحن ---------- */
.about-grid { display: grid; gap: 1.5rem; align-items: center; }
.about-grid:not(.has-img) { max-width: 46rem; margin-inline: auto; }
.about-img { width: 100%; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }
.gal-it.gal-wide img { object-position: 50% 30%; }

/* ---------- الدعوة للتواصل ---------- */
.cta-sec { background: var(--dark); color: #fff; padding-block: 2.5rem; }
.cta-box { text-align: center; padding: 2rem 1.25rem; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); background: rgba(255, 255, 255, .05); }
.cta-box h2 { font-size: clamp(1.3rem, 4.6vw, 1.9rem); font-weight: 800; }
.cta-box p { max-width: 36rem; margin: .8rem auto 0; font-size: .9rem; color: var(--on-dark-muted); }
.cta-btns { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.5rem; }

/* ---------- صفحة الخدمة / المقال ---------- */
.layout { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.prose { font-size: 1rem; line-height: 2; }
.prose p { margin-bottom: 1.1em; }
.cover { width: 100%; border-radius: var(--radius); object-fit: cover; margin-bottom: 1.25rem; }
.side-box { padding: 1.25rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.side-box h3 { font-size: 1rem; margin-bottom: .75rem; }
.side-list a { display: block; padding: .6rem 0; border-bottom: 1px solid var(--border); font-size: .88rem; font-weight: 700; }
.side-list li:last-child a { border-bottom: 0; }
.side-list a:hover { color: var(--primary); }
.stack { display: grid; gap: 1rem; align-content: start; }

.solar-it { display: grid; gap: 1rem; padding: 1.25rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); scroll-margin-top: 90px; }
.solar-it h2 { font-size: 1.25rem; }

/* ---------- النماذج ---------- */
.form { display: grid; gap: 1rem; padding: 1.25rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.field label { display: block; margin-bottom: .35rem; font-size: .88rem; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem; font: inherit; font-size: 16px; color: var(--fg);
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); outline: 2px solid color-mix(in srgb, var(--primary) 30%, transparent); }
.hp { position: absolute; inset-inline-start: -9999px; opacity: 0; height: 0; }
.alert { padding: .85rem 1rem; border-radius: 8px; font-size: .92rem; font-weight: 600; }
.alert-ok { background: #e7f6ec; color: #17623a; border: 1px solid #b6e2c6; }
.alert-err { background: #fdeaea; color: #8a1f1f; border: 1px solid #f2bcbc; }
.info-list { display: grid; gap: .85rem; }
.info-it { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.info-it .svc-ic { width: 44px; height: 44px; flex-shrink: 0; }
.info-it b { display: block; font-size: .95rem; }
.info-it span { font-size: .86rem; color: var(--muted); }
.map { width: 100%; height: 280px; border: 0; border-radius: var(--radius); }

.empty { padding: 3rem 1rem; text-align: center; color: var(--muted); }
.nf { padding-block: 4rem; text-align: center; }
.nf b { display: block; font-size: 5rem; font-weight: 900; color: var(--primary); line-height: 1; }
.nf h1 { margin: 1rem 0 .5rem; font-size: 1.6rem; }

/* ---------- التذييل ---------- */
.site-footer { background: var(--dark); color: #fff; }
.site-footer .muted { color: var(--on-dark-muted); }
.hatch { height: 4px; background: repeating-linear-gradient(135deg, var(--primary) 0 12px, transparent 12px 20px); }
.foot-grid { display: grid; gap: 2rem; padding-block: 2.5rem; grid-template-columns: 1fr; }
.foot-brand { display: flex; align-items: center; gap: .65rem; margin-bottom: 1rem; font-size: 1.05rem; }
.foot-logo { height: 40px; width: auto; border-radius: 6px; }
.foot-grid p { font-size: .86rem; margin-bottom: .4rem; }
.foot-grid h3 { margin-bottom: 1rem; font-size: .95rem; color: var(--primary); }
.foot-list { display: grid; gap: .55rem; font-size: .86rem; color: rgba(255, 255, 255, .8); }
.foot-list a:hover, .foot-contact a:hover { color: var(--primary); }
.foot-contact { display: grid; gap: 1rem; font-size: .86rem; color: rgba(255, 255, 255, .8); }
.foot-contact li > a { display: flex; gap: .5rem; align-items: flex-start; }
.foot-contact small { display: block; font-size: .72rem; }
.foot-ids { margin-top: 1rem; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 1.25rem; text-align: center; }
.credit { margin-bottom: .75rem; padding: .85rem; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); background: rgba(255, 255, 255, .05); }
.credit p { margin: 0; font-size: .85rem; }
.credit a { text-decoration: underline; text-underline-offset: 4px; }
.copy { margin: 0; }

/* ---------- الشريط السفلي والأزرار العائمة ---------- */
.mbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 60; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: calc(var(--bar-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--border); backdrop-filter: blur(8px); }
.mbar a { display: flex; align-items: center; justify-content: center; gap: .5rem; font-size: .92rem; font-weight: 800; }
.mbar-wa { background: var(--primary); color: #fff; }
.fab { position: fixed; inset-inline-start: .85rem; bottom: calc(var(--bar-h) + var(--safe-b) + .85rem); z-index: 55; display: flex; flex-direction: column; gap: .7rem; }
.fab-lang, .fab-btn { display: grid; place-items: center; border-radius: 50%; box-shadow: 0 6px 18px rgba(0, 0, 0, .22); }
.fab-lang { width: 46px; height: 46px; background: #fff; border: 1px solid var(--border); font-size: .62rem; font-weight: 900; line-height: 1; align-content: center; gap: 2px; }
.fab-btn { width: 50px; height: 50px; color: #fff; transition: transform .2s; }
.fab-btn:hover { transform: scale(1.07); }
.fab-call { background: var(--primary); }
.fab-wa { background: #25d366; }
.hide-mobile { display: none; }

/* ---------- حركة الظهور ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}

/* ==========================================================================
   ≥ 640px
   ========================================================================== */
@media (min-width: 640px) {
  .wrap { padding-inline: 1.5rem; }
  .hide-sm { display: inline-flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cta-btns { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .hero-btns .btn { flex: 0 0 auto; }
}

/* ==========================================================================
   ≥ 768px
   ========================================================================== */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .topbar { display: block; }
  .mbar { display: none; }
  .hide-mobile { display: grid; }
  .fab { bottom: 1.5rem; }
  .sec { padding-block: 4rem; }
  .page-hero { padding-block: 3.5rem; }
  .hero-in { padding-block: 5rem 3rem; }
  .mainbar-in { height: 80px; }
  .brand-text b { font-size: 1.02rem; }
  .brand-text small { font-size: .7rem; }
  .gal { grid-template-columns: repeat(3, 1fr); gap: .8rem; }
  .gal-it.gal-lg { grid-column: span 2; grid-row: span 2; aspect-ratio: 1/1; }
  .gal-it figcaption { font-size: .78rem; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-box { padding: 3rem; }
}

/* ==========================================================================
   ≥ 1024px
   ========================================================================== */
@media (min-width: 1024px) {
  .nav { display: flex; }
  .burger { display: none; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .gal { grid-template-columns: repeat(4, 1fr); }
  .gal-it.gal-wide { grid-column: span 2; aspect-ratio: 8/3; }
  .about-grid.has-img { grid-template-columns: 1.1fr 1fr; gap: 3rem; }
  .layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; }
  .layout-rev { grid-template-columns: 340px minmax(0, 1fr); }
  .foot-grid { grid-template-columns: 1.3fr 1.3fr 1fr 1.3fr; }
  .hero-in { padding-block: 6.5rem 3.5rem; }
  .credit { display: flex; align-items: center; justify-content: space-between; text-align: start; }
}