:root {
  --motion-fast: 180ms;
  --motion-base: 260ms;
  --motion-slow: 600ms;
  --motion-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --motion-distance: 24px;
  --ui-surface: #151515;
  --ui-surface-raised: #1b1b1b;
  --ui-border: rgba(255, 255, 255, 0.1);
  --ui-border-gold: rgba(212, 175, 55, 0.28);
  --ui-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.mobile-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold, #d4af37);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: border-color var(--motion-fast) ease, background-color var(--motion-fast) ease;
}

.mobile-menu-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform var(--motion-fast) var(--motion-ease), opacity var(--motion-fast) var(--motion-ease);
}

header.menu-open .mobile-menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

header.menu-open .mobile-menu-toggle span:nth-child(2) {
  opacity: 0;
}

header.menu-open .mobile-menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid #66c7ff !important;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 11px 16px;
  border-radius: 8px;
  background: #66c7ff;
  color: #06111a;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(calc(-100% - 24px));
  transition: transform var(--motion-fast) var(--motion-ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.motion-reveal {
  opacity: 0;
  transform: translateY(var(--motion-distance));
}

.motion-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--motion-slow) var(--motion-ease), transform var(--motion-slow) var(--motion-ease);
  transition-delay: var(--reveal-delay, 0ms);
}

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

.cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

section[id] {
  scroll-margin-top: 96px;
}

/* Progressive UI upgrade for the existing homepage. */
.home-page {
  background:
    radial-gradient(circle at 12% 18%, rgba(212, 175, 55, 0.07), transparent 26rem),
    radial-gradient(circle at 88% 56%, rgba(212, 175, 55, 0.05), transparent 32rem),
    #0a0a0a;
}

.home-page > header {
  padding-block: 16px;
  background: rgba(8, 8, 8, 0.7);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.home-page > header.is-scrolled,
.home-page > header.menu-open {
  background: rgba(8, 8, 8, 0.94);
  border-bottom-color: var(--ui-border-gold);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.home-page > header .logo {
  font-size: clamp(1rem, 1.75vw, 1.35rem);
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-decoration: none;
}

.home-page > header .nav-right {
  gap: clamp(18px, 2.5vw, 38px);
}

.home-page > header .nav-links {
  gap: clamp(8px, 1.6vw, 24px);
}

.home-page > header .nav-links a {
  position: relative;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 8px;
  transition: color var(--motion-fast) ease, background-color var(--motion-fast) ease;
}

.home-page > header .nav-links a:hover,
.home-page > header .nav-links a[aria-current="page"] {
  color: #f0ce5a;
  background: rgba(212, 175, 55, 0.09);
}

.home-page > header .nav-links li:last-child a {
  border: 1px solid var(--ui-border-gold);
}

.home-page .hero {
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
  isolation: isolate;
}

.home-page .hero-video {
  opacity: 0.52;
  filter: saturate(0.82) contrast(1.06);
}

.home-page .hero-overlay {
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.52) 0%, rgba(5, 5, 5, 0.36) 42%, rgba(5, 5, 5, 0.92) 100%),
    linear-gradient(115deg, rgba(0, 0, 0, 0.68), transparent 64%);
}

.home-page .hero-content {
  width: min(100%, 980px);
  padding: 140px 24px 110px;
  animation: none;
}

.home-page .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 14px;
  border: 1px solid var(--ui-border-gold);
  border-radius: 999px;
  background: rgba(12, 12, 12, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-weight: 700;
}

.home-page .hero h1 {
  max-width: 900px;
  margin-inline: auto;
  font-size: clamp(3.15rem, 7.5vw, 6.5rem);
  letter-spacing: -0.035em;
  text-wrap: balance;
  text-shadow: 0 10px 42px rgba(0, 0, 0, 0.6);
}

.home-page .hero-content > p:not(.hero-eyebrow) {
  max-width: 760px;
  color: #d0d0d0;
  line-height: 1.7;
  text-wrap: balance;
}

.home-page .hero-content > .hero-eyebrow,
.home-page .hero-content > h1,
.home-page .hero-content > p:not(.hero-eyebrow),
.home-page .hero-content > .cta-buttons {
  animation: home-hero-reveal 700ms var(--motion-ease) both;
}

