@import url("../fonts/fonts.css");

/* =========================================================
   Skyline — premium dark theme (default) + light theme
   ========================================================= */
:root {
  --bg: #08131f;
  --bg-2: #0b1a2a;
  --surface: #0f2133;
  --surface-2: #132a40;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #eef5fb;
  --muted: #9cb2c6;
  --brand: #3ba3e3;
  --brand-2: #6cc1f0;
  --brand-ink: #04121f;
  --accent-soft: rgba(59, 163, 227, .12);
  --shadow: 0 10px 30px rgba(0, 0, 0, .28);
  --shadow-hover: 0 18px 40px rgba(0, 0, 0, .38);
  --radius: 16px;
  --radius-lg: 24px;
  --header-h: 76px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f3f7fb;
  --bg-2: #e7f0f8;
  --surface: #ffffff;
  --surface-2: #eef4fa;
  --line: rgba(10, 37, 64, .09);
  --line-2: rgba(10, 37, 64, .16);
  --text: #0a2540;
  --muted: #557089;
  --brand: #1679b8;
  --brand-2: #2b93d1;
  --brand-ink: #ffffff;
  --accent-soft: rgba(22, 121, 184, .09);
  --shadow: 0 8px 24px rgba(10, 37, 64, .08);
  --shadow-hover: 0 14px 34px rgba(10, 37, 64, .14);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "IBM Plex Sans Arabic", system-ui, sans-serif; font-size: 16px; line-height: 1.8; font-weight: 400;
  -webkit-font-smoothing: antialiased; transition: background-color .25s, color .25s;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: 96px 0; }
.section-alt { background: var(--bg-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-2); font-weight: 600; font-size: .9rem; margin: 0 0 12px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
:root[data-theme="light"] .eyebrow { color: var(--brand); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.section-head p { color: var(--muted); margin: 0; }
.section-head a { color: var(--brand-2); }
.muted { color: var(--muted); }
.note { font-size: .85rem; color: var(--muted); }

/* ===== Top bar ===== */
.topbar { background: #050d16; color: #9cb2c6; font-size: .8rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; flex-wrap: wrap; }
.topbar a { color: #dbe9f5; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-loc { display: inline-flex; align-items: center; gap: 6px; }
.topbar-loc svg { width: 14px; height: 14px; color: #6cc1f0; }
.topbar-links { display: inline-flex; align-items: center; gap: 10px; }
.topbar-links > span { opacity: .35; }
.topbar-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 12px; border-radius: 999px; background: rgba(37, 211, 102, .14); border: 1px solid rgba(37, 211, 102, .35); }
.topbar-pill svg { width: 13px; height: 13px; }
@media (max-width: 640px) { .topbar-loc { display: none; } .topbar .container { justify-content: center; } }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(8, 19, 31, .86); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,.07); transition: height .3s, background .3s;
}
:root[data-theme="light"] .site-header { background: rgba(255,255,255,.88); border-bottom-color: var(--line); }
.site-header.scrolled { --header-h: 64px; }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; flex: none; text-decoration: none; }
/* logo: slightly stretched horizontally (~11%) for a wider, steadier wordmark */
.brand img, .about-logo img { aspect-ratio: 896 / 566; object-fit: fill; }
.brand img { height: 54px; width: auto; transition: height .3s; }
.site-header.scrolled .brand img { height: 46px; }
.logo-light { display: none !important; }
.logo-dark { display: block !important; }
:root[data-theme="light"] .logo-light { display: block !important; }
:root[data-theme="light"] .logo-dark { display: none !important; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { text-decoration: none; padding: 8px 13px; border-radius: 999px; font-weight: 500; font-size: .95rem; color: var(--muted); transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.07); }
:root[data-theme="light"] .nav a[aria-current="page"] { background: var(--accent-soft); color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; transition: border-color .2s, background .2s;
}
.icon-btn:hover { border-color: var(--brand); background: var(--accent-soft); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: block; }
.theme-toggle .moon { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .moon { display: block; }
.menu-toggle { display: none; }
@media (max-width: 960px) {
  .menu-toggle { display: inline-grid; }
  .nav { position: absolute; top: var(--header-h); inset-inline: 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; display: none; border-radius: 0 0 20px 20px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 12px; }
}
@media (max-width: 560px) { .header-actions .btn { display: none; } .brand img { height: 46px; } }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 999px;
  font-weight: 600; font-family: inherit; font-size: .98rem; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s, background .2s, border-color .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-2); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-2); transform: translateY(-2px); }
:root[data-theme="light"] .btn-ghost:hover { color: var(--brand); }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== Home hero ===== */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; background:
  radial-gradient(900px 520px at 100% 0%, rgba(59,163,227,.16), transparent 60%),
  radial-gradient(700px 500px at 0% 100%, rgba(59,163,227,.08), transparent 60%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); margin-bottom: 18px; }
.hero h1 .accent { color: var(--brand-2); }
:root[data-theme="light"] .hero h1 .accent { color: var(--brand); }
.hero-lead { font-size: 1.1rem; color: var(--muted); max-width: 520px; margin: 0 0 30px; }
.rotator { display: inline-block; min-height: 1.3em; }
.rot-word { display: inline-block; color: var(--brand-2); }
:root[data-theme="light"] .rot-word { color: var(--brand); }
.rot-word.out { animation: rotOut .32s ease forwards; }
.rot-word.in { animation: rotIn .45s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes rotOut { to { opacity: 0; transform: translateY(-.35em); filter: blur(3px); } }
@keyframes rotIn { from { opacity: 0; transform: translateY(.35em); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 34px; padding: 0; list-style: none; color: var(--muted); font-size: .9rem; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 18px; height: 18px; color: var(--brand-2); }
.hero-media { position: relative; }
.hero-media figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.45); border: 1px solid var(--line-2); aspect-ratio: 4 / 5; max-height: 600px; margin-inline-start: auto; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media figcaption { position: absolute; bottom: 18px; inset-inline-start: 18px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
  background: rgba(5, 13, 22, .72); backdrop-filter: blur(8px); color: #fff; font-size: .85rem; font-weight: 600; }
.hero-media figcaption svg { width: 15px; height: 15px; color: #6cc1f0; }
.hero-badge { position: absolute; top: 28px; inset-inline-end: -18px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px;
  background: rgba(15, 33, 51, .9); backdrop-filter: blur(10px); border: 1px solid var(--line-2); box-shadow: var(--shadow); color: #fff; }
.hero-badge strong { display: block; font-size: 1.3rem; line-height: 1; }
.hero-badge span { font-size: .8rem; color: #9cb2c6; }
.hero-badge .hb-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(59,163,227,.18); color: #6cc1f0; }
.hero-badge .hb-icon svg { width: 20px; height: 20px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 48px 0 64px; }
  .hero-media figure { max-height: 460px; aspect-ratio: 4 / 4.2; }
  .hero-badge { inset-inline-end: 12px; top: 12px; }
}

/* ===== Animated icons (services) ===== */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.svc { padding: 32px 28px; border-inline-start: 1px solid var(--line); border-top: 1px solid var(--line); background: var(--surface); transition: background .25s; }
.svc:nth-child(3n+1) { border-inline-start: 0; }
.svc:nth-child(-n+3) { border-top: 0; }
.svc:hover { background: var(--surface-2); }
.svc h3 { font-size: 1.1rem; margin-bottom: 6px; }
.svc p { margin: 0; color: var(--muted); font-size: .95rem; }
.svc-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; color: var(--brand-2); background: var(--accent-soft); border: 1px solid rgba(59,163,227,.25); transition: transform .25s; }
:root[data-theme="light"] .svc-icon { color: var(--brand); }
.svc-icon svg { width: 26px; height: 26px; }
.svc-icon svg * { stroke-dasharray: 90; stroke-dashoffset: 90; }
.svc.in .svc-icon svg * { animation: draw 1.4s ease forwards; }
.svc:hover .svc-icon { transform: translateY(-2px); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (max-width: 860px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc:nth-child(n) { border-inline-start: 1px solid var(--line); border-top: 1px solid var(--line); }
  .svc:nth-child(2n+1) { border-inline-start: 0; }
  .svc:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 520px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc:nth-child(n) { border-inline-start: 0; border-top: 1px solid var(--line); }
  .svc:first-child { border-top: 0; }
}

/* ===== Stats ===== */
.stats-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 34px 16px; text-align: center; display: grid; gap: 4px; border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; }
.stat-num { font-size: clamp(2.1rem, 4.4vw, 3rem); font-weight: 700; line-height: 1; direction: ltr; font-variant-numeric: tabular-nums; color: var(--text); }
.stat-num::after { content: ""; display: block; width: 26px; height: 3px; border-radius: 3px; background: var(--brand); margin: 12px auto 0; }
.stat-label { color: var(--muted); font-size: .92rem; }
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-inline-start: 0; }
  .stat + .stat { border-top: 1px solid var(--line); }
}

/* ===== Generic cards ===== */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .25s, transform .25s; }
.card:hover { border-color: var(--line-2); }
.card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--brand-2); background: var(--accent-soft); }
:root[data-theme="light"] .card-icon { color: var(--brand); }
.card-icon svg { width: 22px; height: 22px; }

