/* ============================================================
   i Build® — Frontend CSS v3
   Mixed dark/light · El Messiri Arabic · Dynamic animations
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark:   #16130F;
  --dark2:  #1E1A15;
  --dark3:  #28231C;
  --cream:  #F4EFE6;
  --cream2: #EBE4D8;
  --white:  #FFFFFF;
  --gold:   #C09A6B;
  --gold2:  #A07D50;
  --gold-l: rgba(192,154,107,0.15);
  --grid:   rgba(192,154,107,0.07);
  /* Text ON dark bg */
  --td1: #F0EBE3;
  --td2: #B5AFA6;
  --td3: #7A746E;
  /* Text ON light bg */
  --tl1: #1A1410;
  --tl2: #4A4540;
  --tl3: #8A8078;
}

html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--tl1);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
}
body.rtl {
  font-family: 'El Messiri', 'DM Sans', sans-serif;
  direction: rtl;
  text-align: right;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── NAV ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 52px;
  transition: background 0.4s, padding 0.3s, box-shadow 0.3s;
}
#navbar.scrolled {
  background: rgba(22,19,15,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 15px 52px;
  box-shadow: 0 1px 0 rgba(192,154,107,0.18);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 500; letter-spacing: 0.12em; color: var(--td1);
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 34px; }
.nav-links a {
  font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(240,235,227,0.9); transition: color 0.25s;
}
.nav-links a:hover { color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--td1); padding: 7px 14px;
  border: 1px solid rgba(192,154,107,0.5); transition: all 0.25s;
}
.lang-toggle:hover { color: var(--gold); border-color: var(--gold); }
.nav-cta {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 10px 22px; border: 1px solid var(--gold); color: var(--gold);
  transition: background 0.25s, color 0.25s;
}
.nav-cta:hover { background: var(--gold); color: var(--dark); }
.burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.burger span { display: block; width: 22px; height: 1.5px; background: var(--td1); transition: all 0.3s; }
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 190;
  background: var(--dark2); flex-direction: column;
  align-items: center; justify-content: center; gap: 28px;
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a { font-size: 1.5rem; color: var(--td1); letter-spacing: 0.06em; }
.mobile-menu a:hover { color: var(--gold); }
.mobile-lang { font-size: 1rem !important; color: var(--gold) !important; margin-top: 8px; }

/* ── GRID OVERLAY ── */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ══════════════════════════════════════════════════════════
   HERO — dark cinematic
══════════════════════════════════════════════════════════ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 52px 110px;
  background: var(--dark); overflow: hidden;
}
.hero-image-panel {
  position: absolute; top: 0; bottom: 0; right: 0; width: 44%; z-index: 1; overflow: hidden;
}
.rtl .hero-image-panel { right: auto; left: 0; }
.hero-image-panel img {
  width: 100%; height: 110%; object-fit: cover; opacity: 0.45;
  transform-origin: center top;
  transition: opacity 0.5s;
}
.panel-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--dark) 0%, rgba(22,19,15,0.4) 60%, transparent 100%);
}
.rtl .panel-overlay {
  background: linear-gradient(to left, var(--dark) 0%, rgba(22,19,15,0.4) 60%, transparent 100%);
}
.panel-label {
  position: absolute; bottom: 80px; left: 24px;
  font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); border-left: 2px solid var(--gold); padding-left: 10px;
}
.rtl .panel-label { left: auto; right: 24px; border-left: none; border-right: 2px solid var(--gold); padding-left: 0; padding-right: 10px; }

.hero-content { position: relative; z-index: 2; max-width: 700px; }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--gold); flex-shrink: 0; }
.rtl .eyebrow { flex-direction: row-reverse; }

/* Eyebrow on LIGHT sections */
.light-section .eyebrow,
.mid-section .eyebrow   { color: var(--gold); }
.light-section .eyebrow::before,
.mid-section .eyebrow::before { background: var(--gold); }

.hero-hl {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.8rem, 8.5vw, 8rem);
  font-weight: 300; line-height: 0.92; letter-spacing: -0.02em; color: var(--td1);
}
.rtl .hero-hl {
  font-family: 'El Messiri', serif;
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 400; line-height: 1.15; letter-spacing: 0;
}
.hero-hl em { font-style: italic; color: var(--gold); }
.rtl .hero-hl em { font-style: normal; }

.hero-sub { margin-top: 28px; font-size: 1rem; color: var(--td2); max-width: 420px; line-height: 1.8; }

