/* =====================================================================
   VICE SHOP — styles
   All brand colors live in :root — change them there.
   Layout uses logical properties so Arabic (RTL) mirrors automatically.
   ===================================================================== */

/* ---------- fonts (self-hosted, no third-party requests) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Cairo";
  src: url("assets/fonts/cairo-arabic.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}

:root {
  /* brand */
  --navy: #0F1B3D;
  --navy-700: #1A2A57;
  --sky: #8FD0F5;
  --sky-50: #EEF8FE;
  --orange: #FF7A1A;

  /* neutrals */
  --bg: #FFFFFF;
  --bg-soft: #F6F7FA;
  --surface: #FFFFFF;
  --border: #E3E7EF;
  --border-strong: #C9D0DD;
  --text: #1F2A44;
  --text-muted: #556079;
  --disabled-bg: #E6E9F0;
  --disabled-text: #6B7487;

  /* type */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Archivo", var(--font-sans);
  --font-arabic: "Cairo", "Noto Sans Arabic", "Segoe UI", Tahoma, "Geeza Pro", sans-serif;

  /* layout */
  --container: 1180px;
  --gutter: 16px;
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 68px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 61, .06);
  --shadow-md: 0 10px 30px -12px rgba(15, 27, 61, .22);

  color-scheme: light;
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

html[lang="ar"] body { font-family: var(--font-arabic); }

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5em;
  text-wrap: balance;
}
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-family: var(--font-arabic); line-height: 1.35; }

h1 { font-size: clamp(2rem, 6.4vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.25rem); font-weight: 800; letter-spacing: -.015em; }
h3 { font-size: 1.125rem; font-weight: 700; }

p { margin: 0 0 1em; }

a { color: var(--navy); text-underline-offset: .18em; }

button, input, select { font: inherit; color: inherit; }

/* visible focus: orange ring with a navy inner edge (≥3:1 on any background) */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--navy);
}
:focus:not(:focus-visible) { outline: none; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

@media (min-width: 768px) {
  :root { --gutter: 28px; }
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -100px;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 48px;
  padding: .7em 1.35em;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn .icon { flex: none; }

.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-700); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; }

/* ---------- top info bar ---------- */
.topbar {
  background: var(--navy);
  color: #fff;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .01em;
  text-align: center;
}
.topbar p { margin: 0; padding-block: 8px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-block-end: 1px solid var(--border);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(10px); }
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: .04em;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 6px;
}
.logo-mark {
  width: .5em;
  height: .5em;
  background: var(--orange);
  flex: none;
  transform: translateY(-.32em);
}

.main-nav { margin-inline-start: auto; }
.main-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 12px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--navy); }

.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-inline-start: auto;
}
@media (min-width: 760px) {
  .main-nav + .lang-switch { margin-inline-start: 8px; }
}
.lang-switch .icon {
  position: absolute;
  inset-inline-start: 12px;
  pointer-events: none;
  color: var(--navy);
}
.lang-switch select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 44px;
  min-width: 92px;
  padding-block: 0;
  padding-inline: 38px 32px;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230F1B3D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: border-color .2s ease;
}
[dir="rtl"] .lang-switch select { background-position: left 13px center; }
.lang-switch select:hover { border-color: var(--navy); }

