:root {
  /* SANAD Default Colors (Dark Mode Baseline) */
  --bg: #040814;
  --bg-soft: #0a0f18;
  --surface: #0d131f;
  --surface-2: #151f35;
  --text: #f8fafc;
  --text-soft: #cbd5e1;
  --text-muted: #64748b;
  --gold: #c9a84c; /* Kept AHM Gold */
  --gold-soft: #8f7330;
  --line: rgba(255, 255, 255, 0.08);
  --border: var(--line);
  --ok: #65d39a;
  --warn: #ff8f78;
  --shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --container: min(1240px, 92vw);
  --header-h: 72px;
}

html[data-theme="light"] {
  --bg: #f8fafc;
  --bg-soft: #f0f9ff;
  --surface: #ffffff;
  --surface-2: #e0f2fe;
  --text: #0f172a;
  --text-soft: #334155;
  --text-muted: #64748b;
  --gold: #a78529;
  --gold-soft: #8f7330;
  --line: rgba(15, 23, 42, 0.1);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(201,168,76,0.3) transparent;
}

html::-webkit-scrollbar { width: 6px; }
html::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.3); border-radius: 3px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-family: "Tajawal", "Inter", sans-serif;
  overflow-x: hidden;
  max-width: 100%;
  overscroll-behavior-x: none;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Arabic: Tajawal for all */
html[lang="ar"] body {
  font-family: "Tajawal", sans-serif;
  letter-spacing: 0;
}

/* English: Inter body, Playfair Display for headings */
html[lang="en"] body {
  font-family: "Inter", sans-serif;
  letter-spacing: -0.005em;
}

html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] .section-title {
  font-family: "Playfair Display", "Inter", serif;
  letter-spacing: -0.015em;
}

html[lang="en"] .sanad-h1 {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.01em;
}

html[lang="ar"] .sanad-h1 {
  font-family: "Tajawal", sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  top: -48px;
  inset-inline-start: 8px;
  z-index: 5000;
  background: var(--gold);
  color: #111;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font-weight: 700;
}

.skip-link:focus {
  top: 8px;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 1;
}

.app-root {
  min-height: 100vh;
  position: relative;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background-image: radial-gradient(circle, rgba(201, 168, 76, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

html[data-theme="light"] .ambient {
  background-image: radial-gradient(circle, rgba(201, 168, 76, 0.10) 1px, transparent 1px);
  background-size: 24px 24px;
}

.container {
  width: var(--container);
  margin-inline: auto;
  max-width: 100%;
}

.main-content {
  position: relative;
  z-index: 3;
  padding-top: 88px;
  padding-bottom: 44px;
  overflow-x: hidden;
}

.section {
  padding: clamp(3rem, 7vw, 6rem) 0;
  max-width: 100%;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-on-scroll.slide-left {
  transform: translateX(-50px) translateY(0);
}

.reveal-on-scroll.slide-right {
  transform: translateX(50px) translateY(0);
}

/* RTL: flip slide directions so animations don't push content off the LEFT edge */
[dir="rtl"] .reveal-on-scroll.slide-left {
  transform: translateX(50px) translateY(0);
}

[dir="rtl"] .reveal-on-scroll.slide-right {
  transform: translateX(-50px) translateY(0);
}

.reveal-on-scroll.scale-in {
  transform: scale(0.93) translateY(0);
  opacity: 0;
}

.reveal-on-scroll.fade-only {
  transform: none;
  opacity: 0;
}

.reveal-on-scroll.in-view {
  opacity: 1;
  transform: none;
}

/* Stagger children animate in sequence */
.stagger-children > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stagger-children.in-view > *:nth-child(1)  { opacity: 1; transform: none; transition-delay: 0.04s; }
.stagger-children.in-view > *:nth-child(2)  { opacity: 1; transform: none; transition-delay: 0.12s; }
.stagger-children.in-view > *:nth-child(3)  { opacity: 1; transform: none; transition-delay: 0.20s; }
.stagger-children.in-view > *:nth-child(4)  { opacity: 1; transform: none; transition-delay: 0.28s; }
.stagger-children.in-view > *:nth-child(5)  { opacity: 1; transform: none; transition-delay: 0.36s; }
.stagger-children.in-view > *:nth-child(6)  { opacity: 1; transform: none; transition-delay: 0.44s; }
.stagger-children.in-view > *:nth-child(n+7){ opacity: 1; transform: none; transition-delay: 0.52s; }

.section-head {
  margin-bottom: 1.2rem;
}

.section-kicker {
  display: inline-flex;
  border: 1px solid color-mix(in srgb, var(--gold) 55%, var(--line));
  color: var(--gold);
  border-radius: 999px;
  padding: 0.34rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 0.65rem;
}

.section-title {
  margin: 0;
  font-size: clamp(1.7rem, 3.2vw, 2.8rem);
  line-height: 1.17;
  letter-spacing: -0.01em;
}

.section-desc {
  margin: 0.8rem 0 0;
  max-width: 72ch;
  color: var(--text-soft);
}

.glass {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 1000;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px);
}

.site-header.hidden {
  transform: translateY(-102%);
}

.header-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand-meta strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1;
  letter-spacing: 0.02em;
}

.brand-meta span {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-link {
  padding: 0.48rem 0.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-soft);
  transition: 0.2s ease;
  border: 1px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  border-color: var(--line);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.has-menu {
  position: relative;
}

.menu-toggle {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-soft);
  border-radius: 999px;
  padding: 0.48rem 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.menu-toggle:hover,
.menu-toggle.open {
  color: var(--text);
  border-color: var(--line);
  background: color-mix(in srgb, var(--surface) 75%, transparent);
}

.mega {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-start: 0;
  width: min(760px, 90vw);
  padding: 0.85rem;
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.mega-group {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.72rem;
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
}

.mega-title {
  margin: 0 0 0.55rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mega-item {
  display: block;
  padding: 0.45rem 0.52rem;
  border-radius: 10px;
  color: var(--text-soft);
  font-size: 0.86rem;
  transition: 0.2s;
}

.mega-item:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--gold) 15%, transparent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn,
.btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 11px;
  padding: 0.58rem 0.8rem;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.icon-btn:hover,
.btn:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
}

.btn.primary {
  background: linear-gradient(130deg, var(--gold), color-mix(in srgb, var(--gold-soft) 76%, #000));
  color: #101010;
  border: none;
}

.menu-btn {
  display: none;
}

.mobile-nav {
  display: none;
  width: 100%;
  margin-top: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  padding: 0.6rem;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.64rem 0.7rem;
  border-radius: 10px;
  color: var(--text-soft);
}

.mobile-nav a.active,
.mobile-nav a:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--surface-2) 85%, transparent);
}

.hero {
  min-height: calc(100vh - 94px);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(1rem, 2.3vw, 1.6rem);
  align-items: stretch;
}

.hero-pane {
  padding: clamp(1rem, 3vw, 2rem);
}

.hero-title {
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 3.6rem);
  line-height: 1.05;
}

.hero-title span {
  color: var(--gold);
}

.hero-desc {
  margin: 0.9rem 0 0;
  color: var(--text-soft);
  max-width: 65ch;
}

.hero-actions {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-stats {
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
}

.hero-stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem;
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
}

.hero-stat strong {
  display: block;
  font-size: 1.2rem;
}

.hero-stat span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  min-height: 470px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  will-change: transform;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 7, 7, 0.14) 0%, rgba(7, 7, 7, 0.65) 100%);
}

.hero-dots {
  position: absolute;
  bottom: 13px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 0.38rem;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--gold) 38%, var(--line));
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  cursor: pointer;
}

.hero-dot.active {
  width: 20px;
  background: var(--gold);
  border-color: var(--gold);
}

.cards-grid {
  display: grid;
  gap: 1rem;
}

.cards-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* SANAD Glass Cards Replacement */
.card, .track-card, .why-card, .highlight-card, .strength-card, .contact-panel, .request-form, .intro-tag, .quote, .timeline-item {
  background: linear-gradient(145deg, var(--surface) 0%, color-mix(in srgb, var(--surface-2) 40%, transparent) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover, .track-card:hover, .why-card:hover, .highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border-color: color-mix(in srgb, var(--line) 40%, var(--gold));
}

.card h3,
.card h4 {
  margin: 0;
  line-height: 1.22;
}

.card p {
  margin: 0.6rem 0 0;
  color: var(--text-soft);
}

.service-card .tag {
  display: inline-flex;
  font-size: 0.72rem;
  border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line));
  color: var(--gold);
  border-radius: 999px;
  padding: 0.24rem 0.54rem;
  margin-bottom: 0.58rem;
}

