@font-face {
  font-family: Cairo;
  src: url('/assets/cairo-upright.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #101c2e;
  --muted: #47576a;
  --paper: #f4f5f7;
  --navy: #081628;
  --blue: #175298;
  --width: 1296px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 86px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 1rem/1.65 Cairo, Tahoma, Arial, sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a:focus-visible, summary:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #1b78cf;
  outline-offset: 4px;
}
h1, h2, h3, p { margin: 0; }
.wrap { width: min(var(--width), calc(100% - 80px)); margin-inline: auto; }
.site-skip-link { position: fixed; z-index: 20; inset: 10px 12px auto auto; padding: 8px 16px; color: white; background: var(--navy); transform: translateY(-160%); }
.site-skip-link:focus { transform: none; }

.masthead {
  position: sticky;
  inset-block-start: 0;
  z-index: 5;
  background: #fff;
  border-bottom: 1px solid #e1e6ec;
}
.masthead .wrap { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: clamp(12px, 3vw, 38px); }
.mast-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.home-brand { display: block; min-width: 0; }
.home-brand img { width: clamp(215px, 21vw, 294px); height: auto; }
.home-nav { display: flex; align-items: center; gap: clamp(12px, 2.6vw, 34px); font-size: .93rem; font-weight: 700; }
.home-nav > a:hover, .mast-brand .language:hover { color: var(--blue); }
.mast-tools { flex: 0 0 auto; display: flex; align-items: center; font-size: .91rem; font-weight: 800; }
.mast-brand .language { flex: 0 0 auto; min-width: 44px; min-height: 44px; display: grid; place-items: center; font-size: .91rem; font-weight: 800; }
.menu-panel { position: relative; }
.menu-panel summary, .home-pill { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; border-radius: 100px; padding: 8px 20px; font-size: .94rem; font-weight: 800; white-space: nowrap; }
.menu-panel summary { background: #e8f0fa; color: #143c6c; cursor: pointer; list-style: none; }
.menu-panel summary::-webkit-details-marker { display: none; }
.menu-panel summary::after { content: ''; inline-size: 6px; block-size: 6px; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg); margin-inline-start: 9px; margin-block-start: -4px; }
.menu-panel[open] summary::after { transform: rotate(225deg); margin-block-start: 3px; }
.menu-panel nav { position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + 10px); width: min(340px, calc(100vw - 32px)); max-height: min(72dvh, 630px); overflow: auto; background: #123e77; padding: 8px; border: 1px solid #3a6293; border-radius: 16px; box-shadow: 0 16px 32px #07162930; color: white; }
.menu-panel nav a { display: flex; align-items: center; min-height: 44px; padding: 6px 12px; border-radius: 8px; }
.menu-panel nav a:hover { background: #255486; }
.home-pill.primary { color: #fff; background: #185aa6; }
.home-pill.primary:hover { background: #0e4688; }
.home-pill.outline { border: 1px solid #69839e; color: #fff; }
.home-pill.outline:hover { background: #ffffff15; }

.showcase { background: radial-gradient(ellipse at 50% 110%, #163451, var(--navy) 70%); color: #fff; }
.showcase-copy { padding-block: clamp(34px, 5vw, 65px); text-align: center; }
.showcase-kicker { color: #9ac4e6; font-weight: 800; }
.showcase h1 { font-weight: 800; line-height: 1.19; margin-block: 10px 18px; }
.showcase h1 span { display: block; font-size: clamp(2.55rem, 5.25vw, 5rem); }
.showcase h1 span + span { color: #c5def6; font-size: clamp(1.78rem, 4.3vw, 4.1rem); }
.showcase-quality { font-size: clamp(1.3rem, 2.55vw, 2.12rem); font-weight: 800; line-height: 1.45; text-wrap: balance; }
.showcase-warranty { max-width: 65ch; color: #e2edf7; font-size: clamp(1rem, 1.55vw, 1.22rem); line-height: 1.8; margin: 6px auto 10px; }
.showcase-free { color: #7cf0cf; font-size: 1.4em; font-weight: 800; line-height: 1.3; white-space: nowrap; }
.showcase-price { color: #ffd68e; font-size: clamp(2.4rem, 7.1vw, 7rem); line-height: 1.25; text-wrap: balance; }
.showcase-price strong { font-weight: 800; }
html[lang="en"] .showcase-price { font-size: clamp(2rem, 4.85vw, 4.75rem); }
.showcase-actions { margin-block-start: 22px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }

@media (min-width: 761px) {
  html[lang="ar"] .showcase > .wrap {
    width: min(75%, 112.5rem);
    container-type: inline-size;
  }
  html[lang="ar"] .showcase-copy { padding-block: clamp(28px, 4cqi, 55px); text-align: start; }
  html[lang="ar"] .showcase h1 { margin-block: clamp(16px, 1.55cqi, 30px) 14px; }
  /* Match the line widths using the advances of the Arabic text in Cairo Bold. */
  html[lang="ar"] .showcase h1 span:first-child { font-size: 21.85cqi; line-height: 1.28; }
  html[lang="ar"] .showcase h1 span + span { font-size: 9.6cqi; }
  html[lang="ar"] .showcase-quality { font-size: 5.25cqi; }
  html[lang="ar"] .showcase-warranty { margin-inline: 0; }
  html[lang="ar"] .showcase-price { font-size: 10.45cqi; }
  html[lang="ar"] .showcase-actions { justify-content: flex-start; }
}

.showcase-reel {
  position: relative;
  overflow: hidden;
  height: 33vh;
  height: 33svh;
  min-height: 128px;
  max-height: 420px;
  background: var(--navy);
}
.reel-still, .reel-video, .reel-still img {
  display: block;
  width: 100%;
  height: 100%;
}
.reel-still img, .reel-video { object-fit: cover; }
.reel-video { position: absolute; inset: 0; opacity: 0; }
.showcase-reel.is-playing .reel-video { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .showcase-reel .reel-video { display: none; }
}

.catalog { padding-block: 64px 30px; }
.catalog-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-block-end: 26px; }
.catalog h2, .quote-copy h2 { font-size: clamp(2rem, 3.5vw, 3.8rem); line-height: 1.27; font-weight: 800; }
.catalog-intro p { max-width: 38ch; color: var(--muted); }
.sign-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.sign-card {
  display: grid;
  grid-template-rows: minmax(9rem, 1fr) minmax(41%, auto);
  width: 100%;
  min-width: 0;
  min-height: 340px;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(145deg, #4b5663, #303f51);
  color: #fff;
  border: 5px solid #667483;
  border-radius: 18px;
}
.card-media {
  display: block;
  position: relative;
  overflow: hidden;
  min-height: 0;
  border-radius: 12px 12px 0 0;
  background: #414f60;
}
.card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focal, center);
}
.card-copy { display: grid; align-content: center; gap: 8px; padding: 16px clamp(14px, 1.65vw, 24px); }
.card-copy h3 { font-size: clamp(1.23rem, 1.85vw, 1.65rem); font-weight: 800; line-height: 1.4; }
.card-link, .utility-link h3 {
  display: flex;
  align-items: center;
  gap: clamp(6px, .6vw, 9px);
  min-block-size: 44px;
}
.card-link span { color: #fff; text-decoration: underline; text-decoration-color: #a9c2dc; text-underline-offset: .19em; text-decoration-thickness: .065em; }
.card-link:hover span { text-decoration-color: #fff; }
.card-link::after, .utility-link h3::after {
  content: '';
  flex: none;
  inline-size: 2.1em;
  aspect-ratio: 56 / 42;
  background: url('/assets/home-signage/card-click-arrow.svg') center / contain no-repeat;
}
html[dir="ltr"] :is(.card-link, .utility-link h3)::after { scale: -1 1; }
.card-link:is(:hover, :focus-visible)::after, .utility-link:is(:hover, :focus-visible) h3::after { filter: brightness(1.2); }
.card-link:focus-visible { outline-color: #b5daff; }
.card-copy p { color: #fff; font-size: .98rem; line-height: 1.55; }
.card-cta { color: #174c8a; font-size: .9rem; font-weight: 800; }
.utility-link:hover .card-cta { text-decoration: underline; text-underline-offset: 4px; }
.utility { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; margin-block: 18px 0; }
.utility-link { display: grid; gap: 6px; align-content: center; min-height: 150px; border-radius: 18px; padding: 23px; background: #e5eef9; border: 1px solid #d8e3f1; }
.utility-link:nth-child(2) { background: #e9f3ed; border-color: #d9e9dd; }
.utility-link h3 { font-size: clamp(1.28rem, 2vw, 1.8rem); font-weight: 800; line-height: 1.45; }
.utility-link p { color: #36495b; }

.quote { padding-block: 55px; }
.quote-panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 5vw, 72px); padding: clamp(24px, 4.2vw, 64px); background: #0e2542; color: #fff; border-radius: 22px; }
.quote-copy { align-self: center; }
.quote-copy p { margin-top: 13px; color: #d5e3ef; max-width: 40ch; }
.quote-copy a { text-decoration: underline; text-underline-offset: 3px; }
.quote-form { display: grid; gap: 10px; min-width: 0; }
.quote-form h3 { font-size: 1.18rem; }
.quote-form label { display: grid; gap: 3px; color: #f1f7ff; font-weight: 700; }
.quote-form input, .quote-form select, .quote-form textarea { color: #122a43; background: #f8fbff; border: 1px solid #9bb3ce; border-radius: 9px; width: 100%; min-height: 44px; padding: 9px 12px; }
.quote-form textarea { resize: vertical; }
.quote-form .btn-whatsapp { color: white; background: #137447; border: 0; border-radius: 10px; min-height: 46px; padding: 8px 14px; font-weight: 800; }
.quote-form .btn-whatsapp:hover { background: #10623e; }
.quote-form .privacy-notice, .form-note, .form-status, .ux-form-help { color: #d5e3ef; font-size: .92rem; }
.quote-form .privacy-notice a { text-decoration: underline; }
.quote-form .form-status[hidden] { display: none; }
.home-footer { background: #081628; color: #fff; padding-block: 43px 76px; }
.footer-top { display: grid; grid-template-columns: minmax(200px, .85fr) 1.7fr; gap: 28px 48px; }
.footer-brand { font-size: 1.3rem; font-weight: 800; }
.home-footer p { color: #c5d4e6; margin-block: 7px; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px 14px; font-size: .92rem; }
.home-footer a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid #36506d; margin-block-start: 28px; padding-block-start: 16px; display: flex; flex-wrap: wrap; gap: 8px 23px; font-size: .9rem; color: #ced9e7; }
.call-float, .whatsapp-float { position: fixed; z-index: 4; inset-block-end: max(16px, env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 17px; }
.call-float { left: 15px; }
.whatsapp-float { right: 15px; }
.call-float img, .whatsapp-float img { width: 100%; height: 100%; }
.site-sound-control { position: fixed; z-index: 4; bottom: max(16px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; max-width: calc(100vw - 140px); padding: 5px 12px; border: 1px solid #d0d9e4; border-radius: 12px; background: white; color: var(--ink); font-size: .87rem; font-weight: 700; }
.site-sound-control svg { width: 18px; height: 18px; }
.ux-contact-status { position: fixed; z-index: 5; inset-block-end: 78px; inset-inline-start: 50%; translate: -50% 0; max-width: calc(100% - 32px); background: #fff; color: #0b2442; padding: 10px 15px; border: 1px solid #c1d3e7; border-radius: 10px; }
html[dir="rtl"] .ux-contact-status { translate: 50% 0; }

@media (prefers-reduced-motion: no-preference) {
  .card-media img { transition: transform 430ms cubic-bezier(.2,.7,.22,1); }
  .sign-card:hover .card-media img { transform: scale(1.035); }
  .has-entered .card-media img {
    animation: var(--entrance, image-arrive) 950ms cubic-bezier(.19,.72,.24,1) backwards;
  }
  .has-entered .card-copy { animation: caption-arrive 620ms 90ms ease-out backwards; }
  [data-entrance="slide-rise"] { --entrance: slide-rise; }
  [data-entrance="sweep-right"] { --entrance: sweep-right; }
  [data-entrance="slide-left"] { --entrance: slide-left; }
  [data-entrance="zoom-out"] { --entrance: zoom-out; }
  [data-entrance="unfold"] { --entrance: unfold; }
  [data-entrance="diagonal"] { --entrance: diagonal; }
  [data-entrance="sweep-left"] { --entrance: sweep-left; }
  [data-entrance="focus-in"] { --entrance: focus-in; }
  [data-entrance="drop-in"] { --entrance: drop-in; }
  [data-entrance="expand-out"] { --entrance: expand-out; }
  [data-entrance="slide-right"] { --entrance: slide-right; }
  [data-entrance="lift-pan"] { --entrance: lift-pan; }

  @keyframes slide-rise { from { opacity: .33; transform: translateY(25%) scale(1.1); } }
  @keyframes sweep-right {
    from { clip-path: inset(0 100% 0 0); transform: scale(1.1); }
    to { clip-path: inset(0); transform: none; }
  }
  @keyframes slide-left { from { opacity: .32; transform: translateX(-24%) scale(1.08); } }
  @keyframes zoom-out { from { opacity: .42; transform: scale(1.34); } }
  @keyframes unfold {
    from { clip-path: inset(0 0 100% 0); transform: translateY(-10%); }
    to { clip-path: inset(0); transform: none; }
  }
  @keyframes diagonal { from { opacity: .32; transform: translate(16%, 20%) scale(1.17); } }
  @keyframes sweep-left {
    from { clip-path: inset(0 0 0 100%); transform: scale(1.09); }
    to { clip-path: inset(0); transform: none; }
  }
  @keyframes focus-in { from { opacity: .16; transform: scale(.84); } }
  @keyframes drop-in { from { opacity: .35; transform: translateY(-27%) scale(1.08); } }
  @keyframes expand-out {
    from { clip-path: inset(19% 45% 19% 45% round 12px); transform: scale(1.15); }
    to { clip-path: inset(0); transform: none; }
  }
  @keyframes slide-right { from { opacity: .32; transform: translateX(23%) scale(1.11); } }
  @keyframes lift-pan {
    from { opacity: .28; transform: translate(-14%, 16%) rotate(-4deg) scale(1.17); }
    65% { opacity: 1; }
  }
  @keyframes caption-arrive { from { opacity: .45; transform: translateY(12px); } }
  @keyframes image-arrive {
    from { opacity: .6; transform: translateY(14px) scale(1.055); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
  .contact-tapped { animation: contact-pop 320ms ease-out; }
  @keyframes contact-pop { 50% { scale: 1.1; } }
}

@media (max-width: 1050px) {
  .wrap { width: calc(100% - 48px); }
  .home-nav { gap: 14px; }
  .sign-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-copy h3 { font-size: clamp(1.19rem, 2.5vw, 1.65rem); }
}
@media (max-width: 900px) {
  .home-nav { display: none; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .masthead .wrap { min-height: 66px; gap: 8px; }
  .mast-brand { flex: 1 1 auto; gap: 5px; }
  .home-brand { flex: 1 1 auto; }
  .home-brand img { width: 100%; max-width: 300px; }
  .menu-panel summary { padding-inline: 10px; font-size: .87rem; }
  .showcase-copy { padding-block: 29px 24px; text-align: start; }
  .showcase h1 { margin-block: 8px 12px; }
  .showcase h1 span { font-size: clamp(2rem, 9.8vw, 3.5rem); }
  html[lang="ar"] .showcase h1 span:first-child {
    font-size: clamp(2rem, 16.4vw, 7.8rem);
    margin-block-end: .1em;
  }
  .showcase h1 span + span { font-size: clamp(1.52rem, 7.7vw, 3rem); }
  html[lang="en"] .showcase h1 span + span { font-size: clamp(1.36rem, 6vw, 2.75rem); }
  .showcase-quality { font-size: clamp(1.28rem, 5.7vw, 1.8rem); }
  .showcase-warranty { margin-inline: 0; }
  .showcase-price { font-size: clamp(1.4rem, 7vw, 3.25rem); }
  html[lang="en"] .showcase-price { font-size: clamp(1.65rem, 6.7vw, 2.8rem); }
  .showcase-actions { margin-block-start: 16px; justify-content: flex-start; gap: 8px; }
  .showcase-actions .home-pill { padding-inline: 14px; font-size: .88rem; }
  .catalog { padding-block-start: 38px; }
  .catalog-intro { display: grid; gap: 7px; margin-block-end: 18px; }
  .sign-grid, .utility { gap: 12px; }
  .quote { padding-block: 27px; }
  .quote-panel { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 14px; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .sign-grid, .utility { grid-template-columns: 1fr; }
  .sign-card { min-height: 320px; }
  .card-copy { padding: 12px 16px; }
  .card-copy h3 { font-size: clamp(1.23rem, 5.35vw, 1.52rem); }
  .call-float, .whatsapp-float { width: 48px; height: 48px; }
}
