@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&display=swap");

:root {
  --bg: #0a0a0a;
  --surface: #121212;
  --surface-2: #1a1a1a;
  --gold: #c8922e;
  --gold-soft: #c8922e;
  --gold-brand: #c5a059;
  --text: #f5f5f5;
  --muted: #c4c4c4;
  --line: #2b2b2b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Default UA background is white — shows behind Safari toolbar / rubber-band scroll */
  background-color: var(--bg);
}

body {
  margin: 0;
  font-family: "Cairo", sans-serif;
  background: radial-gradient(circle at top left, #181818 0%, var(--bg) 55%);
  color: var(--text);
  line-height: 1.8;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  opacity: 1;
  transition: opacity 0.28s ease, transform 0.28s ease;
  cursor: default;
}

/* Arrow cursor over copy (no I-beam); interactive controls keep sensible cursors */
body * {
  cursor: default;
}

body a,
body button,
body select,
body summary,
body .btn,
body .menu-btn,
body [role="button"],
body input[type="submit"],
body input[type="button"],
body input[type="checkbox"],
body input[type="radio"],
body label,
body .footer-social-link,
body .contact-channel-cta,
body .team-more-btn {
  cursor: pointer;
}

body textarea,
body input[type="text"],
body input[type="email"],
body input[type="tel"],
body input[type="search"],
body input[type="url"],
body input[type="password"],
body input:not([type]),
body input[type="number"] {
  cursor: text;
}

body input[type="file"] {
  cursor: pointer;
}

.leaflet-grab {
  cursor: grab;
}

.leaflet-dragging .leaflet-grab {
  cursor: grabbing;
}

main {
  flex: 1;
}

body.page-enter {
  opacity: 0;
  transform: translateY(8px);
}

body.page-exit {
  opacity: 0;
  transform: translateY(-8px);
}

.container {
  width: min(1320px, 92%);
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section + .section {
  position: relative;
}

.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(980px, 88%);
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(212, 175, 55, 0),
    rgba(212, 175, 55, 0.9),
    rgba(212, 175, 55, 0)
  );
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(10, 10, 10, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--gold-soft);
  font-weight: 700;
}

.brand img {
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.brand-logo-full {
  width: min(280px, 42vw);
  height: auto;
  max-height: 58px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.brand-mark {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.brand-slogan {
  width: auto;
  height: 40px;
  max-width: min(240px, 36vw);
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.brand-lockup-mobile {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.1vw, 1rem);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: clamp(0.82rem, 0.7vw + 0.5rem, 0.95rem);
  transition: color 0.25s ease;
}

.main-nav a:hover {
  color: var(--gold-soft);
}

.main-nav a.active {
  color: var(--gold-soft);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.2rem;
}

.main-nav .btn-nav {
  color: #ffffff;
}

.main-nav .btn-nav:hover,
.main-nav .btn-nav.active {
  color: #ffffff;
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--gold-brand);
  padding: 0.45rem;
  border-radius: 0;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 0;
}

.menu-btn-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 1.125rem;
}

.menu-btn-bars span {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: var(--gold-brand);
}

.menu-btn:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
}

.nav-backdrop {
  display: none;
}

@media (min-width: 761px) {
  .nav-backdrop {
    display: none !important;
    pointer-events: none !important;
  }
}

.btn {
  display: inline-block;
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, #a6862c, var(--gold));
  color: #111;
  font-weight: 700;
  padding: 0.7rem 1.2rem;
  border-radius: 0.7rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.22);
}

.btn-outline {
  background: transparent;
  color: var(--gold-soft);
}

.btn-nav {
  padding: clamp(0.4rem, 0.55vw, 0.55rem) clamp(0.7rem, 1vw, 0.9rem);
  font-size: clamp(0.8rem, 0.55vw + 0.45rem, 0.9rem);
}

.hero {
  min-height: calc(100svh - 78px);
  min-height: calc(100dvh - 78px);
  display: grid;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 34%, rgba(212, 175, 55, 0.09), transparent 42%),
    radial-gradient(circle at 18% 72%, rgba(212, 175, 55, 0.06), transparent 38%),
    repeating-linear-gradient(
      -28deg,
      rgba(200, 146, 46, 0.028) 0,
      rgba(200, 146, 46, 0.028) 1px,
      transparent 1px,
      transparent 14px
    );
  pointer-events: none;
}

.hero::after {
  content: "⚖";
  position: absolute;
  left: 8%;
  top: 50%;
  transform: translateY(-52%);
  font-size: clamp(8rem, 18vw, 16rem);
  color: rgba(200, 146, 46, 0.065);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
  align-items: center;
}

.eyebrow {
  color: var(--gold-soft);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.4;
}

h1 {
  font-size: clamp(1.9rem, 3vw, 3rem);
  margin-bottom: 1rem;
}

.lead {
  color: var(--muted);
  max-width: 60ch;
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.hero-card {
  background: linear-gradient(180deg, var(--surface) 0%, #0f0f0f 100%);
  border: 1px solid #2f2a1b;
  border-radius: 1rem;
  padding: 1.4rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hero-card h3 {
  color: var(--gold-soft);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-scroll-cue {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  color: rgba(200, 146, 46, 0.85);
  font-size: 0.95rem;
  pointer-events: none;
}

.hero-scroll-arrow {
  font-size: 1.1rem;
  animation: cueBounce 1.8s ease-in-out infinite;
}

.section-head {
  margin-bottom: 1.6rem;
  text-align: center;
}

.section-head h2 {
  color: #c8922e;
  margin-bottom: 0.35rem;
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.2px;
}

.section-head p {
  color: var(--muted);
  margin-inline: auto;
  max-width: 72ch;
}

.contact-layout {
  display: grid;
  gap: 1.75rem;
  margin-top: 1rem;
}

.contact-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.contact-detail-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.15rem 1.25rem;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.015),
    0 10px 24px rgba(0, 0, 0, 0.22);
}

.contact-detail-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  color: var(--gold-soft);
}

.contact-detail-card ul {
  margin: 0;
  padding-right: 1.15rem;
  display: grid;
  gap: 0.55rem;
  color: var(--muted);
  line-height: 1.65;
}

.contact-detail-card a {
  color: var(--gold-soft);
  text-decoration: none;
}

.contact-detail-card a:hover {
  text-decoration: underline;
}

.contact-locations-card .contact-location-entry + .contact-location-entry {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.contact-locations-card .contact-location-entry h3 {
  margin-bottom: 0.4rem;
}

.contact-location-address {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.work-hours-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.work-hours-list li {
  display: grid;
  grid-template-columns: minmax(88px, auto) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.work-hours-day {
  color: var(--ink);
  font-weight: 700;
}

.work-hours-slot {
  color: var(--muted);
  text-align: right;
}

.work-hours-closed {
  color: var(--gold-soft);
  font-weight: 700;
  text-align: right;
}

.contact-channel-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem 1.15rem 1.15rem;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.015),
    0 10px 24px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  min-height: 0;
}

.contact-channel-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #a6862c, var(--gold));
  color: #141414;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 4px 14px rgba(0, 0, 0, 0.28);
  flex-shrink: 0;
}

.contact-channel-icon {
  width: 26px;
  height: 26px;
}

.contact-channel-icon--whatsapp {
  width: 28px;
  height: 28px;
}

.contact-channel-value {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--gold-soft);
  line-height: 1.45;
  word-break: break-word;
}

