/* ============================================================
   DIJORS — Global Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --black:   #0a0a0a;
  --white:   #f5f4f0;
  --gold:    #c9a96e;
  --mid:     #555555;
  --border:  #e0ddd8;
  --ff-head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --ff-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --topbar-h: 0px;
  --nav-h:   104px;
  --ease:    cubic-bezier(0.4, 0, 0.2, 1);
}

html[lang="ar"] {
  --ff-head: 'Cairo', system-ui, sans-serif;
  --ff-body: 'Cairo', system-ui, sans-serif;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--ff-body);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
}

main {
  padding-top: calc(var(--topbar-h) + var(--nav-h));
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--ff-head);
  font-weight: 600;
  line-height: 1.15;
}

h1 { font-size: clamp(2.8rem, 6vw, 5.8rem); letter-spacing: -0.03em; line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3.2rem); letter-spacing: -0.02em; line-height: 1.15; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); letter-spacing: -0.01em; }
h4 { font-size: 1.1rem; letter-spacing: 0.02em; }

p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--mid);
  font-weight: 300;
}

/* ── Utility ────────────────────────────────────────────────── */
.container {
  width: 92%;
  max-width: 1400px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--ff-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 1px solid var(--black);
  background: transparent;
  color: var(--black);
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.btn:hover {
  background: var(--black);
  color: var(--white);
}

.btn-gold {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold);
  color: var(--white);
}

/* ── Topbar (hidden — contact info moved into nav) ───────────── */
.topbar { display: none; }

/* ── Nav right group (phone + WA + contact btn) ─────────────── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-self: end;
}

.nav-phone,
.nav-wa {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 244, 240, 0.6);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s var(--ease);
}

.nav-phone svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
.nav-phone svg.nav-icon-outline { fill: none; }
.nav-wa svg   { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

.nav-phone:hover { color: var(--gold); }
.nav-wa:hover    { color: #25D366; }

.nav-sep {
  width: 1px;
  height: 13px;
  background: rgba(245, 244, 240, 0.18);
  flex-shrink: 0;
}

/* Scrolled — darken the right group */
.site-header.scrolled .nav-phone,
.site-header.scrolled .nav-wa { color: var(--mid); }
.site-header.scrolled .nav-sep { background: var(--border); }

/* ── Header / Nav ───────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: var(--topbar-h); left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: top 0.35s var(--ease), background 0.4s var(--ease), border-color 0.3s var(--ease);
}

.site-header .container {
  height: 100%;
}

.site-header.scrolled {
  top: 0;
  background: rgba(245, 244, 240, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--border);
}

.nav-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.nav-logo {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  align-items: center;
  justify-items: start;
  flex-shrink: 0;
  height: 60px;
  position: relative;
}

.logo-img {
  grid-area: 1 / 1;
  height: 60px;
  width: auto;
  display: block;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
  backface-visibility: hidden;
}

.logo-white {
  opacity: 1;
  z-index: 1;
}

.logo-gold {
  opacity: 0;
  z-index: 2;
}

.site-header.scrolled .logo-white {
  opacity: 0;
  pointer-events: none;
}

.site-header.scrolled .logo-gold {
  opacity: 1;
  pointer-events: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  justify-self: center;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 244, 240, 0.75);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.3s var(--ease);
}

/* Projects dropdown */
.nav-item-dropdown {
  position: relative;
}

/* Invisible bridge over the gap between the link and the dropdown below,
   so the hover chain never breaks while the cursor crosses it. Positioned
   absolutely so it doesn't affect the nav-links flex layout. */
.nav-item-dropdown::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 18px;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 190px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 16px 32px rgba(0,0,0,0.18);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  z-index: 1001;
}

.nav-item-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown li a {
  display: block;
  padding: 10px 20px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  opacity: 0.75;
}