.home-page .hero-content > h1 {
  animation-delay: 90ms;
}

.home-page .hero-content > p:not(.hero-eyebrow) {
  animation-delay: 170ms;
}

.home-page .hero-content > .cta-buttons {
  animation-delay: 250ms;
}

.home-page .btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 14px 26px;
}

.home-page .btn-primary {
  box-shadow: 0 16px 36px rgba(212, 175, 55, 0.2);
}

.home-page .btn-secondary {
  border-width: 1px;
  background: rgba(8, 8, 8, 0.52);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.home-page .scroll-indicator {
  bottom: 58px;
  z-index: 9;
  opacity: 0.78;
  pointer-events: none;
}

.home-page .trust-strip {
  position: relative;
  z-index: 5;
  width: min(calc(100% - 48px), 1240px);
  margin: -42px auto 0;
  border: 1px solid var(--ui-border-gold);
  border-radius: 18px;
  background: rgba(20, 20, 20, 0.94);
  box-shadow: var(--ui-shadow);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.home-page .trust-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-page .trust-item {
  display: flex;
  min-height: 94px;
  align-items: center;
  justify-content: center;
  padding: 22px;
  color: #ededed;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.home-page .trust-item + .trust-item {
  border-inline-start: 1px solid var(--ui-border);
}

.home-page .services,
.home-page .gallery,
.home-page .about,
.home-page .contact {
  padding-block: clamp(84px, 10vw, 132px);
}

.home-page .services,
.home-page .about {
  width: min(100%, 1400px);
}

.home-page .section-header {
  max-width: 820px;
  margin: 0 auto clamp(46px, 6vw, 70px);
}

.home-page .section-label {
  font-weight: 700;
}

.home-page .section-header h2,
.home-page .about-content h2,
.home-page .contact h2 {
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

.home-page .services-grid {
  gap: 20px;
}

.home-page .service-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border-color: var(--ui-border);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 52%),
    var(--ui-surface);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
  cursor: default;
}

.home-page .service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.72), transparent);
  opacity: 0.5;
}

.home-page .service-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 14px;
  font-size: 30px;
}

.home-page .service-card h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.home-page .service-card p {
  margin-top: auto;
  color: #bcbcbc;
}

@media (hover: hover) {
  .home-page .service-card:hover {
    border-color: rgba(212, 175, 55, 0.52);
    background:
      linear-gradient(145deg, rgba(212, 175, 55, 0.1), transparent 58%),
      var(--ui-surface-raised);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
  }

  .home-page .btn:hover,
  .home-page .contact-btn:hover {
    transform: translateY(-2px);
  }
}

.home-page .gallery {
  border-block: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.08), transparent 30rem),
    linear-gradient(180deg, #0d0d0d, #141414);
}

.home-page .gallery-grid {
  gap: 18px;
}

.home-page .gallery-item {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--ui-border);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
}

.home-page .gallery-overlay {
  align-items: flex-end;
  justify-content: flex-start;
  padding: 28px;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.88));
  opacity: 1;
}

.home-page .gallery-overlay p {
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.home-page .about-content {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  overflow: hidden;
  padding: clamp(36px, 6vw, 72px);
  border: 1px solid var(--ui-border);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(212, 175, 55, 0.12), transparent 24rem),
    var(--ui-surface);
  box-shadow: var(--ui-shadow);
}

.home-page .about-content::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
}

.home-page .about-content p:not(.section-label) {
  max-width: 800px;
  color: #c7c7c7;
}

.home-page .contact {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--ui-border-gold);
  background:
    radial-gradient(circle at 18% 0%, rgba(212, 175, 55, 0.16), transparent 26rem),
    linear-gradient(145deg, #111 0%, #090909 100%);
  color: #fff;
}

.home-page .contact-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1080px);
  margin: 0 auto;
}

.home-page .contact .section-label {
  margin-bottom: 14px;
}

.home-page .contact h2 {
  margin-bottom: 18px;
}

.home-page .contact > p,
.home-page .contact-inner > p:not(.section-label) {
  color: #c8c8c8;
  opacity: 1;
}