.contact-channel-value--email {
  font-size: 1.06rem;
  font-weight: 600;
}

.contact-channel-cta {
  margin-top: auto;
  width: 100%;
  display: block;
  padding: 0.58rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  color: var(--gold-soft);
  border: 1px solid var(--gold);
  border-radius: 0.65rem;
  background: transparent;
  transition:
    background 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
  -webkit-tap-highlight-color: rgba(212, 175, 55, 0.15);
}

.contact-channel-cta:hover {
  background: rgba(212, 175, 55, 0.1);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.14);
  transform: translateY(-1px);
}

.contact-map-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.015),
    0 10px 24px rgba(0, 0, 0, 0.22);
}

.contact-map-head {
  padding: 0.95rem 1.15rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-map-head h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: var(--gold-soft);
}

.contact-map-head p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.contact-map-head code {
  font-size: 0.84em;
  color: var(--gold-soft);
}

#contact-map {
  height: min(380px, 52vh);
  min-height: 240px;
  width: 100%;
  background: #0f0f0f;
}

.contact-map-card .leaflet-container {
  font-family: inherit;
}

.contact-map-card .leaflet-control-attribution {
  font-size: 0.65rem;
  background: rgba(17, 17, 17, 0.92) !important;
  color: #888 !important;
}

.contact-map-card .leaflet-control-attribution a {
  color: var(--gold-soft);
}

.mission-head {
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}

.mission-head .lead {
  margin: 0 auto;
}

.cards,
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card,
.team-card,
.partner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 1rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card h3 {
  margin: 0 0 0.55rem;
  color: var(--gold-soft);
  font-size: 1.08rem;
  line-height: 1.45;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.card .update-date {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(200, 146, 46, 0.9);
}

.cards:has(> .update-card:only-child) {
  grid-template-columns: minmax(0, min(100%, 38rem));
}

.update-card {
  padding: 0;
  overflow: hidden;
}

.update-card-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.update-card-body {
  padding: 1rem;
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.service-list {
  display: grid;
  gap: 1rem;
}

.service-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(230px, 30%);
  gap: 1rem;
  align-items: stretch;
  background: #121212;
  border: 1px solid #2a2a2a;
  border-radius: 1.05rem;
  padding: 1.15rem;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.015),
    0 10px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0), rgba(212, 175, 55, 0.85), rgba(212, 175, 55, 0));
}

.service-content h3 {
  color: var(--gold-soft);
  margin-bottom: 0.6rem;
}

.service-content ul {
  margin: 0;
  padding-right: 1.2rem;
  color: var(--muted);
  display: grid;
  gap: 0.75rem;
  line-height: 1.95;
}

.service-image {
  width: 100%;
  height: 100%;
  min-height: 210px;
  border-radius: 0.8rem;
  object-fit: cover;
  border: 1px solid #2e2e2e;
}

.card:hover,
.team-card:hover,
.partner:hover {
  transform: translateY(-4px);
  border-color: #6e5d25;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
}

.partner {
  text-align: center;
  padding: 1.4rem;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #121212;
  border: 1px solid #2a2a2a;
  border-radius: 1.05rem;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.015),
    0 10px 24px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
}

.partner::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0), rgba(212, 175, 55, 0.85), rgba(212, 175, 55, 0));
}

.partner h3 {
  margin: 0.85rem 0 0.35rem;
  color: var(--gold-soft);
  font-size: 1.15rem;
}

.partner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.partner-logo {
  width: 100%;
  max-width: 220px;
  height: 120px;
  object-fit: contain;
  background: #0f0f0f;
  border: 1px solid #2e2e2e;
  border-radius: 0.6rem;
  padding: 0.7rem;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #8f7325, #d4af37);
  color: #121212;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.team-list {
  display: grid;
  gap: 1rem;
}

.team-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.team-brief-card {
  background: #121212;
  border: 1px solid #2a2a2a;
  border-radius: 1.05rem;
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.015),
    0 10px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.team-brief-card h3 {
  margin: 0.2rem 0 0;
  color: var(--gold-soft);
  font-size: 1.08rem;
}

.team-brief-card p {
  margin: 0;
  color: var(--muted);
  min-height: 2.8rem;
}

.team-more-btn {
  margin-top: auto;
  background: transparent;
  color: var(--gold-soft);
  border: 1px solid var(--gold);
}

@media (hover: hover) and (pointer: fine) {
  .team-brief-card:hover {
    transform: translateY(-5px);
    border-color: #7f6a2b;
  }

  .team-more-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.15);
  }

  .service-card:hover {
    transform: translateY(-5px);
    border-color: #7f6a2b;
    background: #151515;
    box-shadow:
      inset 0 0 0 1px rgba(212, 175, 55, 0.12),
      0 14px 30px rgba(0, 0, 0, 0.35);
  }
}

@media (max-width: 1024px) {
  .team-brief-card {
    -webkit-tap-highlight-color: transparent;
  }

  .service-card {
    -webkit-tap-highlight-color: transparent;
  }
}

.team-member-detail {
  background: #121212;
  border: 1px solid #2a2a2a;
  border-radius: 1.05rem;
  padding: 1.2rem;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.015),
    0 10px 24px rgba(0, 0, 0, 0.28);
}

.team-member-detail-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.team-member-detail-head h2 {
  margin-bottom: 0.2rem;
}

.team-member-detail-head p {
  margin: 0;
  color: var(--gold-soft);
}

.team-member-detail-body ul {
  margin: 0 0 1rem;
  padding-right: 1.2rem;
  display: grid;
  gap: 0.6rem;
  color: var(--muted);
}