.service-points {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.service-points li {
  font-size: 0.86rem;
  color: var(--text-soft);
}

.tracks-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.track-media {
  height: 220px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  border-radius: 0.5rem;
}

.track-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.track-card:hover .track-media img {
  transform: scale(1.05);
}

.track-body {
  padding: 0.95rem;
}

.track-badge {
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.24rem 0.58rem;
  border: 1px solid color-mix(in srgb, var(--gold) 55%, var(--line));
  color: var(--gold);
  background: color-mix(in srgb, var(--gold) 15%, transparent);
}

.track-body h3 {
  margin: 0.62rem 0 0;
}

.track-body p {
  margin: 0.52rem 0 0;
  color: var(--text-soft);
}

.track-points {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.42rem;
}

.track-points li {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.track-points .material-symbols-outlined {
  color: var(--gold);
  font-size: 1rem;
}

.track-actions {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}

.highlights-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.highlight-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 0.9rem;
}

.highlight-card .material-symbols-outlined {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-content: center;
  background: color-mix(in srgb, var(--gold) 14%, transparent);
  color: var(--gold);
  margin-bottom: 0.42rem;
}

.highlight-card h4 {
  margin: 0;
}

.highlight-card p {
  margin: 0.45rem 0 0;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.national-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 1.5rem;
  align-items: stretch;
}

.national-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 380px;
}

.national-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.national-points {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.52rem;
}

.national-points li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-soft);
}

.national-points .material-symbols-outlined {
  color: var(--gold);
}

.national-media {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 100%;
}

.national-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.strength-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.strength-card .material-symbols-outlined {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-content: center;
  background: color-mix(in srgb, var(--gold) 15%, transparent);
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.strength-card strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1;
}

.project-toolbar {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-soft);
  padding: 0.38rem 0.7rem;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
}

.pill.active,
.pill:hover {
  color: #111;
  background: var(--gold);
  border-color: var(--gold);
}

.project-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.82rem;
}

.project-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}

.project-item img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.project-thumb {
  overflow: hidden;
  background: var(--surface-2);
}

.project-item:hover img {
  transform: scale(1.07);
}

.project-item figcaption {
  padding: 0.68rem;
  display: grid;
  gap: 0.2rem;
}

.project-item figcaption strong {
  font-size: 0.9rem;
}

.project-item figcaption span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: start;
}

.intro-tag-year {
  display: block;
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
}

.intro-main-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.85rem;
}

.intro-tag {
  align-self: start;
  border: 1px solid color-mix(in srgb, var(--gold) 55%, var(--line));
  color: var(--gold);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-weight: 800;
  text-align: center;
  background: color-mix(in srgb, var(--gold) 9%, var(--surface));
}

.portfolio-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.portfolio-card {
  position: relative;
  min-height: 230px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.portfolio-card:hover img {
  transform: scale(1.06);
}

.portfolio-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.8rem;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0) 0%, rgba(8, 8, 8, 0.72) 100%);
}

.portfolio-overlay h3 {
  margin: 0;
  color: #fff;
  font-size: 0.95rem;
}

.portfolio-grid .p-1,
.portfolio-grid .p-4 {
  grid-column: span 2;
  min-height: 330px;
}

/* ====================================================
   IMPROVED GALLERY GRID + LIGHTBOX
   ==================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 360px;
  gap: 1px;
  margin-top: 1.5rem;
}

/* Full-page gallery: 4 cols */
.gallery-grid--full {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 400px;
  gap: 1px;
  margin-top: 0.75rem;
}

/* Every 5th card is tall (spans 2 rows) for visual rhythm */
.gallery-card:nth-child(5n+1) {
  grid-row: span 2;
}

.gallery-card {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  border: none;
  background: var(--surface);
  outline: none;
}

.gallery-card:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 50%, transparent);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}

.gallery-card:hover img {
  transform: scale(1.07);
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 45%,
    rgba(0, 0, 0, 0.72) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-card-overlay,
.gallery-card:focus-visible .gallery-card-overlay {
  opacity: 1;
}

.gallery-card-type {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.gallery-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  line-height: 1.35;
}

.gallery-card-zoom {
  position: absolute;
  top: 0.75rem;
  inset-inline-end: 0.75rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  backdrop-filter: blur(4px);
}

.gallery-card-zoom .material-symbols-outlined {
  font-size: 18px;
}

/* Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(6px);
}

.lightbox-inner {
  max-width: min(900px, 92vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.lightbox-inner img {
  max-width: 100%;
  max-height: calc(90vh - 3rem);
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
}

.lightbox-caption {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  text-align: center;
  margin: 0;
}

.lightbox-close {
  position: fixed;
  top: 1.25rem;
  inset-inline-end: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1101;
  transition: background 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.22);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1101;
  transition: background 0.2s ease;
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.22);
}

.lightbox-prev {
  inset-inline-start: 1.25rem;
}

.lightbox-next {
  inset-inline-end: 1.25rem;
}

.lightbox-counter {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  z-index: 1101;
}

/* Gallery responsive */
@media (max-width: 980px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 260px;
  }
  .gallery-grid--full {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
  }
}

@media (max-width: 600px) {
  .gallery-grid,
  .gallery-grid--full {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
  .gallery-card:nth-child(5n+1) {
    grid-row: span 1;
  }
  .gallery-card-overlay {
    opacity: 0;
  }
  .lightbox-nav {
    width: 38px;
    height: 38px;
  }
  .lightbox-prev { inset-inline-start: 0.5rem; }
  .lightbox-next { inset-inline-end: 0.5rem; }
}

.why-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.why-card .material-symbols-outlined {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-content: center;
  background: color-mix(in srgb, var(--gold) 14%, transparent);
  color: var(--gold);
  margin-bottom: 0.48rem;
}

.why-card h3 {
  margin: 0;
  font-size: 1rem;
}

.why-card p {
  margin: 0.45rem 0 0;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.premium-grid .project-item-1,
.premium-grid .project-item-4 {
  grid-column: span 2;
}

.premium-grid .project-item-1 img,
.premium-grid .project-item-4 img {
  height: 320px;
}

.image-break {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 0;
  position: relative;
  min-height: clamp(360px, 64vw, 620px);
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.image-break-media {
  position: absolute;
  inset: 0;
  transition: transform 0.25s linear;
  will-change: transform;
}

.image-break-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-break::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.12) 0%, rgba(8, 8, 8, 0.62) 100%);
}

.image-break-overlay {
  position: absolute;
  z-index: 2;
  bottom: clamp(18px, 3vw, 32px);
  max-width: min(680px, 86vw);
}

.image-break-overlay.start {
  inset-inline-start: clamp(14px, 4vw, 36px);
}

.image-break-overlay.end {
  inset-inline-end: clamp(14px, 4vw, 36px);
}

.image-break-overlay .section-kicker {
  margin-bottom: 0.45rem;
}

.image-break-overlay h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.5rem, 3.8vw, 3rem);
  line-height: 1.13;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.timeline {
  margin-top: 1rem;
  display: grid;
  gap: 0.72rem;
}

.timeline-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem;
  background: color-mix(in srgb, var(--surface-2) 66%, transparent);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.72rem;
  align-items: start;
}

.step-badge {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--gold) 48%, var(--line));
  color: var(--gold);
  display: grid;
  place-content: center;
  font-weight: 800;
}

/* Legacy .testimonials kept for potential reuse */
.testimonials {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

/* Swipe hint */
.swipe-hint {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-bottom: 1rem;
}

.swipe-hint .material-symbols-outlined {
  font-size: 17px;
}

/* Swipe testimonial scroll */
.testimonials-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.2rem;
  padding-bottom: 1.2rem;
  scrollbar-width: none;
  cursor: grab;
}

.testimonials-scroll::-webkit-scrollbar {
  display: none;
}