.nav-dropdown li a:hover {
  opacity: 1;
  color: var(--gold);
  background: rgba(201, 169, 110, 0.08);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Nav text goes dark once header has white background */
.site-header.scrolled .nav-links a { color: var(--mid); }
.site-header.scrolled .nav-links a:hover,
.site-header.scrolled .nav-links a.active { color: var(--black); }


.btn-nav-lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 10px 16px;
  border: 1px solid rgba(245, 244, 240, 0.35);
  color: rgba(245, 244, 240, 0.9);
  flex-shrink: 0;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.4s var(--ease);
}
.flag-svg {
  width: 16px;
  height: 10px;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.btn-nav-lang:hover {
  background: rgba(245, 244, 240, 0.15);
  color: var(--white);
}
.site-header.scrolled .btn-nav-lang {
  border-color: var(--black);
  color: var(--black);
}
.site-header.scrolled .btn-nav-lang:hover {
  background: var(--black);
  color: var(--white);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.site-header.scrolled .nav-toggle span { background: var(--black); }

.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: calc(var(--topbar-h) + var(--nav-h)) 0 0 0;
  background: var(--white);
  z-index: 999;
  flex-direction: column;
  padding: 48px 5%;
  gap: 0;
  overflow-y: auto;
}

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

.mobile-nav a {
  font-family: var(--ff-head);
  font-size: 2.5rem;
  font-weight: 300;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  display: block;
}

.mobile-nav-meta {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-nav-meta a {
  font-family: var(--ff-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  border: none;
  padding: 0;
  font-weight: 400;
}

/* Footer logo (text, shown on dark background) */
.footer-logo {
  font-family: var(--ff-head);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  display: block;
  margin-bottom: 16px;
}

.footer-logo-img {
  height: 50px !important;
  width: auto;
  display: block;
  margin-bottom: 16px;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background: var(--black);
  margin-top: calc(-1 * (var(--topbar-h) + var(--nav-h)));
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.8s ease-in-out, transform 8s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.72);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 5%;
}



.hero-label {
  font-family: var(--ff-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

.hero-content h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.3vw, 3.8rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 1120px;
  font-style: normal;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.hero-content h1 em {
  font-style: italic;
  color: var(--gold);
  white-space: nowrap;
}

/* Hero bottom bar */
.hero-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5% 32px;
}

.hero-scroll-link {
  font-family: var(--ff-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 244, 240, 0.85);
  transition: color 0.3s;
}

.hero-scroll-link:hover { color: var(--gold); }

/* Hero slide indicators */
.hero-indicators {
  display: flex;
  flex-wrap: wrap;
  max-width: 260px;
  gap: 6px;
}

.hero-dot {
  width: 14px;
  height: 2px;
  background: rgba(245,244,240,0.25);
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
}
.hero-dot.active {
  background: var(--gold);
  width: 24px;
}

/* Fallback backgrounds when images aren't loaded yet */
.hero-slide:nth-child(1) { background-color: #1a1612; }
.hero-slide:nth-child(2) { background-color: #0f1216; }
.hero-slide:nth-child(3) { background-color: #14100e; }

/* ── Section: Intro ─────────────────────────────────────────── */
.section-intro {
  padding: clamp(60px, 8vw, 100px) 0;
  border-bottom: 1px solid var(--border);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.intro-grid h2 { font-style: italic; font-weight: 300; }

.intro-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 8px;
}

.stats-row {
  display: flex;
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}

.stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--ff-head);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--black);
  line-height: 1;
}
.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ── Section: Projects ──────────────────────────────────────── */
.section-projects {
  padding: clamp(80px, 10vw, 120px) 0;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  margin-bottom: 56px;
  gap: 24px;
}

.section-header-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filter-tabs {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  width: fit-content;
}

.filter-tab {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 10px 24px;
  cursor: pointer;
  background: none;
  border: none;
  border-right: 1px solid var(--border);
  color: var(--mid);
  transition: background 0.2s, color 0.2s;
  font-family: var(--ff-body);
}
.filter-tab:last-child { border-right: none; }
.filter-tab.active, .filter-tab:hover {
  background: var(--black);
  color: var(--white);
}

.projects-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.project-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  width: calc((100% - 48px) / 3);
}

.project-card img,
.project-card .img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.project-card .img-placeholder {
  background: #d0cdc8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card .img-placeholder span {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a9890;
}

.project-card:hover img,
.project-card:hover .img-placeholder {
  transform: scale(1.05);
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.75) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  display: flex;
  align-items: flex-end;
  padding: 28px;
}

.project-card:hover .project-card-overlay { opacity: 1; }

.project-card-info { color: var(--white); }
.project-card-info .project-category {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.project-card-info h4 {
  font-family: var(--ff-head);
  font-size: 1.25rem;
  font-weight: 400;
}

.projects-cta {
  text-align: center;
  margin-top: 64px;
}

/* ── Section: Services ──────────────────────────────────────── */
.section-services {
  padding: clamp(80px, 10vw, 120px) 0;
  background: var(--black);
  color: var(--white);
}

.section-services .section-label { color: rgba(245,244,240,0.65); }
.section-services .section-label::before { background: var(--gold); }
.section-services h2 { color: var(--white); font-style: italic; font-weight: 300; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 64px;
  border: 1px solid rgba(255,255,255,0.08);
}

.service-item {
  padding: 40px;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.3s;
}
.service-item:hover { background: rgba(201,169,110,0.06); }

.service-num {
  font-family: var(--ff-head);
  font-size: 1rem;
  color: var(--gold);
  font-weight: 400;
}

.service-item h3 {
  font-size: 1.4rem;
  color: var(--white);
  font-weight: 300;
}

.service-item p {
  font-size: 0.875rem;
  color: rgba(245,244,240,0.5);
  line-height: 1.7;
  font-weight: 300;
}

/* ── Section: About Strip ────────────────────────────────────── */
.section-about-strip {
  padding: clamp(80px, 10vw, 120px) 0;
  border-bottom: 1px solid var(--border);
}

.about-strip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-strip-img {
  aspect-ratio: 4/5;
  overflow: hidden;
}

.about-strip-img img,
.about-strip-img .img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-strip-img .img-placeholder {
  background: #d0cdc8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-strip-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-strip-content h2 { font-style: italic; font-weight: 300; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--black);
  color: rgba(245,244,240,0.55);
  padding: clamp(60px, 8vw, 100px) 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .nav-logo {
  color: var(--white);
  font-size: 1.5rem;
  display: block;
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(245,244,240,0.65);
  font-size: 0.875rem;
  max-width: 28ch;
  line-height: 1.7;
}

.footer-col h5 {
  font-family: var(--ff-body);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,244,240,0.6);
  margin-bottom: 20px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(245,244,240,0.55);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold); }

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.footer-contact-item .label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245,244,240,0.6);
}

.footer-contact-item a {
  font-size: 0.875rem;
  color: rgba(245,244,240,0.55);
  transition: color 0.2s;
}
.footer-contact-item a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom p { font-size: 0.75rem; color: rgba(245,244,240,0.6); }

.footer-socials {
  display: flex;
  gap: 14px;
  padding-inline-end: 76px; /* keep clear of the fixed back-to-top button */
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(245,244,240,0.2);
  color: rgba(245,244,240,0.6);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.footer-socials a svg {
  width: 16px;
  height: 16px;
  display: block;
}
.footer-socials a:hover {
  color: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  .footer-socials { padding-inline-end: 0; }
}

/* ── Page: Portfolio ─────────────────────────────────────────── */
.page-hero {
  margin-top: calc(-1 * (var(--topbar-h) + var(--nav-h)));
  height: calc(40vh + var(--topbar-h) + var(--nav-h));
  min-height: calc(280px + var(--topbar-h) + var(--nav-h));
  background: var(--black);
  display: flex;
  align-items: center;
  padding-top: calc(var(--topbar-h) + var(--nav-h));
}

.page-hero .container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
}

