:root {
  --navy: #0f223d;
  --navy-2: #173252;
  --gold: #b9964f;
  --gold-soft: #d7c08e;
  --sand: #f3eee4;
  --sand-2: #f7f4ed;
  --ink: #243247;
  --muted: #66727f;
  --line: rgba(15, 34, 61, 0.12);
  --white: #ffffff;
  --radius: 22px;
  --shadow: 0 22px 60px rgba(15, 34, 61, 0.08);
  --font-ar: "Cairo", sans-serif;
  --font-en: "Montserrat", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-ar);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(185, 150, 79, 0.1), transparent 28%),
    linear-gradient(180deg, #fbfaf6 0%, #f3ede1 100%);
}

body.lang-en {
  direction: ltr;
  font-family: var(--font-en);
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 96px 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 244, 237, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15, 34, 61, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 86px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--gold-soft);
  font-size: 1.35rem;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-text strong { font-size: 1rem; color: var(--navy); }
.brand-text small { color: var(--muted); font-size: 0.8rem; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.92rem;
  color: var(--muted);
}

.main-nav a {
  position: relative;
  padding: 10px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active { color: var(--navy); }

.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }

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

.lang-toggle,
.nav-toggle {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  border-radius: 14px;
}

.lang-toggle {
  min-width: 54px;
  height: 46px;
  font-weight: 700;
}

.nav-toggle {
  width: 46px;
  height: 46px;
  display: none;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 72px;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15, 34, 61, 0.95) 0%, rgba(23, 50, 82, 0.88) 38%, rgba(15, 34, 61, 0.95) 100%);
}

.hero-slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: -4%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  animation: heroSlideFade 18s ease-in-out infinite;
  will-change: transform, opacity;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 22, 40, 0.8) 0%, rgba(9, 22, 40, 0.48) 42%, rgba(9, 22, 40, 0.8) 100%),
    linear-gradient(180deg, rgba(9, 22, 40, 0.22) 0%, rgba(9, 22, 40, 0.68) 100%);
}

.hero-slide-1 {
  background-image: url("https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1800&q=80");
  animation-delay: 0s;
}

.hero-slide-2 {
  background-image: url("https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&w=1800&q=80");
  animation-delay: 6s;
}

.hero-slide-3 {
  background-image: url("https://images.unsplash.com/photo-1581094794329-c8112a89af12?auto=format&fit=crop&w=1800&q=80");
  animation-delay: 12s;
}

.hero-media::before,
.hero-media::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.9;
  pointer-events: none;
}

.hero-media::before {
  inset-inline-end: 6%;
  top: 10%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(215, 192, 142, 0.24), transparent 68%);
  animation: heroPulse 8s ease-in-out infinite;
}

.hero-media::after {
  inset-inline-end: 24%;
  top: -12%;
  width: 620px;
  height: 120px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.24) 50%, transparent 100%);
  transform: rotate(-16deg);
  animation: heroSweep 11s linear infinite;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 95%);
}

.hero::after {
  content: "";
  position: absolute;
  inset-inline-start: -8%;
  bottom: -140px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(185, 150, 79, 0.18), transparent 68%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto auto 18% 46%;
  width: 180px;
  height: 180px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  transform: rotate(18deg);
  opacity: 0.4;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.7fr);
  gap: 46px;
  align-items: end;
  min-height: calc(100vh - 158px);
}

.hero-copy {
  color: var(--white);
  padding: 56px 0 20px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-soft);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  margin: 16px 0 14px;
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-rotator {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
}

.hero-rotator-label {
  color: rgba(255, 255, 255, 0.66);
  font-weight: 600;
}

.hero-rotator-word {
  color: var(--gold-soft);
  font-weight: 800;
}

.hero-text {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.95;
  margin: 0 0 28px;
}

.hero-actions,
.contact-strip-inner,
.careers-strip-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-panel {
  display: grid;
  gap: 16px;
  padding-bottom: 20px;
}