.hero-actions { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  display: inline-block; padding: 13px 32px;
  background: var(--gold); color: var(--dark);
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
  transition: background 0.25s, transform 0.2s;
}
.btn-primary:hover { background: var(--gold2); transform: translateY(-1px); }
.btn-ghost {
  display: inline-block; padding: 13px 32px;
  border: 1px solid rgba(240,235,227,0.25); color: var(--td2);
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  transition: border-color 0.25s, color 0.25s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.hero-stats {
  position: absolute; bottom: 52px; left: 52px; right: 46%; z-index: 2;
  display: flex; gap: 48px;
}
.rtl .hero-stats { left: 46%; right: 52px; }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem; font-weight: 300; line-height: 1; color: var(--td1);
  min-width: 70px; display: inline-block;
}
.stat-label { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--td3); margin-top: 5px; }

.scroll-hint {
  position: absolute; bottom: 52px; right: 52px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.rtl .scroll-hint { right: auto; left: 52px; }
.scroll-line { width: 1px; height: 44px; background: linear-gradient(to bottom, var(--gold), transparent); animation: scrollBeat 2s ease-in-out infinite; }
@keyframes scrollBeat { 0%,100%{opacity:1; transform:scaleY(1)} 50%{opacity:0.3; transform:scaleY(0.6)} }
.scroll-hint span { font-size: 0.56rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--td3); writing-mode: vertical-rl; }

/* ══════════════════════════════════════════════════════════
   SECTION WRAPPERS
══════════════════════════════════════════════════════════ */
.section-inner { max-width: 1200px; margin: 0 auto; padding: 110px 52px; }
.dark-section  { background: var(--dark);  color: var(--td1); }
.light-section { background: var(--cream); color: var(--tl1); }
.mid-section   { background: var(--cream2); color: var(--tl1); }

/* Section title — explicit colors to prevent cascade issues */
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300; line-height: 1.1; margin-top: 14px;
}
/* DARK sections → light title */
.dark-section .section-title { color: var(--td1); }
/* LIGHT sections → very dark title — explicit hex, no variable */
.light-section .section-title,
.mid-section   .section-title,
#services  .section-title,
#projects  .section-title,
#gallery   .section-title,
#about     .section-title    { color: #1A1410; }

.rtl .section-title { font-family: 'El Messiri', sans-serif; font-weight: 500; line-height: 1.3; }

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Slide from left/right */
.reveal-left  { opacity: 0; transform: translateX(-30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right { opacity: 0; transform: translateX(30px);  transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ══════════════════════════════════════════════════════════
   SERVICES — white cards on cream
══════════════════════════════════════════════════════════ */
#services { background: var(--cream); }
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin-top: 56px; }
.service-card {
  background: var(--white); padding: 44px 40px;
  border-top: 2px solid transparent;
  position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: default;
}
.service-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--gold); transition: width 0.5s ease;
}
.service-card:hover { border-top-color: var(--gold-l); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(22,19,15,0.08); }
.service-card:hover::after { width: 100%; }
.service-num {
  font-family: 'Cormorant Garamond', serif; font-size: 3rem; font-weight: 300;
  color: var(--cream2); line-height: 1; margin-bottom: 18px;
}
.service-name { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; color: #1A1410; margin-bottom: 10px; }
.rtl .service-name { font-family: 'El Messiri', sans-serif; font-size: 1.3rem; font-weight: 500; }
.service-desc { font-size: 0.86rem; color: var(--tl3); line-height: 1.8; }
.service-arrow { margin-top: 20px; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); opacity: 0; transform: translateX(-8px); transition: opacity 0.3s, transform 0.3s; }
.service-card:hover .service-arrow { opacity: 1; transform: translateX(0); }

/* ══════════════════════════════════════════════════════════
   CHAPTERS — dark, horizontal scroll
══════════════════════════════════════════════════════════ */
#chapters { background: var(--dark); }
.chapters-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 52px; flex-wrap: wrap; }
.chapters-intro { font-size: 0.9rem; color: var(--td2); max-width: 340px; line-height: 1.85; }
.chapters-track {
  display: flex; gap: 16px; overflow-x: auto; padding-bottom: 16px;
  scrollbar-width: thin; scrollbar-color: var(--gold) rgba(255,255,255,0.05);
  cursor: grab;
}
.chapters-track.dragging { cursor: grabbing; }
.chapters-track::-webkit-scrollbar { height: 4px; }
.chapters-track::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); }
.chapters-track::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

