/* ═══════════════════════════════════════════
   AL DHAHAB GOLD WORKSHOP — Main Stylesheet
   ═══════════════════════════════════════════ */

:root {
  --gold-deep:    #8B6914;
  --gold-mid:     #C9A84C;
  --gold-light:   #E8C96A;
  --gold-shine:   #F5E199;
  --gold-pale:    #FDF6DC;
  --obsidian:     #0D0B08;
  --charcoal:     #1A1612;
  --warm-dark:    #241E16;
  --warm-mid:     #3D3427;
  --text-cream:   #F0E8D5;
  --text-muted:   #B8A882;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--obsidian);
  color: var(--text-cream);
  font-family: 'Cormorant Garamond', Georgia, serif;
  overflow-x: hidden;
}

/* ── LANGUAGE TOGGLE ── */
#lang-toggle {
  display: flex;
  border: 1px solid var(--gold-mid);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}
#lang-toggle button {
  background: transparent;
  border: none;
  padding: .4rem .9rem;
  font-family: 'Cinzel', serif;
  font-size: .7rem;
  letter-spacing: .1em;
  cursor: pointer;
  color: rgba(240,232,213,.75);
  transition: all .3s;
}
#lang-toggle button.active {
  background: var(--gold-mid);
  color: var(--obsidian);
}

/* ── HEADER ── */
header {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.header-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  animation: heroZoom 2.4s cubic-bezier(.22,1,.36,1) both;
}

/* Dark vignette overlay on top of the image */
.header-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 85% at 50% 50%, transparent 30%, rgba(5,3,2,.80) 100%),
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(10,7,2,.50) 0%, rgba(8,5,1,.72) 100%);
  pointer-events: none;
}

@keyframes heroZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}

.gold-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.gold-lines::before,
.gold-lines::after {
  content: '';
  position: absolute;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--gold-mid), transparent);
  opacity: .45;
  animation: linePulse 4s ease-in-out infinite;
}
.gold-lines::before { left: 20%; animation-delay: 0s; }
.gold-lines::after  { right: 20%; animation-delay: 2s; }

@keyframes linePulse {
  0%, 100% { opacity: .1; }
  50%       { opacity: .35; }
}

.ornament {
  font-size: 2rem;
  color: var(--gold-mid);
  letter-spacing: .4em;
  animation: fadeUp .8s ease both;
}

.site-name {
  font-family: 'Cinzel', serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 700;
  letter-spacing: .15em;
  line-height: 1;
  background: linear-gradient(135deg, var(--gold-deep) 0%, var(--gold-light) 45%, var(--gold-shine) 60%, var(--gold-mid) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeUp .9s .15s ease both;
}

.site-name-ar {
  font-family: 'Amiri', serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--gold-light);
  direction: rtl;
  margin-top: .3rem;
  animation: fadeUp .9s .25s ease both;
}

.tagline {
  margin-top: 1.2rem;
  font-size: clamp(.9rem, 2vw, 1.15rem);
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: .12em;
  animation: fadeUp .9s .35s ease both;
}
.tagline-ar {
  font-family: 'Amiri', serif;
  direction: rtl;
  font-size: 1.1rem;
}

.divider-ornament {
  margin: 1.6rem auto 0;
  width: 200px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-mid), transparent);
  position: relative;
  animation: fadeUp .9s .45s ease both;
}
.divider-ornament::before {
  content: '✦';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  background: var(--obsidian);
  padding: 0 .6rem;
  color: var(--gold-mid);
  font-size: .7rem;
}

.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: var(--text-muted);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  animation: fadeUp 1s .8s ease both;
}
.scroll-cue span {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold-mid), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── NAV links inside hero-topbar ── */
.hero-topbar-nav a {
  position: relative;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: .63rem;
  letter-spacing: .18em;
  color: rgba(240,232,213,.78);
  transition: color .3s;
  white-space: nowrap;
}
.hero-topbar-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0; right: 0;
  height: 1px;
  background: var(--gold-mid);
  transform: scaleX(0);
  transition: transform .3s;
}
.hero-topbar-nav a:hover { color: var(--gold-light); }
.hero-topbar-nav a:hover::after { transform: scaleX(1); }
.nav-ar { font-family: 'Amiri', serif; letter-spacing: 0; font-size: .9rem; }