.quote-large {
  flex-shrink: 0;
  width: min(440px, 82vw);
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem 2rem 1.5rem;
  background: var(--surface);
  transition: border-color 0.25s;
}

.quote-large:hover {
  border-color: color-mix(in srgb, var(--gold) 35%, transparent);
}

.quote-large-icon {
  margin-bottom: 0.75rem;
}

.quote-large-icon .material-symbols-outlined {
  font-size: 38px;
  color: var(--gold);
  opacity: 0.55;
  font-variation-settings: "FILL" 1;
  line-height: 1;
}

.quote-large p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-soft);
  margin: 0 0 1.2rem;
}

.quote-large footer strong {
  display: block;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
}

.quote {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem;
  background: var(--surface);
}

.quote p {
  margin: 0;
  color: var(--text-soft);
}

.quote footer {
  margin-top: 0.75rem;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 700;
}

/* CTA band catalog download */
.cta-catalog-dl {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.cta-catalog-dl .material-symbols-outlined {
  font-size: 18px;
}

.cta-band {
  margin-top: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface-2) 76%, transparent), color-mix(in srgb, var(--gold) 14%, transparent));
  padding: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.page-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1rem;
  margin-top: 1rem;
}

.request-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1rem;
}

.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.field label {
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 11px;
  padding: 0.64rem 0.72rem;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.form-status {
  margin-top: 0.8rem;
  color: var(--ok);
  font-weight: 700;
}

.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0.85rem 0 0;
  display: grid;
  gap: 0.55rem;
}

.contact-list li {
  color: var(--text-soft);
}

.quality {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1rem;
}

.phase-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0.85rem 0;
}

.phase-box {
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 11px;
  padding: 0.6rem;
  text-align: center;
}

.phase-box strong {
  display: block;
  margin-top: 0.2rem;
}

.checks-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}

.checks-table th,
.checks-table td {
  border: 1px solid var(--line);
  padding: 0.45rem 0.5rem;
  text-align: center;
}

.checks-table th:first-child,
.checks-table td:first-child {
  text-align: start;
}

.ok {
  color: var(--ok);
  font-weight: 800;
}

.bad {
  color: var(--warn);
  font-weight: 800;
}

.floating-actions {
  position: fixed;
  bottom: 20px;
  inset-inline-end: 20px;
  z-index: 950;
  display: grid;
  gap: 0.45rem;
}

.fab-main,
.fab-item {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.fab-main {
  padding: 0.62rem 0.74rem;
  cursor: pointer;
  font-weight: 800;
}

.fab-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.fab-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem;
  font-size: 0.85rem;
}

.assistant-panel {
  width: min(390px, 90vw);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.assistant-head {
  padding: 0.72rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--gold) 10%, transparent);
}

.assistant-head strong {
  display: block;
  line-height: 1.15;
}

.assistant-head span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.assistant-body {
  max-height: 260px;
  overflow: auto;
  padding: 0.72rem;
  display: grid;
  gap: 0.52rem;
}

.assistant-msg {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0.58rem 0.62rem;
  font-size: 0.86rem;
  white-space: pre-wrap;
}

.assistant-msg.ai {
  background: color-mix(in srgb, var(--surface-2) 86%, transparent);
  color: var(--text-soft);
}

.assistant-msg.user {
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
}

.assistant-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.assistant-suggest button {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-soft);
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  font-size: 0.76rem;
  cursor: pointer;
}

.assistant-form {
  border-top: 1px solid var(--line);
  padding: 0.6rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
}

.assistant-form input {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 9px;
  padding: 0.5rem 0.6rem;
}

.assistant-form button {
  border: 1px solid color-mix(in srgb, var(--gold) 50%, var(--line));
  background: var(--gold);
  color: #111;
  border-radius: 9px;
  padding: 0.45rem 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.mobile-tabbar {
  display: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 3;
  padding: 2.2rem 0 5.8rem;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.footer-col h4 {
  margin: 0 0 0.5rem;
  color: var(--gold);
}

.footer-col p,
.footer-col a {
  color: var(--text-soft);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.36rem;
}

.footer-bottom {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.reveal {
  animation: reveal 0.55s ease both;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards-grid.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .highlights-grid,
  .strength-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tracks-grid,
  .national-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .mobile-nav.open {
    display: block;
  }

  .hero-grid,
  .page-grid {
    grid-template-columns: 1fr;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .hero-media {
    min-height: 360px;
  }

  .cards-grid.cols-3,
  .testimonials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .phase-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .image-break {
    min-height: 320px;
    border-radius: 16px;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding-top: 84px;
    padding-bottom: 76px;
  }

  .project-grid,
  .portfolio-grid,
  .cards-grid.cols-2,
  .cards-grid.cols-3,
  .testimonials {
    grid-template-columns: 1fr;
  }

  .portfolio-grid .p-1,
  .portfolio-grid .p-4 {
    grid-column: span 1;
    min-height: 240px;
  }

  .premium-grid .project-item-1,
  .premium-grid .project-item-4 {
    grid-column: span 1;
  }

  .premium-grid .project-item-1 img,
  .premium-grid .project-item-4 img {
    height: 210px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .fields {
    grid-template-columns: 1fr;
  }

  .phase-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .highlights-grid,
  .strength-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .image-break-overlay h2 {
    font-size: clamp(1.25rem, 6vw, 1.9rem);
  }

  .checks-table {
    font-size: 0.8rem;
  }

  .floating-actions {
    bottom: 74px;
  }

  .fab-root {
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    inset-inline-end: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .mobile-tabbar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 980;
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 0.45rem 0.25rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .tab-link {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    display: grid;
    gap: 0.22rem;
    place-items: center;
    padding: 0.3rem 0.15rem;
    min-height: 48px;
    border-radius: 8px;
    transition: color 0.15s ease, background 0.15s ease;
  }

  .tab-link .material-symbols-outlined {
    font-size: 22px;
  }

  .tab-link.active {
    color: var(--gold);
  }

  .tab-link:hover {
    background: color-mix(in srgb, var(--gold) 6%, transparent);
  }
}

/* ====================================================
   RESPONSIVE — 640px (small tablet / large phone)
   ==================================================== */

@media (max-width: 640px) {
  .portfolio-card {
    min-height: 200px;
  }

  .strength-card .strength-icon {
    width: 44px;
    height: 44px;
  }

  .strength-card strong {
    font-size: 1.6rem;
  }

  .section {
    padding-block: 2.5rem;
  }

  .section-title {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }

  .sanad-hero-content {
    padding-block: 2rem;
  }
}

/* ====================================================
   RESPONSIVE — 480px (phones)
   ==================================================== */

@media (max-width: 480px) {
  .sanad-h1 {
    font-size: clamp(1.75rem, 10vw, 2.4rem);
  }

  .field textarea {
    min-height: 100px;
  }

  .field input,
  .field select,
  .field textarea {
    font-size: 0.92rem;
  }

  .contact-primary-actions {
    grid-template-columns: 1fr !important;
  }

  .tab-link {
    font-size: 0.7rem;
  }

  .tab-link .material-symbols-outlined {
    font-size: 20px;
  }

  .mobile-overlay-link {
    font-size: 1.05rem;
    min-height: 52px;
  }
}

/* ====================================================
   HEADER: Brand Name + Nav CTA
   ==================================================== */

.sanad-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1;
}

.sanad-brand-text strong {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.sanad-brand-text span {
  font-size: 0.64rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

.sanad-btn-nav {
  display: inline-flex;
  align-items: center;
  padding: 0.46rem 1.1rem;
  border-radius: 9px;
  font-size: 0.83rem;
  font-weight: 700;
  background: linear-gradient(130deg, var(--gold), var(--gold-soft));
  color: #0a0a0a;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.sanad-btn-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--gold) 38%, transparent);
}

/* ====================================================
   SECTION HEADS — RTL alignment
   ==================================================== */

html[lang="ar"] .section-head {
  text-align: right;
}

html[lang="ar"] .section-kicker {
  display: inline-flex;
}

html[lang="ar"] .section-desc {
  text-align: right;
}

/* ====================================================
   WHY-CHOOSE CARDS — Icon wrapper fix
   ==================================================== */

.icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-content: center;
  background: color-mix(in srgb, var(--gold) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 22%, transparent);
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.icon-wrapper .material-symbols-outlined {
  color: var(--gold);
  font-size: 1.25rem;
  font-variation-settings: "FILL" 1;
}

/* override old conflicting rule */
.why-card .material-symbols-outlined {
  width: unset;
  height: unset;
  border-radius: unset;
  display: unset;
  background: unset;
  margin-bottom: unset;
}

.why-card .icon-wrapper {
  margin-bottom: 0.75rem;
}

/* RTL cards: icon on the right */
html[lang="ar"] .why-card,
html[lang="ar"] .highlight-card,
html[lang="ar"] .strength-card {
  text-align: right;
}

/* ====================================================
   TRACK POINTS — Gold check icons
   ==================================================== */

.track-points li .material-symbols-outlined {
  font-size: 0.95rem;
  flex-shrink: 0;
  color: var(--gold);
  font-variation-settings: "FILL" 1;
}

html[lang="ar"] .track-body {
  text-align: right;
}

html[lang="ar"] .track-points li {
  flex-direction: row-reverse;
}

/* ====================================================
   TIMELINE — Visual improvement
   ==================================================== */

.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  inset-inline-start: 17px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--gold) 40%, transparent), color-mix(in srgb, var(--gold) 10%, transparent));
}

html[lang="ar"] .timeline::before {
  inset-inline-start: unset;
  inset-inline-end: 17px;
}

.step-badge {
  position: relative;
  z-index: 1;
  background: color-mix(in srgb, var(--gold) 12%, var(--surface));
  font-size: 0.88rem;
  font-weight: 800;
}

.timeline-item {
  position: relative;
}

.timeline-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
}

.timeline-item p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ====================================================
   TESTIMONIALS — Quote marks & improved layout
   ==================================================== */

.quote {
  position: relative;
}

.quote::before {
  content: "\201C";
  position: absolute;
  top: -0.3rem;
  inset-inline-start: 0.7rem;
  font-size: 3.5rem;
  color: color-mix(in srgb, var(--gold) 30%, transparent);
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

html[lang="ar"] .quote::before {
  content: "\201E";
  inset-inline-start: unset;
  inset-inline-end: 0.7rem;
}

.quote p {
  padding-top: 1.4rem;
  line-height: 1.7;
  font-size: 0.92rem;
}

html[lang="ar"] .quote p,
html[lang="ar"] .quote footer {
  text-align: right;
}

.quote footer {
  font-weight: 700;
  font-size: 0.82rem;
}

/* ====================================================
   STRENGTH CARDS — Better metric display
   ==================================================== */

.strength-card {
  text-align: center;
}

.strength-card .strength-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-content: center;
  background: color-mix(in srgb, var(--gold) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 22%, transparent);
  margin: 0 auto 0.85rem;
}

.strength-card .strength-icon .material-symbols-outlined {
  color: var(--gold);
  font-size: 1.5rem;
  font-variation-settings: "FILL" 1;
}

.strength-card strong {
  font-size: 2rem;
  color: var(--gold);
  font-weight: 900;
  line-height: 1;
  display: block;
  margin-bottom: 0.3rem;
}

.strength-card p {
  color: var(--text-soft);
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.4;
}

/* ====================================================
   CTA BAND — Improved visual
   ==================================================== */

.cta-band strong {
  font-size: 1.1rem;
  font-weight: 800;
  display: block;
  margin-bottom: 0.3rem;
}

.cta-band p {
  color: var(--text-soft);
  margin: 0;
  font-size: 0.9rem;
}

html[lang="ar"] .cta-band {
  text-align: right;
}

/* ====================================================
   FOOTER — Layout improvements
   ==================================================== */

.footer-top-line {
  height: 1px;
  background: linear-gradient(to right, transparent, color-mix(in srgb, var(--gold) 40%, transparent), transparent);
  margin-bottom: 2.2rem;
}

.footer-col p {
  line-height: 1.7;
  font-size: 0.88rem;
  color: var(--text-soft);
  margin-top: 0.6rem;
}

html[lang="ar"] .footer-col {
  text-align: right;
}

/* ====================================================
   REQUEST FORM — Premium focus states
   ==================================================== */

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--gold) 55%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 12%, transparent);
}

