/* ============================================================
   ATLAS GLASS TEST — home-page hook (see atlas-glass-test.js)
   ============================================================ */

/* bilingual blocks: atlas.js toggles body.lang-en */
body.lang-en .ca-ar,
body:not(.lang-en) .ca-en { display: none !important; }

.atl-glass {
  width: min(1180px, 92%);
  margin: 0 auto 84px;
  position: relative;
}
.atl-glass-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
  padding: 44px;
  border-radius: 32px;
  border: 1px solid rgba(255, 31, 31, .28);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(255, 31, 31, .16), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  overflow: hidden;
}

.atl-glass-copy { display: grid; gap: 18px; min-width: 0; }
.atl-glass-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--red, #ff1f1f);
  direction: ltr;
  text-align: start;
}
.atl-glass-copy h2 {
  margin: 0;
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.15;
  text-wrap: balance;
}
.atl-glass-copy h2 em {
  font-style: normal;
  display: inline-block;
  background: linear-gradient(90deg, #ff3e4e, #ff8a7a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.atl-glass-copy p {
  margin: 0;
  color: var(--muted, rgba(255, 255, 255, .7));
  font-size: 17px;
  line-height: 1.85;
  max-width: 54ch;
}

.atl-glass-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.atl-glass-facts li {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .03);
  font-size: 13px;
  color: var(--muted, rgba(255, 255, 255, .7));
  min-width: 0;
}
.atl-glass-facts b {
  font-size: 18px;
  color: var(--text, #fff);
  direction: ltr;
  text-align: start;
  white-space: nowrap;
}
.atl-glass-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- the two windows ---------- */
.atl-glass-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding-bottom: 6px;
  min-width: 0;
}
.atl-pane { margin: 0; display: grid; gap: 12px; min-width: 0; }
/* an aluminium window: bevelled frame, recessed glass, a sill underneath */
.atl-pane-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  max-width: 100%;
  padding: 11px;
  border-radius: 5px;
  background: linear-gradient(145deg, #4a4f58 0%, #2a2e35 38%, #1a1d22 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 -2px 0 rgba(0, 0, 0, .5),
    0 1px 0 rgba(255, 255, 255, .04),
    0 30px 60px -18px rgba(0, 0, 0, .75),
    0 0 60px -10px rgba(255, 120, 70, .18);
  cursor: crosshair;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.atl-pane-frame::before {   /* the recess the glass sits in */
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .7), inset 0 3px 8px rgba(0, 0, 0, .65);
  pointer-events: none;
  z-index: 1;
}
.atl-pane-frame::after {    /* sill */
  content: "";
  position: absolute;
  inset: auto -8px -10px;
  height: 10px;
  border-radius: 2px;
  background: linear-gradient(180deg, #5a606a, #24272d);
  box-shadow: 0 8px 14px rgba(0, 0, 0, .55);
  pointer-events: none;
}
.atl-pane-frame:focus-visible { outline: 2px solid var(--red, #ff1f1f); outline-offset: 6px; }
.atl-pane-svg { display: block; width: 100%; height: 100%; border-radius: 2px; direction: ltr; }   /* sticker text must not inherit the page RTL */

.atl-crack,
.atl-crack-shadow {
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.atl-crack { stroke: rgba(255, 255, 255, .92); }
.atl-crack-shadow { stroke: rgba(0, 0, 0, .5); transform: translate(.7px, .9px); }
.atl-glints { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }

.atl-pane figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted, rgba(255, 255, 255, .7));
  transition: color .3s ease;
}
.atl-pane figcaption i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  background: rgba(255, 255, 255, .08);
  transition: background .3s ease, color .3s ease;
}
.atl-pane[data-pane="bare"].is-done figcaption { color: #ff8a8a; }
.atl-pane[data-pane="bare"].is-done figcaption i { background: rgba(255, 62, 78, .2); color: #ff3e4e; }
.atl-pane[data-pane="film"].is-done figcaption { color: #fff; }
.atl-pane[data-pane="film"].is-done figcaption i { background: #19c37d; color: #fff; }

.atl-glass-hint {
  grid-column: 1 / -1;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted, rgba(255, 255, 255, .6));
}
.atl-glass-hint i { animation: atl-tap 1.6s ease-in-out infinite; }
@keyframes atl-tap { 50% { translate: 0 -3px; } }

/* ---------- header: products link with a "new" badge ---------- */
.atl-nav-new {
  display: inline-block;
  margin-inline-start: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--red, #ff1f1f);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.5;
  vertical-align: middle;
  animation: atl-new 2.4s ease-in-out infinite;
}
@keyframes atl-new {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 31, 31, .55); }
  50% { box-shadow: 0 0 0 6px rgba(255, 31, 31, 0); }
}

@media (max-width: 900px) {
  .atl-glass { margin-bottom: 56px; }
  .atl-glass-inner { grid-template-columns: 1fr; gap: 28px; padding: 24px 18px; border-radius: 24px; }
  .atl-glass-stage { gap: 12px; }
  .atl-pane-frame { padding: 8px; }
  .atl-pane-frame::before { inset: 6px; }
  .atl-glass-facts { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .atl-glass-facts li { padding: 10px; font-size: 12px; }
  .atl-glass-facts b { font-size: 15px; }
}
@media (max-width: 420px) {
  .atl-glass-facts b { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .atl-glass-hint i, .atl-nav-new { animation: none; }
}