.hero-card {
  padding: 22px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-card span {
  display: block;
  color: var(--gold-soft);
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.hero-card strong,
.hero-card a {
  font-size: 1rem;
  line-height: 1.7;
}

.contact-mini a { display: block; }

@keyframes heroPulse {
  0%, 100% { transform: scale(0.95); opacity: 0.55; }
  50% { transform: scale(1.08); opacity: 0.95; }
}

@keyframes heroSweep {
  0% { transform: translate3d(-60px, 0, 0) rotate(-16deg); opacity: 0; }
  20% { opacity: 0.24; }
  50% { opacity: 0.36; }
  80% { opacity: 0.16; }
  100% { transform: translate3d(240px, 40px, 0) rotate(-16deg); opacity: 0; }
}

@keyframes heroSlideFade {
  0% { opacity: 0; transform: scale(1.12) translate3d(0, 0, 0); }
  8% { opacity: 0.92; }
  28% { opacity: 0.92; }
  36% { opacity: 0; transform: scale(1) translate3d(-18px, -8px, 0); }
  100% { opacity: 0; transform: scale(1) translate3d(-18px, -8px, 0); }
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 38px;
}

.section-heading.center {
  text-align: center;
  align-items: center;
}

.section-heading.light h2,
.section-heading.light p,
.section-heading.light .section-kicker { color: var(--white); }

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.15;
  color: var(--navy);
}

.section-heading p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 36px;
  align-items: start;
}

.about-copy {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
}

.about-copy p {
  margin: 0;
  line-height: 2;
  color: var(--muted);
}

.about-copy p + p { margin-top: 16px; }

.about-points {
  display: grid;
  gap: 18px;
}

.about-points article,
.service-card,
.showcase-card {
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.about-points article { padding: 24px 24px 22px; }

.about-points i,
.service-card i {
  color: var(--gold);
  font-size: 1.3rem;
}

.about-points h3,
.service-card h3,
.showcase-card h3 {
  margin: 14px 0 8px;
  color: var(--navy);
}

.about-points p,
.service-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.services {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.65));
}

/* ═══════════════ SERVICE SHOWCASE ═══════════════ */
.svc-showcase {
  display: grid;
  grid-template-columns: 270px 1fr;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(15,34,61,0.18);
  min-height: 510px;
}

/* ── Left aside ── */
.svc-aside {
  background: linear-gradient(180deg, #0f223d 0%, #0c1b32 100%);
  display: flex;
  flex-direction: column;
  padding: 26px 0 20px;
}

.svc-aside-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0 22px 14px;
  margin: 0 0 6px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.svc-tabs-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  overflow-y: auto;
}

.svc-tab {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255,255,255,0.48);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
  text-align: start;
  width: 100%;
  line-height: 1.3;
}

.svc-tab-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  flex-shrink: 0;
  transition: background 0.22s, color 0.22s;
  color: rgba(255,255,255,0.4);
}

.svc-tab:hover {
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.05);
}

.svc-tab:hover .svc-tab-icon {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
}

.svc-tab.active {
  color: var(--white);
  background: rgba(185,150,79,0.13);
  border-color: rgba(185,150,79,0.3);
}

.svc-tab.active .svc-tab-icon {
  background: linear-gradient(135deg, var(--gold) 0%, #d4a84b 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(185,150,79,0.35);
}

.svc-aside-foot {
  padding: 14px 12px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 6px;
}

.svc-view-all-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(185,150,79,0.35);
  background: rgba(185,150,79,0.08);
  color: var(--gold-soft);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
}

.svc-view-all-btn:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(185,150,79,0.3);
}

.svc-view-all-btn em {
  font-style: normal;
  margin-right: auto;
  background: rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 1px 7px;
  font-size: 0.72rem;
}

/* ── Right mosaic ── */
.svc-stage {
  position: relative;
  background: #0a1525;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.svc-mosaic {
  flex: 1;
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
}

.svc-tile { position: relative; overflow: hidden; cursor: pointer; }
.svc-tile.t1 { grid-row: 1 / 3; }

.svc-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.svc-tile:hover img { transform: scale(1.07); }

.svc-tile-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,34,61,0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.28s;
  display: grid;
  place-items: center;
}

.svc-tile:hover .svc-tile-ov { opacity: 1; }
.svc-tile-ov i { color: var(--white); font-size: 1.4rem; }

/* Tile transition animations */
.svc-tile.tile-out {
  animation: tileOut 0.28s ease forwards;
}

.svc-tile.tile-in {
  animation: tileIn 0.45s cubic-bezier(0.34,1.2,0.64,1) both;
}

@keyframes tileOut {
  to { opacity: 0; transform: scale(0.93) translateY(-10px); }
}

@keyframes tileIn {
  from { opacity: 0; transform: scale(0.9) translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* Progress bar */
.svc-prog-wrap {
  height: 3px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.svc-prog-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, #e8c96a 100%);
  width: 0%;
}

/* ═══════════════ END SHOWCASE ═══════════════ */

.stats {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.12);
  margin-bottom: 24px;
}

.stat-card {
  padding: 36px 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

.stat-card strong {
  display: block;
  color: var(--gold-soft);
  font-size: clamp(2rem, 4vw, 3.3rem);
  margin-bottom: 8px;
}

.stat-card span { color: rgba(255, 255, 255, 0.74); }

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.showcase-card { padding: 24px; }

.showcase-card span {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.84rem;
}

.showcase-card h3 { margin-bottom: 0; }

.clients { background: var(--sand-2); }

.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 52px;
}

@keyframes card-appear {
  0%   { opacity: 0; transform: translateY(44px) scale(0.92); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0)    scale(1); }
}