.home-page .contact-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 42px 0 24px;
  text-align: left;
}

.home-page .contact-meta-card {
  display: flex;
  min-height: 104px;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 22px 24px;
  border: 1px solid var(--ui-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  line-height: 1.45;
  text-decoration: none;
}

.home-page .contact-meta-label {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-page .contact-buttons {
  gap: 12px;
}

.home-page .contact-btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  color: #f1d266;
}

.home-page .contact-btn:first-child {
  border-color: var(--gold);
  background: var(--gold);
  color: #090909;
}

.home-page footer {
  display: grid;
  gap: 14px;
  padding: 42px 24px;
  border-top-color: var(--ui-border);
  background: #070707;
  line-height: 1.6;
}

.home-page footer p {
  margin: 0;
}

.home-page .footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  color: #a9a9a9;
  font-size: 0.82rem;
}

.home-page .footer-links {
  font-size: 0.78rem;
}

html.lang-ar .home-page .contact-meta {
  text-align: right;
}

@keyframes home-hero-reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mobile-menu-reveal {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  body.menu-open {
    overflow: hidden;
  }

  body > header {
    padding: 12px 18px !important;
  }

  body > header > nav {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center !important;
    gap: 0 14px !important;
    width: 100%;
  }

  body > header .logo {
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    font-size: clamp(0.72rem, 2.4vw, 1rem) !important;
    letter-spacing: 0.02em !important;
    white-space: nowrap;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  body > header .nav-right,
  body > header > nav > .nav-links,
  body > header > nav > .nav-actions,
  body > header > nav > .lang-toggle {
    display: none !important;
    grid-column: 1 / -1;
    width: 100%;
  }

  body > header.menu-open .nav-right,
  body > header.menu-open > nav > .nav-links,
  body > header.menu-open > nav > .nav-actions {
    display: flex !important;
    animation: mobile-menu-reveal var(--motion-base) var(--motion-ease) both;
  }

  body > header.menu-open > nav > .lang-toggle {
    display: inline-flex !important;
    justify-self: stretch;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
  }

  body > header .nav-right {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    padding-top: 16px;
  }

  body > header .nav-links {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 4px !important;
    text-align: left !important;
  }

  body > header .nav-links a {
    display: flex;
    min-height: 46px;
    align-items: center;
    padding: 9px 12px;
    border-radius: 8px;
  }

  body > header .nav-links a:hover,
  body > header .nav-links a[aria-current="page"] {
    background: rgba(212, 175, 55, 0.1);
  }

  body > header .nav-actions {
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding-top: 12px;
  }

  body > header .nav-actions > * {
    min-height: 44px;
    flex: 1;
  }

  html.lang-ar body > header .nav-links {
    text-align: right !important;
  }

  .home-page .hero-content {
    padding-top: 124px;
  }

  .home-page .trust-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .trust-item:nth-child(3) {
    border-inline-start: 0;
  }

  .home-page .trust-item:nth-child(n + 3) {
    border-top: 1px solid var(--ui-border);
  }
}

@media (max-width: 640px) {
  .home-page .hero h1 {
    font-size: clamp(2.7rem, 14vw, 4.4rem);
  }

  .home-page .hero-content {
    padding-inline: 20px;
  }

  .home-page .trust-strip {
    width: min(calc(100% - 32px), 1240px);
    margin-top: -28px;
  }

  .home-page .trust-item {
    min-height: 82px;
    padding: 16px 12px;
    font-size: 0.8rem;
  }

  .home-page .services,
  .home-page .gallery,
  .home-page .about,
  .home-page .contact {
    padding-inline: 20px;
  }

  .home-page .service-card {
    min-height: 0;
    padding: 26px;
  }

  .home-page .gallery-overlay {
    padding: 20px;
  }

  .home-page .contact-meta {
    grid-template-columns: 1fr;
  }

  .home-page .contact-btn {
    width: 100%;
  }

  .home-page .footer-contact {
    flex-direction: column;
    align-items: center;
  }

  .home-page .footer-contact > span[aria-hidden="true"] {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .motion-reveal,
  .motion-reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition-delay: 0ms !important;
  }

  .home-page .hero-content > * {
    animation: none !important;
  }
}