.team-member-detail .team-member-reveal {
  opacity: 0;
  transform: translateY(1.1rem);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--team-reveal-delay, 0s);
}

.team-member-detail.team-member-detail--ready .team-member-reveal {
  opacity: 1;
  transform: translateY(0);
}

.team-member-detail-body li,
.team-member-detail-body > p {
  opacity: 0;
  transform: translateY(0.65rem);
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--team-item-delay, 0s);
}

.team-member-detail.team-member-detail--ready .team-member-detail-body li,
.team-member-detail.team-member-detail--ready .team-member-detail-body > p {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .team-member-detail .team-member-reveal,
  .team-member-detail-body li,
  .team-member-detail-body > p {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.team-member {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 24%);
  gap: 1rem;
  align-items: stretch;
  background: #121212;
  border: 1px solid #2a2a2a;
  border-radius: 1.05rem;
  padding: 1.15rem;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.015),
    0 10px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  position: relative;
  overflow: hidden;
}

.team-member::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0), rgba(212, 175, 55, 0.85), rgba(212, 175, 55, 0));
}

.team-member:hover {
  transform: translateY(-5px);
  border-color: #7f6a2b;
  box-shadow:
    inset 0 0 0 1px rgba(212, 175, 55, 0.12),
    0 14px 30px rgba(0, 0, 0, 0.35);
}

.team-member-content h3 {
  margin-bottom: 0.6rem;
  color: var(--gold-soft);
}

.team-member-content ul {
  margin: 0;
  padding-right: 1.2rem;
  color: var(--muted);
  display: grid;
  gap: 0.5rem;
}

.team-photo {
  width: 100%;
  min-height: 210px;
  border-radius: 0.8rem;
  object-fit: cover;
  border: 1px solid #2e2e2e;
  background: #0f0f0f;
}

/* عبد العزيز: التكبير داخل الإطار يظهر على الجوال فقط؛ الشاشات الأعرض كباقي الصور */
@media (min-width: 761px) {
  .team-photo-frame.team-photo-frame--zoom-face {
    display: contents;
  }

  .team-photo-frame--zoom-face .team-photo.team-photo--abdulaziz-elgayar {
    transform: none;
    transform-origin: unset;
    width: 100%;
    height: auto;
    min-height: 210px;
    aspect-ratio: unset;
    border: 1px solid #2e2e2e;
    border-radius: 0.8rem;
    background: #0f0f0f;
    object-fit: cover;
    object-position: center top;
    display: block;
  }
}

/* محمد مجدي — جوال: إطار ٤/٥ مثل الباقي. شاشة أعرض: إطار أقل ارتفاعًا لمطابقة بطاقات مثل مى؛ قص أسفل الصورة (اليدين/الحجرة) */
.team-photo-frame.team-photo-frame--magdy-face {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 0.8rem;
  border: 1px solid #2e2e2e;
  background: #0f0f0f;
}

@media (min-width: 761px) {
  .team-photo-frame.team-photo-frame--magdy-face {
    /* أقصر من ٤/٥ لمطابقة ارتفاع صور مثل مى في الشبكة متعددة الأعمدة */
    aspect-ratio: 4 / 4.08;
  }
}

.team-photo-frame--magdy-face .team-photo.team-photo--mohamed-magdy {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: unset;
  border: none;
  border-radius: 0;
  display: block;
  object-fit: cover;
  /* نسبة أكبر = نقطة أدنى في الملف تُثبت في الإطار → يقل الفراغ فوق الرأس */
  object-position: center 64%;
  transform: scale(1.54);
  transform-origin: center 62%;
}

/* نصار متولي — صورة طويلة (نصف جسم): إطار مثل باقي البطاقات + تركيز على الوجه */
.team-photo-frame.team-photo-frame--nassar-face {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 0.8rem;
  border: 1px solid #2e2e2e;
  background: #0f0f0f;
}

@media (min-width: 761px) {
  .team-photo-frame.team-photo-frame--nassar-face {
    aspect-ratio: 4 / 4.08;
  }
}

.team-photo-frame--nassar-face .team-photo.team-photo--nassar-metwaly {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: unset;
  border: none;
  border-radius: 0;
  display: block;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.42);
  transform-origin: center 30%;
}

/* محمد شاهين — صورة طويلة (نصف جسم): إطار مثل باقي البطاقات + تركيز على الوجه */
.team-photo-frame.team-photo-frame--shahin-face {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 0.8rem;
  border: 1px solid #2e2e2e;
  background: #0f0f0f;
}

@media (min-width: 761px) {
  .team-photo-frame.team-photo-frame--shahin-face {
    aspect-ratio: 4 / 4.08;
  }
}

.team-photo-frame--shahin-face .team-photo.team-photo--mohamed-shaheen {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: unset;
  border: none;
  border-radius: 0;
  display: block;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.42);
  transform-origin: center 30%;
}

.team-photo-frame.team-photo-frame--mai-face {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 0.8rem;
  border: 1px solid #2e2e2e;
  background: #0f0f0f;
}

@media (min-width: 761px) {
  .team-photo-frame.team-photo-frame--mai-face {
    aspect-ratio: 4 / 4.08;
  }
}

.team-photo-frame--mai-face .team-photo.team-photo--mai-hanafy {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: unset;
  border: none;
  border-radius: 0;
  display: block;
  object-fit: cover;
  object-position: center 32%;
  transform: scale(1.44);
  transform-origin: center 32%;
}

/* حبيبه — صورة طويلة: إطار مثل باقي البطاقات + تركيز على الوجه */
.team-photo-frame.team-photo-frame--habiba-face {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 0.8rem;
  border: 1px solid #2e2e2e;
  background: #0f0f0f;
}

@media (min-width: 761px) {
  .team-photo-frame.team-photo-frame--habiba-face {
    aspect-ratio: 4 / 4.08;
  }
}

.team-photo-frame--habiba-face .team-photo.team-photo--habiba {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: unset;
  border: none;
  border-radius: 0;
  display: block;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.48);
  transform-origin: center 28%;
}

/* ——— مكتبة الصور ——— */
.gallery-section .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1.1rem;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: center;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.gallery-item-media {
  display: flex;
  flex-direction: column;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #101010;
}

.gallery-item-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  flex-shrink: 0;
  background: #0f0f0f;
}

.gallery-item-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.38s ease;
}

/* 20.png — صورة طولية: إظهار الرؤوس داخل إطار ٤/٣ */
.gallery-item-photo img.gallery-photo--library-20 {
  object-position: center 12%;
}