/* ── SECTIONS ── */
section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}
.section-label-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--gold-mid), transparent);
}
.section-label-line.right {
  background: linear-gradient(to left, var(--gold-mid), transparent);
}
.section-label-text {
  font-family: 'Cinzel', serif;
  font-size: .7rem;
  letter-spacing: .3em;
  color: var(--gold-mid);
  text-transform: uppercase;
  white-space: nowrap;
}
.section-label-text.ar {
  font-family: 'Amiri', serif;
  letter-spacing: 0;
  font-size: .95rem;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  background: linear-gradient(135deg, var(--gold-mid), var(--gold-shine));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}
.section-title.ar {
  font-family: 'Amiri', serif;
  direction: rtl;
}

.section-body {
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text-cream);
  max-width: 720px;
}
.section-body.ar {
  font-family: 'Amiri', serif;
  direction: rtl;
  font-size: 1.25rem;
}

/* ── SERVICES BACKGROUND ── */
.services-bg-wrap {
  position: relative;
  overflow: hidden;
}
.services-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.03);
  transition: transform 8s ease;
}
.services-bg-wrap:hover .services-bg { transform: scale(1.06); }
.services-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg,
      rgba(5,3,2,.91) 0%,
      rgba(8,5,2,.82) 50%,
      rgba(5,3,2,.88) 100%);
}
.services-content {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── SERVICES GRID ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2px;
  margin-top: 4rem;
  border: 1px solid rgba(201,168,76,.15);
}

.service-card {
  background: rgba(26,22,18,.72);
  padding: 0;
  border: 1px solid rgba(201,168,76,.08);
  transition: border-color .4s, background .4s;
  cursor: default;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,.07) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .4s;
  z-index: 1;
  pointer-events: none;
}
.service-card:hover { border-color: rgba(201,168,76,.45); background: rgba(26,22,18,.88); }
.service-card:hover::before { opacity: 1; }

/* Image icon at top of card */
.service-img-icon {
  width: 80px;
  height: 80px;
  margin: 1.6rem auto .2rem;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(201,168,76,.2);
}
.service-img-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .5s ease;
  filter: brightness(.9) saturate(1.1);
}
.service-card:hover .service-img-icon img {
  transform: scale(1.06);
  filter: brightness(1.05) saturate(1.2);
}

/* Text below the image */
.service-name {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  letter-spacing: .1em;
  color: var(--gold-light);
  margin: 1rem 1.6rem .5rem;
  position: relative;
  z-index: 2;
  text-align: center;
}
.service-name.ar {
  font-family: 'Amiri', serif;
  direction: rtl;
  letter-spacing: 0;
  font-size: 1.2rem;
}
.service-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 1.6rem 1.6rem;
  position: relative;
  z-index: 2;
  text-align: center;
}
.service-desc.ar {
  font-family: 'Amiri', serif;
  direction: rtl;
  font-size: 1.05rem;
}

/* ── GALLERY ── */
.gallery-section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}
/* Real background image div */
.gallery-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 10s ease;
  z-index: 0;
}
.gallery-section:hover .gallery-bg { transform: scale(1.08); }
/* Dark overlay */
.gallery-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(8,5,2,.7) 0%, rgba(8,5,2,.78) 50%, rgba(8,5,2,.7) 100%);
  z-index: 1;
}
/* All content above background layers */
.gallery-section > .gallery-inner { position: relative; z-index: 2; }
.gallery-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3px;
  margin-top: 4rem;
}

.gallery-item {
  position: relative;
  background: var(--warm-dark);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(201,168,76,.08);
  transition: border-color .3s;
}
.gallery-item:hover { border-color: rgba(201,168,76,.3); }

.gallery-item:nth-child(1) { grid-column: span 5; grid-row: span 2; }
.gallery-item:nth-child(2) { grid-column: span 4; }
.gallery-item:nth-child(3) { grid-column: span 3; }
.gallery-item:nth-child(4) { grid-column: span 4; }
.gallery-item:nth-child(5) { grid-column: span 3; }

/* Image takes up the space above the caption */
.gallery-item-img {
  flex: 1;
  overflow: hidden;
  min-height: 160px;
}
.gallery-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s;
}
.gallery-item:hover .gallery-item-img img { transform: scale(1.05); }