.page-hero h1 {
  color: var(--white);
  font-style: italic;
  font-weight: 300;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.portfolio-section {
  padding: clamp(60px, 8vw, 100px) 0;
  padding-top: clamp(40px, 5vw, 60px);
}

.portfolio-filter {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  width: fit-content;
  margin-bottom: 56px;
}

.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  width: calc((100% - 48px) / 3);
}

.portfolio-img {
  aspect-ratio: 4/3;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.portfolio-img img,
.portfolio-img .img-placeholder {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.portfolio-img .img-placeholder {
  background: #d0cdc8;
  display: flex; align-items: center; justify-content: center;
}

.portfolio-img .img-placeholder span {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a9890;
}

.portfolio-item:hover .portfolio-img img,
.portfolio-item:hover .portfolio-img .img-placeholder {
  transform: scale(1.05);
}

/* Card hover overlay styling */
.portfolio-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  z-index: 2;
  padding: 24px;
}

.portfolio-item-hover-info {
  text-align: center;
  transform: translateY(12px);
  transition: transform 0.35s var(--ease);
}

.portfolio-item-hover-info h4 {
  font-family: var(--ff-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.portfolio-item-hover-info h3 {
  font-family: var(--ff-head);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.35;
}

.portfolio-item:hover .portfolio-item-overlay {
  opacity: 1;
}

.portfolio-item:hover .portfolio-item-hover-info {
  transform: translateY(0);
}

/* ── Page: About ─────────────────────────────────────────────── */
.about-section {
  padding: clamp(80px, 10vw, 120px) 0;
  padding-top: clamp(40px, 5vw, 60px);
}

.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-intro-text { display: flex; flex-direction: column; gap: 24px; }
.about-intro-text h2 { font-style: italic; font-weight: 300; }

.about-img { aspect-ratio: 4/5; overflow: hidden; }
.about-img img, .about-img .img-placeholder {
  width: 100%; height: 100%; object-fit: cover;
}
.about-img .img-placeholder {
  background: #d0cdc8;
  display: flex; align-items: center; justify-content: center;
}

.team-section {
  padding: clamp(60px, 8vw, 100px) 0;
  background: #f0ede8;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 56px;
}

.team-card { cursor: pointer; }

.team-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #d0cdc8;
  margin-bottom: 16px;
}

.team-img img, .team-img .img-placeholder {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.team-img .img-placeholder {
  display: flex; align-items: center; justify-content: center;
}
.team-card:hover .team-img img,
.team-card:hover .team-img .img-placeholder { transform: scale(1.04); }

.team-info h4 {
  font-family: var(--ff-head);
  font-size: 1.1rem;
  font-weight: 400;
}
.team-info span {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ── Page: Services ──────────────────────────────────────────── */
.services-page-section {
  padding: clamp(80px, 10vw, 120px) 0;
  padding-top: clamp(40px, 5vw, 60px);
}

.services-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 64px;
}

.service-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 40px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: padding 0.3s;
}

.service-row:hover { background: transparent; }

.service-row .num {
  font-family: var(--ff-head);
  font-size: 1.1rem;
  color: var(--gold);
  padding-top: 6px;
}

.service-row h3 { font-weight: 300; }
.service-row p { font-size: 0.9rem; color: var(--mid); }

/* Grid layout for Services page cards */
.services-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 80px 60px;
  margin-top: 64px;
}

.service-card-page {
  display: flex;
  flex-direction: column;
  background: transparent;
  padding: 0;
  border: none;
  border-radius: 0;
  transition: none;
}

.service-card-page h3 {
  font-family: var(--ff-head);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--black);
  margin-bottom: 16px;
}

.service-card-page .service-desc:last-of-type {
  margin-bottom: 24px;
}

.service-desc {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--mid);
  font-weight: 300;
  margin-bottom: 24px;
  min-height: 80px;
}

.service-img-wrapper {
  margin-top: auto !important;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eae9e4;
}

.service-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s var(--ease);
}

.service-card-page:hover .service-img-wrapper img {
  transform: scale(1.05);
}

/* ── Page: Contact ───────────────────────────────────────────── */
.contact-section {
  padding: clamp(80px, 10vw, 120px) 0;
  padding-top: clamp(40px, 5vw, 60px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 40px; }
.contact-info h2 { font-style: italic; font-weight: 300; }

.contact-detail { display: flex; flex-direction: column; gap: 8px; }
.contact-detail .label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
}
.contact-detail a, .contact-detail p {
  font-size: 1rem;
  color: var(--black);
  font-weight: 400;
}
.contact-detail a { transition: color 0.2s; }
.contact-detail a:hover { color: var(--gold); }

.whatsapp-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  background: #25D366;
  padding: 14px 24px;
  border-radius: 2px;
  transition: opacity 0.2s;
  width: fit-content;
}
.whatsapp-contact:hover { opacity: 0.85; }
.whatsapp-contact svg { width: 18px; height: 18px; fill: #fff; }

/* Contact form */
.contact-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--white);
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

/* Border Beam Effect */
.border-beam {
  pointer-events: none;
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 2px solid transparent;
  z-index: 5;
  
  /* Masking to only show the border line */
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.border-beam::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250%;
  height: 250%;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg, var(--gold), transparent 15%, transparent);
  animation: border-beam-rotate 4s linear infinite;
}

@keyframes border-beam-rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

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

.form-group label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid);
  font-family: var(--ff-body);
}

.form-group input,
.form-group textarea,
.form-group select {
  font-family: var(--ff-body);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--black);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-group select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

/* ── Scroll reveal ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Project Details Modal (Full-Screen Overlay) ──────────────── */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #f6f5f0;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}