/* ===== Page hero (inner pages) ===== */
.page-hero { position: relative; padding: 64px 0 60px; border-bottom: 1px solid var(--line);
  background: radial-gradient(800px 360px at 100% 0%, rgba(59,163,227,.16), transparent 65%), var(--bg-2); }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); }
.page-hero p { color: var(--muted); max-width: 640px; margin: 0; font-size: 1.05rem; }
.crumbs { display: flex; gap: 8px; font-size: .85rem; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--text); text-decoration: none; opacity: .85; }
.crumbs a:hover { color: var(--brand-2); }

/* ===== Filters ===== */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { font-family: inherit; font-size: .9rem; font-weight: 500; cursor: pointer; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--muted); transition: all .2s; }
.chip:hover { color: var(--text); border-color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.chip .count { opacity: .7; font-size: .78rem; margin-inline-start: 4px; }

/* ===== Video cards ===== */
.video-grid, .featured { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); }
.vcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s; max-width: 360px; width: 100%; justify-self: center; }
.vcard:hover { transform: translateY(-4px); border-color: rgba(59,163,227,.4); box-shadow: var(--shadow-hover); }
.vcard-media { position: relative; aspect-ratio: 1 / 1; border: 0; padding: 0; margin: 0; cursor: pointer; background: var(--surface-2); display: block; width: 100%; overflow: hidden; }
.vcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.vcard:hover .vcard-media img { transform: scale(1.04); }
.vcard-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(4,12,20,.6)); }
.play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; z-index: 1; display: grid; place-items: center;
  background: rgba(255,255,255,.94); color: #08131f; box-shadow: 0 8px 24px rgba(0,0,0,.35); transition: transform .2s; }