/* Caption sits permanently below the image */
.gallery-caption {
  flex-shrink: 0;
  padding: .65rem 1rem .7rem;
  background: rgba(13,9,4,.92);
  border-top: 1px solid rgba(201,168,76,.15);
  font-family: 'Cinzel', serif;
  font-size: .66rem;          /* +20% from .55rem */
  letter-spacing: .22em;
  color: var(--gold-light);
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .3s, border-color .3s;
}
/* Arabic caption — +30% from .55rem = .715rem */
body.lang-ar .gallery-caption {
  font-family: 'Amiri', serif;
  font-size: .715rem;
  letter-spacing: 0;
}
.gallery-item:hover .gallery-caption {
  color: var(--gold-shine);
  border-color: rgba(201,168,76,.4);
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--warm-dark) 0%, var(--warm-mid) 100%);
  color: var(--gold-mid);
  font-size: 2.5rem;
  gap: .5rem;
  transition: transform .5s;
}
.gallery-placeholder p {
  font-family: 'Cinzel', serif;
  font-size: .65rem;
  letter-spacing: .2em;
  color: var(--text-muted);
}
.gallery-item:hover .gallery-placeholder { transform: scale(1.04); }

/* ── PROCESS ── */
.process-steps {
  display: flex;
  flex-direction: column;
  margin-top: 4rem;
  position: relative;
}
/* LTR: timeline line on the left */
.process-steps::before {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold-mid), transparent);
}
/* RTL: timeline line moves to the right */
.process-steps-rtl::before {
  left: auto;
  right: 1.5rem;
}

.process-step {
  display: flex;
  gap: 2.5rem;
  padding: 2rem 2rem 2rem 0;
  position: relative;
}
/* RTL: number on the right, text on the left, right-aligned */
.process-steps-rtl .process-step {
  flex-direction: row-reverse;
  padding: 2rem 0 2rem 2rem;
  text-align: right;
  direction: rtl;
}
.process-steps-rtl .step-content h3,
.process-steps-rtl .step-content p {
  text-align: right;
  direction: rtl;
}
.step-num {
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  border: 1px solid var(--gold-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: .8rem;
  color: var(--gold-mid);
  background: var(--obsidian);
  position: relative;
  z-index: 1;
}
.step-content h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  letter-spacing: .1em;
  color: var(--gold-light);
  margin-bottom: .5rem;
}
.step-content h3.ar {
  font-family: 'Amiri', serif;
  letter-spacing: 0;
  font-size: 1.2rem;
}
.step-content p { color: var(--text-muted); font-size: 1rem; line-height: 1.7; }
.step-content p.ar {
  font-family: 'Amiri', serif;
  direction: rtl;
  font-size: 1.05rem;
}

/* ── TESTIMONIALS ── */
.testimonials {
  background: linear-gradient(135deg, var(--warm-dark) 0%, var(--charcoal) 100%);
  padding: 6rem 2rem;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 4rem auto 0;
}
.testimonial-card {
  border: 1px solid rgba(201,168,76,.2);
  padding: 2.5rem;
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -1rem;
  left: 2rem;
  font-family: 'Cinzel', serif;
  font-size: 4rem;
  color: var(--gold-mid);
  line-height: 1;
  opacity: .5;
}
.testimonial-text {
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-cream);
  margin-bottom: 1.5rem;
}
.testimonial-text.ar {
  font-family: 'Amiri', serif;
  direction: rtl;
  font-size: 1.15rem;
  font-style: normal;
}
.testimonial-author {
  font-family: 'Cinzel', serif;
  font-size: .75rem;
  letter-spacing: .15em;
  color: var(--gold-mid);
}
.testimonial-author.ar {
  font-family: 'Amiri', serif;
  direction: rtl;
  letter-spacing: 0;
  font-size: .95rem;
}

/* ── CONTACT ── */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.form-group label {
  font-family: 'Cinzel', serif;
  font-size: .65rem;
  letter-spacing: .25em;
  color: var(--gold-mid);
  text-transform: uppercase;
}
.form-group label.ar {
  font-family: 'Amiri', serif;
  direction: rtl;
  letter-spacing: 0;
  font-size: .85rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(201,168,76,.2);
  padding: .85rem 1rem;
  color: var(--text-cream);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  outline: none;
  transition: border-color .3s;
  resize: none;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--gold-mid); }
.form-group select option { background: var(--charcoal); }

.form-status {
  padding: .85rem 1rem;
  border: 1px solid;
  font-size: .95rem;
  display: none;
}
.form-status.success {
  border-color: var(--gold-mid);
  color: var(--gold-light);
  background: rgba(201,168,76,.08);
  display: block;
}
.form-status.error {
  border-color: #c0392b;
  color: #e74c3c;
  background: rgba(192,57,43,.08);
  display: block;
}

