/* ==========================================================================
   Gamla w As-hal — styles
   Directional spacing uses logical properties (inline-start/end) so the
   same rules work in RTL (Arabic) and LTR (English).
   ========================================================================== */

/* Cairo (SIL Open Font License, see assets/fonts/OFL.txt) — self-hosted
   variable font, one file per script covering weights 400–800. */
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/cairo-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/cairo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/cairo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --red: #C9252B;
  --red-dark: #A71E23;
  --orange: #E66D27;
  --cream: #F6EDE2;
  --cream-soft: #FBF7F1;
  --white: #FFFFFF;
  --ink: #343434;
  --ink-soft: #5A5552;
  --line: #EADCCB;

  --font: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 72px;
  --container: 1180px;
  --gutter: 20px;
  --shadow: 0 8px 24px rgba(52, 52, 52, 0.07);
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

/* Hide content until translations are applied (avoids a flash of keys). */
html:not(.i18n-ready) body { visibility: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

html[lang="ar"] body { line-height: 1.9; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { line-height: 1.3; margin: 0 0 0.5em; font-weight: 800; color: var(--ink); }
html[lang="ar"] :is(h1, h2, h3) { line-height: 1.45; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

a { color: var(--red); }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.02em;
}

.section { padding-block: clamp(64px, 8vw, 104px); }

.section-head {
  max-width: 680px;
  margin: 0 auto clamp(32px, 5vw, 48px);
  text-align: center;
}
.section-lead { color: var(--ink-soft); margin: 0; }

/* Flip directional icons (arrows) in RTL. */
[dir="rtl"] .icon-dir { transform: scaleX(-1); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0.55em 1.35em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { background: var(--white); color: var(--red); border-color: var(--red); }
.btn-outline:hover { background: var(--red); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--orange); color: var(--red); }
.btn-lg { min-height: 52px; padding-inline: 1.7em; font-size: 1.05rem; }
.btn-sm { min-height: 40px; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn.is-disabled,
.btn.is-disabled:hover {
  background: var(--cream);
  color: var(--ink-soft);
  border-color: var(--line);
  cursor: default;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo { height: 48px; width: auto; border-radius: 50%; }
.brand-text { display: none; font-weight: 800; font-size: 1.25rem; color: var(--red); }
/* Text wordmark is only shown if the logo file is missing. */
.brand-logo.is-missing { display: none; }
.brand-logo.is-missing + .brand-text { display: inline; }

.main-nav { margin-inline-start: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }

.nav-link {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.nav-link:hover { color: var(--red); }
.nav-link[aria-current="true"] { color: var(--red); background: var(--cream-soft); }

.has-dropdown { position: relative; display: flex; align-items: center; }
.has-dropdown .nav-link { padding-inline-end: 4px; }

.dropdown-toggle {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.dropdown-toggle:hover { color: var(--red); background: var(--cream-soft); }
.dropdown-toggle svg { transition: transform 0.2s; }
.dropdown-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-start: 0;
  min-width: 240px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.dropdown a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.dropdown a:hover { background: var(--cream-soft); color: var(--red); }
.dropdown li:first-child a { color: var(--red); }

.nav-download { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}
.lang-switch:hover { border-color: var(--orange); color: var(--red); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
}
.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 20px; height: 2px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.menu-icon { position: relative; }
.menu-icon::before,
.menu-icon::after { content: ""; position: absolute; inset-inline-start: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-open .menu-icon { background: transparent; }
.menu-open .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile / tablet navigation */
@media (max-width: 959.98px) {
  .menu-toggle { display: inline-block; }
  .header-actions { margin-inline-start: auto; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    margin: 0;
    padding: 12px var(--gutter) 20px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .menu-open .main-nav { display: block; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { display: block; padding: 12px 14px; border-radius: var(--radius-sm); }
  .has-dropdown { flex-wrap: wrap; }
  .has-dropdown .nav-link { flex: 1; }
  .dropdown-toggle { width: 44px; height: 44px; }
  .dropdown {
    position: static;
    flex-basis: 100%;
    min-width: 0;
    margin-block: 4px 8px;
    padding: 4px;
    border: 0;
    box-shadow: none;
    background: var(--cream-soft);
  }

  .nav-download { display: flex; width: 100%; margin-top: 12px; }
}

@media (max-width: 559.98px) {
  .header-download { display: none; }
  .brand-logo { height: 40px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cream-soft) 0%, var(--white) 100%);
  padding-block: clamp(40px, 7vw, 88px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.hero h1 { margin-bottom: 0.4em; }
.hero-lead { max-width: 58ch; font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 2rem; }

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--orange); color: var(--red); }

/* Hero visual: round logo, orbiting service images, pulses and floating shapes.
   All motion uses transform/opacity only and stops for reduced-motion users. */

.hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: drift 14s ease-in-out infinite alternate;
}
.blob-a {
  width: 460px; height: 460px;
  top: -180px;
  inset-inline-end: -140px;
  background: radial-gradient(circle, rgba(230, 109, 39, 0.2), transparent 70%);
}
.blob-b {
  width: 340px; height: 340px;
  bottom: -160px;
  inset-inline-start: -120px;
  background: radial-gradient(circle, rgba(201, 37, 43, 0.13), transparent 70%);
  animation-duration: 18s;
  animation-direction: alternate-reverse;
}
.blob-c {
  width: 16px; height: 16px;
  top: 16%;
  inset-inline-start: 48%;
  background: var(--orange);
  opacity: 0.45;
  animation: bob 5s ease-in-out infinite;
}

.hero-visual { display: grid; place-items: center; }

.orbit-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 460px);
  aspect-ratio: 1 / 1;
}
.orbit-stage::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: var(--cream);
}

.ring-dashed {
  position: absolute;
  inset: 7%;
  border: 2px dashed rgba(201, 37, 43, 0.3);
  border-radius: 50%;
  animation: spin 60s linear infinite reverse;
}

/* Each item is rotated into place; the icon counter-rotates to stay upright. */
.orbit {
  position: absolute;
  inset: 7%;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: spin 40s linear infinite;
}
.orbit-item { position: absolute; inset: 0; transform: rotate(calc(var(--i) * 45deg)); }
.orbit-icon {
  position: absolute;
  top: 0;
  left: 50%;
  width: 18%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%) rotate(calc(var(--i) * -45deg));
}
.orbit-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  padding: 21%;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--red);
  box-shadow: 0 6px 16px rgba(52, 52, 52, 0.12);
  animation: spin 40s linear infinite reverse;
}
.orbit-item:nth-child(even) .orbit-icon svg { color: var(--orange); }

.pulse {
  position: absolute;
  width: 52%;
  aspect-ratio: 1 / 1;
  border: 2px solid var(--orange);
  border-radius: 50%;
  opacity: 0;
  animation: pulse 4s ease-out infinite;
}
.pulse-late { animation-delay: 2s; }

.spark {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--red);
  animation: bob 4s ease-in-out infinite;
}
.spark-1 { top: 3%; inset-inline-start: 20%; background: var(--orange); }
.spark-2 { top: 22%; inset-inline-end: 0; width: 14px; height: 14px; background: transparent; border: 3px solid var(--red); animation-delay: -1s; }
.spark-3 { bottom: 5%; inset-inline-start: 10%; width: 8px; height: 8px; animation-delay: -2s; }
.spark-4 { bottom: 12%; inset-inline-end: 4%; width: 12px; height: 12px; background: var(--orange); animation-delay: -3s; }