.play svg { width: 22px; height: 22px; margin-left: 4px; }
.vcard-media:hover .play, .vcard-media:focus-visible .play { transform: scale(1.08); }
.badge { position: absolute; z-index: 1; bottom: 10px; font-size: .75rem; font-weight: 600; color: #fff; background: rgba(4,12,20,.7); padding: 2px 9px; border-radius: 999px; direction: ltr; }
.badge-dur { left: 10px; }
.badge-type { right: 10px; top: 10px; bottom: auto; direction: rtl; background: rgba(4,12,20,.62); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.14); }
.vcard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.loc { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand-2); font-size: 1rem; }
:root[data-theme="light"] .loc { color: var(--brand); }
.loc svg { width: 16px; height: 16px; flex: none; }
.vcard-title { font-size: .93rem; font-weight: 500; margin: 0; color: var(--text); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.2em; }
.specs { display: flex; gap: 6px; flex-wrap: nowrap; overflow: hidden; margin: 0; padding: 0; list-style: none;
  -webkit-mask-image: linear-gradient(to left, #000 80%, transparent); mask-image: linear-gradient(to left, #000 80%, transparent); }
.specs li { white-space: nowrap; font-size: .74rem; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.vcard-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 500; color: var(--muted); text-decoration: none; padding-top: 4px; }
.vcard-link:hover { color: var(--brand-2); }
.vcard-link svg { width: 14px; height: 14px; }
.vcard[hidden] { display: none; }
@media (max-width: 560px) {
  .video-grid, .featured { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .vcard-body { padding: 10px 10px 12px; gap: 6px; }
  .loc { font-size: .88rem; }
  .vcard-title { font-size: .8rem; }
  .specs { display: none; }
  .vcard-link { font-size: .72rem; }
  .play { width: 42px; height: 42px; }
  .play svg { width: 17px; height: 17px; }
  .badge { font-size: .68rem; }
  .badge-type { max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.more-box { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.more-box p { margin: 0; color: var(--muted); }

/* ===== Video modal ===== */
.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 16px; background: rgba(2, 8, 14, .82); backdrop-filter: blur(4px); }
.modal.open { display: grid; }
.modal-box { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-lg); width: min(420px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.modal-head .loc { font-size: .92rem; }
.modal-frame { position: relative; background: #000; aspect-ratio: 9 / 16; max-height: calc(100vh - 200px); width: 100%; }
.modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal-foot { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.modal-foot .note { margin: 0; }

/* ===== About ===== */
.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 36px; } }
.about-logo { display: block; width: min(380px, 100%); margin-bottom: 26px; }
.about-logo img { width: 100%; height: auto; }
.quote { font-size: 1.35rem; font-weight: 700; color: var(--text); margin: 0 0 14px; }
.fact-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact-table th, .fact-table td { text-align: right; padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.fact-table tr:last-child th, .fact-table tr:last-child td { border-bottom: 0; }
.fact-table th { width: 36%; color: var(--muted); font-weight: 500; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.pill-list li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 500; font-size: .9rem; }
.check-list { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-inline-start: 32px; color: var(--muted); }
.check-list li strong { color: var(--text); font-weight: 600; }
.check-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .4em; width: 20px; height: 20px; border-radius: 999px;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }

/* ===== FAQ ===== */
.faq { display: grid; gap: 0; max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 0 4px; }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--brand-2); font-size: 1.2rem; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 22px; color: var(--muted); }
.faq .answer p { margin: 0 0 8px; }
.faq .answer a { color: var(--brand-2); }

/* ===== Contact ===== */
.contact-grid { display: block; }
.contact-side { display: grid; grid-template-columns: 1fr 1.15fr; gap: 20px; align-content: start; }
.contact-side .quote-cta { grid-column: 1 / -1; }
@media (max-width: 900px) { .contact-side { grid-template-columns: 1fr; } }
.contact-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.contact-list .contact-item:nth-child(3) { grid-column: 1 / -1; }
@media (max-width: 520px) { .contact-list { grid-template-columns: 1fr; } }
.contact-item { display: flex; align-items: center; gap: 14px; padding: 18px; text-decoration: none; }
.contact-item:hover { border-color: rgba(59,163,227,.45); }
.contact-item .card-icon { flex: none; }
.contact-item strong { display: block; font-weight: 600; }
.contact-item span { color: var(--muted); font-size: .92rem; direction: ltr; unicode-bidi: plaintext; }
.map-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.map-card iframe { width: 100%; flex: 1; min-height: 300px; border: 0; display: block; }
:root:not([data-theme="light"]) .map-card iframe { filter: invert(.9) hue-rotate(180deg) saturate(.6) brightness(.95); }
.map-card .map-foot { padding: 16px 18px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.quote-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 24px;
  background: linear-gradient(135deg, rgba(59,163,227,.16), transparent 70%), var(--surface); }
.quote-cta strong { display: block; font-size: 1.1rem; }

/* ===== Quote form ===== */
.quote-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } }
.quote-side { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 16px); }
@media (max-width: 900px) { .quote-side { position: static; } }
.request-form { padding: 30px; }
.request-form h2 { font-size: 1.5rem; margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .request-form { padding: 22px; } }
.form-grid label { display: grid; gap: 7px; font-weight: 500; font-size: .9rem; }
.form-grid input, .form-grid select, .form-grid textarea {
  font: inherit; font-weight: 400; color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 12px 14px; width: 100%; transition: border-color .2s, box-shadow .2s; }
.form-grid input::placeholder, .form-grid textarea::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(59,163,227,.18); }
.form-grid textarea { resize: vertical; }
.upload-field { display: grid; gap: 7px; }
.upload-label { font-weight: 500; font-size: .9rem; }
.dropzone { position: relative; display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: 14px; cursor: pointer;
  border: 1.5px dashed rgba(59,163,227,.45); background: rgba(59,163,227,.06); transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: rgba(59,163,227,.12); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone:focus-within { outline: 3px solid rgba(59,163,227,.4); outline-offset: 2px; }
.dz-icon { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); }
.dz-icon svg { width: 22px; height: 22px; }
.dz-text { display: grid; gap: 2px; }
.dz-text strong { font-weight: 600; }
.dz-text span { color: var(--muted); font-size: .84rem; }
.upload-preview { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg); }
.upload-preview[hidden] { display: none; }
.upload-preview img { width: 68px; height: 68px; object-fit: cover; border-radius: 10px; }
.upload-preview > div { flex: 1; display: grid; min-width: 0; }
.upload-preview strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; font-weight: 500; }
.form-error { color: #ff8a80; font-weight: 600; margin: 0 0 12px; }
:root[data-theme="light"] .form-error { color: #c0392b; }
.form-success { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: rgba(37,211,102,.1); border: 1px solid rgba(37,211,102,.35); }
.request-form .note { margin: 16px 0 0; }
.steps-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; color: var(--muted); }
.steps-list li { display: flex; gap: 12px; align-items: flex-start; }
.steps-list li span { flex: none; width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; font-weight: 600; font-size: .85rem; color: var(--brand-2); border: 1px solid rgba(59,163,227,.45); }

/* ===== Gallery ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.gallery-fb { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 760px; }
.gitem { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, border-color .25s; }
.gitem:hover { transform: translateY(-3px); border-color: rgba(59,163,227,.4); }
.gbtn { display: block; width: 100%; padding: 0; border: 0; background: var(--surface-2); cursor: zoom-in; overflow: hidden; }
.gbtn img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gitem:hover .gbtn img { transform: scale(1.04); }
.gallery-grid .gbtn { aspect-ratio: 4 / 5; }
.gallery-fb .gbtn { aspect-ratio: 1200 / 1006; }
.gitem figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 12px 14px; }
.gitem figcaption strong { flex: 1 1 auto; font-weight: 600; }
.gitem figcaption span { color: var(--muted); font-size: .85rem; }
.gitem figcaption a { display: inline-flex; align-items: center; gap: 5px; font-size: .85rem; color: var(--brand-2); text-decoration: none; }
.gitem figcaption a svg { width: 14px; height: 14px; }
.gallery-grid .loc { font-size: .9rem; }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.lightbox { position: fixed; inset: 0; z-index: 110; display: none; place-items: center; padding: 16px; background: rgba(2, 8, 14, .92); }
.lightbox.open { display: grid; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); display: grid; gap: 12px; justify-items: center; }
.lightbox img { max-height: calc(100vh - 110px); width: auto; max-width: 100%; border-radius: 16px; }
.lightbox figcaption { color: #e4f1fb; font-weight: 500; text-align: center; }
.lb-close { position: absolute; top: 16px; left: 16px; color: #fff; border-color: rgba(255,255,255,.3); }

/* ===== CTA band ===== */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  background: radial-gradient(600px 300px at 0% 100%, rgba(59,163,227,.35), transparent 70%), linear-gradient(135deg, #0f2a44, #0b1d30); border: 1px solid rgba(255,255,255,.1); color: #fff; }
.cta-band h2 { margin: 0 0 6px; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-band p { margin: 0; color: #b5c9da; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.cta-band .btn-primary { background: #3ba3e3; color: #04121f; }
@media (max-width: 560px) { .cta-band { padding: 30px 24px; } }

/* ===== Footer ===== */
.site-footer { background: #050d16; color: #9cb2c6; padding: 64px 0 28px; border-top: 1px solid rgba(255,255,255,.06); }
.site-footer .brand img { height: 100px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { margin: 0 0 14px; font-size: .98rem; color: #eef5fb; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #9cb2c6; text-decoration: none; }
.site-footer a:hover { color: #6cc1f0; }
.site-footer .icon-btn { color: #eef5fb; border-color: rgba(255,255,255,.14); }
.site-footer .logo-light { display: none !important; }
.site-footer .logo-dark { display: block !important; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.07); font-size: .84rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.socials { display: flex; gap: 8px; margin-top: 16px; }

/* ===== WhatsApp floating ===== */
.wa-float { position: fixed; bottom: 18px; left: 18px; z-index: 60; width: 54px; height: 54px; border-radius: 999px; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.35); transition: transform .2s; }
.wa-float:hover { transform: translateY(-3px); }
.wa-float svg { width: 28px; height: 28px; }
@media (max-width: 560px) { .wa-float { width: 50px; height: 50px; bottom: 14px; left: 14px; } }

/* ===== Scroll progress + reveal ===== */
.scroll-progress { position: fixed; top: 0; inset-inline: 0; height: 2px; z-index: 120; transform-origin: right; transform: scaleX(0); background: linear-gradient(270deg, #6cc1f0, #3ba3e3); pointer-events: none; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-right { transform: translateX(32px); }
.reveal-left { transform: translateX(-32px); }
.reveal-right.in, .reveal-left.in { transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }

:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; right: -9999px; }
.skip:focus { right: 16px; top: 12px; z-index: 200; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-left, .reveal-right { opacity: 1 !important; transform: none !important; transition: none !important; }
  *:not(.reveal), *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .svc-icon svg * { stroke-dashoffset: 0 !important; }
  .scroll-progress { display: none; }
}

/* ===== 3D icons (hero) ===== */
.icons3d { margin-top: 38px; max-width: 520px; padding: 14px 10px 10px; border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(59,163,227,.08), transparent); }
.icons3d canvas { display: block; width: 100%; height: 170px; }
.icons3d-labels { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; font-size: .85rem; color: var(--muted); font-weight: 500; }
.icons3d.no-webgl { display: none; }
@media (max-width: 560px) { .icons3d canvas { height: 120px; } }

/* ===== Hero slogan ===== */
.slogan { margin: 40px 0 0; padding-inline-start: 18px; border-inline-start: 3px solid var(--brand); font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 600; line-height: 1.5; color: var(--text); max-width: 520px; }
.slogan span { color: var(--brand-2); }
:root[data-theme="light"] .slogan span { color: var(--brand); }

/* ===== Stronger scroll-in + image loading ===== */
.reveal { opacity: 0; transform: translateY(44px) scale(.97); filter: blur(6px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1), filter .9s ease; }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal-right { transform: translateX(48px); }
.reveal-left { transform: translateX(-48px); }
.hero-media.reveal { transform: translateY(30px) scale(.94); clip-path: inset(12% 12% 12% 12% round 24px); transition: opacity 1s ease, transform 1.1s cubic-bezier(.2,.7,.2,1), clip-path 1.1s cubic-bezier(.2,.7,.2,1), filter 1s ease; }
.hero-media.reveal.in { clip-path: inset(0 0 0 0 round 24px); transform: none; }
.section-head.reveal .eyebrow::before { width: 0; transition: width .8s .3s ease; }
.section-head.reveal.in .eyebrow::before { width: 22px; }
.img-loading { background: linear-gradient(100deg, var(--surface-2) 30%, color-mix(in srgb, var(--surface-2) 70%, #fff 8%) 50%, var(--surface-2) 70%) 0 0 / 300% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -300% 0; } }
.vcard-media img, .gbtn img, .hero-media img { opacity: 0; transition: opacity .6s ease, transform .5s ease; }
.vcard-media img.img-in, .gbtn img.img-in, .hero-media img.img-in { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-media.reveal { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
  .img-loading { animation: none; }
  .vcard-media img, .gbtn img, .hero-media img { opacity: 1; }
}

/* ===== 3D logo + hover ===== */
.brand { position: relative; perspective: 700px; --rx: 0deg; --ry: 0deg; }
.brand img {
  transform: rotateX(var(--rx)) rotateY(var(--ry)) translateZ(0);
  transform-origin: center; transition: transform .35s cubic-bezier(.2,.7,.2,1), filter .35s ease, height .3s;
  filter: drop-shadow(1px 1px 0 #0b4f82) drop-shadow(1px 1px 0 #0b4f82) drop-shadow(1px 1px 0 #093e66) drop-shadow(3px 5px 8px rgba(0,0,0,.45));
}
:root[data-theme="light"] .brand img { filter: drop-shadow(1px 1px 0 #0b4f82) drop-shadow(1px 1px 0 #0b4f82) drop-shadow(1px 1px 0 #093e66) drop-shadow(3px 5px 8px rgba(10,37,64,.25)); }
.brand::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 38%, rgba(255,255,255,.75) 50%, transparent 62%) no-repeat;
  background-size: 260% 100%; background-position: 160% 0;
  -webkit-mask: url("../logo-tagline-dark.png") center / 100% 100% no-repeat; mask: url("../logo-tagline-dark.png") center / 100% 100% no-repeat;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.brand:hover img, .brand:focus-visible img {
  filter: drop-shadow(1px 1px 0 #0b4f82) drop-shadow(1px 1px 0 #0b4f82) drop-shadow(1px 1px 0 #093e66) drop-shadow(1px 1px 0 #093e66) drop-shadow(5px 9px 14px rgba(0,0,0,.5));
}
.brand:hover::after, .brand:focus-visible::after { animation: logoShine 1s ease forwards; }
@keyframes logoShine { from { background-position: 160% 0; } to { background-position: -60% 0; } }
@media (prefers-reduced-motion: reduce) { .brand img, .brand::after { transform: none !important; } .brand:hover::after { animation: none; } }

/* ===== Compact hero with landscape image ===== */
.hero { padding: 44px 0 52px; }
.hero-grid { grid-template-columns: 1fr 1.05fr; gap: 44px; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin-bottom: 14px; }
.hero-lead { margin-bottom: 24px; }
.slogan { margin-top: 28px; font-size: clamp(1.15rem, 2vw, 1.4rem); }
.hero-media figure { aspect-ratio: 4 / 3; max-height: none; }
@media (max-width: 900px) {
  .hero { padding: 32px 0 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-media figure { aspect-ratio: 4 / 3; max-height: none; }
}
.hero-badge { top: 16px; inset-inline-end: 16px; }

/* ===== Header logo legibility ===== */
.site-header { --header-h: 96px; }
.brand img { height: 80px; }
.site-header.scrolled .brand img { height: 68px; }
.site-header .brand img, :root[data-theme="light"] .site-header .brand img {
  filter: drop-shadow(0 1px 0 #0b4f82) drop-shadow(1px 2px 3px rgba(0,0,0,.45));
}
.site-header .brand:hover img { filter: drop-shadow(0 1px 0 #0b4f82) drop-shadow(1px 1px 0 #093e66) drop-shadow(3px 6px 10px rgba(0,0,0,.5)); }
@media (max-width: 560px) { .brand img { height: 66px; } .site-header { --header-h: 84px; } }

/* ===== Logo: flat by default, 3D only on hover ===== */
.brand img, :root[data-theme="light"] .brand img { filter: none; }
.site-header .brand img, :root[data-theme="light"] .site-header .brand img {
  filter: drop-shadow(.8px .8px 0 rgba(11,79,130,.85)) drop-shadow(1px 2px 2px rgba(0,0,0,.18));
}
.brand:hover img, .brand:focus-visible img, .site-header .brand:hover img {
  filter: drop-shadow(1px 1px 0 #0b4f82) drop-shadow(1px 1px 0 #093e66) drop-shadow(4px 7px 12px rgba(0,0,0,.45));
}

/* ===== Home: extra sections ===== */
.h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.lead-p { font-size: 1.08rem; color: var(--text); }
.about-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.about-media { position: relative; min-height: 460px; }
.about-media figure { margin: 0; position: absolute; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); background: var(--surface-2); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.am-main { inset-inline-start: 0; top: 0; width: 64%; aspect-ratio: 4 / 5; }
.am-sub { inset-inline-end: 0; bottom: 0; width: 50%; aspect-ratio: 4 / 5; border: 4px solid var(--bg) !important; }
.am-tag { position: absolute; inset-inline-end: 6%; top: 8%; padding: 14px 18px; border-radius: 16px; background: var(--brand); color: var(--brand-ink); display: grid; text-align: center; box-shadow: var(--shadow); }
.am-tag strong { font-size: 1.6rem; line-height: 1.1; }
.am-tag span { font-size: .82rem; font-weight: 500; }
@media (max-width: 900px) { .about-split { grid-template-columns: 1fr; gap: 36px; } .about-media { min-height: 380px; } }

.svc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .svc-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .svc-cards { grid-template-columns: 1fr; } }
.svc-card, .why-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; transition: border-color .25s, transform .25s; }
.svc-card:hover, .why-card:hover { border-color: rgba(59,163,227,.45); transform: translateY(-4px); }
.svc-card h3, .why-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.svc-card p, .why-card p { color: var(--muted); font-size: .95rem; margin: 0 0 14px; }
.why-card p { margin: 0; }
.svc-card ul { list-style: none; padding: 14px 0 0; margin: 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.svc-card li { position: relative; padding-inline-start: 24px; font-size: .9rem; }
.svc-card li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--brand-2); font-weight: 700; }
.svc-card.in .svc-icon svg *, .why-card.in .svc-icon svg * { animation: draw 1.4s ease forwards; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 28px; inset-inline: 12%; height: 1px; background: linear-gradient(90deg, transparent, rgba(59,163,227,.5), transparent); }
.step { position: relative; text-align: center; padding: 0 10px; }
.step-num { position: relative; z-index: 1; width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 999px; display: grid; place-items: center; font-weight: 700; font-size: 1.05rem; color: var(--brand-2); background: var(--bg-2); border: 1px solid rgba(59,163,227,.5); box-shadow: 0 0 0 6px var(--bg-2); }
.step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; } .steps::before { display: none; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

.mat-split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.mat-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.mat-groups h3 { font-size: 1rem; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
@media (max-width: 900px) { .mat-split { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 520px) { .mat-groups { grid-template-columns: 1fr; } }

.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: grid; gap: 16px; position: relative; }
.trust-card::before { content: "”"; position: absolute; top: 6px; inset-inline-end: 22px; font-size: 4rem; line-height: 1; color: rgba(59,163,227,.35); font-family: Georgia, serif; }
.trust-card blockquote { margin: 0; font-size: 1.02rem; line-height: 1.8; }
.trust-card figcaption { color: var(--brand-2); font-weight: 600; font-size: .92rem; }
:root[data-theme="light"] .trust-card figcaption { color: var(--brand); }

.faq-split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .faq-split { grid-template-columns: 1fr; gap: 24px; } }

.contact-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .contact-strip { grid-template-columns: 1fr; } }
.cs-item { display: flex; gap: 14px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.cs-item .card-icon { flex: none; }
.cs-item strong { display: block; font-weight: 600; margin-bottom: 2px; }
.cs-item span { color: var(--muted); font-size: .92rem; }

/* ===== Progressive loading ===== */
.skeleton { border-radius: var(--radius); border: 1px solid var(--line); min-height: 320px;
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%) 0 0 / 300% 100%; animation: shimmer 1.2s linear infinite; }
.gitem.skeleton { min-height: 0; aspect-ratio: 4 / 5.6; }
.vcard.skeleton { min-height: 0; aspect-ratio: 1 / 1.62; max-width: 360px; width: 100%; justify-self: center; }
.load-sentinel { display: flex; justify-content: center; padding: 28px 0 0; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--brand); opacity: .3; animation: dot 1s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { opacity: 1; transform: translateY(-4px); } }

/* Reduced motion: keep a soft fade instead of turning the effect off */
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-media.reveal { opacity: 0 !important; transform: none !important; filter: none !important; clip-path: none !important; transition: opacity .6s ease !important; }
  .reveal.in, .hero-media.reveal.in { opacity: 1 !important; }
  .skeleton { animation: none; }
}

/* ===== Journey (consultation -> delivery) ===== */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.jcard { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px 26px 30px; transition: border-color .25s, transform .25s; }
.jcard:hover { border-color: rgba(59,163,227,.45); transform: translateY(-4px); }
.jnum { display: block; font-size: 1.9rem; font-weight: 700; line-height: 1; color: var(--brand-2); margin-bottom: 22px; direction: ltr; text-align: right; font-variant-numeric: tabular-nums; }
:root[data-theme="light"] .jnum { color: var(--brand); }
.jcard h3 { font-size: 1.12rem; margin-bottom: 8px; }
.jcard p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 900px) { .journey { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .journey { grid-template-columns: 1fr; } }

/* ===== Hero: Three.js icons layer + landscape photo ===== */
#hero3d { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .85; }
.hero > .container { position: relative; z-index: 1; }
.hero-media figure { aspect-ratio: 3 / 2; }
.hero { padding: 64px 0 64px; }
@media (max-width: 900px) { .hero { padding: 56px 0 56px; } }
@media (max-width: 760px) { #hero3d { display: none; } }

/* topbar: more breathing room */
.topbar .container { min-height: 46px; padding-top: 8px; padding-bottom: 8px; }
.topbar { font-size: .84rem; }
.mat-groups .full { grid-column: 1 / -1; }
.spec-list { gap: 14px; }
.spec-list li { color: var(--text); font-size: 1rem; }
.spec-list li strong { color: var(--brand-2); }
:root[data-theme="light"] .spec-list li strong { color: var(--brand); }
#about { scroll-margin-top: 90px; }
/* keep header height constant while scrolling so anchors land precisely */
.site-header.scrolled { --header-h: 96px; }
@media (max-width: 560px) { .site-header.scrolled { --header-h: 84px; } }
#about { scroll-margin-top: 124px; }

/* WhatsApp CTA card */
.cs-item a { color: inherit; text-decoration: none; }
.cs-item a:hover { color: var(--brand-2); }
.cs-wa { text-decoration: none; color: inherit; cursor: pointer; border-color: rgba(37,211,102,.35); background: linear-gradient(135deg, rgba(37,211,102,.12), transparent 70%), var(--surface); transition: transform .25s, border-color .25s, box-shadow .25s; }
.cs-wa .card-icon { background: #25d366; color: #fff; }
.cs-wa:hover { transform: translateY(-4px); border-color: #25d366; box-shadow: 0 14px 30px rgba(37,211,102,.18); }
.cs-wa:hover .card-icon { animation: waPulse 1s ease; }
.cs-cta { display: inline-block; margin-top: 8px; font-style: normal; font-weight: 600; font-size: .9rem; color: #25d366; }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 100% { box-shadow: 0 0 0 12px rgba(37,211,102,0); } }

/* tighter contact strip */
.section-tight { padding: 36px 0; }
.contact-strip { gap: 14px; }
.cs-item { padding: 18px 20px; align-items: center; }
.cs-item .card-icon { width: 42px; height: 42px; }
.cs-cta { margin-top: 2px; }
@media (max-width: 560px) { .section-tight { padding: 28px 0; } }

/* hero eyebrow in white */
.hero .eyebrow { color: #fff; }
:root[data-theme="light"] .hero .eyebrow { color: var(--text); }

/* ===== Tighter vertical rhythm (less wasted space) ===== */
.section { padding: 60px 0; }
.section-head { margin-bottom: 28px; }
.section-head h2, .h2 { margin-bottom: .35em; }
.hero { padding: 44px 0 48px; }
.stat { padding: 24px 16px; }
.stat-num::after { margin-top: 8px; }
.about-split { gap: 44px; }
.about-media { min-height: 420px; }
.svc-card, .why-card, .jcard, .trust-card { padding: 22px; }
.svc-card p { margin-bottom: 10px; }
.svc-card ul { padding-top: 10px; gap: 6px; }
.svc-icon { width: 46px; height: 46px; margin-bottom: 12px; }
.jnum { margin-bottom: 14px; }
.svc-cards, .why-grid, .journey, .trust-grid { gap: 16px; }
.mat-split, .faq-split { gap: 36px; }
.mat-groups { gap: 20px; }
.featured { gap: 18px; }
.faq summary { padding: 16px 0; }
.faq .answer { padding-bottom: 16px; }
.site-footer { padding: 44px 0 22px; }
.footer-bottom { margin-top: 26px; }
@media (max-width: 900px) {
  .section { padding: 44px 0; }
  .hero { padding: 40px 0 40px; }
  .about-media { min-height: 360px; }
}
@media (max-width: 560px) { .section { padding: 36px 0; } }

/* address -> Google Maps */
a.topbar-loc { color: #dbe9f5; text-decoration: none; }
a.topbar-loc:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cs-map { text-decoration: none; color: inherit; cursor: pointer; transition: transform .25s, border-color .25s; }
.cs-map:hover { transform: translateY(-4px); border-color: rgba(59,163,227,.6); }
.cs-cta-map { color: var(--brand-2); }

/* address links: no underline, effect on hover only */
a.topbar-loc, a.topbar-loc:hover, .site-footer a, .faq .answer a { text-decoration: none !important; }
a.topbar-loc:hover { color: #6cc1f0; }
.faq .answer a { color: inherit; }
.faq .answer a:hover { color: var(--brand-2); }
.cs-map:not(:hover) { transform: none; }
.cs-cta-map { max-height: 0; opacity: 0; overflow: hidden; margin-top: 0; transition: max-height .3s ease, opacity .3s ease, margin-top .3s ease; }
.cs-map:hover .cs-cta-map, .cs-map:focus-visible .cs-cta-map { max-height: 2em; opacity: 1; margin-top: 4px; }
#faq { scroll-margin-top: 112px; }
.faq-split > div:first-child { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
@media (max-width: 900px) { .faq-split > div:first-child { position: static; } }
.cs-item > div > span { display: block; }
.cs-cta-map { display: block; }
.cs-map:hover .cs-cta-map, .cs-map:focus-visible .cs-cta-map { margin-top: 12px; }
.cs-wa .cs-cta { display: block; margin-top: 10px; }
.cs-item > div { flex: 1; min-width: 0; text-align: start; }
.cs-cta, .cs-cta-map { text-align: start; padding: 0; margin-inline: 0; }

/* CTA text sits on the title line (no card expansion) */
.cs-map, .cs-wa { position: relative; }
.cs-map .cs-cta-map, .cs-wa .cs-cta {
  position: absolute; top: 18px; inset-inline-end: 20px; margin: 0 !important; max-height: none; display: inline-block;
  opacity: 0; transform: translateX(-6px); transition: opacity .25s ease, transform .25s ease; white-space: nowrap; font-size: .85rem;
}
.cs-map:hover .cs-cta-map, .cs-map:focus-visible .cs-cta-map, .cs-wa:hover .cs-cta, .cs-wa:focus-visible .cs-cta { opacity: 1; transform: none; margin: 0 !important; }
@media (hover: none) { .cs-map .cs-cta-map, .cs-wa .cs-cta { opacity: 1; transform: none; } }

/* ===== No horizontal overflow on any device ===== */
html, body { max-width: 100%; }
main, .site-footer, .topbar { overflow-x: clip; }
@supports not (overflow: clip) { main, .site-footer, .topbar { overflow-x: hidden; } }
img, video, iframe, canvas { max-width: 100%; }
@media (max-width: 900px) {
  .reveal-left, .reveal-right { transform: translateY(30px); }
  .reveal-left.in, .reveal-right.in { transform: none; }
}

/* ===== Logo glow: once on load, then every 8s (light sweep + soft halo) ===== */
.site-header .brand { animation: logoHalo 8s ease-in-out .4s infinite; }
.site-header .brand::after { animation: logoSweep 8s ease-in-out .4s infinite; }
.site-header .brand:hover::after { animation: logoShine 1s ease forwards; }
@keyframes logoSweep {
  0% { background-position: 160% 0; }
  16% { background-position: -60% 0; }
  100% { background-position: -60% 0; }
}
@keyframes logoHalo {
  0%, 18%, 100% { filter: drop-shadow(0 0 0 rgba(108,193,240,0)); }
  8% { filter: drop-shadow(0 0 7px rgba(108,193,240,.55)); }
}
@media (prefers-reduced-motion: reduce) {
  .site-header .brand, .site-header .brand::after { animation-duration: 8s !important; animation-iteration-count: infinite !important; }
}

/* ===== Hero video: borderless, blends with the page ===== */
.hero-media figure.hero-video { position: relative; aspect-ratio: 16 / 9; border: 0 !important; box-shadow: none !important; background: transparent; border-radius: 20px; overflow: hidden; }
.hero-video video { display: block; width: 100%; height: 100%; object-fit: cover; background: #08131f; }
.hero-video::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(8,19,31,1), inset 0 0 24px 6px rgba(8,19,31,.9); }
:root[data-theme="light"] .hero-video::after { box-shadow: inset 0 0 0 1px rgba(8,19,31,1), inset 0 0 18px 4px rgba(8,19,31,.75); }
.vid-sound { position: absolute; bottom: 14px; right: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22); background: rgba(5,13,22,.6); backdrop-filter: blur(8px); color: #fff; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; transition: background .2s; }
.vid-sound:hover { background: rgba(59,163,227,.5); }
.vid-sound svg { width: 18px; height: 18px; }
.vid-sound .ic-on { display: none; }
.vid-sound.on .ic-on { display: block; }
.vid-sound.on .ic-off { display: none; }
.vid-sound.on { padding: 0 11px; }
.vid-sound:not(.on) { animation: vsPulse 2.4s ease-in-out infinite; }
@keyframes vsPulse { 50% { box-shadow: 0 0 0 6px rgba(59,163,227,.25); } }
.hero-media .hero-badge { display: none; }

/* ===== Light mode: topbar + footer follow the theme ===== */
:root[data-theme="light"] .topbar { background: #e7f0f8; color: var(--muted); border-bottom-color: var(--line); }
:root[data-theme="light"] .topbar a, :root[data-theme="light"] a.topbar-loc { color: var(--text); }
:root[data-theme="light"] .topbar a:hover, :root[data-theme="light"] a.topbar-loc:hover { color: var(--brand); }
:root[data-theme="light"] .topbar-loc svg { color: var(--brand); }
:root[data-theme="light"] .topbar-pill { background: rgba(37,211,102,.12); border-color: rgba(22,150,70,.35); color: #138a43; }
:root[data-theme="light"] .site-footer { background: #ffffff; color: var(--muted); border-top-color: var(--line); }
:root[data-theme="light"] .site-footer h4 { color: var(--text); }
:root[data-theme="light"] .site-footer a { color: var(--muted); }
:root[data-theme="light"] .site-footer a:hover { color: var(--brand); }
:root[data-theme="light"] .site-footer .icon-btn { color: var(--text); border-color: var(--line-2); }
:root[data-theme="light"] .site-footer .logo-light { display: block !important; }
:root[data-theme="light"] .site-footer .logo-dark { display: none !important; }
:root[data-theme="light"] .footer-bottom { border-top-color: var(--line); }

/* ===== Hero video: square, edges dissolve into the page (no visible frame) ===== */
.hero-media figure.hero-video { border-radius: 0 !important; }
.hero-video::after { display: none; }
.hero-video video {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-composite: intersect; background: transparent; }

/* ===== Mobile: logo on the right (start side), actions on the left ===== */
@media (max-width: 960px) {
  .site-header .container { position: relative; justify-content: space-between; }
  .site-header .container > .brand { position: static; transform: none; }
  .site-header .header-actions { margin-inline-start: auto; }
}

/* ===== "600+ مشروع نفّذناه" badge: small, top-right corner of the video ===== */
.hero-media .hero-badge { display: flex; z-index: 3; top: 3.5%; inset-inline-start: 2.5%; inset-inline-end: auto; padding: 6px 10px; gap: 7px; border-radius: 12px; }
.hero-media .hero-badge .hb-icon { width: 28px; height: 28px; border-radius: 8px; }
.hero-media .hero-badge .hb-icon svg { width: 15px; height: 15px; }
.hero-media .hero-badge strong { font-size: 1.02rem; }
.hero-media .hero-badge span { font-size: .7rem; }
@media (max-width: 560px) {
  .hero-media .hero-badge { top: 4%; padding: 4px 9px; border-radius: 999px; }
  .hero-media .hero-badge .hb-icon { display: none; }
  .hero-media .hero-badge > div { display: flex; align-items: baseline; gap: 5px; }
  .hero-media .hero-badge strong { font-size: .82rem; }
  .hero-media .hero-badge span { font-size: .66rem; margin: 0; }
}

/* hero video plays like a GIF: no controls, not interactive */
.hero-video video { pointer-events: none; }
.faq .answer ul { margin: 4px 0 10px; padding-inline-start: 22px; display: grid; gap: 8px; }
.faq .answer li strong { color: var(--text); font-weight: 600; }

/* ===== Scroll reveal: no fade — content is always visible and glides smoothly into place ===== */
.reveal, .reveal-left, .reveal-right, .hero-media.reveal {
  opacity: 1 !important; filter: none !important; clip-path: none !important;
  transform: translate3d(0, 56px, 0);
  transition: transform 1.05s cubic-bezier(.22,.61,.36,1) !important; will-change: transform;
}
.reveal.in, .reveal-left.in, .reveal-right.in, .hero-media.reveal.in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .hero-media.reveal { transform: none !important; transition: none !important; }
}
/* contact cards: title centered on the icon, details underneath both */
.cs-item { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 12px; align-items: center; align-content: start; }
.cs-item > div { display: contents; }
.cs-item .card-icon { grid-column: 1; grid-row: 1; margin: 0; }
.cs-item strong { grid-column: 2; grid-row: 1; margin: 0; line-height: 1.4; }
.cs-item > div > span { grid-column: 1 / -1; grid-row: 2; }
.cs-map .cs-cta-map, .cs-wa .cs-cta { top: 29px; }

/* ===== Customer reviews page ===== */
.rv-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; padding: 22px 26px; margin-bottom: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.rv-score, .rv-count { display: flex; align-items: center; gap: 10px; }
.rv-score strong, .rv-count strong { font-size: 1.7rem; font-weight: 700; color: var(--brand-2); line-height: 1; }
:root[data-theme="light"] .rv-score strong, :root[data-theme="light"] .rv-count strong { color: var(--brand); }
.rv-score span, .rv-count span { color: var(--muted); }
.rv-stars { display: inline-flex; gap: 2px; color: #f5b301; }
.rv-stars svg { width: 18px; height: 18px; }
.rv-summary .btn { margin-inline-start: auto; }
.reviews-grid { columns: 3 320px; column-gap: 18px; }
.rv-card { break-inside: avoid; margin: 0 0 18px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.rv-card header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.rv-card header > div { flex: 1; min-width: 0; display: grid; }
.rv-card header strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-card header div span { color: var(--muted); font-size: .85rem; }
.rv-avatar { flex: none; width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center; font-weight: 700; background: var(--accent-soft); color: var(--brand-2); border: 1px solid rgba(59,163,227,.35); }
.rv-badge { flex: none; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(37,211,102,.12); color: #25d366; border: 1px solid rgba(37,211,102,.35); }
.rv-badge.no { background: rgba(255,255,255,.04); color: var(--muted); border-color: var(--line-2); }
.rv-text { margin: 0; line-height: 1.85; color: var(--text); }
.rv-text.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.rv-more { margin-top: 8px; padding: 0; border: 0; background: none; color: var(--brand-2); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }
.rv-empty { text-align: center; padding: 44px 24px; border-radius: var(--radius); background: var(--surface); border: 1px dashed var(--line-2); display: grid; justify-items: center; gap: 10px; }
.rv-empty h2 { margin: 6px 0 0; font-size: 1.3rem; }
.rv-empty p { margin: 0 0 8px; color: var(--muted); }
@media (max-width: 560px) { .rv-summary .btn { margin-inline-start: 0; width: 100%; justify-content: center; } }
.rv-summary[hidden], .rv-empty[hidden] { display: none !important; }

/* review cards: lift, glowing gradient edge, sliding quote mark */
.rv-card { position: relative; overflow: hidden; isolation: isolate;
  transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease, border-color .45s ease, background .45s ease; }
.rv-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 1;
  background: conic-gradient(from var(--rv-a, 0deg), transparent 0 55%, #3ba3e3 70%, #7fc9e4 80%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .45s ease; }
.rv-card::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px 220px at var(--rv-x, 80%) var(--rv-y, 0%), rgba(59,163,227,.16), transparent 70%); opacity: 0; transition: opacity .45s ease; }
.rv-quote { position: absolute; inset-inline-end: 14px; bottom: -34px; font-size: 140px; line-height: 1; font-family: Georgia, serif; color: var(--brand-2); opacity: .06; pointer-events: none;
  transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .6s ease; }
.rv-avatar, .rv-badge { transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease, background .45s ease; }
@property --rv-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes rvSpin { to { --rv-a: 360deg; } }
@media (hover: hover) {
  .rv-card:hover { transform: translateY(-8px); border-color: transparent; box-shadow: 0 22px 46px -18px rgba(0,0,0,.55), 0 0 0 1px rgba(59,163,227,.25); }
  .rv-card:hover::before { opacity: 1; animation: rvSpin 3.2s linear infinite; }
  .rv-card:hover::after { opacity: 1; }
  .rv-card:hover .rv-quote { transform: translateY(-26px) rotate(-8deg); opacity: .16; }
  .rv-card:hover .rv-avatar { transform: scale(1.08) rotate(-6deg); background: #3ba3e3; color: #04121f; box-shadow: 0 0 0 4px rgba(59,163,227,.18); }
  .rv-card:hover .rv-badge { box-shadow: 0 0 18px rgba(37,211,102,.35); }
}
:root[data-theme="light"] .rv-card:hover { box-shadow: 0 22px 46px -20px rgba(10,37,64,.35), 0 0 0 1px rgba(22,121,184,.25); }
.rv-more { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; }
.rv-more::after { content: "⌄"; font-size: 1.1em; line-height: 1; transition: transform .3s; }
.rv-more[aria-expanded="true"]::after { transform: rotate(180deg); }
.rv-text { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) { .rv-card:hover { transform: none; } .rv-card:hover::before { animation: none; } }
.reviews-grid { columns: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; align-items: start; }
.rv-card { margin: 0; }
@media (max-width: 400px) { .reviews-grid { grid-template-columns: 1fr; } }
.rv-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; position: relative; z-index: 2; }
.rv-who > div { flex: 1; min-width: 0; display: grid; }
.rv-who strong { transition: color .25s; }
.rv-who:hover strong, .rv-who:focus-visible strong { color: var(--brand-2); text-decoration: underline; text-underline-offset: 3px; }
.rv-card header .rv-badge { position: relative; z-index: 2; }

/* ===== Reviews: equal cards + pop-up ===== */
.reviews-grid { align-items: stretch; grid-auto-rows: 1fr; }
.rv-card { display: flex; flex-direction: column; height: 100%; }
.reviews-grid .rv-text { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(1.85em * 4); }
.reviews-grid .rv-more { margin-top: auto; padding-top: 12px; align-self: flex-start; visibility: hidden; }
.reviews-grid .rv-card.is-long .rv-more { visibility: visible; }
.rv-more::after { content: "↖"; font-size: .95em; }
.rv-more[aria-expanded]::after { transform: none; }
.rv-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px;
  background: rgba(4,12,20,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .22s ease; }
.rv-modal[hidden] { display: none; }
.rv-modal.open { opacity: 1; }
.rv-modal-card { width: min(620px, 100%); max-height: min(80vh, 720px); overflow: auto; padding: 28px 28px 26px; height: auto;
  transform: translateY(14px) scale(.97); opacity: 0; transition: transform .26s cubic-bezier(.2,.7,.2,1), opacity .22s ease; box-shadow: 0 30px 70px -20px rgba(0,0,0,.6); }
.rv-modal.open .rv-modal-card { transform: none; opacity: 1; }
.rv-modal-card:hover { transform: none; }
.rv-modal-card::before, .rv-modal-card::after { display: none; }
.rv-modal-card header { padding-inline-end: 34px; }
.rv-modal .rv-text.full { display: block; -webkit-line-clamp: unset; overflow: visible; min-height: 0; font-size: 1.04rem; line-height: 1.95; }
.rv-close { position: absolute; top: 14px; inset-inline-end: 14px; width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; font-size: .9rem; display: grid; place-items: center; transition: background .2s, color .2s; }
.rv-close:hover { background: var(--accent-soft); color: var(--text); }
html.rv-lock { overflow: hidden; }
@media (max-width: 560px) { .rv-modal { align-items: end; padding: 0; } .rv-modal-card { width: 100%; max-height: 85vh; border-radius: 22px 22px 0 0; transform: translateY(30px); } }
@media (prefers-reduced-motion: reduce) { .rv-modal, .rv-modal-card { transition: none; } }

/* ===== Reviews: load more (5 rows at a time) ===== */
.rv-card.rv-off { display: none !important; }
.rv-load { display: flex; justify-content: center; margin-top: 26px; }
.rv-load[hidden] { display: none; }
.rv-load .btn { gap: 8px; }
.rv-load-n { color: var(--muted); font-weight: 500; font-size: .9em; }
.rv-card.rv-pop { animation: rvPop .5s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rvPop { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ===== Reviews hero: 100% + stars on a soft arc ===== */
.rv-hero-badge { display: inline-grid; justify-items: center; gap: 2px; margin-top: 22px; padding: 14px 26px 10px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(59,163,227,.10), rgba(59,163,227,.02)); border: 1px solid rgba(59,163,227,.22); }
.rv-hero-pct { margin: 0; display: flex; align-items: center; gap: 12px; line-height: 1; }
.rv-hero-pct strong { font-size: clamp(2.4rem, 5vw, 3.2rem); font-weight: 700; color: var(--brand-2); direction: ltr; letter-spacing: -.01em; }
:root[data-theme="light"] .rv-hero-pct strong { color: var(--brand); }
.rv-hero-pct span { font-size: 1.35rem; font-weight: 700; color: var(--text); }
.rv-arc { --n: 5; display: flex; justify-content: center; gap: 6px; height: 44px; padding-top: 6px; }
.rv-arc i { --c: calc(var(--i) - (var(--n) - 1) / 2);            /* -1.5 … 1.5 : distance from the middle */
  display: block; width: 26px; height: 26px; color: #f5b301;
  transform: translateY(calc(var(--c) * var(--c) * 4px)) rotate(calc(var(--c) * 9deg));
  animation: rvStarIn .6s cubic-bezier(.2,.9,.3,1.3) both, rvStarPulse 2.4s ease-in-out infinite;
  animation-delay: calc(.35s + var(--i) * .12s), calc(1.2s + var(--i) * .3s); }
.rv-arc svg { width: 100%; height: 100%; fill: currentColor; filter: drop-shadow(0 2px 6px rgba(245,179,1,.35)); }
@keyframes rvStarIn { from { opacity: 0; transform: translateY(14px) scale(.4) rotate(calc(var(--c) * 9deg)); }
  to { opacity: 1; transform: translateY(calc(var(--c) * var(--c) * 4px)) rotate(calc(var(--c) * 9deg)); } }
@keyframes rvStarPulse { 0%, 100% { scale: 1; filter: none; } 50% { scale: 1.14; filter: brightness(1.12) drop-shadow(0 0 6px rgba(245,179,1,.55)); } }
@media (prefers-reduced-motion: reduce) { .rv-card.rv-pop { animation: none; } }
/* hero badge v2: centered, wide pill, stars in one straight line next to the text */
.rv-hero-badge { display: flex; align-items: center; justify-content: center; gap: 22px; width: fit-content; min-width: min(460px, 100%);
  margin: 26px auto 0; padding: 16px 34px; border-radius: 20px; }
.rv-hero-badge::before { content: ""; order: 1; width: 1px; align-self: stretch; background: rgba(59,163,227,.28); }
.rv-hero-pct { order: 0; }
.rv-arc { order: 2; height: auto; padding: 0; gap: 8px; align-items: center; }
.rv-arc i { transform: none; width: 28px; height: 28px; }
@keyframes rvStarIn { from { opacity: 0; transform: translateY(10px) scale(.4); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) { .rv-hero-badge { gap: 14px; padding: 14px 18px; min-width: 0; width: 100%; } .rv-arc { gap: 5px; } .rv-arc i { width: 22px; height: 22px; } .rv-hero-pct strong { font-size: 2.2rem; } .rv-hero-pct span { font-size: 1.15rem; } }
/* star pulse stays on everywhere (desktop + mobile, even with reduced-motion on) — it is small and slow */
.rv-arc i, .rv-arc i:nth-child(n) { animation: rvStarPulse 2.4s ease-in-out infinite !important; animation-delay: calc(var(--i) * .3s) !important; }
@media (prefers-reduced-motion: reduce) { .rv-arc i { animation-duration: 2.4s !important; animation-iteration-count: infinite !important; } }
/* stars v3: a bit bigger + livelier wave (pop, tiny twist, golden glow) */
.rv-arc { gap: 10px; }
.rv-arc i { width: 32px; height: 32px; }
.rv-arc i, .rv-arc i:nth-child(n) { animation: rvStarWave 2.2s cubic-bezier(.4,0,.2,1) infinite !important; animation-delay: calc(var(--i) * .16s) !important; }
@keyframes rvStarWave {
  0%, 60%, 100% { scale: 1; rotate: 0deg; filter: drop-shadow(0 2px 5px rgba(245,179,1,.3)); }
  18% { scale: 1.28; rotate: -10deg; filter: brightness(1.15) drop-shadow(0 0 10px rgba(255,196,0,.75)); }
  32% { scale: .94; rotate: 6deg; }
  44% { scale: 1.06; rotate: 0deg; }
}
@media (max-width: 480px) { .rv-arc { gap: 6px; } .rv-arc i { width: 26px; height: 26px; } }
@media (prefers-reduced-motion: reduce) { .rv-arc i { animation-duration: 2.2s !important; animation-iteration-count: infinite !important; } }
/* every 5 seconds: header logo glow + stars wave (same pace, ~1.3s of motion then rest) */
.site-header .brand { animation: logoHalo5 5s ease-in-out .4s infinite; }
.site-header .brand::after { animation: logoSweep5 5s ease-in-out .4s infinite; }
.site-header .brand:hover::after { animation: logoShine 1s ease forwards; }
@keyframes logoSweep5 { 0% { background-position: 160% 0; } 26% { background-position: -60% 0; } 100% { background-position: -60% 0; } }
@keyframes logoHalo5 { 0%, 28%, 100% { filter: drop-shadow(0 0 0 rgba(108,193,240,0)); } 13% { filter: drop-shadow(0 0 7px rgba(108,193,240,.55)); } }
.rv-arc i, .rv-arc i:nth-child(n) { animation: rvStarWave5 5s cubic-bezier(.4,0,.2,1) infinite !important; animation-delay: calc(var(--i) * .16s) !important; }
@keyframes rvStarWave5 {
  0%, 27%, 100% { scale: 1; rotate: 0deg; filter: drop-shadow(0 2px 5px rgba(245,179,1,.3)); }
  8% { scale: 1.28; rotate: -10deg; filter: brightness(1.15) drop-shadow(0 0 10px rgba(255,196,0,.75)); }
  14.5% { scale: .94; rotate: 6deg; }
  20% { scale: 1.06; rotate: 0deg; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header .brand, .site-header .brand::after, .rv-arc i { animation-duration: 5s !important; animation-iteration-count: infinite !important; }
}
/* email card on the contact page: full row, address on one line */
.contact-item[href^="mailto:"] { grid-column: 1 / -1; }
.contact-item[href^="mailto:"] span[dir="ltr"] { white-space: nowrap; }