.chapter-card {
  flex: 0 0 285px; position: relative; overflow: hidden;
  aspect-ratio: 3/4; cursor: pointer;
  transition: transform 0.4s ease;
}
.chapter-card:hover { transform: translateY(-6px); }
.chapter-card img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.58) saturate(0.85);
  transition: transform 0.6s ease, filter 0.45s;
}
.chapter-card:hover img { transform: scale(1.07); filter: brightness(0.75) saturate(1); }
.chapter-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(22,19,15,0.94) 0%, rgba(22,19,15,0.05) 55%); }
.chapter-num { position: absolute; top: 16px; right: 16px; font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 300; color: rgba(192,154,107,0.4); }
.rtl .chapter-num { right: auto; left: 16px; }
.chapter-meta { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px 22px; }
.chapter-tag { font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.chapter-title { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; color: var(--td1); line-height: 1.2; }
.rtl .chapter-title { font-family: 'El Messiri', sans-serif; font-weight: 500; }
.chapter-desc { font-size: 0.76rem; color: var(--td3); margin-top: 5px; }

/* ══════════════════════════════════════════════════════════
   PROJECTS — mid tone grid
══════════════════════════════════════════════════════════ */
#projects { background: var(--cream2); }
.projects-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; margin-top: 56px; }
.project-card { position: relative; overflow: hidden; aspect-ratio: 4/5; cursor: pointer; }
.project-hero { grid-column: span 2; aspect-ratio: unset; min-height: 380px; }
.project-card img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.75); transition: transform 0.7s ease, filter 0.45s; }
.project-card:hover img { transform: scale(1.06); filter: brightness(0.9); }
.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(22,19,15,0.85) 0%, transparent 55%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 28px;
  transition: background 0.3s;
}
.project-card:hover .project-overlay { background: linear-gradient(to top, rgba(22,19,15,0.92) 0%, transparent 65%); }
.project-location { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 5px; }
.project-name { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; color: #fff; }
.rtl .project-name { font-family: 'El Messiri', sans-serif; font-weight: 500; }
.project-link { display: inline-block; margin-top: 8px; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.45); transition: color 0.25s; }
.project-card:hover .project-link { color: var(--gold); }

/* ══════════════════════════════════════════════════════════
   GALLERY — white, mosaic
══════════════════════════════════════════════════════════ */
#gallery { background: var(--white); }
/* Force correct text color on gallery — explicit */
#gallery .section-title { color: #1A1410 !important; }
#gallery .eyebrow { color: var(--gold) !important; }

.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  grid-template-rows: 245px 245px;
  gap: 4px; margin-top: 44px;
}
.gallery-tile { overflow: hidden; position: relative; cursor: zoom-in; }
.tile-hero { grid-column: span 2; grid-row: span 2; }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.8); transition: transform 0.6s ease, filter 0.4s; }
.gallery-tile:hover img { transform: scale(1.07); filter: brightness(0.95); }
.tile-caption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 14px 16px;
  background: linear-gradient(to top, rgba(22,19,15,0.8), transparent);
  font-size: 0.66rem; letter-spacing: 0.1em; color: rgba(255,255,255,0.88);
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.gallery-tile:hover .tile-caption { opacity: 1; }
.tile-zoom {
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px; border: 1px solid rgba(192,154,107,0.7);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: var(--gold); opacity: 0;
  transition: opacity 0.3s, transform 0.3s; pointer-events: none;
}
.rtl .tile-zoom { right: auto; left: 12px; }
.gallery-tile:hover .tile-zoom { opacity: 1; transform: scale(1.1); }