.hero-logo-card {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 52%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 18px 40px rgba(201, 37, 43, 0.22);
  animation: breathe 6s ease-in-out infinite;
}
.hero-logo { width: 100%; height: 100%; object-fit: contain; }
.hero-logo-fallback { display: none; padding: 16px; font-size: clamp(1.4rem, 4vw, 2.4rem); font-weight: 800; color: var(--red); text-align: center; }
.hero-logo.is-missing { display: none; }
.hero-logo.is-missing + .hero-logo-fallback { display: block; }

/* Entrance once the page text is ready. */
.i18n-ready .hero-content > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.i18n-ready .hero-content > :nth-child(2) { animation-delay: 0.08s; }
.i18n-ready .hero-content > :nth-child(3) { animation-delay: 0.16s; }
.i18n-ready .hero-content > :nth-child(4) { animation-delay: 0.24s; }
.i18n-ready .hero-content > :nth-child(5) { animation-delay: 0.32s; }
.i18n-ready .hero-visual { animation: pop 0.9s cubic-bezier(0.2, 0.8, 0.2, 1.1) both; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes breathe { 50% { transform: scale(1.035); } }
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes drift { to { transform: translate(30px, 24px) scale(1.08); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes pop { from { opacity: 0; transform: scale(0.85); } }

@media (max-width: 859.98px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .orbit-stage { width: min(100%, 340px); }
}
@media (max-width: 559.98px) {
  .hero { padding-top: 24px; }
  .orbit-stage { width: min(100%, 270px); }
  .hero-lead { font-size: 1.05rem; }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* ---------- About ---------- */

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}
.about-head { position: sticky; top: calc(var(--header-h) + 32px); }
.accent-bar {
  display: block;
  width: 64px; height: 5px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--red), var(--orange));
}
[dir="rtl"] .accent-bar { background: linear-gradient(-90deg, var(--red), var(--orange)); }

.about-body { max-width: 68ch; font-size: 1.1rem; }
.about-body > p { color: var(--ink); }

.about-callout {
  margin-top: 2rem;
  padding: clamp(20px, 4vw, 32px);
  background: var(--cream);
  border-radius: var(--radius);
  border-inline-start: 5px solid var(--red);
}
.about-callout p { font-weight: 700; margin-bottom: 1.25rem; }

@media (max-width: 767.98px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-head { position: static; }
}

/* ---------- Services ---------- */

.services { background: var(--cream-soft); }

/* Category strip — scrolls sideways; each card links to its detail block. */
.carousel { position: relative; }

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 4 * 16px) / 5.3);
  gap: 16px;
  margin: 0;
  padding: 6px 2px 14px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item { scroll-snap-align: start; }