.project-modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-backdrop {
  display: none; /* No backdrop blur needed as it is a solid full-screen page */
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 120px auto 80px;
  padding: 0 40px;
  background: transparent;
  box-shadow: none;
  transform: translateY(30px);
  transition: transform 0.5s var(--ease);
  border: none;
  display: block;
}

.project-modal.active .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: fixed;
  top: 32px;
  right: 48px;
  background: transparent;
  border: none;
  font-size: 2.8rem;
  color: var(--black);
  cursor: pointer;
  z-index: 2010;
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
  font-weight: 200;
}

.modal-close:hover {
  color: var(--gold);
  transform: scale(1.1);
}

html[dir="rtl"] .modal-close,
[dir="rtl"] .modal-close {
  right: auto;
  left: 48px;
}

.modal-body-content {
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding: 0;
}

/* Inside Layout */
.project-detail-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 60px;
  align-items: start;
}

.project-detail-title h2 {
  font-family: var(--ff-head);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--black);
}

.project-detail-specs {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: var(--ff-body);
}

.project-detail-specs h4 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 4px;
}

.project-detail-specs p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--mid);
}

.project-detail-specs ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-detail-specs ul li {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--black);
}

.project-detail-specs ul li strong {
  font-weight: 600;
}

/* Gallery Section */
.project-detail-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.gallery-item-wrapper {
  position: relative;
  width: calc((100% - 48px) / 3);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  background: #f5f4f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  cursor: pointer;
}

.gallery-item-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.gallery-item-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.gallery-item-wrapper:hover img {
  transform: scale(1.05);
}

.gallery-item-wrapper .img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: #eae9e4;
  color: var(--mid);
  font-family: var(--ff-body);
  font-size: 0.9rem;
  line-height: 1.4;
  border-radius: 4px;
}

/* Lightbox Fullscreen Popup */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
}
.lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: -42px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
}
.lightbox-close:hover {
  opacity: 1;
  transform: scale(1.1);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}
.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }
.lightbox-counter {
  position: absolute;
  bottom: -34px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  opacity: 0.8;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}
@media (max-width: 768px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 1rem; }
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }
}

@media (max-width: 860px) {
  .project-modal {
    background: #f6f5f0;
  }
  .modal-card {
    margin: 80px auto 40px;
    padding: 0 20px;
  }
  .modal-close {
    top: 20px;
    right: 20px;
    font-size: 2.2rem;
  }
  html[dir="rtl"] .modal-close,
  [dir="rtl"] .modal-close {
    right: auto;
    left: 20px;
  }
  .project-detail-header {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 40px;
  }
  .project-detail-gallery {
    gap: 16px;
  }
  .gallery-item-wrapper {
    width: calc((100% - 16px) / 2);
  }
}

@media (max-width: 520px) {
  .project-detail-gallery {
    gap: 16px;
  }
  .gallery-item-wrapper {
    width: 100%;
  }
}

.modal-left {
  position: relative;
  width: 100%;
}

.modal-left img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.modal-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-right h4 {
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.modal-right h3 {
  font-family: var(--ff-head);
  font-size: 1.8rem;
  line-height: 1.25;
  color: var(--black);
  margin-bottom: 8px;
}

.modal-right p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--mid);
  font-weight: 300;
}

.modal-right p + p {
  margin-top: 8px;
}

/* Modal spec sheets styling */
.project-specs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.project-spec-item {
  display: flex;
  font-size: 0.9rem;
}

.project-spec-item .label {
  font-weight: 600;
  color: var(--black);
  width: 120px;
  flex-shrink: 0;
}

.project-spec-item .val {
  color: var(--mid);
  font-weight: 300;
}