@media (max-width: 759px) {
  .main-nav { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
  border-block-end: 4px solid var(--sky);
}
/* orange corner triangle (small accent) */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  width: 56px;
  height: 56px;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
[dir="rtl"] .hero::before { clip-path: polygon(0 0, 100% 0, 0 100%); }

.hero-inner {
  display: grid;
  gap: 40px;
  align-items: center;
  padding-block: 56px 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
html[lang="ar"] .eyebrow { letter-spacing: 0; }
.eyebrow::before {
  content: "";
  width: 18px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
}

.hero-text {
  max-width: 38em;
  font-size: 1.0625rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-art { display: none; }

@media (min-width: 760px) {
  .hero::before { width: 88px; height: 88px; }
  .hero-inner {
    grid-template-columns: 1.15fr .85fr;
    gap: 56px;
    padding-block: 88px 96px;
  }
  .hero-art {
    display: block;
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 440px;
    width: 100%;
    margin-inline-start: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow-md);
  }
  .hero-art svg { width: 100%; height: 100%; }
  .hero-art .badge {
    position: absolute;
    top: 20px;
    inset-inline-start: 20px;
  }
}

/* ---------- sections ---------- */
.section { padding-block: 64px; }
.section-soft { background: var(--bg-soft); }

@media (min-width: 768px) {
  .section { padding-block: 88px; }
}

.section-head { max-width: 46em; margin-bottom: 28px; }
.section-head p { color: var(--text-muted); margin-bottom: 0; }

/* ---------- filters ---------- */
.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  margin-inline: calc(-1 * var(--gutter));
  padding: 6px var(--gutter) 10px;
}
.filter-btn {
  flex: none;
  scroll-snap-align: start;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.filter-btn:hover { border-color: var(--navy); }
.filter-btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

@media (min-width: 760px) {
  .filters { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
}

.product-count {
  margin: 8px 0 20px;
  font-size: .875rem;
  color: var(--text-muted);
}

/* ---------- product grid & cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 20px;
}
@media (min-width: 1100px) {
  .product-grid { gap: 24px; }
}

.product-empty {
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-soft);
  border-radius: var(--radius);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: calc(var(--header-h) + 16px);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card[hidden] { display: none; }
.card:focus { outline: none; }
@media (hover: hover) {
  .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
}

.card.is-highlighted {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(255, 122, 26, .18), var(--shadow-md);
  animation: highlight 1.2s ease 2;
}
@keyframes highlight {
  0%, 100% { box-shadow: 0 0 0 6px rgba(255, 122, 26, .18), var(--shadow-md); }
  50% { box-shadow: 0 0 0 14px rgba(255, 122, 26, .05), var(--shadow-md); }
}

.card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--sky-50);
  border-start-start-radius: calc(var(--radius) - 1px);
  border-start-end-radius: calc(var(--radius) - 1px);
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .35s ease, transform .5s ease;
}
.card-img.is-loaded { opacity: 1; }
@media (hover: hover) {
  .card:hover .card-img { transform: scale(1.03); }
}
.is-soldout .card-media > :first-child { filter: grayscale(1); opacity: .55; }

/* image placeholder (missing or broken image) */
.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 42%, #fff 0, #fff 34%, transparent 35%),
    var(--sky-50);
}
.placeholder svg {
  width: 46%;
  height: auto;
  fill: #fff;
  stroke: var(--navy);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.placeholder .ph-accent { fill: none; stroke: var(--sky); stroke-width: 4; }
.placeholder-name {
  max-width: 90%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .875rem;
  line-height: 1.3;
  color: var(--navy);
  overflow-wrap: anywhere;
}
html[lang="ar"] .placeholder-name { font-family: var(--font-arabic); }

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.4;
}
html[lang="ar"] .badge { letter-spacing: 0; }
.card-media .badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
}
.badge-new { background: var(--orange); color: var(--navy); }
.badge-soldout { background: var(--navy); color: #fff; }

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 18px 20px;
}
.card-cat {
  margin: 0 0 4px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
html[lang="ar"] .card-cat { letter-spacing: 0; }
.card-title { margin: 0 0 6px; overflow-wrap: anywhere; }
.card-price {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
}
.card-desc {
  margin: 0 0 16px;
  font-size: .9375rem;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.variants {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.variants legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: .875rem;
  font-weight: 700;
  color: var(--navy);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding-inline: 12px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  font-weight: 700;
  font-size: .9375rem;
  color: var(--navy);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.chip:hover span { border-color: var(--navy); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip input:focus-visible + span {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--navy);
}
.variants:disabled .chip span { background: var(--bg-soft); color: var(--disabled-text); border-color: var(--border); }
.variants:disabled .chip input { cursor: not-allowed; }

.card-actions { margin-top: auto; }

.btn-order {
  width: 100%;
  padding-inline: .8em;
  font-size: .9375rem;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
}
.btn-order:hover { background: var(--navy-700); }
.btn-order[aria-disabled="true"],
.btn-order:disabled {
  background: var(--disabled-bg);
  color: var(--disabled-text);
  cursor: not-allowed;
}
.btn-order:disabled { font-weight: 800; letter-spacing: .02em; }

.order-hint {
  margin: 8px 0 0;
  font-size: .8125rem;
  color: var(--text-muted);
  text-align: center;
}
.order-hint.is-alert { color: var(--navy); font-weight: 700; animation: nudge .4s ease; }
@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ---------- custom photo section ---------- */
.photo-card {
  display: grid;
  gap: 32px;
  align-items: center;
  padding: 28px 20px;
  background: var(--sky-50);
  border: 1px solid #D6EDFA;
  border-radius: 24px;
}
.photo-art {
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
}
.photo-content p { color: var(--text-muted); }
.steps {
  display: grid;
  gap: 12px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--navy);
}
.steps li::before {
  content: counter(step);
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: .875rem;
  font-weight: 800;
}
.photo-tip { font-size: .875rem; }

@media (min-width: 760px) {
  .photo-card { grid-template-columns: .8fr 1.2fr; padding: 48px; gap: 48px; }
  .photo-art { max-width: 340px; }
}

/* ---------- benefits ---------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.benefit {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.benefit-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--sky-50);
  color: var(--navy);
}
.benefit-icon svg { width: 24px; height: 24px; }
.benefit h3 { margin-bottom: 6px; }
.benefit p { margin: 0; color: var(--text-muted); font-size: .9375rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; }
.faq-item {
  border-block-end: 1px solid var(--border);
}
.faq-item:first-child { border-block-start: 1px solid var(--border); }
.faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 60px;
  padding-block: 16px;
  padding-inline: 0 44px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  border-radius: 6px;
}
html[lang="ar"] .faq-item summary { font-family: var(--font-arabic); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  inset-inline-end: 8px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background:
    linear-gradient(var(--navy), var(--navy)) center / 10px 2px no-repeat,
    linear-gradient(var(--navy), var(--navy)) center / 2px 10px no-repeat,
    var(--sky-50);
  transition: transform .2s ease;
}
.faq-item[open] summary::after {
  background:
    linear-gradient(var(--navy), var(--navy)) center / 10px 2px no-repeat,
    var(--sky);
  transform: rotate(180deg);
}
.faq-item p {
  margin: 0;
  padding-block-end: 20px;
  padding-inline-end: 44px;
  color: var(--text-muted);
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy);
  color: #D5DBEA;
  border-block-start: 4px solid var(--sky);
  padding-block: 48px calc(96px + env(safe-area-inset-bottom));
  font-size: .9375rem;
}
@media (min-width: 768px) {
  .site-footer { padding-block-end: 40px; }
}
.footer-grid {
  display: grid;
  gap: 28px;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer .logo { color: #fff; margin-bottom: 12px; }
.site-footer p { margin: 0; max-width: 32em; }
.footer-title {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sky);
}
html[lang="ar"] .footer-title { font-family: var(--font-arabic); letter-spacing: 0; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: #fff;
  text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; }
.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(143, 208, 245, .25);
  font-size: .8125rem;
  color: #AEB7CC;
}

/* ---------- floating WhatsApp button ---------- */
.fab {
  position: fixed;
  z-index: 60;
  bottom: calc(16px + env(safe-area-inset-bottom));
  right: calc(16px + env(safe-area-inset-right));
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(143, 208, 245, .9), 0 12px 28px -8px rgba(15, 27, 61, .55);
  transition: transform .2s ease, background-color .2s ease;
}
[dir="rtl"] .fab {
  right: auto;
  left: calc(16px + env(safe-area-inset-left));
}
.fab .icon { width: 28px; height: 28px; }
.fab:hover { transform: translateY(-2px) scale(1.04); background: var(--navy-700); }
.fab:focus-visible { box-shadow: 0 0 0 2px var(--navy); }

/* ---------- simple pages (legal, 404) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
  border-block-end: 4px solid var(--sky);
}
.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  width: 48px;
  height: 48px;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
[dir="rtl"] .page-hero::before { clip-path: polygon(0 0, 100% 0, 0 100%); }
.page-hero .container { padding-block: 48px 40px; }
.page-hero h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 0; }

.legal {
  max-width: 760px;
  padding-block: 40px 72px;
}
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-inline-start: 1.2em; }
.legal-note {
  display: inline-block;
  margin-bottom: 28px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--sky-50);
  font-size: .875rem;
  color: var(--navy);
}
.ph {
  padding: 0 .3em;
  border-radius: 4px;
  background: #FFF1E6;
  border: 1px dashed var(--orange);
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
}

.notfound {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding-block: 72px 96px;
}
.notfound-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 18vw, 7rem);
  font-weight: 900;
  line-height: 1;
  color: var(--navy);
  margin: 0;
}
.notfound-code span { color: var(--orange); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover, .btn:hover, .fab:hover, .card:hover .card-img { transform: none; }
}