.cat-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(52, 52, 52, 0.08);
}
.cat-media,
.cat-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cat-media img { object-fit: cover; transition: transform 0.5s ease; }
.cat-media.is-missing img { display: none; }
.cat-card::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(to top, rgba(30, 20, 15, 0.85), transparent);
}
.cat-label {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}
.cat-arrow {
  flex-shrink: 0;
  width: 30px; height: 30px;
  padding: 6px;
  border-radius: 50%;
  background: var(--red);
  transition: transform 0.25s;
}
@media (hover: hover) {
  .cat-card:hover img { transform: scale(1.06); }
  .cat-card:hover .cat-arrow { transform: translateY(3px); }
}

.carousel-btn {
  position: absolute;
  top: calc(50% - 26px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: opacity 0.2s, color 0.2s, border-color 0.2s;
}
.carousel-prev { inset-inline-start: 8px; }
.carousel-next { inset-inline-end: 8px; }
.carousel-btn:hover { color: var(--red); border-color: var(--orange); }
.carousel-btn:disabled { opacity: 0; pointer-events: none; }

@media (max-width: 1023.98px) {
  .carousel-track { grid-auto-columns: calc((100% - 3 * 16px) / 4.2); }
}
@media (max-width: 767.98px) {
  .carousel-btn { display: none; }
  /* Let the strip run edge to edge so the next card peeks in. */
  .carousel-track {
    grid-auto-columns: 40%;
    gap: 12px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
  }
  .cat-label { padding: 10px 12px; font-size: 0.95rem; }
  .cat-arrow { width: 26px; height: 26px; padding: 5px; }
}

/* Service details — stacked; image, description, then the download button. */
.service-details {
  display: grid;
  gap: clamp(16px, 3vw, 24px);
  max-width: 900px;
  margin: clamp(40px, 6vw, 64px) auto 0;
  padding: 0;
  list-style: none;
}
.service-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.service-detail:nth-child(even) .detail-media { order: 2; }
.service-detail:target { animation: spotlight 1.8s ease-out; }

.detail-media { position: relative; min-height: 240px; background: var(--cream); }
.detail-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-media.is-missing img { display: none; }

.detail-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 4vw, 44px);
}
.detail-title { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); margin-bottom: 0.3em; }
.detail-desc { margin-bottom: 1.5rem; font-size: 1.12rem; color: var(--ink-soft); }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: none;
}
.detail-back:hover { color: var(--red); }

@keyframes spotlight {
  0%, 35% { box-shadow: 0 0 0 4px var(--orange); }
  100% { box-shadow: 0 0 0 4px transparent; }
}

@media (max-width: 767.98px) {
  .service-detail { grid-template-columns: 1fr; }
  .service-detail:nth-child(even) .detail-media { order: 0; }
  .detail-media { min-height: 0; aspect-ratio: 16 / 10; }
  .detail-body { padding: 18px 18px 20px; }
  .detail-actions { justify-content: center; }
  .detail-actions .btn { width: 100%; }
}

/* ---------- Download band ---------- */

.download {
  background: var(--red);
  background-image:
    radial-gradient(circle at 100% 0%, rgba(230, 109, 39, 0.55) 0, transparent 45%);
  color: var(--white);
  padding-block: clamp(48px, 7vw, 80px);
}
[dir="rtl"] .download {
  background-image: radial-gradient(circle at 0% 0%, rgba(230, 109, 39, 0.55) 0, transparent 45%);
}
.download-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 40px;
}
.download h2 { color: var(--white); margin-bottom: 0.3em; }
.download p { margin: 0; max-width: 56ch; font-size: 1.1rem; opacity: 0.95; }

.btn-store {
  min-height: 60px;
  padding-inline: 1.6em;
  background: var(--ink);
  color: var(--white);
  font-size: 1.1rem;
  border-radius: 16px;
}
.btn-store:hover { background: #1F1F1F; }
.download :focus-visible { outline-color: var(--white); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #E9E4DE;
  padding-top: clamp(48px, 6vw, 72px);
}
.site-footer a { color: inherit; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand p { max-width: 34ch; margin-top: 16px; opacity: 0.85; }
.brand-footer .brand-logo { height: 56px; }
.brand-footer .brand-text { color: var(--white); }

.footer-title { font-size: 1.1rem; color: var(--white); margin-bottom: 1rem; }
.footer-subtitle { font-size: 1rem; color: var(--white); margin: 1.25rem 0 0.6rem; }
.footer-col p { opacity: 0.85; }

.footer-links,
.channel-list { margin: 0; padding: 0; list-style: none; }
.footer-links li + li { margin-top: 6px; }
.footer-links a { text-decoration: none; opacity: 0.85; }
.footer-links a:hover { opacity: 1; color: var(--orange); }

.channel-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.25rem; }
.channel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
a.channel:hover { border-color: var(--orange); color: var(--orange); }
.channel.is-pending { cursor: default; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 18px;
  font-size: 0.92rem;
  opacity: 0.8;
}
.footer-bottom p { margin: 0; }

@media (max-width: 859.98px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 519.98px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .carousel-track { scroll-behavior: auto; }
}