.project-spec-details {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.project-spec-details h5 {
  font-family: var(--ff-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.project-spec-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-spec-details ul li {
  font-size: 0.9rem;
  color: var(--mid);
  font-weight: 300;
  position: relative;
  padding-left: 16px;
}

.project-spec-details ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ── Modal Image Slider (Carousel) ─────────────────────────── */
.modal-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: #eae9e4;
}

.modal-slides-wrap {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.modal-slide-img {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 10, 10, 0.45);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background 0.2s, color 0.2s;
  z-index: 5;
  outline: none;
}

.modal-slider-btn:hover {
  background: var(--gold);
  color: var(--black);
}

.modal-slider-btn.prev { left: 16px; }
.modal-slider-btn.next { right: 16px; }

.modal-slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.modal-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  padding: 0;
}

.modal-slider-dot.active {
  background: var(--gold);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .project-card { width: calc((100% - 24px) / 2); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .site-header { top: 0; }
  .mobile-nav { inset: var(--nav-h) 0 0 0; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  main { padding-top: var(--nav-h); }
  .hero { 
    height: 80svh; 
    min-height: 520px;
    margin-top: calc(-1 * var(--nav-h)); 
  }
  .hero-overlay {
    background: rgba(10, 10, 10, 0.78);
  }
  .hero-content {
    padding: 0 24px;
  }
  .hero-label {
    margin-bottom: 16px;
    font-size: 0.6rem;
    letter-spacing: 0.22em;
  }
  .nav-phone, .nav-wa, .nav-sep, .btn-nav-lang { display: none; }
  .nav-inner { display: flex; justify-content: space-between; }

  .intro-grid,
  .about-strip-grid,
  .about-intro-grid,
  .services-list-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }

  .featured-project-row,
  .featured-project-row:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 64px;
  }
  .featured-project-row:nth-child(even) .featured-project-img {
    order: 0;
  }

  .hero-content h1 { font-size: clamp(2.4rem, 8vw, 3.8rem); }

  .project-card { width: 100%; }

  .services-grid { grid-template-columns: 1fr; }

  .portfolio-item { width: calc((100% - 24px) / 2); }

  .service-row { grid-template-columns: 40px 1fr; }
  .service-row p { grid-column: 2; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  .portfolio-item { width: 100%; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { gap: 28px; flex-wrap: wrap; }
  .form-row { grid-template-columns: 1fr; }
  .service-card-page h3 { font-size: 1.45rem; }
}

/* ── Project Detail Modal Navigation ─────────────────────────── */
.project-detail-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
  margin-top: 40px;
  font-family: var(--ff-body);
}

.proj-nav-link {
  display: inline-flex;
  align-items: center;
  color: var(--black);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

.proj-nav-link span {
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.3s var(--ease);
}

.proj-nav-link svg {
  transition: stroke 0.3s var(--ease);
}

.proj-nav-link:hover {
  color: var(--gold);
}

.proj-nav-link:hover span {
  border-color: var(--gold);
}

.proj-nav-link.prev-proj:hover {
  transform: translateX(-4px);
}

.proj-nav-link.next-proj:hover {
  transform: translateX(4px);
}

.proj-nav-return-link {
  color: var(--mid);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.proj-nav-return-link:hover {
  color: var(--black);
  border-color: var(--black);
}

@media (max-width: 768px) {
  .project-detail-nav {
    flex-direction: column;
    gap: 28px;
    padding: 40px 0 20px;
    text-align: center;
  }
  
  .proj-nav-link.prev-proj:hover,
  .proj-nav-link.next-proj:hover {
    transform: none;
  }
}

/* ── Selected Work: Luxury Editorial Interactive List Layout ────────────────── */
.projects-interactive-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
  margin-top: 40px;
  padding-top: 20px;
}

.projects-interactive-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.interactive-item {
  display: flex;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.4s var(--ease);
  position: relative;
}

.interactive-item::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}

.interactive-item:hover::after {
  width: 100%;
}

.interactive-item:hover {
  padding-left: 20px;
}

.item-num {
  font-family: var(--ff-head);
  font-size: 0.95rem;
  color: var(--gold);
  margin-right: 48px;
  opacity: 0.8;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.item-content {
  flex-grow: 1;
}

.item-content h3 {
  font-family: var(--ff-head);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--black);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
  transition: color 0.3s;
}

.interactive-item:hover .item-content h3 {
  color: var(--gold);
}

.item-content p {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--mid);
  text-transform: uppercase;
}

.item-arrow {
  font-size: 2rem;
  color: var(--mid);
  opacity: 0;
  transform: translateX(-15px);
  transition: all 0.4s var(--ease);
  font-weight: 300;
}

.interactive-item:hover .item-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--gold);
}

/* Right column preview card */
.projects-interactive-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.06);
  background: #eae9e4;
}

.preview-img-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.preview-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease, transform 0.6s var(--ease);
}

.mobile-inline-img {
  display: none;
}

/* Mobile responsive styles */
@media (max-width: 960px) {
  .projects-interactive-split {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 20px;
  }
  
  .projects-interactive-preview {
    display: none;
  }

  .projects-interactive-list {
    border-top: none;
  }

  .interactive-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  }

  .interactive-item::after {
    display: none;
  }

  .interactive-item:hover {
    padding-left: 20px;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  }

  .item-num {
    margin-bottom: 12px;
  }

  .mobile-inline-img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 4px;
    margin-top: 20px;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  }

  .item-arrow {
    display: none;
  }
}

/* Contact Social Media Row Styling */
.social-links-row {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.social-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--black);
  transition: all 0.3s var(--ease);
  background: var(--white);
}

.social-icon-link svg {
  width: 18px;
  height: 18px;
  display: block;
}

.social-icon-link:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

/* Footer Bottom Link Hover Gold */
.footer-bottom a {
  transition: color 0.3s ease;
}
.footer-bottom a:hover,
.footer-bottom a:hover strong {
  color: var(--gold) !important;
}

/* ── Custom Revision Styles ────────────────────────────────── */

/* Custom page hero background banners with beautiful masking */