.logo-card {
  background: transparent;
  border: none;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  position: relative;
}

.logo-card.visible {
  animation: card-appear 0.65s cubic-bezier(0.22, 1, 0.36, 1)
             var(--delay, 0s) both;
}

.logo-card img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  object-position: center;
  border-radius: 50%;
  display: block;
  background: var(--white);
  padding: 18px;
  filter: grayscale(25%) brightness(0.95);
  box-shadow: 0 6px 24px rgba(15, 34, 61, 0.15);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              filter 0.35s ease,
              box-shadow 0.4s ease;
}

.logo-card.visible:hover img {
  transform: scale(1.18) rotate(4deg);
  filter: grayscale(0%) brightness(1.05);
  box-shadow: 0 18px 48px rgba(185, 150, 79, 0.45),
              0 0 0 4px rgba(185, 150, 79, 0.3);
}

.contact-strip,
.careers-strip { padding: 34px 0; }

.contact-strip { background: #efe6d3; }
.careers-strip { background: #e7edf2; }

.contact-strip-inner,
.careers-strip-inner { justify-content: space-between; }

.contact-strip span,
.careers-strip span {
  color: var(--gold);
  font-weight: 700;
}

.contact-strip h2,
.careers-strip h2 {
  margin: 8px 0 0;
  font-size: clamp(1.35rem, 2.8vw, 2.1rem);
  color: var(--navy);
}

.contact-hub {
  background:
    radial-gradient(circle at top right, rgba(185, 150, 79, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(243, 238, 228, 0.9));
}

.contact-hub-stack {
  display: grid;
  gap: 28px;
}

.profile-section-card,
.contact-form-wrap {
  display: grid;
  gap: 18px;
}

.contact-block-head span {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(185, 150, 79, 0.12);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
}

.contact-block-head h3 {
  margin: 12px 0 0;
  font-size: clamp(1.4rem, 2vw, 2rem);
  color: var(--navy);
}

.profile-viewer,
.contact-form-card {
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.profile-viewer {
  padding: 16px;
  overflow: hidden;
  min-height: 760px;
}

.profile-viewer iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 728px;
  border-radius: 18px;
}

.contact-form-card {
  padding: 28px;
}

.contact-form-head span {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(185, 150, 79, 0.12);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
}

.contact-form-head h3 {
  margin: 14px 0 10px;
  font-size: clamp(1.4rem, 2vw, 2rem);
  color: var(--navy);
}

.contact-form-head p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.85;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field span {
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(15, 34, 61, 0.12);
  border-radius: 16px;
  background: rgba(247, 244, 237, 0.9);
  color: var(--ink);
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(185, 150, 79, 0.85);
  box-shadow: 0 0 0 4px rgba(185, 150, 79, 0.14);
  background: var(--white);
}

.field textarea {
  min-height: 148px;
  resize: vertical;
}

.field-full {
  grid-column: 1 / -1;
}

.contact-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.contact-form-footer p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  background: var(--navy);
  color: var(--white);
  padding-top: 56px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 1fr;
  gap: 26px;
  padding-bottom: 34px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.footer-brand p,
.footer-contact p,
.footer-contact a,
.footer-links-col a {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.9;
}

.footer-links-col,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links-col h3,
.footer-contact h3 {
  margin: 0 0 8px;
  color: var(--gold-soft);
}

.footer-bottom {
  padding: 18px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
}

@media (max-width: 1080px) {
  .main-nav {
    position: fixed;
    inset-inline: 16px;
    top: 96px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

  .main-nav.open { display: flex; }

  .main-nav a {
    padding: 14px 10px;
    border-radius: 14px;
  }

  .main-nav a::after { display: none; }
  .main-nav a:hover { background: rgba(15, 34, 61, 0.05); }
  .nav-toggle { display: block; }

  .hero-inner,
  .about-layout,
  .footer-inner { grid-template-columns: 1fr; }

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

  .logo-grid { grid-template-columns: repeat(3, 1fr); }

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

  .hero-panel { max-width: 760px; }
  .profile-viewer { min-height: 640px; }
  .profile-viewer iframe { min-height: 608px; }
}


/* ═══════════════ SERVICE GALLERY MODAL ═══════════════ */
.sg-modal {
  position: fixed;
  inset: 0;
  z-index: 8888;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.sg-modal.open { pointer-events: all; }

.sg-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8,16,30,0.7);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.sg-modal.open .sg-backdrop { opacity: 1; }

.sg-panel {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  max-height: 88vh;
  background: var(--sand-2);
  border-radius: 28px 28px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.34,1.2,0.64,1);
  box-shadow: 0 -24px 80px rgba(15,34,61,0.2);
}

.sg-modal.open .sg-panel { transform: translateY(0); }

.sg-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  flex-shrink: 0;
}

.sg-panel-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sg-panel-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--gold-soft);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.sg-panel-title h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
}