.field label {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

/* ====================================================
   NATIONAL SECTION — Text alignment
   ==================================================== */

html[lang="ar"] .national-content {
  text-align: right;
}

/* ====================================================
   INTRO STATEMENT — Alignment
   ==================================================== */

html[lang="ar"] .intro-grid > div {
  text-align: right;
}

/* ====================================================
   IMAGE BREAK OVERLAY — RTL side fix
   ==================================================== */

html[lang="ar"] .image-break-overlay.start {
  inset-inline-start: unset;
  inset-inline-end: clamp(14px, 4vw, 36px);
}

html[lang="ar"] .image-break-overlay.end {
  inset-inline-end: unset;
  inset-inline-start: clamp(14px, 4vw, 36px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ====================================================
   SANAD HEADER
   ==================================================== */

.sanad-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 1000;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.sanad-header.scrolled {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
}

.sanad-header-inner {
  width: var(--container);
  margin-inline: auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sanad-logo {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.sanad-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sanad-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.sanad-nav-link {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: color 0.15s ease, background 0.15s ease;
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  text-decoration: none;
}

.sanad-nav-link:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
}

.sanad-nav-link.active {
  color: var(--gold);
  background: color-mix(in srgb, var(--gold) 10%, transparent);
  font-weight: 700;
}

/* ====================================================
   SANAD HERO
   ==================================================== */

.sanad-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #040814;
  overflow: hidden;
  margin-top: -88px;
  padding-top: 88px;
  padding-bottom: 3rem;
}

.sanad-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.sanad-hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  will-change: opacity;
}

.sanad-hero-bg img.active {
  opacity: 1;
}

.sanad-hero-overlay-1 {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 20, 0.72);
}

.sanad-hero-overlay-2 {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(4, 8, 20, 0.65), transparent);
}

[dir="rtl"] .sanad-hero-overlay-2 {
  background: linear-gradient(to left, rgba(4, 8, 20, 0.65), transparent);
}

.sanad-hero-overlay-3 {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 28%;
  background: linear-gradient(to top, #040814, transparent);
}

html[data-theme="light"] .sanad-hero-overlay-3 {
  background: linear-gradient(to top, var(--bg), transparent);
}

.sanad-dot-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 32px 32px;
}

.sanad-container {
  position: relative;
  z-index: 10;
  width: var(--container);
  margin-inline: auto;
  padding-block: 4rem;
  display: flex;
  align-items: center;
}

.sanad-hero-content {
  max-width: 580px;
  width: 100%;
}

/* RTL: content flows to inline-start (right) naturally via flex + dir="rtl" */
.sanad-hero-content.text-right {
  text-align: right;
}

.sanad-hero-content.text-left {
  text-align: left;
}

/* RTL-specific reverse flex for badge/chips/ctas */
[dir="rtl"] .sanad-badge {
  flex-direction: row-reverse;
}

[dir="rtl"] .sanad-trust-chips {
  justify-content: flex-end;
}

[dir="rtl"] .sanad-ctas {
  flex-direction: row-reverse;
}

[dir="rtl"] .sanad-stats {
  flex-direction: row-reverse;
}

.sanad-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.sanad-badge-line {
  width: 32px;
  height: 1px;
  background: color-mix(in srgb, var(--gold) 50%, transparent);
  display: block;
  flex-shrink: 0;
}

.sanad-badge-text {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.sanad-h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}

.sanad-h1 span {
  color: var(--gold);
}

.sanad-p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  line-height: 1.75;
  margin: 0 0 1.75rem;
  font-weight: 400;
  max-width: 52ch;
}

.sanad-trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.sanad-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
}

.sanad-chip .material-symbols-outlined {
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--gold) 70%, transparent);
}

.sanad-chip-divider {
  display: inline-block;
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 0.25rem;
  vertical-align: middle;
}

.sanad-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.hero-catalog-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, rgba(201,168,76,0.18) 0%, rgba(201,168,76,0.08) 100%);
  border: 1.5px solid var(--gold);
  border-radius: 8px;
  color: var(--gold);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 0 18px rgba(201,168,76,0.15);
}