/* ══════════════════════════════════════════════════════════
   TEAM — cream
══════════════════════════════════════════════════════════ */
#about { background: var(--cream); }
#about .section-title { color: #1A1410 !important; }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; margin-top: 56px; }
.ceo-portrait-wrap { position: relative; }
.ceo-portrait-wrap::before {
  content: ''; position: absolute; top: -14px; left: -14px; right: 14px; bottom: 14px;
  border: 1px solid rgba(192,154,107,0.3); pointer-events: none; z-index: 1;
  transition: transform 0.3s;
}
.ceo-portrait-wrap:hover::before { transform: translate(-3px, -3px); }
.rtl .ceo-portrait-wrap::before { left: 14px; right: -14px; }
.ceo-portrait-wrap img { width: 100%; aspect-ratio: 3/4; object-fit: cover; filter: grayscale(12%); transition: filter 0.4s; }
.ceo-portrait-wrap:hover img { filter: grayscale(0%); }
.ceo-info { padding-top: 20px; }
.ceo-role { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.ceo-name { font-family: 'Cormorant Garamond', serif; font-size: 2rem; color: #1A1410; margin-bottom: 14px; }
.rtl .ceo-name { font-family: 'El Messiri', sans-serif; font-weight: 600; }
.ceo-bio { font-size: 0.87rem; color: var(--tl2); line-height: 1.85; }
.ceo-facts { display: flex; gap: 28px; margin-top: 24px; }
.fact-label { font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tl3); margin-bottom: 4px; }
.fact-val { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; color: #1A1410; }
.founders-head { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 300; color: #1A1410; margin-bottom: 32px; line-height: 1.2; }
.rtl .founders-head { font-family: 'El Messiri', sans-serif; font-weight: 500; }
.founder-item { display: flex; gap: 18px; align-items: flex-start; padding: 22px 0; border-top: 1px solid var(--cream2); transition: background 0.2s; }
.rtl .founder-item { flex-direction: row-reverse; }
.founder-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; filter: grayscale(15%); flex-shrink: 0; transition: filter 0.3s, transform 0.3s; }
.founder-item:hover .founder-photo { filter: grayscale(0%); transform: scale(1.05); }
.founder-role { font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.founder-name { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; color: #1A1410; margin-bottom: 6px; }
.rtl .founder-name { font-family: 'El Messiri', sans-serif; font-weight: 500; }
.founder-bio { font-size: 0.82rem; color: var(--tl3); line-height: 1.7; }

/* ══════════════════════════════════════════════════════════
   MARQUEE
══════════════════════════════════════════════════════════ */
.marquee-strip { background: var(--gold); padding: 13px 0; overflow: hidden; }
.marquee-track { display: flex; white-space: nowrap; animation: marqueeScroll 22s linear infinite; }
.marquee-item { font-size: 0.67rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--dark); padding: 0 24px; flex-shrink: 0; }
@keyframes marqueeScroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ══════════════════════════════════════════════════════════
   CONTACT — dark
══════════════════════════════════════════════════════════ */
#contact { background: var(--dark2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 68px; margin-top: 56px; }
.contact-tagline { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; font-weight: 300; font-style: italic; color: var(--td1); line-height: 1.4; margin-bottom: 32px; }
.rtl .contact-tagline { font-family: 'El Messiri', sans-serif; font-style: normal; font-size: 1.5rem; }
.contact-detail { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
.rtl .contact-detail { flex-direction: row-reverse; text-align: right; }
.contact-detail svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--gold); margin-top: 3px; }
.contact-detail div { font-size: 0.84rem; color: var(--td2); line-height: 1.6; }
.contact-detail a { color: var(--td2); } .contact-detail a:hover { color: var(--gold); }
.hours-box { margin-top: 26px; padding: 20px 22px; border: 1px solid rgba(192,154,107,0.2); background: rgba(192,154,107,0.05); }
.hours-title { font-size: 0.63rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.hours-text { font-size: 0.82rem; color: var(--td3); line-height: 1.8; }

.contact-form { display: flex; flex-direction: column; gap: 13px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 0.63rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--td3); }
.req { color: var(--gold); }
.form-group input, .form-group textarea {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(240,235,227,0.1);
  color: var(--td1); padding: 11px 14px;
  font-family: inherit; font-size: 0.88rem; font-weight: 300;
  outline: none; border-radius: 0; -webkit-appearance: none;
  transition: border-color 0.25s, background 0.25s;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--td3); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--gold); background: rgba(255,255,255,0.08); }