.sg-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
  flex-shrink: 0;
}

.sg-close:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  transform: rotate(90deg) scale(1.1);
}

.sg-grid {
  overflow-y: auto;
  padding: 24px;
  columns: 4;
  column-gap: 14px;
}

@media (max-width: 900px) { .sg-grid { columns: 3; } }
@media (max-width: 600px) { .sg-grid { columns: 2; } }

.sg-item {
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s, opacity 0.35s;
}

.sg-item.visible {
  opacity: 1;
  transform: none;
}

.sg-item:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 36px rgba(15,34,61,0.18);
  z-index: 2;
}

.sg-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.45s ease;
}

.sg-item:hover img { transform: scale(1.07); }

.sg-item-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,34,61,0.65) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
  display: grid;
  place-items: center;
}

.sg-item:hover .sg-item-ov { opacity: 1; }

.sg-item-ov i {
  color: var(--white);
  font-size: 1.5rem;
}

/* ═══════════════ LIGHTBOX ═══════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(8, 16, 30, 0.95);
  backdrop-filter: blur(22px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lb-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(90vw, 1100px);
  max-height: 78vh;
}

.lb-img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  transform: scale(0.88);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.4s ease;
}

.lightbox.open .lb-img.loaded {
  transform: scale(1);
  opacity: 1;
}

.lb-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.lb-loader span {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: lbSpin 0.7s linear infinite;
}

.lb-img.loaded ~ .lb-loader { display: none; }

@keyframes lbSpin {
  to { transform: rotate(360deg); }
}

.lb-close {
  position: fixed;
  top: 22px;
  left: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
  z-index: 2;
}

.lb-close:hover {
  background: rgba(255,255,255,0.22);
  transform: scale(1.12) rotate(90deg);
}

.lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
  z-index: 2;
}

.lb-prev { right: 22px; }
.lb-next { left: 22px; }

.lb-nav:hover {
  background: rgba(185,150,79,0.28);
  border-color: var(--gold);
  transform: translateY(-50%) scale(1.12);
}

.lb-info {
  position: fixed;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(15,34,61,0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 10px 22px;
  z-index: 2;
}

.lb-category {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-soft);
  letter-spacing: 0.04em;
}

.lb-counter {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

/* ═══════════════ END GALLERY ═══════════════ */

@media (max-width: 900px) {
  .svc-showcase { grid-template-columns: 1fr; }
  .svc-aside { flex-direction: column; }
  .svc-tabs-list { flex-direction: row; overflow-x: auto; padding: 8px; gap: 6px; }
  .svc-tab { flex-direction: column; gap: 5px; padding: 10px 12px; min-width: 110px; font-size: 0.75rem; text-align: center; }
  .svc-aside-label { display: none; }
  .svc-mosaic { min-height: 320px; }
  .svc-aside-foot { border-top: none; padding: 0 12px 12px; }
}

@media (max-width: 720px) {
  .svc-mosaic { min-height: 260px; }
  .svc-tab { min-width: 90px; }
  .sg-panel { border-radius: 20px 20px 0 0; }
  .sg-panel-header { padding: 16px 18px; }
  .sg-grid { padding: 16px; }
  .lb-prev { right: 10px; }
  .lb-next { left: 10px; }
  .lb-close { top: 14px; left: 14px; }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .header-inner { min-height: 78px; }
  .hero { padding-top: 26px; }
  .hero-inner { min-height: auto; }
  .hero-copy { padding-top: 34px; }

  .hero-actions,
  .contact-strip-inner,
  .careers-strip-inner,
  .contact-form-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .services-grid,
  .showcase-grid,
  .stats-grid,
  .contact-form-grid { grid-template-columns: 1fr; }

  .logo-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .about-copy,
  .service-card,
  .contact-form-card,
  .profile-viewer,
  .showcase-card { padding: 22px; }

  .brand-text small { display: none; }
  .hero-card { border-radius: 24px; }
  .profile-viewer { min-height: 500px; }
  .profile-viewer iframe { min-height: 468px; }
}
