/* GCC COMPANY — "Midnight gallery" design system
   Black stages, charcoal bands, 28px plinths, pill controls, blue only for primary actions. */

:root {
  --obsidian: #000000;
  --graphite: #0e0e0e;
  --carbon: #1d1d1f;
  --carbon-fade: linear-gradient(#1d1d1f, #000000 288px);
  --steel: #333336;
  --slate: #6e6e73;
  --ash: #86868b;
  --porcelain: #f5f5f7;
  --white: #ffffff;
  --blue: #0071e3;
  --blue-hover: #0068d6;
  --link: #2997ff;
  --cobalt: #0066cc;
  --copper: #e0600f;
  --optical: #ffd500;

  --font: "Inter", "IBM Plex Sans Arabic", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-tile: 28px;
  --r-nav: 20px;
  --r-capsule: 36px;
  --r-pill: 9999px;
  --keyline: rgb(40, 40, 40) 0 0 0 1px;
  --keyline-2: rgb(110, 110, 115) 0 0 0 1px;

  --page: min(1200px, calc(100% - 32px));
  --nav-h: 44px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--obsidian);
  color: var(--porcelain);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="en"] body { letter-spacing: -0.374px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(0, 113, 227, 0.45); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.wrap { width: var(--page); margin-inline: auto; }

/* ───────── Typography ───────── */
.eyebrow { font-size: 19px; font-weight: 600; line-height: 1.21; color: var(--ash); margin: 0 0 12px; }
.eyebrow.new { color: var(--copper); font-size: 12px; font-weight: 600; letter-spacing: 0; }
.product-name { font-size: 32px; font-weight: 600; line-height: 1.13; margin: 0; }
.display {
  font-size: clamp(44px, 7.2vw, 80px);
  font-weight: 600;
  line-height: 1.06;
  margin: 0;
}
html[lang="en"] .display { letter-spacing: -1.2px; }
.headline { font-size: clamp(32px, 4.6vw, 56px); font-weight: 600; line-height: 1.08; margin: 0; }
html[lang="en"] .headline { letter-spacing: -0.84px; }
.title { font-size: clamp(26px, 3vw, 40px); font-weight: 600; line-height: 1.12; margin: 0; }
.lead { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.38; color: var(--ash); margin: 16px 0 0; font-weight: 500; }
.lead strong, .lead b { color: var(--porcelain); font-weight: 600; }
.muted { color: var(--ash); }
.small { font-size: 14px; line-height: 1.43; }
.tiny { font-size: 12px; line-height: 1.33; }
.center { text-align: center; }
.link { color: var(--link); }
.link:hover { text-decoration: underline; }
.link::after { content: " ‹"; }
html[dir="ltr"] .link::after { content: " ›"; }
.link.plain::after { content: none; }
.yellow { color: var(--optical); }

/* ───────── Global utility navigation (44px) ───────── */
#site-header { height: var(--nav-h); } /* reserves space until site.js injects the nav */
.gnav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.gnav .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.gnav .logo { display: flex; align-items: center; gap: 8px; color: #ccc; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.gnav .logo svg { width: 22px; height: 22px; }
.gnav ul { list-style: none; display: flex; gap: 28px; margin: 0 auto; padding: 0; }
.gnav ul a { font-size: 12px; line-height: 1.33; color: rgba(255, 255, 255, 0.8); transition: color 0.2s; }
.gnav ul a:hover, .gnav ul a[aria-current="page"] { color: var(--white); }
.gnav .tools { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.lang-btn {
  background: none; border: 0; cursor: pointer; color: rgba(255, 255, 255, 0.8);
  font-size: 12px; padding: 4px 6px;
}
.lang-btn:hover { color: var(--white); }
.menu-btn { display: none; background: none; border: 0; color: #ccc; cursor: pointer; padding: 6px; }
.menu-btn svg { width: 18px; height: 18px; }

/* ───────── Announcement strip ───────── */
.strip { background: var(--carbon); text-align: center; padding: 16px; font-size: 14px; line-height: 20px; }
.strip a { color: var(--link); }
.strip a:hover { text-decoration: underline; }

/* ───────── Local section navigation (sticky, contained) ───────── */
.lnav-holder { position: sticky; top: calc(var(--nav-h) + 8px); z-index: 40; margin-top: 8px; }
.lnav {
  width: var(--page); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(14, 14, 14, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-radius: var(--r-nav);
  box-shadow: var(--keyline);
  padding: 10px 12px 10px 20px;
}
html[dir="rtl"] .lnav { padding: 10px 20px 10px 12px; }
.lnav .name { font-size: 19px; font-weight: 600; white-space: nowrap; }
.lnav .links { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.lnav .links::-webkit-scrollbar { display: none; }
.lnav .links a { font-size: 14px; color: var(--ash); white-space: nowrap; transition: color 0.2s; }
.lnav .links a:hover, .lnav .links a.active { color: var(--porcelain); }

/* ───────── Buttons ───────── */
.btn-buy {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--blue); color: var(--white);
  border: 0; border-radius: 170px; cursor: pointer;
  font-size: 17px; line-height: 1.17; padding: 12px 22px;
  transition: background 0.2s;
}
.btn-buy:hover { background: var(--blue-hover); }
.btn-buy.sm { font-size: 12px; line-height: 16px; padding: 7px 14px; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: transparent; color: var(--porcelain);
  border: 1px solid var(--slate); border-radius: var(--r-pill); cursor: pointer;
  font-size: 17px; line-height: 1.17; padding: 11px 22px;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--porcelain); }
.btn-ghost.sm { font-size: 12px; line-height: 16px; padding: 6px 14px; }
.capsule {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(66, 66, 69, 0.72); color: rgba(255, 255, 255, 0.8);
  border-radius: var(--r-capsule); padding: 12px 20px; font-size: 14px; line-height: 1.29;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 32px; }

/* ───────── Sections & surfaces ───────── */
.section { padding: clamp(72px, 10vw, 144px) 0; }
section[id] { scroll-margin-top: 64px; }
.section.tight { padding: clamp(48px, 6vw, 90px) 0; }
.band-carbon { background: var(--carbon-fade); }
.band-white { background: var(--white); color: #1d1d1f; }
.band-white .muted { color: #6e6e73; }
.band-white .link { color: var(--cobalt); }
.section-head { max-width: 860px; margin-bottom: clamp(32px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }

/* ───────── Hero product stage ───────── */
.hero { position: relative; text-align: center; padding: clamp(48px, 7vw, 90px) 0 clamp(56px, 7vw, 90px); overflow: hidden; }
.hero .product-name { margin-bottom: 12px; }
.hero-media {
  position: relative; margin: clamp(40px, 6vw, 72px) auto 0; width: var(--page);
  aspect-ratio: 21 / 9; border-radius: var(--r-tile); overflow: hidden; background: #0a0a0a;
}
.hero-media.short { aspect-ratio: 32 / 9; }
.hero-media picture { display: block; height: 100%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
.hero-media.in img { transform: scale(1); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.75), transparent 45%); pointer-events: none; }
.hero-media .overlay {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 28px;
}

/* ───────── Feature metric tiles ───────── */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.tile {
  position: relative; background: var(--obsidian); border-radius: var(--r-tile);
  padding: 32px 28px; overflow: hidden; box-shadow: var(--keyline);
}
.panel .tile { box-shadow: none; }
.tile .stat { font-size: 28px; font-weight: 600; line-height: 1; margin: 0 0 10px; }
html[lang="en"] .tile .stat { letter-spacing: 0.196px; }
.tile .big { font-size: clamp(40px, 5vw, 64px); font-weight: 600; line-height: 1; margin: 0 0 12px; }
.tile p { margin: 0; color: var(--ash); font-size: 14px; line-height: 1.43; }
.tile .icon { width: 44px; height: 44px; margin-bottom: 28px; color: var(--porcelain); }
.tile .icon svg { width: 100%; height: 100%; }

/* Service tiles with media */
.svc-tile { display: flex; flex-direction: column; padding: 0; transition: transform 0.4s cubic-bezier(.2,.7,.2,1), box-shadow 0.3s; }
.svc-tile:hover { transform: translateY(-4px); box-shadow: var(--keyline-2); }
.svc-tile .txt { padding: 32px 28px 0; }
.svc-tile h3 { font-size: 28px; font-weight: 600; line-height: 1.14; margin: 0 0 10px; }
.svc-tile .media { margin-top: 28px; height: 280px; overflow: hidden; }
.svc-tile .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(.2,.7,.2,1); }
.svc-tile:hover .media img { transform: scale(1.05); }
/* Lit "product render" made of a thin-line technical glyph */
.glyph {
  margin-top: 20px; height: 240px; display: grid; place-items: center; position: relative;
  background: radial-gradient(closest-side, var(--glow, rgba(41,151,255,0.22)), transparent 75%);
}
.glyph svg { width: 132px; height: 132px; stroke: var(--porcelain); stroke-width: 1.1; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.8s cubic-bezier(.2,.7,.2,1); }
.svc-tile:hover .glyph svg { transform: scale(1.06); }
.glyph.fire { --glow: rgba(255, 90, 40, 0.26); }
.glyph.alarm { --glow: rgba(255, 213, 0, 0.18); }
.glyph.power { --glow: rgba(255, 180, 0, 0.2); }
.glyph.mv { --glow: rgba(41, 151, 255, 0.24); }
.glyph.maint { --glow: rgba(120, 220, 160, 0.18); }
.svc-tile .code { display: inline-block; margin-top: 14px; font-size: 12px; color: var(--optical); font-weight: 600; direction: ltr; }
.svc-tile.wide { grid-column: span 2; }

/* ───────── Highlights media frame ───────── */
.frame { position: relative; border-radius: var(--r-tile); overflow: hidden; background: #0a0a0a; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame.tall { aspect-ratio: 16 / 9; }
.frame.photo { aspect-ratio: 4 / 5; }
.frame .caption {
  position: absolute; inset-inline: 0; top: 0; padding: clamp(24px, 4vw, 48px); z-index: 1;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
}
.frame .caption h3 { font-size: clamp(24px, 3.2vw, 40px); font-weight: 600; line-height: 1.12; margin: 0; max-width: 640px; }
.frame .pager {
  position: absolute; bottom: 20px; inset-inline-start: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; gap: 10px; background: rgba(51, 51, 54, 0.72); padding: 14px 18px; border-radius: var(--r-pill);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
html[dir="rtl"] .frame .pager { transform: translateX(50%); }
.frame .pager button { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); border: 0; padding: 0; cursor: pointer; transition: width 0.3s, background 0.3s; }
.frame .pager button.on { width: 40px; border-radius: 4px; background: var(--porcelain); }
.slides { position: relative; aspect-ratio: 16 / 9; }
.slides .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; }
.slides .slide.on { opacity: 1; }

/* ───────── Comparison panel & selector ───────── */
.panel { background: var(--carbon); border-radius: var(--r-tile); padding: clamp(28px, 5vw, 64px); }
.select-wrap { position: relative; max-width: 420px; margin: 28px auto 40px; }
.select {
  width: 100%; appearance: none; -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.04); color: var(--porcelain);
  border: 1px solid var(--slate); border-radius: 980px;
  padding: 14px 24px; padding-inline-end: 45px; font-size: 17px; cursor: pointer;
}
.select:focus { outline: 1px solid var(--blue); outline-offset: 1px; }
.select option { background: var(--carbon); }
.select-wrap::after {
  content: ""; position: absolute; inset-inline-end: 20px; top: 50%; width: 8px; height: 8px;
  border-right: 1.5px solid var(--ash); border-bottom: 1.5px solid var(--ash); transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.spec-list { list-style: none; margin: 0; padding: 0; }
.spec-list li { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--steel); font-size: 14px; line-height: 1.43; color: var(--porcelain); }
.spec-list li:first-child { border-top: 0; }
.spec-list li::before { content: ""; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--link); margin-top: 7px; }
.fade-swap { animation: fadeUp 0.5s cubic-bezier(.2,.7,.2,1); }

/* ───────── Pale comparison cards (white band) ───────── */
.pale { background: #f5f5f7; border-radius: var(--r-tile); overflow: hidden; color: #1d1d1f; display: flex; flex-direction: column; }
.band-white .pale { background: #f5f5f7; }
.pale .media { aspect-ratio: 4 / 3; overflow: hidden; }
.pale .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(.2,.7,.2,1); }
.pale:hover .media img { transform: scale(1.04); }
.pale .body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pale h3 { font-size: 21px; font-weight: 600; line-height: 1.19; margin: 0; }
.pale p { margin: 0; font-size: 14px; line-height: 1.43; color: #6e6e73; }
/* Projects without site photos show the system's line drawing on a dark plinth */
.pale .media.art { background: var(--graphite); }
.pale .media .glyph { margin: 0; height: 100%; }
.pale .media .glyph svg { width: 96px; height: 96px; }
.pale .meta { margin-top: auto; padding-top: 12px; font-size: 12px; color: #6e6e73; display: flex; justify-content: space-between; gap: 8px; }
/* Featured project: spans the whole row so the remaining cards fill complete rows */
.pale.feature { grid-column: 1 / -1; flex-direction: row; }
.pale.feature .media { flex: 0 0 50%; aspect-ratio: 16 / 9; }
.pale.feature .body { justify-content: center; padding: 32px; }

/* ───────── Filter pills ───────── */
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.pill {
  background: transparent; border: 1px solid var(--slate); color: var(--porcelain);
  border-radius: var(--r-pill); padding: 8px 18px; font-size: 14px; cursor: pointer; transition: all 0.2s;
}
.pill:hover { border-color: var(--porcelain); }
.pill.static { cursor: default; direction: ltr; }
.pill.static:hover { border-color: var(--slate); }
.pill.on { background: var(--porcelain); color: #1d1d1f; border-color: var(--porcelain); }
.band-white .pill { color: #1d1d1f; border-color: #d2d2d7; }
.band-white .pill.on { background: #1d1d1f; color: #fff; border-color: #1d1d1f; }

/* ───────── Split feature rows ───────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split .frame { aspect-ratio: 4 / 3; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; font-size: 17px; line-height: 1.47; }
.checks li::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--steel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f7' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/11px no-repeat; }

/* ───────── Forms ───────── */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 12px; color: var(--ash); margin: 0 0 6px; padding-inline-start: 6px; }
.input {
  width: 100%; background: rgba(255, 255, 255, 0.04); color: var(--porcelain);
  border: 1px solid var(--slate); border-radius: 980px; padding: 14px 24px; font-size: 17px;
}
textarea.input { border-radius: 24px; min-height: 140px; resize: vertical; }
.input:focus { outline: 1px solid var(--blue); outline-offset: 1px; }
.input::placeholder { color: var(--slate); }

/* ───────── Footer ───────── */
.footer { background: var(--carbon); color: var(--ash); font-size: 12px; line-height: 1.33; padding: 40px 0 24px; }
.footer .note { padding-bottom: 20px; border-bottom: 1px solid var(--steel); }
.footer .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 28px 0; }
.footer h4 { color: var(--porcelain); font-size: 12px; font-weight: 600; margin: 0 0 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a:hover { color: var(--porcelain); text-decoration: underline; }
.footer .legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--steel); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
p.ltr { display: block; }
html[dir="rtl"] p.ltr { text-align: right; }
html[dir="rtl"] .center p.ltr { text-align: center; }

/* ───────── Floating contact ───────── */
.fab { position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
html[dir="rtl"] .fab { align-items: flex-start; }
.fab-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(66, 66, 69, 0.72); color: var(--white);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--keyline-2); display: grid; place-items: center; transition: transform 0.2s;
}
.fab-btn:hover { transform: scale(1.06); }
.fab-btn svg { width: 24px; height: 24px; }
.fab-card {
  width: 260px; background: rgba(29, 29, 31, 0.92); border-radius: var(--r-nav); padding: 18px;
  box-shadow: var(--keyline); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: none; flex-direction: column; gap: 10px;
}
.fab.open .fab-card { display: flex; animation: fadeUp 0.3s ease; }
.fab-card .btn-buy, .fab-card .btn-ghost { width: 100%; font-size: 14px; padding: 10px 16px; }

/* ───────── Reveal on scroll (only hides content once JS is known to run) ───────── */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s cubic-bezier(.2,.7,.2,1), transform 0.5s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.05s; } .reveal.d2 { transition-delay: 0.1s; } .reveal.d3 { transition-delay: 0.15s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img { transform: none; }
  html { scroll-behavior: auto; }
}

/* ───────── Responsive ───────── */
@media (max-width: 1000px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .svc-tile.wide { grid-column: span 2; }
  .footer .cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .gnav ul {
    display: none; position: absolute; top: var(--nav-h); inset-inline: 0; margin: 0;
    flex-direction: column; gap: 0; background: rgba(0, 0, 0, 0.97); padding: 12px 24px 24px;
    height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h));
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  }
  .gnav.open ul { display: flex; }
  .gnav ul a { display: block; font-size: 24px; font-weight: 600; padding: 10px 0; color: var(--porcelain); }
  .gnav .wrap { justify-content: space-between; }
  .menu-btn { display: block; }
  .g2, .g3, .g4, .split, .form .row { grid-template-columns: 1fr; }
  .pale.feature { flex-direction: column; }
  .pale.feature .media { flex: none; aspect-ratio: 4 / 3; }
  .pale.feature .body { padding: 24px 24px 28px; }
  .hero-media.short { aspect-ratio: 16 / 9; }
  .svc-tile.wide { grid-column: auto; }
  .hero-media { aspect-ratio: 4 / 5; }
  .slides { aspect-ratio: 4 / 5; }
  .frame.tall { aspect-ratio: 4 / 5; }
  .lnav .name { display: none; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