.hero-catalog-btn:hover {
  background: linear-gradient(135deg, rgba(201,168,76,0.32) 0%, rgba(201,168,76,0.16) 100%);
  box-shadow: 0 0 28px rgba(201,168,76,0.35);
  transform: translateY(-1px);
  color: #fff;
}

.hero-catalog-btn .material-symbols-outlined {
  font-size: 20px;
}

.sanad-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(130deg, var(--gold), var(--gold-soft));
  color: #0a0a0a;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--gold) 30%, transparent);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.sanad-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--gold) 48%, transparent);
}

.sanad-btn-primary .material-symbols-outlined {
  font-size: 1.1rem;
}

.sanad-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}

.sanad-btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
}

.sanad-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2.5rem;
}

.sanad-stat-num {
  font-size: 1.875rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin: 0;
}

.sanad-stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0.3rem 0 0;
}

.sanad-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.sanad-dot {
  height: 6px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
  padding: 0;
  display: block;
}

.sanad-dot.active {
  width: 24px;
  background: rgba(255, 255, 255, 0.7);
}

.sanad-dot.inactive {
  width: 6px;
  background: rgba(255, 255, 255, 0.25);
}

/* ====================================================
   SANAD RESPONSIVE OVERRIDES
   ==================================================== */

@media (max-width: 980px) {
  .sanad-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .sanad-hero {
    margin-top: -84px;
    padding-top: 84px;
    align-items: flex-start;
    padding-bottom: 5rem;
  }

  .sanad-hero-content {
    max-width: 100%;
  }

  .sanad-container {
    padding-block: 3rem 1.5rem;
  }

  .sanad-h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .sanad-ctas {
    margin-bottom: 2.5rem;
    flex-direction: column;
    gap: 0.6rem;
  }

  [dir="rtl"] .sanad-ctas {
    align-items: flex-end;
  }

  .sanad-btn-primary,
  .sanad-btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .sanad-stats {
    gap: 1.5rem;
    padding-top: 1.5rem;
  }

  .sanad-dots {
    bottom: 1.5rem;
  }
}
/* ====================================================
   GRID MOTION — animated parallax gallery
   ==================================================== */

.portfolio-gm-section {
  position: relative;
  overflow: clip;
}

.portfolio-gm-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 3rem 2rem 0;
  pointer-events: none;
}

.portfolio-gm-canvas {
  width: 100%;
  height: 600px;
  position: relative;
}

.gm-wrap {
  height: 100%;
  width: 100%;
  overflow: clip;
  touch-action: pan-y;
  max-width: 100%;
}

.gm-intro {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
}

.gm-intro::after {
  content: '';
  position: absolute;
  inset: 0;
  background-size: 250px;
  pointer-events: none;
  z-index: 4;
}

.gm-container {
  gap: 1rem;
  flex: none;
  position: relative;
  width: 150vw;
  height: 150%;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  grid-template-columns: 100%;
  transform: rotate(-15deg);
  transform-origin: center center;
  z-index: 2;
}

.gm-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(7, 1fr);
  will-change: transform;
}

.gm-item {
  position: relative;
}

.gm-item-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 10px;
  background-color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.gm-item-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: 50% 50%;
  position: absolute;
  inset: 0;
}

.gm-item-content {
  padding: 0.75rem;
  text-align: center;
  z-index: 1;
  opacity: 0.8;
  font-family: var(--font-body);
  color: var(--gold);
}

.gm-fullview {
  position: relative;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

/* ====================================================
   STACK — draggable card stack
   ==================================================== */

.stack-container {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 600px;
}

.stack-card-rotate {
  position: absolute;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
}

.stack-card-rotate-disabled {
  position: absolute;
  width: 100%;
  height: 100%;
  cursor: pointer;
  touch-action: pan-y;
}

.stack-card {
  border-radius: 1rem;
  overflow: hidden;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stack-card img {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.national-stack-wrap {
  min-height: 380px;
  position: relative;
}

@media (max-width: 768px) {
  .portfolio-gm-canvas {
    height: 400px;
  }
  .national-stack-wrap {
    min-height: 260px;
    max-height: 300px;
    width: 100%;
  }
  .stack-container {
    touch-action: pan-y;
  }
}

@media (max-width: 480px) {
  .national-stack-wrap {
    min-height: 220px;
    max-height: 260px;
  }
}

/* ====================================================
   STAT COUNTER — animated number display
   ==================================================== */

.stat-number {
  display: block;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin: 0.5rem 0 0.25rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.strength-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

/* ====================================================
   ENHANCED CARD HOVER — micro-interactions
   ==================================================== */

.card {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease,
              border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px color-mix(in srgb, var(--gold) 8%, transparent),
              0 4px 12px rgba(0,0,0,0.25);
  border-color: color-mix(in srgb, var(--gold) 35%, transparent);
}

.why-card {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease;
  cursor: default;
}

.why-card:hover {
  transform: translateY(-6px) scale(1.01);
}

.why-card:hover .icon-wrapper {
  background: color-mix(in srgb, var(--gold) 22%, transparent);
  transform: scale(1.1) rotate(-3deg);
}

.icon-wrapper {
  transition: background 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Portfolio grid hover */
.portfolio-card {
  transition: transform 0.3s ease;
}

.portfolio-card:hover {
  transform: scale(1.03);
  z-index: 2;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

/* Track card hover */
.track-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.track-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

/* Strength card hover */
.strength-card:hover .strength-icon {
  transform: scale(1.15);
}

.strength-icon {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Button hover improvements */
.btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
              border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--gold) 25%, transparent);
}

.btn:active {
  transform: translateY(0);
}

/* Pill filter buttons */
.pill {
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.pill:hover {
  transform: translateY(-1px);
}

/* ====================================================
   ASSISTANT PANEL — improved chat UX
   ==================================================== */

.assistant-msg.ai {
  animation: msgSlideIn 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.assistant-msg.user {
  animation: msgSlideIn 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes msgSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.fab-main {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.2s ease;
}

.fab-main:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--gold) 35%, transparent);
}

/* ====================================================
   SCROLL RESISTANCE FIX — contain heavy sections
   ==================================================== */

.portfolio-gm-section {
  contain: layout style;
}

/* Smooth scroll on main content */
.main-content {
  scroll-padding-top: var(--header-h, 72px);
}

/* Reduce repaints on hover-heavy sections */
.why-grid,
.strength-grid,
.tracks-grid {
  contain: layout;
}


/* ====================================================
   SILK CANVAS
   ==================================================== */

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.silk-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.18;
}

html[data-theme="light"] .silk-canvas {
  opacity: 0.09;
}

/* ====================================================
   PAGE TRANSITIONS
   ==================================================== */

/* AnimatePresence wraps the routes — motion handles it */
.main-content > div {
  min-height: 60vh;
}

/* ====================================================
   MOBILE HAMBURGER + FULL-SCREEN OVERLAY
   ==================================================== */

.mobile-header-end {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.hamburger-btn:hover {
  border-color: color-mix(in srgb, var(--gold) 40%, transparent);
  background: color-mix(in srgb, var(--gold) 5%, transparent);
}

.ham-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.hamburger-btn.open .ham-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.open .ham-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger-btn.open .ham-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Full-screen overlay — slides down from top, RTL-safe */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateY(-100%);
  transition: transform 0.36s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              visibility 0s linear 0.36s;
  visibility: hidden;
}

.mobile-overlay.open {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.36s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              visibility 0s linear 0s;
}

.mobile-overlay-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.mobile-overlay-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.mobile-overlay-close:hover {
  border-color: color-mix(in srgb, var(--gold) 40%, transparent);
  background: color-mix(in srgb, var(--gold) 5%, transparent);
}

.mobile-overlay-close .material-symbols-outlined {
  font-size: 22px;
}

.mobile-overlay-links {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem 0.5rem;
  gap: 0.15rem;
  flex: 1;
}

.mobile-overlay-link {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 1rem;
  border-radius: 12px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-soft);
  border: 1px solid transparent;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  opacity: 0;
}

.mobile-overlay.open .mobile-overlay-link {
  animation: overlayLinkIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: calc(var(--i, 0) * 0.045s + 0.15s);
}

@keyframes overlayLinkIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.mobile-overlay-link:hover,
.mobile-overlay-link.active {
  color: var(--gold);
  background: color-mix(in srgb, var(--gold) 8%, transparent);
  border-color: color-mix(in srgb, var(--gold) 20%, transparent);
}

.mobile-overlay-footer {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem 1.25rem 2rem;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}

.mobile-overlay-wa,
.mobile-overlay-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 52px;
  padding: 0 1.25rem;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.mobile-overlay-wa {
  background: color-mix(in srgb, #25D366 12%, var(--surface));
  color: #25D366;
  border: 1px solid color-mix(in srgb, #25D366 25%, transparent);
}

.mobile-overlay-wa:hover {
  background: color-mix(in srgb, #25D366 22%, var(--surface));
}

.mobile-overlay-call {
  background: color-mix(in srgb, var(--gold) 10%, var(--surface));
  color: var(--gold);
  border: 1px solid color-mix(in srgb, var(--gold) 20%, transparent);
}

.mobile-overlay-call:hover {
  background: color-mix(in srgb, var(--gold) 20%, var(--surface));
}

.mobile-overlay-toggles {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.mobile-overlay-toggle-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-soft);
  cursor: pointer;
  padding: 0 0.75rem;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.mobile-overlay-toggle-btn:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--gold) 30%, transparent);
  background: color-mix(in srgb, var(--gold) 5%, transparent);
}

/* Desktop nav hidden on mobile */
.desktop-nav-group {
  display: flex;
}

@media (max-width: 980px) {
  .desktop-nav-group {
    display: none !important;
  }
  .mobile-header-end {
    display: flex !important;
  }
}

@media (min-width: 981px) {
  .mobile-overlay {
    display: none !important;
  }
}

/* ====================================================
   FLOATING ACTION BUTTON — single expandable FAB
   ==================================================== */

.fab-root {
  position: fixed;
  inset-inline-end: 1.5rem;
  bottom: 1.5rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.fab-trigger {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--gold) 50%, transparent),
              0 2px 8px rgba(0,0,0,0.3);
  color: #111;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.fab-trigger .material-symbols-outlined {
  font-size: 24px;
  font-variation-settings: "FILL" 1;
}

.fab-trigger.open {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* Sub action wraps */
.fab-sub-wrap {
  position: fixed;
  inset-inline-end: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-direction: row-reverse;
}

html[dir="rtl"] .fab-sub-wrap {
  flex-direction: row;
}

.fab-sub-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.fab-sub-btn:hover {
  background: color-mix(in srgb, var(--gold) 12%, var(--surface));
  border-color: color-mix(in srgb, var(--gold) 35%, transparent);
  transform: scale(1.08);
}

.fab-sub-btn .material-symbols-outlined {
  font-size: 20px;
}

.fab-sub-label {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  pointer-events: none;
}

/* AI Chat panel */
.fab-chat-panel {
  position: fixed;
  inset-inline-end: 1.5rem;
  bottom: 80px;
  width: min(360px, calc(100vw - 2rem));
  max-height: min(500px, 70vh);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 4px 12px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  z-index: 901;
}

.fab-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--gold) 8%, var(--surface));
}