/* Modal Inner Brand Footer */
.project-modal-footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.modal-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.modal-footer-logo {
  height: 54px;
  width: auto;
  display: block;
}
.modal-footer-brand .dijor-brand-lockup {
  border-top: none;
  padding-top: 0;
  margin-top: 2px;
  margin-bottom: 0;
  align-items: center;
  text-align: center;
}
.modal-footer-brand .dijor-brand-lockup .brand-en {
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  letter-spacing: 0.12em;
  text-align: center;
  margin-bottom: 6px;
}
.modal-footer-brand .dijor-brand-lockup .brand-ar {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  text-align: center;
}
.modal-footer-navigation {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.modal-footer-navigation a {
  font-family: var(--ff-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.modal-footer-navigation a:hover {
  color: var(--black);
  border-color: var(--black);
}
.modal-footer-navigation .sep {
  color: var(--border);
  font-size: 0.8rem;
}

/* Hero section text readable enhancements */
.hero-content h1 {
  text-shadow: 
    0 4px 30px rgba(0, 0, 0, 0.95), 
    0 0 15px rgba(0, 0, 0, 0.8),
    0 2px 5px rgba(0, 0, 0, 0.7);
}
.hero-content .hero-label {
  color: var(--white) !important;
  background: transparent;
  padding: 0;
  border-radius: 0;
  display: block;
  text-shadow: 
    0 2px 15px rgba(0, 0, 0, 0.95), 
    0 4px 25px rgba(0, 0, 0, 0.9), 
    0 0 8px rgba(0, 0, 0, 0.85);
}

@media (max-width: 560px) {
  .modal-footer-navigation {
    flex-direction: column;
    gap: 12px;
  }
  .modal-footer-navigation .sep {
    display: none;
  }
}

/* ── Redesigned About Page Layout Revisions ────────────────── */
.about-intro-right {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.about-img-full {
  width: 100%;
  flex: 1 1 0;
  min-height: 240px;
  overflow: hidden;
  background: #eae9e4;
}
@media (max-width: 900px) {
  .about-img-full { flex: none; aspect-ratio: 4 / 3; }
}
.about-img-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.principles-section {
  position: relative;
  background: url('../images/headers/Villa Architecture.jpg?v=4.0') no-repeat center center;
  background-size: cover;
  padding: 120px 0;
  color: var(--white);
  overflow: hidden;
  margin-top: 80px;
}
.principles-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.76);
  z-index: 1;
}
.principles-title {
  font-family: var(--ff-head);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  text-align: center;
  margin-bottom: 64px;
  color: var(--white);
}
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}
.principle-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.principle-card h4 {
  font-family: var(--ff-head);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold);
}
.principle-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
  max-width: 320px;
}
.btn-principles-services {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid var(--white);
  padding-bottom: 6px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn-principles-services:hover {
  color: var(--gold);
  border-color: var(--gold);
}

@media (max-width: 860px) {
  .principles-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .principles-section {
    padding: 80px 0;
    margin-top: 56px;
  }
}

/* Mobile nav language switch */
.mobile-nav .lang-switch-mobile {
  font-family: var(--ff-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 10px;
  text-align: center;
  border-radius: 2px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

/* ── Additional Revision Enhancements ───────────────────────── */

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--black);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
  z-index: 990;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(201, 169, 110, 0.4);
}
.back-to-top svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
html[lang="ar"] .back-to-top {
  right: auto;
  left: 30px;
}

/* Header Nav Letter Height / Typography adjustment */
.nav-links a {
  line-height: 1.6;
  letter-spacing: 0.18em;
}

/* RTL Header Scrolled Logo Alignment Fix */
html[lang="ar"] .nav-inner {
  direction: rtl;
}
html[lang="ar"] .nav-logo {
  order: 0;
}
html[lang="ar"] .site-header.scrolled .logo-gold {
  right: 0;
  left: auto;
}
html[lang="ar"] .nav-wa {
  font-family: 'Cairo', var(--ff-body);
  letter-spacing: normal;
  font-size: 0.78rem;
  font-weight: 600;
}

/* Non-clickable homepage project cards */
.project-card.non-clickable {
  cursor: default;
}
.project-card.non-clickable:hover img {
  transform: scale(1.04);
}

/* Privacy notice styling beside enquiry form */
.form-privacy-notice {
  font-size: 0.72rem;
  color: var(--mid);
  line-height: 1.5;
  margin-top: 12px;
}

/* ── Approach & Why DIJOR Sections ────────────────────────── */
.section-approach {
  padding: clamp(80px, 10vw, 120px) 0;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.approach-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 24px;
  border: 1px solid var(--border);
  background: #ffffff;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.approach-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.approach-num {
  font-family: var(--ff-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.approach-card h4 {
  font-family: var(--ff-head);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--black);
}

.approach-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--mid);
}

/* Why DIJOR Section */
.section-why {
  padding: clamp(80px, 10vw, 120px) 0;
  background: #111111;
  color: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 56px;
}

.why-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.why-card:hover {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.06);
}

.why-card h4 {
  font-family: var(--ff-head);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--gold);
}

.why-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(245, 244, 240, 0.8);
}

/* CTA Banner Section */
.section-cta-banner {
  padding: clamp(80px, 10vw, 120px) 0;
  text-align: center;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.cta-banner-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cta-banner-content h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 300;
}

.cta-banner-content p {
  font-size: 1.05rem;
  color: var(--mid);
  line-height: 1.7;
}

@media (max-width: 992px) {
  .approach-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .approach-grid {
    grid-template-columns: 1fr;
  }
  .why-card {
    padding: 28px 20px;
  }
}




/* Page Hero Header Backgrounds from 13-Header Images (Clean & Vibrant without dark overlay) */
.about-page-hero {
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.35) 0%, rgba(10, 10, 10, 0.15) 100%), url('../images/headers/Living Area.jpg?v=4.0') no-repeat center center !important;
  background-size: cover !important;
}
.services-page-hero {
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.35) 0%, rgba(10, 10, 10, 0.15) 100%), url('../images/headers/01 Counters Tawjeeh Center.JPG?v=4.0') no-repeat center center !important;
  background-size: cover !important;
}
.portfolio-page-hero {
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.3) 0%, rgba(10, 10, 10, 0.15) 100%), url('../images/headers/portfolio-hero.jpg?v=4.0') no-repeat center center !important;
  background-size: cover !important;
}
.contact-page-hero {
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.35) 0%, rgba(10, 10, 10, 0.15) 100%), url('../images/headers/Majlis area.jpg?v=4.0') no-repeat center center !important;
  background-size: cover !important;
}


/* Brand Lockup (DIJOR DESIGN / ديجور للتصميم stacked lockup) */
.dijor-brand-lockup {
  display: inline-flex;
  flex-direction: column;
  margin-top: 20px;
  margin-bottom: 24px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.dijor-brand-lockup .brand-en {
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  color: var(--black);
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  margin-bottom: 6px;
}

.dijor-brand-lockup .brand-ar {
  font-family: 'Cairo', var(--ff-body);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--black);
  line-height: 1.2;
  white-space: nowrap;
}

/* ── About Location Block & Google Maps Pinpoint ─────────────── */
.about-location-block {
  margin-top: clamp(64px, 8vw, 96px);
  padding-top: clamp(40px, 6vw, 60px);
  border-top: 1px solid rgba(22, 20, 18, 0.08);
}

.about-location-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
}

.about-location-divider {
  width: 44px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 16px;
}

.section-label-center {
  font-family: var(--ff-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid);
  display: inline-block;
  margin-bottom: 12px;
}

.about-location-title {
  font-family: var(--ff-head);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 300;
  line-height: 1.25;
  color: var(--black);
  margin-bottom: 12px;
}