/* submit-btn → see css/buttons.css */

.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-info-item { display: flex; flex-direction: column; gap: .4rem; }
.contact-info-item .label {
  font-family: 'Cinzel', serif;
  font-size: .65rem;
  letter-spacing: .25em;
  color: var(--gold-mid);
}
.contact-info-item .label.ar {
  font-family: 'Amiri', serif;
  direction: rtl;
  letter-spacing: 0;
  font-size: .85rem;
}
.contact-info-item .value { font-size: 1.05rem; color: var(--text-cream); }
.contact-info-item .value.ar {
  font-family: 'Amiri', serif;
  direction: rtl;
  font-size: 1.15rem;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid rgba(201,168,76,.15);
  padding: 3rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--obsidian);
}
.footer-brand {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  letter-spacing: .15em;
  background: linear-gradient(135deg, var(--gold-mid), var(--gold-shine));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-copy { font-size: .85rem; color: var(--text-muted); }
.footer-copy.ar { font-family: 'Amiri', serif; direction: rtl; font-size: .95rem; }

/* ── UTILS ── */
.rtl-section { direction: rtl; text-align: right; }
.ltr-section  { direction: ltr; text-align: left; }
.full-border-section { border-top: 1px solid rgba(201,168,76,.08); }


/* ── PROCESS BACKGROUND ── */
.process-bg-wrap {
  position: relative;
  overflow: hidden;
}
.process-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 10s ease;
  z-index: 0;
}
.process-bg-wrap:hover .process-bg { transform: scale(1.07); }
/* Heavy dark overlay — left side darker for text legibility */
.process-bg-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right,
      rgba(6,4,1,.92) 0%,
      rgba(6,4,1,.82) 40%,
      rgba(6,4,1,.60) 70%,
      rgba(6,4,1,.40) 100%),
    linear-gradient(to bottom,
      rgba(6,4,1,.35) 0%,
      transparent 20%,
      transparent 80%,
      rgba(6,4,1,.45) 100%);
  z-index: 1;
}
.process-content {
  position: relative;
  z-index: 2;
}
/* Boost step text readability over image */
.process-content .step-content h3 {
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
.process-content .step-content p {
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}

/* ── ABOUT BACKGROUND ── */
.about-bg-wrap {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(201,168,76,.08);
}
.about-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.about-bg-wrap:hover .about-bg {
  transform: scale(1.08);
}
/* Layered overlay: heavy left darkness fading to lighter right
   so text on the left stays crisp while the image shows right */
.about-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right,
      rgba(8,5,2,.92) 0%,
      rgba(8,5,2,.80) 35%,
      rgba(8,5,2,.55) 65%,
      rgba(8,5,2,.30) 100%),
    linear-gradient(to bottom,
      rgba(8,5,2,.4) 0%,
      transparent 30%,
      transparent 70%,
      rgba(8,5,2,.5) 100%);
}
/* The section itself sits above both layers */
.about-content {
  position: relative;
  z-index: 1;
}
/* Boost text contrast slightly against the image */
.about-content .section-title {
  text-shadow: 0 2px 20px rgba(0,0,0,.6);
}
.about-content .section-body {
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}

/* ── LANGUAGE VISIBILITY ── */
.en-only { display: block; }
.ar-only  { display: none; }
body.lang-ar .en-only { display: none; }
body.lang-ar .ar-only { display: block; }