.fab-chat-head strong {
  display: block;
  font-size: 0.95rem;
  color: var(--gold);
}

.fab-chat-head span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.fab-chat-back {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-soft);
}

.fab-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  scroll-behavior: smooth;
}

/* Typing dots animation */
.typing-indicator {
  display: flex !important;
  gap: 4px;
  align-items: center;
  padding: 0.5rem 0.75rem !important;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: typingDot 1.2s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
  40%           { transform: scale(1.1); opacity: 1; }
}

/* Remove old floating-actions, assistant-panel styles conflict */
.floating-actions { display: none !important; }

/* ====================================================
   SECTION BACKGROUND BANDS
   ==================================================== */

.section-band-alt {
  background: color-mix(in srgb, var(--surface) 55%, var(--bg));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-band-surface {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-band-gold {
  background: color-mix(in srgb, var(--gold) 5%, var(--bg));
  border-top: 1px solid color-mix(in srgb, var(--gold) 12%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 12%, transparent);
}

html[data-theme="light"] .section-band-alt {
  background: #f0f4f8;
}

html[data-theme="light"] .section-band-surface {
  background: #ffffff;
}

html[data-theme="light"] .section-band-gold {
  background: color-mix(in srgb, var(--gold) 6%, #fafaf7);
}

/* ====================================================
   HERO MOBILE FIX — remove empty space
   ==================================================== */

@media (max-width: 768px) {
  .sanad-hero {
    min-height: 100dvh;
    align-items: center !important;
    padding-bottom: 4.5rem !important;
  }

  .sanad-container {
    padding-block: 5rem 2rem !important;
    align-items: flex-start;
  }

  .sanad-stats {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
  }

  .sanad-trust-chips {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .sanad-chip-divider { display: none; }
}


/* ====================================================
   STATIC AMBIENT BACKGROUND — geometric grid
   ==================================================== */

.ambient {
  background-image:
    radial-gradient(circle at 20% 20%, rgba(201,168,76,0.06) 0%, transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(201,168,76,0.04) 0%, transparent 55%),
    linear-gradient(rgba(201,168,76,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.028) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 72px 72px, 72px 72px;
}

html[data-theme="light"] .ambient {
  background-image:
    radial-gradient(circle at 20% 20%, rgba(167,133,41,0.07) 0%, transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(167,133,41,0.05) 0%, transparent 55%),
    linear-gradient(rgba(167,133,41,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167,133,41,0.04) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 72px 72px, 72px 72px;
}

/* ====================================================
   WAVE SECTION DIVIDERS
   ==================================================== */

.wave-divider {
  display: block;
  line-height: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.wave-divider svg {
  display: block;
  width: 100%;
}

/* ====================================================
   HEADER — hide-on-scroll + logo only
   ==================================================== */

.sanad-header {
  transition: background 0.3s ease, border-color 0.3s ease,
              transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.3s ease;
}

.sanad-header.nav-hidden {
  transform: translateY(-110%);
}

.brand-logo-only {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.header-logo-img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(201,168,76,0.35));
  transition: transform 0.2s ease;
}

.header-logo-img:hover {
  transform: scale(1.04);
}

.nav-sep {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 0.5rem;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ====================================================
   HERO — WhatsApp + Call buttons
   ==================================================== */

.hero-wa-btn {
  background: #25D366 !important;
  border-color: #25D366 !important;
  color: #fff !important;
  gap: 0.55rem;
}

.hero-wa-btn:hover {
  background: #1fba59 !important;
  box-shadow: 0 6px 24px rgba(37,211,102,0.4) !important;
}

.hero-call-btn {
  gap: 0.5rem;
}

/* ====================================================
   FAB — call + WhatsApp accent buttons
   ==================================================== */

.fab-sub-accent {
  background: color-mix(in srgb, var(--gold) 15%, var(--surface)) !important;
  border-color: color-mix(in srgb, var(--gold) 40%, transparent) !important;
  color: var(--gold) !important;
}

.fab-sub-wrap:nth-child(2) .fab-sub-btn {
  background: color-mix(in srgb, #25D366 15%, var(--surface));
  border-color: color-mix(in srgb, #25D366 35%, transparent);
  color: #25D366;
}

/* ====================================================
   FAB — AI proactive popup bubble
   ==================================================== */

.fab-ai-popup {
  position: fixed;
  inset-inline-end: 1.5rem;
  bottom: 90px;
  width: min(280px, calc(100vw - 2.5rem));
  background: var(--surface-2);
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  border-radius: 16px 16px 4px 16px;
  padding: 1rem 1rem 0.85rem;
  z-index: 9100;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5),
              0 0 0 1px color-mix(in srgb, var(--gold) 20%, transparent);
}

.fab-ai-popup-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.fab-ai-popup-head .material-symbols-outlined {
  font-size: 20px;
  color: var(--gold);
  font-variation-settings: "FILL" 1;
}

.fab-ai-popup-head strong {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 700;
  flex: 1;
}

.fab-ai-popup-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0;
  display: flex;
  align-items: center;
  line-height: 1;
  transition: color 0.2s;
}

.fab-ai-popup-close:hover {
  color: var(--text);
}

.fab-ai-popup-close .material-symbols-outlined {
  font-size: 16px;
}

.fab-ai-popup p {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.fab-ai-popup-cta {
  display: block;
  width: 100%;
  background: var(--gold);
  color: #111;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  text-align: center;
}

.fab-ai-popup-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* ====================================================
   SERVICES PAGE — rich image layout
   ==================================================== */

.services-rich-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-top: 3rem;
}

.service-rich-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.service-rich-card.reverse {
  direction: rtl;
}

html[dir="rtl"] .service-rich-card {
  direction: rtl;
}

html[dir="rtl"] .service-rich-card.reverse {
  direction: ltr;
}

.service-rich-media {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.service-rich-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-rich-card:hover .service-rich-media img {
  transform: scale(1.04);
}

.service-rich-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4,8,20,0.55) 0%, transparent 60%);
}

.service-rich-badge {
  position: absolute;
  bottom: 1rem;
  inset-inline-start: 1rem;
  background: var(--gold);
  color: #111;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.service-rich-body {
  direction: ltr;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

html[dir="rtl"] .service-rich-body {
  direction: rtl;
}

.service-rich-card.reverse .service-rich-body {
  direction: ltr;
}

html[dir="rtl"] .service-rich-card.reverse .service-rich-body {
  direction: rtl;
}

.service-rich-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.service-rich-points li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.service-rich-points .material-symbols-outlined {
  color: var(--gold);
  font-size: 18px;
  flex-shrink: 0;
}

.service-rich-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: #fff;
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
  margin-top: 0.5rem;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.service-rich-cta:hover {
  background: #1fba59;
  box-shadow: 0 4px 18px rgba(37,211,102,0.4);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .service-rich-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .service-rich-card.reverse {
    direction: unset;
  }
}

/* ====================================================
   CONTACT PAGE — call/WhatsApp first design
   ==================================================== */

.contact-primary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 640px;
  margin-inline: auto;
}

.contact-action-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 1.6rem;
  border-radius: 1.25rem;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.contact-action-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.contact-action-btn:hover {
  transform: translateY(-3px);
}

.wa-action { border-color: color-mix(in srgb, #25D366 30%, transparent); }
.wa-action:hover { box-shadow: 0 8px 32px rgba(37,211,102,0.2); }
.wa-action .contact-action-icon { color: #25D366; }

.call-action { border-color: color-mix(in srgb, var(--gold) 30%, transparent); }
.call-action:hover { box-shadow: 0 8px 32px color-mix(in srgb, var(--gold) 20%, transparent); }
.call-action .contact-action-icon { color: var(--gold); }

.contact-action-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: color-mix(in srgb, currentColor 10%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-action-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.contact-action-text span {
  font-size: 0.85rem;
  color: var(--text-soft);
  direction: ltr;
  display: block;
}

.contact-action-arrow {
  margin-inline-start: auto;
  color: var(--text-muted);
  font-size: 20px;
}

.contact-info-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.contact-info-card .material-symbols-outlined {
  color: var(--gold);
  font-size: 24px;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.contact-info-card strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.contact-info-card p,
.contact-info-card a {
  font-size: 0.85rem;
  color: var(--text-soft);
  text-decoration: none;
}

.contact-info-card a:hover {
  color: var(--gold);
}

/* ── Location Section (home page + contact) ─────────────────────────── */
.location-section {
  padding: clamp(3rem, 6vw, 5rem) 0 0;
}

.location-map-wrap {
  position: relative;
  margin-top: 2.5rem;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.location-map-wrap iframe {
  display: block;
  filter: grayscale(0.3) invert(0.05);
}

[data-theme="dark"] .location-map-wrap iframe {
  filter: invert(0.9) hue-rotate(180deg) saturate(0.8) brightness(0.85);
}

.location-info-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 2rem;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.location-info-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.location-info-item .material-symbols-outlined {
  font-size: 18px;
  color: var(--gold);
  font-variation-settings: "FILL" 1;
}

.location-info-item a {
  color: var(--gold);
  text-decoration: none;
}

.location-info-item a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .location-map-wrap iframe { height: 280px; }
  .location-info-bar { flex-direction: column; gap: 0.6rem; padding: 1rem; }
}

/* Map section */
.contact-map-section {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  margin-top: 2rem;
}

.contact-map-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-map-header .material-symbols-outlined {
  font-size: 22px;
  color: var(--gold);
  font-variation-settings: "FILL" 1;
}

.contact-map-header strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.contact-map-header span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.contact-map-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.contact-map-frame iframe {
  display: block;
  filter: grayscale(0.3) invert(0.05);
}

[data-theme="dark"] .contact-map-frame iframe {
  filter: invert(0.9) hue-rotate(180deg) saturate(0.8) brightness(0.85);
}

.contact-meeting-section {
  border-top: 1px solid var(--line);
  padding-top: 3rem;
}

.contact-meeting-header {
  margin-bottom: 2rem;
}

@media (max-width: 600px) {
  .contact-primary-actions {
    grid-template-columns: 1fr;
  }
}

/* ====================================================
   SANAD-BTN-NAV — WhatsApp green touch
   ==================================================== */

.sanad-btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ====================================================
   INTERIOR-FIRST DESIGN IMPROVEMENTS
   Responsive, layout, UX enhancements
   ==================================================== */

/* Stats — 3-column grid on mobile since we always have 3 stats */
@media (max-width: 768px) {
  .sanad-stats {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.75rem !important;
  }
  .sanad-stat-num {
    font-size: 1.4rem;
  }
  .sanad-stat-label {
    font-size: 0.6rem;
    letter-spacing: 0.04em;
  }
}

/* On very small screens stack stats vertically */
@media (max-width: 360px) {
  .sanad-stats {
    grid-template-columns: 1fr !important;
    gap: 0.6rem !important;
  }
}

/* Portfolio canvas — reduce height on mobile */
@media (max-width: 768px) {
  .portfolio-gm-canvas {
    height: 420px;
  }
}
@media (max-width: 480px) {
  .portfolio-gm-canvas {
    height: 320px;
  }
}

/* Ensure section-title scales well at all breakpoints */
@media (max-width: 375px) {
  .section-title {
    font-size: clamp(1.4rem, 8vw, 1.9rem);
  }
  .sanad-p {
    font-size: 0.92rem;
  }
}

/* Track cards — interior-first service overview on mobile */
@media (max-width: 640px) {
  .tracks-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .track-card .track-media {
    height: 200px;
  }
}

/* Cursor pointer on interactive cards */
.track-card,
.why-card,
.strength-card,
.highlight-card,
.portfolio-card,
.service-rich-card,
.contact-action-btn {
  cursor: pointer;
}

/* Better service-rich body padding on medium screens */
@media (max-width: 900px) and (min-width: 769px) {
  .service-rich-card {
    gap: 2rem;
  }
}

/* Section spacing tightened on mobile */
@media (max-width: 640px) {
  .section {
    padding-block: 3rem;
  }
  .section-head {
    margin-bottom: 2rem;
  }
  .strength-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

/* Hero CTA buttons — stack vertically on very small screens */
@media (max-width: 400px) {
  .sanad-ctas {
    flex-direction: column;
    align-items: flex-start;
  }
  .sanad-btn-primary,
  .sanad-btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* Better focus rings for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .sanad-hero-bg img {
    transition: none;
  }
  .service-rich-card:hover .service-rich-media img {
    transform: none;
  }
}

/* ====================================================
   CATALOG DOWNLOAD BAND
   ==================================================== */

.catalog-download-band {
  padding: 2.5rem 0;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--gold) 8%, var(--surface)) 0%,
    var(--surface) 100%);
  border-top: 1px solid color-mix(in srgb, var(--gold) 25%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 25%, transparent);
}

.catalog-download-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.catalog-download-text {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.catalog-dl-icon {
  font-size: 40px;
  color: var(--gold);
  font-variation-settings: "FILL" 1;
  flex-shrink: 0;
}

.catalog-download-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.catalog-download-text p {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin: 0;
}

.catalog-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: #111;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 18px color-mix(in srgb, var(--gold) 35%, transparent);
  flex-shrink: 0;
  white-space: nowrap;
}

.catalog-dl-btn:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px color-mix(in srgb, var(--gold) 45%, transparent);
}

.catalog-dl-btn .material-symbols-outlined {
  font-size: 18px;
}

@media (max-width: 600px) {
  .catalog-download-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .catalog-dl-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ====================================================
   MARQUEE SHOWCASE (replaces GridMotion portfolio)
   ==================================================== */

.marquee-showcase {
  padding: clamp(2rem, 5vw, 4rem) 0 3rem;
  overflow: clip;
  max-width: 100%;
}

.marquee-showcase-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.marquee-track-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: clip;
  max-width: 100%;
}

.marquee-track {
  display: flex;
  gap: 4px;
  width: max-content;
  animation: marquee-left 35s linear infinite;
}

.marquee-track--reverse {
  animation: marquee-right 35s linear infinite;
}

.marquee-track img {
  height: 260px;
  width: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  pointer-events: none;
  user-select: none;
}

@keyframes marquee-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.marquee-track-wrap:hover .marquee-track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

@media (max-width: 600px) {
  .marquee-track img { height: 180px; }
}

/* ====================================================
   SECTION-COMPACT — tighter padding for About page gallery
   ==================================================== */

.section-compact {
  padding: clamp(0.5rem, 2vw, 1.5rem) 0;
}

.section-compact .gallery-grid {
  grid-auto-rows: 340px;
}

.section-compact .section-head {
  margin-bottom: 1rem;
}

/* ====================================================
   MARQUEE — clickable image buttons + zoom hint
   ==================================================== */

.marquee-img-btn {
  position: relative;
  display: block;
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
}

.marquee-img-btn img {
  height: 260px;
  width: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
  transition: transform 0.4s ease;
}

.marquee-img-btn:hover img {
  transform: scale(1.06);
}

.marquee-img-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0);
  transition: background 0.3s ease;
}

.marquee-img-btn:hover .marquee-img-zoom {
  background: rgba(0,0,0,0.32);
}

.marquee-img-zoom .material-symbols-outlined {
  font-size: 32px;
  color: #fff;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.25s ease, transform 0.25s ease;
  font-variation-settings: "FILL" 1;
}

.marquee-img-btn:hover .marquee-img-zoom .material-symbols-outlined {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 600px) {
  .marquee-img-btn img { height: 180px; }
}

/* ====================================================
   PORTFOLIO INFINITE SLIDER (replaces marquee rows)
   ==================================================== */

.portfolio-slider-root {
  position: relative;
  overflow: clip;
  max-width: 100%;
}

.portfolio-slider-viewport {
  overflow: clip;
  width: 100%;
  max-width: 100%;
}

.portfolio-slider-track {
  display: flex;
  will-change: transform;
}

.portfolio-slider-item {
  flex-shrink: 0;
  padding: 0 1px;
}

.portfolio-slider-item .marquee-img-btn {
  display: block;
  width: 100%;
}

.portfolio-slider-item .marquee-img-btn img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  aspect-ratio: unset;
}

.portfolio-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(8, 8, 18, 0.78);
  border: 1px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.15s;
  outline: none;
  flex-shrink: 0;
}

.portfolio-slider-prev { left: 0.75rem; }
.portfolio-slider-next { right: 0.75rem; }

.portfolio-slider-arrow:hover {
  background: color-mix(in srgb, var(--gold) 22%, rgba(8,8,18,0.92));
  transform: translateY(-50%) scale(1.08);
}

.portfolio-slider-arrow .material-symbols-outlined {
  font-size: 28px;
}

@media (max-width: 600px) {
  .portfolio-slider-item .marquee-img-btn img { height: 240px; }
  .portfolio-slider-arrow { width: 38px; height: 38px; }
  .portfolio-slider-arrow .material-symbols-outlined { font-size: 22px; }
}

/* ====================================================
   RESPONSIVE FLUID — gap-fill across all breakpoints
   Fixes static heights, missing breakpoints, overflow
   ==================================================== */

/* ── Always-on: flex containers must wrap ─────────── */
.cta-band        { flex-wrap: wrap; }
.footer-bottom   { flex-wrap: wrap; }
.location-info-bar { flex-wrap: wrap; }

/* ── 1024px: large tablet / small laptop ─────────── */
@media (max-width: 1024px) {
  .section-compact .gallery-grid { grid-auto-rows: 300px; }
}

/* ── 980px supplement: gallery-full intermediate ─── */
@media (max-width: 980px) {
  .section-compact .gallery-grid { grid-auto-rows: 250px; }
}

/* ── 768px: fill missing mobile-tablet gaps ──────── */
@media (max-width: 768px) {
  /* About-page compact gallery was 340px with zero mobile override */
  .section-compact .gallery-grid { grid-auto-rows: 210px; }

  /* gallery-grid--full (Projects page) had no 768px rule — it jumped 980→600 */
  .gallery-grid--full {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 230px;
  }

  /* Header logo — 68px inside a 72px-tall header leaves 4px padding */
  .header-logo-img { width: 56px; height: 56px; }

  /* national-media image was missing mobile min-height */
  .national-media img { min-height: 220px; }

  /* Marquee/portfolio slider images: fill 980→600 gap */
  .marquee-track img,
  .marquee-img-btn img                          { height: 200px; }
  .portfolio-slider-item .marquee-img-btn img   { height: 280px; }

  /* cta-band: stack text + button vertically at tablet */
  .cta-band { flex-direction: column; align-items: flex-start; gap: 0.85rem; }
}

/* ── 640px: phones / small tablets ───────────────── */
@media (max-width: 640px) {
  /* Compact gallery */
  .section-compact .gallery-grid { grid-auto-rows: 180px; }

  /* national stack height: 380→280 at 768px, now 230 at 640px */
  .national-stack-wrap { min-height: 230px; }
  .national-media img  { min-height: 200px; }

  /* 3D canvas: fill gap between 768px (400/420px) and 480px (320px) */
  .portfolio-gm-canvas { height: 300px; }

  /* Marquee */
  .marquee-track img,
  .marquee-img-btn img                          { height: 170px; }
  .portfolio-slider-item .marquee-img-btn img   { height: 190px; }
}

/* ── 480px: standard phone ────────────────────────── */
@media (max-width: 480px) {
  /* Compact gallery */
  .section-compact .gallery-grid { grid-auto-rows: 160px; }

  /* track-media: existing rule ends at 640px (200px), nothing below */
  .track-media { height: 165px; }

  /* national */
  .national-stack-wrap { min-height: 190px; }
  .national-media img  { min-height: 175px; }

  /* Marquee / slider */
  .marquee-track img,
  .marquee-img-btn img                          { height: 150px; }
  .portfolio-slider-item .marquee-img-btn img   { height: 165px; }

  /* Header logo: scale down further */
  .header-logo-img { width: 48px; height: 48px; }

  /* Hero catalog button: full-width on small phones */
  .hero-catalog-btn {
    width: 100%;
    justify-content: center;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  /* Contact action buttons: always full-width on phone */
  .contact-primary-actions {
    grid-template-columns: 1fr;
  }

  /* Services rich grid: tighter gap */
  .services-rich-grid { gap: 2.5rem; margin-top: 1.5rem; }

  /* cta-band button: full width */
  .cta-band .btn { width: 100%; justify-content: center; text-align: center; }
}

/* ── 400px: very small phone ──────────────────────── */
@media (max-width: 400px) {
  /* Compact gallery: drop to single column */
  .section-compact .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  /* Regular gallery: single column, shorter rows */
  .gallery-grid,
  .gallery-grid--full {
    grid-template-columns: 1fr;
    grid-auto-rows: 190px;
  }
  .gallery-card:nth-child(5n+1) { grid-row: span 1; }

  /* track-media */
  .track-media { height: 155px; }

  /* national */
  .national-stack-wrap { min-height: 170px; }

  /* header logo */
  .header-logo-img { width: 44px; height: 44px; }

  /* sanad-badge line — hide on tiny screens to save space */
  .sanad-badge-line { display: none; }

  /* why-grid: force single column */
  .why-grid { grid-template-columns: 1fr; }

  /* strength-grid: single column */
  .strength-grid { grid-template-columns: 1fr !important; }
}