.about-location-address {
  font-size: 0.95rem;
  color: var(--mid);
  line-height: 1.6;
}

.about-map-card {
  background: #ffffff;
  border: 1px solid rgba(22, 20, 18, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.about-map-card:hover {
  border-color: rgba(184, 150, 90, 0.4);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
}

.about-map-frame {
  position: relative;
  width: 100%;
  height: clamp(380px, 48vh, 500px);
  background: #eae8e3;
  overflow: hidden;
}

.about-map-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.about-map-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 32px;
  background: #ffffff;
  border-top: 1px solid rgba(22, 20, 18, 0.08);
}

.about-map-info {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.about-map-badge {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(184, 150, 90, 0.3);
  background: rgba(184, 150, 90, 0.08);
  color: var(--gold);
}

.about-map-meta h4 {
  font-family: var(--ff-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 4px;
}

.about-map-meta p {
  font-size: 0.85rem;
  color: var(--mid);
  margin: 0;
}

.about-map-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-map-cta {
  white-space: nowrap;
}

.btn-map-directions {
  white-space: nowrap;
  background: transparent;
  color: var(--black);
  border: 1px solid rgba(22, 20, 18, 0.25);
}
.btn-map-directions:hover {
  background: var(--black);
  color: var(--white);
}

@media (max-width: 860px) {
  .about-map-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 18px;
  }
  .about-map-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .about-map-actions .btn {
    flex: 1 1 auto;
    text-align: center;
    justify-content: center;
  }
}

html[dir="rtl"] .about-map-actions,
body.rtl .about-map-actions {
  flex-direction: row-reverse;
}
html[dir="rtl"] .about-map-info,
body.rtl .about-map-info {
  text-align: right;
}
/* Phone numbers always render left-to-right, even inside RTL (Arabic) pages */
a[href^="tel:"]:not(.nav-phone),
.footer-contact-item a[href*="wa.me"],
.contact-detail a[href*="wa.me"] {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}
input[type="tel"] { direction: ltr; }
html[dir="rtl"] input[type="tel"] { text-align: right; }
.nav-call { margin-inline-end: 4px; }
@media (max-width: 600px) {
  .dijor-brand-lockup .brand-en,
  .dijor-brand-lockup .brand-ar { white-space: normal; }
}

/* ── UX refinements ──────────────────────────────────────────── */
/* Header: soft scrim + brighter, single-line items over bright hero images */
.site-header:not(.scrolled)::before {
  content: '';
  position: absolute;
  inset: 0 0 -40px 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.45), rgba(10,10,10,0));
  pointer-events: none;
  z-index: -1;
}
.site-header:not(.scrolled) .nav-links a,
.site-header:not(.scrolled) .nav-phone,
.site-header:not(.scrolled) .nav-wa {
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 8px rgba(0,0,0,0.45);
}
.nav-phone, .nav-wa, .nav-links a { white-space: nowrap; }

/* Project cards: name + category always visible, fuller overlay on hover */
.portfolio-item-overlay {
  opacity: 1;
  align-items: flex-end;
  justify-content: flex-start;
  background: linear-gradient(to top, rgba(10,10,10,0.8) 0%, rgba(10,10,10,0) 55%);
  transition: background 0.35s var(--ease);
}
.portfolio-item-hover-info { text-align: start; transform: none; }
.portfolio-item:hover .portfolio-item-overlay {
  background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.35) 70%);
}

/* Enquiry buttons */
.hero-cta {
  margin-top: 28px;
  color: var(--white);
  border-color: var(--white);
  width: fit-content;
}
.hero-cta:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.project-modal-cta { display: flex; justify-content: center; padding: 40px 0 8px; }

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Hero: lighter text shadow, soft scrim so the architecture stays visible */
.hero-content h1 { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45); }
.hero-content .hero-label { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); }
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.15) 0%, rgba(10,10,10,0.1) 50%, rgba(10,10,10,0.35) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Dropdown sits on a light panel: keep its links dark (not the white hero-header colour) */
.site-header .nav-dropdown li a,
.site-header:not(.scrolled) .nav-dropdown li a {
  color: var(--black);
  text-shadow: none;
  opacity: 0.85;
}
.site-header .nav-dropdown li a:hover {
  color: var(--gold);
  opacity: 1;
}

/* Hero "Explore Projects" link: larger and more legible */
.hero-scroll-link {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}
.hero-scroll-link:hover { color: var(--gold); }

/* Hero slide indicators: one tidy row inside a soft pill */
.hero-indicators {
  flex-wrap: nowrap;
  max-width: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(10, 10, 10, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px;
}
.hero-dot {
  position: relative;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  transition: background 0.3s, width 0.3s;
}
.hero-dot::after { /* larger click/tap target */
  content: '';
  position: absolute;
  inset: -8px -3px;
}
.hero-dot:hover { background: rgba(255, 255, 255, 0.9); }
.hero-dot.active {
  width: 26px;
  background: var(--gold);
}
@media (max-width: 600px) {
  .hero-indicators { gap: 5px; padding: 8px 12px; }
  .hero-dot { width: 6px; height: 6px; }
  .hero-dot.active { width: 18px; }
}

/* Center the slide indicators at the bottom of the hero */
.hero-indicators {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
}
@media (max-width: 900px) {
  .hero-indicators { bottom: 76px; }
}

/* ── Accessibility ───────────────────────────────────────────── */
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 100001;
  background: var(--black);
  color: #fff;
  padding: 10px 18px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }
html[dir="rtl"] .skip-link { left: auto; right: 16px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, .hero-dot:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Project popup: keep the site header visible above it */
body.modal-open .site-header { z-index: 2100; }
.project-modal .modal-card { margin-top: calc(var(--nav-h) + 48px); }
/* the card is transformed, so this is positioned against the card: sit just above the title, right under the header */
.project-modal .modal-close { top: -46px; right: 40px; z-index: 2110; }
html[dir="rtl"] .project-modal .modal-close { right: auto; left: 40px; }
@media (max-width: 900px) {
  .project-modal .modal-card { padding: 0 20px; }
  .project-modal .modal-close { right: 20px; }
  html[dir="rtl"] .project-modal .modal-close { left: 20px; right: auto; }
}

/* Translucent header: frosted glass so the page shows through */
.site-header.scrolled {
  background: rgba(245, 244, 240, 0.68);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-color: rgba(224, 221, 216, 0.6);
}
.site-header.scrolled .nav-links a,
.site-header.scrolled .nav-phone,
.site-header.scrolled .nav-wa { color: #2a2a2a; }

/* Header right group: WhatsApp + language button, a little larger */
.nav-phone, .nav-wa {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  gap: 8px;
}
.nav-phone svg { width: 21px; height: 21px; }
.btn-nav-lang {
  font-size: 0.85rem;
  padding: 13px 20px;
  gap: 10px;
}
.btn-nav-lang .flag-svg { width: 22px; height: auto; }
@media (max-width: 1100px) {
  .nav-phone, .nav-wa { font-size: 0.72rem; }
  .btn-nav-lang { font-size: 0.78rem; padding: 11px 16px; }
}

/* Match WhatsApp + language button to the menu text (0.78rem / 500 / 0.18em) */
.nav-phone, .nav-wa, .btn-nav-lang {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
}
.nav-phone svg { width: 20px; height: 20px; }
.btn-nav-lang { padding: 12px 18px; }
@media (max-width: 1100px) {
  .nav-phone, .nav-wa, .btn-nav-lang { font-size: 0.72rem; letter-spacing: 0.14em; }
}

/* Spam-trap field: invisible, never causes horizontal scrolling */
.hp-field {
  position: absolute !important;
  top: 0; left: 0;
  width: 1px; height: 1px;
  margin: 0; padding: 0; border: 0;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  pointer-events: none;
}

/* Animated form border: clip the oversized rotating gradient so it can't widen the page */
.border-beam { overflow: hidden; }
html, body { overflow-x: hidden; max-width: 100%; }

/* ══════════════════════════════════════════════════════════════
   Mobile & tablet polish
   ══════════════════════════════════════════════════════════════ */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
img, video, iframe { max-width: 100%; }

/* Hamburger menu for phones AND tablets (incl. iPad landscape) so the header never crowds */
@media (max-width: 1100px) {
  .site-header { top: 0; }
  .mobile-nav { inset: var(--nav-h) 0 0 0; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-phone, .nav-wa, .nav-sep, .btn-nav-lang { display: none; }
  .nav-inner { display: flex; justify-content: space-between; align-items: center; }
  .nav-right { display: none; }
}

/* Larger, easier-to-hit hamburger */
.nav-toggle {
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

/* Mobile menu: bigger tap targets + WhatsApp button */
.mobile-nav { -webkit-overflow-scrolling: touch; padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px)); }
.mobile-nav .mobile-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  background: #25D366;
  color: #fff;
  border: none;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  border-radius: 2px;
  text-transform: uppercase;
}
.mobile-nav-meta a { min-height: 44px; display: inline-flex; align-items: center; }
.mobile-nav-meta a.mobile-wa { display: flex; }

/* Phones & small tablets */
@media (max-width: 768px) {
  /* 16px inputs stop iOS Safari zooming the page when a field is focused */
  input, select, textarea { font-size: 16px !important; }
  .container { width: 90%; }
  .btn { padding: 14px 24px; min-height: 48px; justify-content: center; }
  .hero-content h1 { font-size: clamp(2rem, 8.5vw, 3rem); line-height: 1.15; }
  .hero-bottom { padding: 0 20px 24px; }
  .hero-indicators { bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .back-to-top { right: 16px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); width: 48px; height: 48px; }
  html[lang="ar"] .back-to-top { left: 16px; right: auto; }
  .filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
  .filter-tab { min-height: 44px; padding: 12px 18px; }
  .about-map-bar { flex-direction: column; align-items: stretch; gap: 16px; }
  .about-map-actions { display: flex; flex-direction: column; gap: 10px; }
  .about-map-actions .btn { width: 100%; }
  .about-map-frame iframe { height: 320px; }
  .contact-form { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .project-detail-header { grid-template-columns: 1fr; gap: 24px; }
  .project-detail-title h2 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .project-detail-gallery { grid-template-columns: 1fr; gap: 16px; }
  .project-detail-nav { flex-direction: column; gap: 16px; align-items: flex-start; }
}

/* Touch devices: comfortable tap targets for footer links, icons and controls */
@media (hover: none) and (pointer: coarse) {
  .footer-col a, .footer-contact-item a { display: inline-block; padding: 6px 0; }
  .footer-socials a { width: 44px; height: 44px; }
  .hero-dot::after { inset: -14px -4px; }
  .lightbox-close { font-size: 3rem; padding: 4px 12px; }
  .lightbox-nav { width: 48px; height: 48px; }
  .modal-close { min-width: 44px; min-height: 44px; }
}

/* Very small phones */
@media (max-width: 380px) {
  .hero-content h1 { font-size: 1.85rem; }
  .btn { letter-spacing: 0.1em; font-size: 0.7rem; }
  .footer-socials { gap: 10px; }
}

/* Short landscape phones: don't force a full-height hero */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 420px; height: auto; }
}

/* Mobile footer: copyright, credit and social icons all centred */
@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 18px;
  }
  .footer-bottom p { text-align: center; width: 100%; line-height: 1.8; }
  .footer-bottom .fb-sep { display: block; height: 0; overflow: hidden; }
  .footer-socials { justify-content: center; padding-inline-end: 0; width: 100%; }
}