/* Arabic layout overrides */
body.lang-ar .hero-topbar-nav { direction: rtl; }
body.lang-ar .contact-section { direction: rtl; }
body.lang-ar footer { flex-direction: row-reverse; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .contact-section { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 768px) {
  nav { gap: 1.2rem; padding: .8rem 1rem; }
  nav a { font-size: .65rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item { grid-column: span 1 !important; grid-row: span 1 !important; }
  .gallery-placeholder { min-height: 160px; }
}
@media (max-width: 480px) {
  section { padding: 4rem 1.2rem; }
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ── GALLERY POPUP ── */
@media (max-width: 640px) {
  #popupContent {
    grid-template-columns: 1fr !important;
  }
  #galleryPopup > div {
    max-height: 95vh;
  }
}
.gallery-item-clickable:hover .gallery-caption {
  color: var(--gold-shine);
  letter-spacing: .26em;
}

/* ── SERVICE POPUP ── */
@media (max-width: 640px) {
  #spSteps { grid-template-columns: 1fr !important; margin: 0 1.2rem !important; }
  #servicePopup > div > div:first-child { height: 180px !important; }
  #servicePopup > div > div:nth-child(2),
  #servicePopup > div > div:last-child { padding: 1.2rem !important; }
}

/* ── About text block — flex column for button alignment ── */
.about-text-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
body.lang-ar .about-text-block {
  align-items: flex-end;
}
/* Must NOT override display:none from en-only/ar-only */
body.lang-ar .en-only.about-text-block { display: none; }
body:not(.lang-ar) .ar-only.about-text-block { display: none; }

/* ═══════════════════════════════════════════════════════════
   LIGHT MODE — Cream/ivory theme
   Activated by: body.light-mode
   ═══════════════════════════════════════════════════════════ */

body.light-mode {
  background: #FFFFF0;
  color: #2C1A00;
}

/* ── Backgrounds ── */
body.light-mode .header-bg {
  display: none;
}
body.light-mode header {
  background: #FFFFF0;
}
body.light-mode .gold-lines::before,
body.light-mode .gold-lines::after { opacity: .15; }

/* Light mode: hide all background images, overlays, use flat cream */
body.light-mode .about-bg,
body.light-mode .services-bg,
body.light-mode .gallery-bg,
body.light-mode .process-bg { display: none; }

body.light-mode .about-overlay,
body.light-mode .services-overlay,
body.light-mode .gallery-bg-overlay,
body.light-mode .process-bg-overlay { display: none; }

body.light-mode .about-bg-wrap     { background: #FFFDD0; }
body.light-mode .services-bg-wrap,
body.light-mode .services-content  { background: #F5E9C2 !important; }
body.light-mode .gallery-section   { background: #F7E7CE !important; }
body.light-mode .process-bg-wrap,
body.light-mode .process-content   { background: #F3E5B7 !important; }
body.light-mode .full-border-section { background: transparent; }
body.light-mode .testimonials      { background: linear-gradient(135deg, #E8D9BC 0%, #F0E6CF 100%); }

/* ── Sections & panels ── */
body.light-mode .charcoal,
body.light-mode nav,
body.light-mode .hero-topbar.scrolled { background: rgba(240,228,200,.96); }
body.light-mode .gallery-section { background: #F7E7CE; }
body.light-mode .testimonials { background: linear-gradient(135deg, #E8D9BC 0%, #F0E6CF 100%); }
body.light-mode footer { background: #E0CFA8; border-top-color: rgba(139,105,20,.25); }

/* ── Text colours ── */
body.light-mode .section-body,
body.light-mode .section-title,
body.light-mode .chapter-text,
body.light-mode .testimonial-text { color: #2C1A00; }
body.light-mode .text-muted,
body.light-mode .service-desc,
body.light-mode .step-content p,
body.light-mode .testimonial-author { color: #5A3E10; }
body.light-mode .footer-copy { color: #6B4F1A; }

/* ── Nav ── */
body.light-mode nav {
  background: rgba(240,228,200,.95);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(139,105,20,.2);
}
body.light-mode nav a,
body.light-mode .hero-topbar-nav a { color: #3D2800; }
body.light-mode nav a:hover,
body.light-mode .hero-topbar-nav a:hover { color: #8B6914; }
body.light-mode .hero-topbar.scrolled {
  background: rgba(240,228,200,.96);
  border-bottom-color: rgba(139,105,20,.25);
}

/* ── Service cards ── */
body.light-mode .service-card { background: rgba(248,242,225,.85); border-color: rgba(139,105,20,.15); }
body.light-mode .service-name { color: #5A3000; }
body.light-mode .service-desc { color: #5A3E10; }

/* ── Gallery captions ── */
body.light-mode .gallery-caption {
  background: rgba(220,200,155,.92);
  border-top-color: rgba(139,105,20,.2);
  color: #3D2800;
}
body.light-mode .gallery-item { border-color: rgba(139,105,20,.12); background: #D9C99A; }

/* ── Process steps ── */
body.light-mode .step-num {
  border-color: #8B6914;
  color: #8B6914;
  background: #F5EFE0;
}
body.light-mode .process-steps::before { background: linear-gradient(to bottom, #8B6914, transparent); }
body.light-mode .step-content h3 { color: #5A3000; }

/* ── Testimonials ── */
body.light-mode .testimonial-card {
  border-color: rgba(139,105,20,.2);
  background: rgba(248,242,225,.7);
}
body.light-mode .testimonial-card::before { color: #C9A84C; }

/* ── Section labels & dividers ── */
body.light-mode .section-label-line { background: linear-gradient(to right, #8B6914, transparent); }
body.light-mode .section-label-line.right { background: linear-gradient(to left, #8B6914, transparent); }
body.light-mode .section-label-text { color: #6B4000; }
body.light-mode .divider-ornament { background: linear-gradient(to right, transparent, #8B6914, transparent); }
body.light-mode .divider-ornament::before { background: #F5EFE0; color: #8B6914; }
body.light-mode .full-border-section { border-top-color: rgba(139,105,20,.15); }

/* ── Contact form ── */
body.light-mode .form-group label { color: #5A3000; }
body.light-mode .form-group input,
body.light-mode .form-group textarea,
body.light-mode .form-group select {
  background: rgba(255,255,255,.7);
  border-color: rgba(139,105,20,.25);
  color: #2C1A00;
}
body.light-mode .form-group input:focus,
body.light-mode .form-group textarea:focus,
body.light-mode .form-group select:focus { border-color: #8B6914; }
body.light-mode .contact-info-item .label { color: #6B4000; }
body.light-mode .contact-info-item .value { color: #2C1A00; }

/* ── Mobile menu ── */
body.light-mode .mobile-menu {
  background: rgba(240,228,200,.97);
  border-bottom-color: rgba(139,105,20,.2);
}
body.light-mode .mobile-menu a { color: #3D2800; border-bottom-color: rgba(139,105,20,.1); }

/* ── Scroll cue ── */
body.light-mode .scroll-cue { color: #6B4000; }
body.light-mode .scroll-cue span { background: linear-gradient(to bottom, #8B6914, transparent); }

/* ── Gold lines ── */
body.light-mode .gold-lines::before,
body.light-mode .gold-lines::after {
  background: linear-gradient(to bottom, transparent, #8B6914, transparent);
  opacity: .3;
}

/* ── Hero title stays readable on light overlay ── */
body.light-mode .site-name {
  background: linear-gradient(135deg, #3D2000 0%, #8B6914 40%, #C9A84C 65%, #8B6914 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
body.light-mode .tagline { color: #5A3E10; }
body.light-mode .ornament { color: #8B6914; }
body.light-mode .site-name-ar { color: #5A3000; }

/* ── Section titles in light mode ── */
body.light-mode .section-title {
  background: linear-gradient(135deg, #5A3000, #8B6914);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Theme toggle button ── */
.theme-toggle {
  background: transparent;
  border: 1px solid rgba(201,168,76,.35);
  border-radius: 20px;
  width: 44px;
  height: 24px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: border-color .3s, background .3s;
  padding: 0;
}
.theme-toggle::before {
  content: '☀';
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: .65rem;
  opacity: 0;
  transition: opacity .3s;
}
.theme-toggle::after {
  content: '🌙';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: .6rem;
  transition: opacity .3s;
}
.theme-toggle .toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold-mid);
  transition: transform .3s, background .3s;
}
body.light-mode .theme-toggle { background: rgba(240,228,200,.5); border-color: #8B6914; }
body.light-mode .theme-toggle::before { opacity: 1; }
body.light-mode .theme-toggle::after { opacity: 0; }
body.light-mode .theme-toggle .toggle-knob { transform: translateX(20px); background: #8B6914; }

/* ── Gallery popup light mode text ── */
body.light-mode #galleryPopupBox #modal-name,
body.light-mode #galleryPopupBox #spTitle { color: #3D2800 !important; -webkit-text-fill-color: #3D2800 !important; }
body.light-mode #galleryPopupBox #modal-meta,
body.light-mode #galleryPopupBox #modal-category,
body.light-mode #galleryPopupBox #popupCategory { color: #6B4000 !important; }
body.light-mode #galleryPopupBox { color: #2C1A00 !important; }
body.light-mode #modal-name { color: #3D2800 !important; -webkit-text-fill-color: #3D2800 !important; }
body.light-mode #popupDesc,
body.light-mode #popupDescAr { color: #3D2800 !important; }
body.light-mode #popupCategory { color: #6B4000 !important; }
body.light-mode #popupPrice { color: #8B6914 !important; }
body.light-mode #popupContent > div:last-child { background: #FDFAF3 !important; }

/* ── Lang toggle in light mode ── */
body.light-mode #lang-toggle button { color: #3D2800; }
body.light-mode #lang-toggle button.active { background: var(--gold-mid); color: var(--obsidian); }