.gallery-item-zoom {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.42);
  color: var(--gold-soft);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-item-zoom svg {
  width: 2.85rem;
  height: 2.85rem;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.55));
}

@media (hover: hover) and (pointer: fine) {
  .gallery-item:hover .gallery-item-zoom {
    opacity: 1;
  }

  .gallery-item:hover .gallery-item-photo img {
    transform: scale(1.045);
  }
}

/* مخفي على الشاشات الواسعة — النص يُعرض في المعاينة فقط */
.gallery-item-caption {
  display: none;
}

@media (max-width: 760px) {
  .gallery-section .gallery-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1rem;
    padding-inline: 0.15rem;
  }

  .gallery-item {
    width: 100%;
    max-width: min(17.25rem, calc(100vw - 2.25rem));
    cursor: default;
  }

  /* النص أسفل الصورة داخل نفس الإطار ذي الزوايا المدوّرة */
  .gallery-item-caption {
    display: block;
    position: static;
    flex: 0 0 auto;
    padding: 0.62rem 0.72rem 0.72rem;
    font-size: 0.74rem;
    font-weight: 500;
    color: rgba(236, 234, 228, 0.93);
    text-align: start;
    line-height: 1.55;
    background: #151515;
    border-top: 1px solid var(--line);
    pointer-events: none;
    max-height: 10.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  }

  .gallery-item-zoom {
    display: none !important;
  }
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 230;
  display: grid;
  place-items: center;
  padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right))
    max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
}

.gallery-lightbox[hidden] {
  display: none !important;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 6, 0.93);
  cursor: pointer;
}

/* المعاينة: تحريك الصورة بـ transform فقط (بدون تغيير flex/max-width) لتقليل التقطيع */
.gallery-lightbox-stage {
  position: relative;
  z-index: 1;
  direction: ltr;
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(22rem, 34%);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: center;
  width: 100%;
  max-width: min(96vw, 1180px);
  min-height: min(82vh, 840px);
}

.gallery-lightbox-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: min(78vh, 800px);
  overflow: hidden;
  cursor: zoom-in;
}

.gallery-lightbox-zoom-hint {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.52rem 0.95rem;
  border-radius: 2rem;
  background: rgba(14, 14, 14, 0.9);
  border: 1px solid rgba(197, 160, 89, 0.35);
  color: rgba(248, 246, 240, 0.94);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(0.35rem);
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease,
    transform 0.4s ease;
}

.gallery-lightbox-zoom-hint-icon {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.45rem;
  border: 2px solid rgba(200, 146, 46, 0.9);
  border-radius: 0.42rem;
  position: relative;
}

.gallery-lightbox-zoom-hint-icon::before {
  content: "";
  position: absolute;
  top: 0.24rem;
  left: 50%;
  width: 3px;
  height: 5px;
  border-radius: 2px;
  background: var(--gold-brand);
  transform: translateX(-50%);
  animation: gallery-zoom-wheel 1.35s ease-in-out infinite;
}

@keyframes gallery-zoom-wheel {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateX(-50%) translateY(4px);
    opacity: 0.45;
  }
}