.form-group textarea { resize: vertical; min-height: 96px; }
.btn-submit {
  padding: 14px 32px; background: var(--gold); color: var(--dark); border: none; cursor: pointer;
  font-family: inherit; font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
  transition: background 0.25s, transform 0.2s; align-self: flex-start;
}
.btn-submit:hover { background: var(--gold2); transform: translateY(-1px); }
.form-note { font-size: 0.7rem; color: var(--td3); }
.form-msg { padding: 11px 14px; font-size: 0.84rem; display: none; margin-top: 4px; }
.form-msg.success { background: rgba(192,154,107,0.12); color: var(--gold); border-left: 3px solid var(--gold); }
.form-msg.error   { background: rgba(220,80,80,0.1); color: #e08080; border-left: 3px solid #e08080; }
.rtl .form-msg.success, .rtl .form-msg.error { border-left: none; border-right: 3px solid currentColor; }

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
footer { background: var(--dark); border-top: 1px solid rgba(192,154,107,0.1); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 64px 52px 36px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 56px; }
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.45rem; font-weight: 500; letter-spacing: 0.1em; color: var(--td1); margin-bottom: 12px; }
.footer-logo span { color: var(--gold); }
.footer-brand p { font-size: 0.8rem; color: var(--td3); line-height: 1.8; margin-bottom: 18px; }
.footer-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 0.63rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(192,154,107,0.3); padding: 6px 14px; }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: pulse 2s ease-in-out infinite; flex-shrink: 0; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
.footer-col-h { font-size: 0.63rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--td3); margin-bottom: 16px; }
footer ul { display: flex; flex-direction: column; gap: 10px; }
footer ul li a { font-size: 0.8rem; color: var(--td2); transition: color 0.2s, transform 0.2s; display: inline-block; }
footer ul li a:hover { color: var(--gold); transform: translateX(3px); }
.rtl footer ul li a:hover { transform: translateX(-3px); }
.social-row { display: flex; gap: 9px; }
.social-row a { width: 36px; height: 36px; border: 1px solid rgba(240,235,227,0.12); display: flex; align-items: center; justify-content: center; color: var(--td3); font-size: 0.76rem; font-weight: 500; transition: border-color 0.2s, color 0.2s, transform 0.2s; }
.social-row a:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding: 18px 52px 32px; border-top: 1px solid rgba(192,154,107,0.08); display: flex; justify-content: space-between; align-items: center; }
.footer-bottom span { font-size: 0.72rem; color: var(--td3); }
.footer-admin-link { font-size: 0.68rem; color: var(--td3); opacity: 0.3; transition: opacity 0.2s; }
.footer-admin-link:hover { opacity: 0.8; }

/* ══════════════════════════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════════════════════════ */
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(22,19,15,0.97); display: none; align-items: center; justify-content: center; flex-direction: column; animation: fadeIn 0.25s ease; }
.lightbox.open { display: flex; }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.lightbox img { max-width: 90vw; max-height: 82vh; object-fit: contain; }
.lb-close { position: absolute; top: 20px; right: 28px; background: none; border: none; color: var(--td2); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; padding: 8px; }
.lb-caption { margin-top: 14px; font-size: 0.76rem; color: var(--td3); letter-spacing: 0.1em; }

/* ══════════════════════════════════════════════════════════
   GALLERY MODAL
══════════════════════════════════════════════════════════ */
.gallery-modal { position: fixed; inset: 0; z-index: 400; background: rgba(22,19,15,0.97); display: none; overflow-y: auto; }
.gallery-modal.open { display: block; animation: fadeIn 0.25s ease; }
.gm-inner { max-width: 1100px; margin: 0 auto; padding: 80px 40px 60px; }
.gm-close { position: fixed; top: 20px; right: 24px; background: none; border: 1px solid rgba(192,154,107,0.35); color: var(--td1); width: 40px; height: 40px; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.gm-close:hover { background: var(--gold-l); }
.gm-title { font-family: 'Cormorant Garamond', serif; font-size: 1.9rem; color: var(--td1); margin-bottom: 32px; }
.gm-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 4px; }
.gm-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; cursor: pointer; filter: brightness(0.8); transition: filter 0.3s, transform 0.3s; }
.gm-img img:hover { filter: brightness(1); transform: scale(1.02); }
.gm-cap { padding: 8px 4px; font-size: 0.7rem; color: var(--td3); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 820px) {
  #navbar { padding: 18px 24px; }
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
  .mobile-menu { display: flex; }
  .hero { padding: 110px 24px 90px; }
  .hero-image-panel { display: none; }
  .hero-stats { position: static; margin-top: 40px; flex-wrap: wrap; gap: 28px; }
  .scroll-hint { display: none; }
  .section-inner { padding: 72px 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .chapters-head { flex-direction: column; gap: 20px; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .project-hero { grid-column: span 2; }
  .gallery-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px; }
  .tile-hero { grid-column: span 2; }
  .team-grid { grid-template-columns: 1fr; gap: 44px; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: 1; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) {
  .hero-hl { font-size: 3rem !important; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-hero { grid-column: 1; }
  .gallery-mosaic { grid-template-columns: 1fr; grid-template-rows: none; }
  .tile-hero { grid-column: 1; }
  .services-grid { gap: 0; }
}