.gallery-lightbox.gallery-lightbox--revealed .gallery-lightbox-zoom-hint {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.gallery-lightbox.gallery-lightbox--zoomed .gallery-lightbox-zoom-hint,
.gallery-lightbox.gallery-lightbox--zoom-hint-dismissed .gallery-lightbox-zoom-hint {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(0.35rem);
}

.gallery-lightbox--zoomed .gallery-lightbox-visual {
  cursor: zoom-out;
}

.gallery-lightbox-img {
  position: relative;
  max-width: 100%;
  max-height: min(80vh, 740px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.45rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  transform: translate3d(0, 0, 0) scale(1.14);
  transition: transform 0.78s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-lightbox--gpu .gallery-lightbox-img {
  will-change: transform;
}

.gallery-lightbox.gallery-lightbox--revealed .gallery-lightbox-img {
  transform: translate3d(var(--gallery-pan-x, 0px), var(--gallery-pan-y, 0px), 0) scale(var(--gallery-zoom, 1));
}

.gallery-lightbox.gallery-lightbox--revealed.gallery-lightbox--zoom-interactive .gallery-lightbox-img {
  transition: transform 0.14s ease-out;
}

.gallery-lightbox-caption-wrap {
  box-sizing: border-box;
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: min(78vh, 800px);
  max-height: min(78vh, 800px);
  padding-inline-end: max(0.25rem, env(safe-area-inset-right));
  opacity: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  pointer-events: none;
  transition: opacity 0.55s ease 0.14s;
}

.gallery-lightbox-caption-wrap::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.gallery-lightbox.gallery-lightbox--revealed .gallery-lightbox-caption-wrap {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-lightbox.gallery-lightbox--revealed.gallery-lightbox--zoomed .gallery-lightbox-caption-wrap {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.gallery-lightbox-caption {
  margin: 0;
  padding: 0;
  font-size: clamp(1rem, 1.35vw + 0.85rem, 1.28rem);
  font-weight: 600;
  line-height: 1.75;
  color: rgba(248, 246, 240, 0.94);
  letter-spacing: 0.01em;
}

.gallery-lightbox-close {
  position: absolute;
  top: max(0.65rem, env(safe-area-inset-top));
  inset-inline-end: max(0.65rem, env(safe-area-inset-end));
  z-index: 2;
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.55rem;
  background: rgba(22, 22, 22, 0.92);
  color: var(--text);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.gallery-lightbox-close:hover {
  background: rgba(40, 40, 40, 0.98);
  border-color: rgba(200, 146, 46, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .gallery-lightbox-zoom-hint-icon::before {
    animation: none;
  }

  .gallery-item-photo img,
  .gallery-item-zoom {
    transition: none;
  }

  .gallery-item:hover .gallery-item-photo img {
    transform: none;
  }

  .gallery-lightbox-img,
  .gallery-lightbox-caption-wrap {
    transition: none !important;
  }

  .gallery-lightbox.gallery-lightbox--revealed .gallery-lightbox-img {
    transform: translate3d(var(--gallery-pan-x, 0px), var(--gallery-pan-y, 0px), 0) scale(var(--gallery-zoom, 1));
  }
}

@media (max-width: 760px) {
  .gallery-lightbox-visual {
    cursor: default;
  }

  .gallery-lightbox-zoom-hint {
    display: none;
  }
}

.booking-form {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 4.4rem 1.2rem 1.2rem;
  display: grid;
  gap: 0.9rem;
  position: relative;
  margin-top: 1.2rem;
}

@media (min-width: 761px) {
  .booking-form {
    max-width: 32rem;
    width: 100%;
    margin-inline: auto;
  }
}

/* Booking page — toast (top-right, slide + fade) */
.booking-toast {
  --booking-toast-enter: 0.45s;
  --booking-toast-exit: 0.38s;
  position: fixed;
  z-index: 220;
  top: max(0.85rem, calc(env(safe-area-inset-top, 0px) + 0.45rem));
  right: max(0.85rem, env(safe-area-inset-right, 0px));
  left: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  max-width: min(22rem, calc(100vw - 1.25rem));
  padding: 0.72rem 0.85rem;
  border-radius: 0.75rem;
  background: rgba(22, 22, 22, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: right;
  direction: rtl;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(calc(100% + 1.5rem), 0, 0);
  transition:
    transform var(--booking-toast-enter) cubic-bezier(0.22, 1, 0.36, 1),
    opacity var(--booking-toast-enter) ease;
}

.booking-toast.booking-toast--visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.booking-toast.booking-toast--leaving {
  opacity: 0;
  transform: translate3d(calc(100% + 1.5rem), 0, 0);
  transition:
    transform var(--booking-toast-exit) ease-in,
    opacity var(--booking-toast-exit) ease;
}

.booking-toast--success {
  border-color: rgba(110, 180, 110, 0.45);
}

.booking-toast--error {
  border-color: rgba(200, 90, 90, 0.5);
}

.booking-toast-msg {
  color: #ececec;
  flex: 1;
  min-width: 0;
}

.booking-toast--success .booking-toast-msg {
  color: #b8e4b8;
}

.booking-toast--error .booking-toast-msg {
  color: #f0b0b0;
}

.booking-toast-icon {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  display: grid;
  place-items: center;
  margin-top: 0.06rem;
}

.booking-toast-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.form-top-icon {
  width: 54px;
  height: 54px;
  margin: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: #111;
  color: var(--gold);
  font-size: 1.3rem;
  line-height: 1;
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

label {
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  background: #111;
  color: var(--text);
  border: 1px solid #2e2e2e;
  border-radius: 0.6rem;
  padding: 0.65rem 0.75rem;
  font: inherit;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #8f7325;
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 1.2rem;
  color: #9f9f9f;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1.25rem 1.75rem;
  align-items: start;
  padding-bottom: 1rem;
}

.footer-grid h3 {
  margin-bottom: 0.35rem;
  color: var(--gold-soft);
}

.footer-grid p {
  margin: 0;
}

.footer-links {
  display: grid;
  gap: 0.4rem;
}

.footer-links a {
  text-decoration: none;
  color: #d7d7d7;
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-links a:hover {
  color: var(--gold-soft);
  transform: translateX(-2px);
}

.footer-site-nav {
  display: grid;
  gap: 0.4rem;
}

.footer-site-nav a {
  text-decoration: none;
  color: #d7d7d7;
  font-size: 0.95rem;
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-site-nav a:hover {
  color: var(--gold-soft);
  transform: translateX(-2px);
}

.footer-col-social {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0;
}

@media (min-width: 761px) {
  .footer-col-social {
    padding-top: 1rem;
    margin-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(197, 160, 89, 0.72);
  border-radius: 0.55rem;
  color: var(--gold-brand);
  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.footer-social-link:hover {
  color: var(--gold-soft);
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(200, 146, 46, 0.85);
  transform: translateY(-2px);
}

.footer-social-link svg {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  padding-top: 0.9rem;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .main-nav {
    transition: none !important;
  }

  .nav-backdrop {
    transition: none !important;
  }
}

.float {
  animation: floatSoft 4.8s ease-in-out infinite;
}

@keyframes floatSoft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes cueBounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.8;
  }
  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .cards,
  .partners-grid,
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-card {
    grid-template-columns: 1fr;
  }

  .team-member {
    grid-template-columns: 1fr;
  }

  .team-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-member-detail-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1400px) and (min-width: 761px) {
  .container {
    width: min(1200px, 94%);
  }

  .section {
    padding: 4.5rem 0;
  }
}

@media (max-width: 1200px) and (min-width: 761px) {
  .container {
    width: min(1080px, 94%);
  }

  .service-card {
    grid-template-columns: minmax(0, 1.25fr) minmax(220px, 33%);
  }
}

@media (max-width: 992px) and (min-width: 761px) {
  .hero {
    min-height: calc(100svh - 72px);
    min-height: calc(100dvh - 72px);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.9fr);
  }

  .team-member {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 28%);
  }
}

@media (max-width: 760px) {
  :root {
    --mobile-header-height: 62px;
  }

  body.nav-open {
    overflow: hidden;
  }

  /* Below .site-header (z-index 100) so the menu + bar stay clickable; was 119 and covered them */
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    top: var(--mobile-header-height, 62px);
    z-index: 90;
    background: rgba(0, 0, 0, 0.34);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.38s ease, visibility 0.38s ease;
  }

  .nav-backdrop.nav-backdrop--visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .container {
    width: min(100%, 92%);
  }

  .section {
    padding: 3.2rem 0;
  }

  /* Hero must fill one screen; section utility padding breaks “above the fold” layout */
  section.hero.section {
    padding-top: 0;
    padding-bottom: 0;
  }

  .nav-wrap {
    padding: 0.55rem 0;
  }

  /* English lockup left of shield; strip stays on screen-right via RTL nav-wrap */
  .brand {
    direction: ltr;
    justify-content: flex-end;
    gap: 0.55rem;
    align-items: center;
    min-width: 0;
    flex: 1;
  }

  .brand-lockup-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    direction: ltr;
    text-align: center;
    min-width: 0;
  }

  .brand-lockup-mobile-title {
    font-family: "Cinzel", "Times New Roman", Times, serif;
    font-weight: 700;
    font-size: clamp(0.68rem, 3vw, 0.92rem);
    letter-spacing: 0.06em;
    color: var(--gold-brand);
    line-height: 1.15;
    max-width: min(210px, 62vw);
    text-align: center;
  }

  .brand-lockup-mobile-tag {
    display: block;
    margin-top: 0.12rem;
    font-family: "Cinzel", "Times New Roman", Times, serif;
    font-size: clamp(0.52rem, 2.2vw, 0.68rem);
    font-weight: 600;
    letter-spacing: 0.14em;
    color: rgba(197, 160, 89, 0.88);
    white-space: nowrap;
    text-align: center;
  }

  .brand-mark {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
  }

  .brand-slogan {
    display: none;
  }

  .hero::after {
    left: 50%;
    top: 62%;
    transform: translate(-50%, -50%);
    font-size: clamp(4.8rem, 22vw, 7rem);
    opacity: 0.8;
  }

  .hero-scroll-cue {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    justify-self: center;
    margin-top: 1.35rem;
    padding-bottom: max(0.55rem, env(safe-area-inset-bottom, 0px));
    font-size: 0.86rem;
  }

  /* One viewport below header; scroll cue sits in bottom row so next section stays off-screen */
  .hero {
    --hero-header-offset: 62px;
    min-height: calc(100svh - var(--hero-header-offset));
    min-height: calc(100dvh - var(--hero-header-offset));
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    align-content: stretch;
    padding-top: 0.65rem;
    padding-bottom: 0;
    overflow: hidden;
    box-sizing: border-box;
  }

  .hero > .container.hero-grid {
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
    min-height: 0;
    width: 100%;
    margin-inline: auto;
  }

  .hero .lead:empty {
    display: none;
  }

  .hero .eyebrow {
    margin-bottom: 0.55rem;
  }

  .hero h1 {
    margin-bottom: 0;
  }

  h1 {
    font-size: clamp(1.65rem, 6.8vw, 2.2rem);
  }

  .section-head h2 {
    font-size: clamp(1.55rem, 6vw, 2.25rem);
  }

  .lead {
    font-size: 0.95rem;
    line-height: 1.9;
  }

  .hero-actions {
    margin-top: 1.45rem;
    gap: 0.65rem;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .hero .hero-card {
    margin-top: 1.6rem;
    margin-inline: auto;
    width: calc(100% - 2.75rem);
    max-width: 21.5rem;
    padding: 0.9rem 1rem;
    box-sizing: border-box;
  }

  /* Icon sits main-end (physical left in RTL); inset slightly toward center */
  .menu-btn {
    display: inline-flex;
    padding: 0.42rem;
    margin-inline-end: clamp(0.55rem, 3.5vw, 1rem);
  }

  .main-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    left: max(4vw, env(safe-area-inset-left, 0px));
    right: max(4vw, env(safe-area-inset-right, 0px));
    top: calc(var(--mobile-header-height, 62px) + 6px);
    width: auto;
    max-height: min(78vh, calc(100dvh - var(--mobile-header-height, 62px) - 12px));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(16, 16, 16, 0.98);
    border: 1px solid var(--line);
    border-radius: 0.95rem;
    padding: 0.85rem 0.95rem;
    gap: 0.15rem;
    z-index: 120;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);

    transform: translateY(calc(-100% - 20px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.44s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.32s ease,
      visibility 0.44s;
  }

  .main-nav a {
    font-size: 0.95rem;
    padding: 0.45rem 0.1rem;
    text-align: center;
  }

  .main-nav .btn-nav {
    margin-top: 0.35rem;
    width: 100%;
    text-align: center;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .hero-grid,
  .cards,
  .partners-grid,
  .team-grid,
  .team-cards-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .team-member,
  .team-member-detail,
  .partner {
    padding: 0.9rem;
  }

  .service-card {
    transition: none;
  }

  /* Pen badge was absolute + large desktop padding-top; mobile padding is small → overlap first field */
  .booking-form .form-top-icon {
    position: static;
    transform: none;
    inset: auto;
    justify-self: center;
    width: 44px;
    height: 44px;
    font-size: 1.05rem;
    margin: 0 auto 0.12rem;
  }

  .booking-form {
    max-width: min(100%, 20rem);
    width: 100%;
    margin-inline: auto;
    box-sizing: border-box;
    padding: 0.68rem 0.78rem 0.72rem;
    gap: 0.48rem;
    margin-top: 0.55rem;
  }

  .booking-form .form-row {
    gap: 0.2rem;
  }

  .booking-form label {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.25;
  }

  .booking-form input,
  .booking-form select,
  .booking-form textarea {
    padding: 0.48rem 0.62rem;
    font-size: 0.92rem;
    line-height: 1.35;
    border-radius: 0.52rem;
  }

  .booking-form textarea {
    min-height: 3.85rem;
    line-height: 1.42;
  }

  .booking-form > .btn {
    margin-top: 0.08rem;
    padding: 0.5rem 0.8rem;
    font-size: 0.88rem;
  }

  .contact-layout {
    gap: 1.15rem;
    margin-top: 0.55rem;
  }

  .contact-cards {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .contact-detail-card {
    padding: 0.9rem 1rem;
    border-radius: 0.88rem;
  }

  .contact-detail-card h3 {
    font-size: 0.98rem;
    margin-bottom: 0.5rem;
  }

  .work-hours-list li {
    grid-template-columns: minmax(78px, auto) 1fr;
    gap: 0.55rem;
    font-size: 0.92rem;
  }

  .contact-channel-card {
    padding: 1.05rem 0.95rem 1rem;
    gap: 0.52rem;
  }

  .contact-channel-icon-wrap {
    width: 50px;
    height: 50px;
  }

  .contact-channel-icon {
    width: 22px;
    height: 22px;
  }

  .contact-channel-icon--whatsapp {
    width: 24px;
    height: 24px;
  }

  .contact-channel-value {
    font-size: 0.92rem;
  }

  .contact-channel-value--email {
    font-size: 0.98rem;
  }

  .contact-channel-cta {
    padding: 0.52rem 0.72rem;
    font-size: 0.84rem;
  }

  .contact-map-head {
    padding: 0.78rem 0.88rem 0.52rem;
  }

  #contact-map {
    height: min(300px, 42vh);
    min-height: 220px;
  }

  /* شركاء النجاح — compact cards (page uses .partners-grid only) */
  .partners-grid {
    gap: 0.8rem;
    max-width: 20rem;
    margin-inline: auto;
  }

  .partners-grid .partner {
    min-height: 0;
    padding: 0.72rem 0.8rem;
    border-radius: 0.82rem;
  }

  .partners-grid .partner h3 {
    margin: 0.5rem 0 0.22rem;
    font-size: 0.98rem;
    line-height: 1.32;
  }

  .partners-grid .partner p {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .partners-grid .partner-logo {
    max-width: 148px;
    height: 82px;
    padding: 0.42rem;
    border-radius: 0.45rem;
  }

  /* فريق العمل — بطاقات أصغر على الجوال؛ صور بورتريه (aspect-ratio) */
  .team-cards-grid {
    gap: 0.62rem;
    max-width: min(100%, 17.25rem);
    margin-inline: auto;
  }

  .team-brief-card {
    padding: 0.62rem 0.72rem;
    border-radius: 0.72rem;
    gap: 0.42rem;
  }

  .team-brief-card h3 {
    font-size: 0.86rem;
    line-height: 1.32;
  }

  .team-brief-card p {
    font-size: 0.74rem;
    line-height: 1.4;
    min-height: 0;
  }

  .team-brief-card .team-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    min-height: 0;
    max-height: none;
    height: auto;
    object-fit: cover;
    object-position: center top;
    border-radius: 0.48rem;
  }

  /* عبد العزيز — إطار ٤/٥ + تكبير داخلي (جوال فقط) */
  .team-photo-frame.team-photo-frame--zoom-face {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 0.48rem;
    border: 1px solid #2e2e2e;
    background: #0f0f0f;
  }

  .team-photo-frame--zoom-face .team-photo.team-photo--abdulaziz-elgayar {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: unset;
    border: none;
    border-radius: 0;
    display: block;
    object-fit: cover;
    object-position: center 11%;
    transform: scale(1.52);
    transform-origin: center 11%;
  }

  .team-brief-card .team-photo-frame.team-photo-frame--magdy-face,
  .team-member-detail-head .team-photo-frame.team-photo-frame--magdy-face,
  .team-brief-card .team-photo-frame.team-photo-frame--nassar-face,
  .team-member-detail-head .team-photo-frame.team-photo-frame--nassar-face,
  .team-brief-card .team-photo-frame.team-photo-frame--shahin-face,
  .team-member-detail-head .team-photo-frame.team-photo-frame--shahin-face,
  .team-brief-card .team-photo-frame.team-photo-frame--mai-face,
  .team-member-detail-head .team-photo-frame.team-photo-frame--mai-face,
  .team-brief-card .team-photo-frame.team-photo-frame--habiba-face,
  .team-member-detail-head .team-photo-frame.team-photo-frame--habiba-face {
    border-radius: 0.48rem;
  }

  .team-brief-card .team-more-btn {
    padding: 0.44rem 0.62rem;
    font-size: 0.74rem;
    width: 100%;
    box-sizing: border-box;
  }

  .team-member-detail {
    max-width: min(100%, 17.25rem);
    margin-inline: auto;
    padding: 0.62rem 0.72rem;
    border-radius: 0.72rem;
  }

  .team-member-detail-head {
    gap: 0.42rem;
    margin-bottom: 0.62rem;
    text-align: center;
    justify-items: center;
  }

  .team-member-detail-head .team-photo {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 5;
    min-height: 0;
    max-height: none;
    height: auto;
    object-fit: cover;
    object-position: center top;
    border-radius: 0.48rem;
  }

  .team-member-detail-head h2 {
    font-size: 0.86rem;
    line-height: 1.32;
    margin-bottom: 0.12rem;
  }

  .team-member-detail-head p {
    font-size: 0.74rem;
    line-height: 1.4;
  }

  .team-member-detail-body {
    margin-bottom: 0.45rem;
  }

  .team-member-detail > .btn {
    padding: 0.44rem 0.62rem;
    font-size: 0.74rem;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  .service-content h3 {
    font-size: 1.06rem;
    margin-bottom: 0.5rem;
    line-height: 1.38;
  }

  .service-content ul {
    gap: 0.48rem;
    line-height: 1.72;
    font-size: 0.9rem;
    padding-right: 1.05rem;
  }

  /* الخدمات الأكثر طلبا (paragraph cards). Cards with lists keep sizes above. */
  .service-card:not(:has(ul)) .service-content h3 {
    font-size: 0.97rem;
    margin-bottom: 0.42rem;
    line-height: 1.36;
  }

  .service-content p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.68;
    color: var(--muted);
  }

  .team-member-content ul,
  .team-member-detail-body ul {
    gap: 0.55rem;
    line-height: 1.75;
    font-size: 0.94rem;
  }

  .team-member-detail .team-member-detail-body ul {
    font-size: 0.84rem;
    line-height: 1.62;
    gap: 0.42rem;
    padding-right: 1rem;
  }

  .team-member-detail .team-member-detail-body p {
    font-size: 0.84rem;
    line-height: 1.62;
    margin-bottom: 0.72rem;
  }

  .team-member-detail:has(.team-member-detail-body li:nth-child(8)) .team-member-detail-body {
    max-height: min(52vh, 20rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-inline-end: 0.2rem;
    margin-inline-end: -0.08rem;
  }

  .service-image,
  .team-photo {
    min-height: 180px;
  }

  /* يمنع قاعدة .team-photo العامة من فرض شريط منخفض يقطع الصور داخل بطاقات الفريق */
  .team-brief-card .team-photo,
  .team-member-detail-head .team-photo,
  .team-photo-frame--zoom-face .team-photo.team-photo--abdulaziz-elgayar,
  .team-photo-frame--magdy-face .team-photo.team-photo--mohamed-magdy,
  .team-photo-frame--nassar-face .team-photo.team-photo--nassar-metwaly,
  .team-photo-frame--shahin-face .team-photo.team-photo--mohamed-shaheen,
  .team-photo-frame--mai-face .team-photo.team-photo--mai-hanafy,
  .team-photo-frame--habiba-face .team-photo.team-photo--habiba {
    min-height: 0;
  }

  .site-footer {
    padding: 1.35rem 0 0.85rem;
  }

  .footer-grid {
    gap: 0;
    padding-bottom: 0.25rem;
  }

  .footer-grid .footer-col {
    padding: 1.05rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .footer-grid .footer-col:last-child {
    border-bottom: none;
    padding-bottom: 0.35rem;
  }

  .footer-grid h3 {
    font-size: 1.05rem;
    margin-bottom: 0.45rem;
  }

  .footer-col-contact p {
    max-width: 34ch;
    margin-inline: auto;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #aaa;
  }

  .footer-links {
    justify-items: center;
    gap: 0.45rem;
    max-width: 22rem;
    margin-inline: auto;
  }

  .footer-links a {
    font-size: 0.9rem;
    padding: 0.35rem 0;
    line-height: 1.5;
    max-width: 100%;
    transform: none;
    background: transparent;
    border-radius: 0;
    -webkit-tap-highlight-color: rgba(200, 146, 46, 0.15);
  }

  .footer-links a:hover {
    transform: none;
    color: var(--gold-soft);
    background: transparent;
  }

  .footer-links a:active {
    opacity: 0.88;
  }

  .footer-site-nav {
    justify-items: center;
    gap: 0.42rem;
    max-width: 22rem;
    margin-inline: auto;
  }

  .footer-site-nav a {
    font-size: 0.93rem;
    padding: 0.38rem 0;
    line-height: 1.45;
    background: transparent;
    border: none;
    border-radius: 0;
    min-height: 0;
    display: block;
    transform: none;
    -webkit-tap-highlight-color: rgba(200, 146, 46, 0.15);
  }

  .footer-site-nav a:hover {
    transform: none;
    color: var(--gold-soft);
    background: transparent;
    border: none;
  }

  .footer-site-nav a:active {
    opacity: 0.88;
  }

  .footer-col-social {
    padding-top: 0.65rem;
  }

  .footer-social {
    justify-content: center;
    margin-top: 0;
    gap: 0.85rem;
  }

  .footer-social-link {
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 0.65rem;
    -webkit-tap-highlight-color: rgba(200, 146, 46, 0.2);
  }

  .footer-social-link:hover {
    transform: translateY(-1px);
  }

  .footer-social-link svg {
    width: 1.2rem;
    height: 1.2rem;
  }

  .footer-bottom {
    margin-top: 0.65rem;
    padding-top: 0.85rem;
    padding-inline: 0.5rem;
    font-size: 0.86rem;
    line-height: 1.5;
  }
}

@media (max-width: 760px) and (max-height: 700px) {
  .hero h1 {
    font-size: clamp(1.42rem, 5.2vw, 1.82rem);
  }

  .hero-card p {
    font-size: 0.88rem;
    line-height: 1.62;
  }

  .hero-actions {
    margin-top: 1.15rem;
  }

  .hero .hero-card {
    margin-top: 1.05rem;
    padding: 0.75rem 0.85rem;
    width: calc(100% - 2.5rem);
  }

  .hero-scroll-cue {
    margin-top: 0.85rem;
    font-size: 0.76rem;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100%, 94%);
  }

  .section {
    padding: 2.6rem 0;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .brand-lockup-mobile-title {
    font-size: clamp(0.6rem, 2.75vw, 0.8rem);
    max-width: min(175px, 58vw);
  }

  .brand-lockup-mobile-tag {
    font-size: clamp(0.46rem, 2vw, 0.58rem);
    letter-spacing: 0.12em;
  }

  .hero {
    --hero-header-offset: 58px;
    padding-top: 0.45rem;
  }

  .hero-scroll-cue {
    font-size: 0.78rem;
    margin-top: 1.1rem;
  }

  .hero-actions {
    margin-top: 1.25rem;
  }

  .hero .hero-card {
    margin-top: 1.2rem;
    padding: 0.8rem 0.9rem;
    width: calc(100% - 2.5rem);
    max-width: 20.5rem;
  }

  .btn {
    padding: 0.62rem 1rem;
    font-size: 0.92rem;
  }

  .service-content h3 {
    font-size: 1rem;
  }

  .service-content ul {
    font-size: 0.86rem;
    line-height: 1.68;
    gap: 0.42rem;
  }

  .service-card:not(:has(ul)) .service-content h3 {
    font-size: 0.93rem;
  }

  .service-content p {
    font-size: 0.81rem;
    line-height: 1.64;
  }

  .partners-grid {
    gap: 0.68rem;
    max-width: 18rem;
  }

  .partners-grid .partner {
    padding: 0.62rem 0.68rem;
    border-radius: 0.75rem;
  }

  .partners-grid .partner h3 {
    font-size: 0.9rem;
    margin-top: 0.42rem;
  }

  .partners-grid .partner p {
    font-size: 0.76rem;
  }

  .partners-grid .partner-logo {
    max-width: 128px;
    height: 72px;
    padding: 0.35rem;
  }

  .team-cards-grid {
    gap: 0.55rem;
    max-width: min(100%, 15.75rem);
  }

  .team-brief-card {
    padding: 0.55rem 0.62rem;
    border-radius: 0.65rem;
    gap: 0.36rem;
  }

  .team-brief-card h3 {
    font-size: 0.8rem;
  }

  .team-brief-card p {
    font-size: 0.7rem;
    line-height: 1.38;
  }

  .team-brief-card .team-photo {
    border-radius: 0.42rem;
  }

  .team-brief-card .team-photo-frame.team-photo-frame--zoom-face {
    border-radius: 0.42rem;
  }

  .team-member-detail-head .team-photo-frame.team-photo-frame--zoom-face {
    border-radius: 0.42rem;
  }

  .team-brief-card .team-photo-frame.team-photo-frame--magdy-face,
  .team-member-detail-head .team-photo-frame.team-photo-frame--magdy-face,
  .team-brief-card .team-photo-frame.team-photo-frame--nassar-face,
  .team-member-detail-head .team-photo-frame.team-photo-frame--nassar-face,
  .team-brief-card .team-photo-frame.team-photo-frame--shahin-face,
  .team-member-detail-head .team-photo-frame.team-photo-frame--shahin-face,
  .team-brief-card .team-photo-frame.team-photo-frame--mai-face,
  .team-member-detail-head .team-photo-frame.team-photo-frame--mai-face,
  .team-brief-card .team-photo-frame.team-photo-frame--habiba-face,
  .team-member-detail-head .team-photo-frame.team-photo-frame--habiba-face {
    border-radius: 0.42rem;
  }

  .team-brief-card .team-more-btn {
    padding: 0.4rem 0.55rem;
    font-size: 0.7rem;
  }

  .team-member-detail {
    max-width: min(100%, 15.75rem);
    padding: 0.55rem 0.62rem;
    border-radius: 0.65rem;
  }

  .team-member-detail-head .team-photo {
    border-radius: 0.42rem;
  }

  .team-member-detail-head h2 {
    font-size: 0.8rem;
  }

  .team-member-detail-head p {
    font-size: 0.7rem;
  }

  .team-member-detail > .btn {
    padding: 0.4rem 0.55rem;
    font-size: 0.7rem;
  }

  .booking-form {
    max-width: min(100%, 18rem);
    padding: 0.58rem 0.68rem 0.65rem;
    gap: 0.42rem;
    margin-top: 0.45rem;
  }

  .booking-form .form-top-icon {
    width: 40px;
    height: 40px;
    font-size: 0.98rem;
    margin-bottom: 0.06rem;
  }

  .booking-form textarea {
    min-height: 3.45rem;
  }

  .service-image,
  .team-photo {
    min-height: 160px;
  }

  .team-brief-card .team-photo,
  .team-member-detail-head .team-photo {
    min-height: 0;
  }
}
