/* ==========================================================================
   MG TurnKey — Luxury Interior Design Studio
   Palette: off-white / warm beige / charcoal / black + subtle metallic gold
   ========================================================================== */

:root {
  --paper:        #FAF8F3;
  --cream:        #F3EEE4;
  --beige:        #E9E1D2;
  --sand:         #D6CBB6;
  --ink:          #191817;
  --charcoal:     #232220;
  --graphite:     #3B3833;
  --stone:        #857D70;
  --gold:         #C2A164;
  --gold-soft:    #D8C295;
  --hairline:     rgba(25, 24, 23, 0.14);
  --hairline-inv: rgba(250, 248, 243, 0.18);

  --font-head: 'Cormorant Garamond', serif;
  --font-body: 'DM Sans', sans-serif;

  /* Legacy aliases (admin-configured primary color feeds --teal) */
  --teal:       #191817;
  --teal-light: #F3EEE4;
  --teal-dark:  #000000;
  --slate:       #857D70;
  --slate-light: #F3EEE4;
  --slate-dark:  #191817;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  letter-spacing: -0.01em;
}

::selection { background: var(--gold); color: var(--ink); }

img { max-width: 100%; }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1.4rem 2rem;
  transition: background 0.45s var(--ease), padding 0.45s var(--ease),
              border-color 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline);
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

#navbar .max-w-6xl { width: 100%; }

.nav-link {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 248, 243, 0.85);
  transition: color 0.25s;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s var(--ease);
}

.nav-link:hover { color: #fff; }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: #fff; }

#navbar.scrolled .nav-link { color: var(--graphite); }
#navbar.scrolled .nav-link:hover,
#navbar.scrolled .nav-link.active { color: var(--ink); }

/* CTA-style nav item (managed in CMS) */
.nav-cta {
  border: 1px solid var(--gold);
  color: var(--paper) !important;
  padding: 10px 24px !important;
  transition: background 0.3s, color 0.3s;
}
.nav-cta:hover { background: var(--gold); color: var(--ink) !important; }
.nav-cta::after { display: none; }
#navbar.scrolled .nav-cta { color: var(--ink) !important; }
#navbar.scrolled .nav-cta:hover { color: var(--ink) !important; }

#navbar.scrolled .logo-text { color: var(--ink); }
.logo-text {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--paper);
  letter-spacing: 0.04em;
  transition: color 0.3s;
  line-height: 1;
}

/* ── BRAND LOGO ── */
.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.site-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}
.site-logo--navbar { gap: 0.7rem; }
.site-logo--navbar img {
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}
.site-logo--footer { gap: 0.8rem; }
.site-logo--footer img {
  height: 46px;
  border-radius: 10px;
  flex-shrink: 0;
}
.site-logo--login img {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}

/* ── LANGUAGE SWITCH ── */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}
.lang-switch a {
  text-decoration: none;
  padding: 4px 10px;
  color: rgba(250, 248, 243, 0.6);
  transition: color 0.25s;
}
.lang-switch a.active,
.lang-switch a:hover { color: #fff; }
.lang-switch a.active { border-bottom: 1px solid var(--gold); }
#navbar.scrolled .lang-switch a { color: var(--stone); }
#navbar.scrolled .lang-switch a.active,
#navbar.scrolled .lang-switch a:hover { color: var(--ink); }
#navbar.scrolled .lang-switch a.active { border-bottom-color: var(--gold); }

/* ── HAMBURGER ── */
#hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 10px;
  margin: -12px -10px;
}
.bar {
  display: block;
  width: 26px; height: 1.5px;
  background: var(--paper);
  transition: background 0.3s, transform 0.35s var(--ease), opacity 0.3s;
}
#navbar.scrolled .bar { background: var(--ink); }
#hamburger.open .bar { background: var(--paper) !important; }

/* Navbar chrome while mobile menu is open (menu is dark) */
#navbar.menu-open {
  background: transparent;
  border-bottom-color: transparent;
}
#navbar.menu-open .logo-text { color: var(--paper); }
#navbar.menu-open .bar { background: var(--paper) !important; }

#hamburger.open .bar:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
#hamburger.open .bar:nth-child(2) { opacity: 0; }
#hamburger.open .bar:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ── MOBILE MENU ── */
#mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 40;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 5rem 2rem 3rem;
}
#mobile-menu.open { display: flex; }

.mobile-link {
  font-family: var(--font-head);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 300;
  color: var(--paper);
  text-decoration: none;
  transition: color 0.25s, letter-spacing 0.35s var(--ease);
  line-height: 1.5;
  text-align: center;
  max-width: 100%;
  overflow-wrap: break-word;
  padding: 0.25rem 0.5rem;
}
.mobile-link:hover {
  color: var(--gold-soft);
  letter-spacing: 0.03em;
}

/* ==========================================================================
   HERO
   ========================================================================== */
#hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 0 2rem 5.5rem;
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

#hero::before {
  content: '';
  position: absolute;
  inset: -6% 0;
  background-image: var(--hero-img, url('../media/imgnew4.jpeg'));
  background-size: cover;
  background-position: center;
  transform: translate3d(0, var(--hero-parallax, 0), 0);
  will-change: transform;
}

#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(20, 19, 17, 0.88) 0%, rgba(20, 19, 17, 0.35) 45%, rgba(20, 19, 17, 0.45) 100%);
}

#hero > * { position: relative; z-index: 2; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1.75rem;
}
.hero-tag::before {
  content: '';
  width: 44px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3.2rem, 9.5vw, 7.5rem);
  font-weight: 300;
  line-height: 1.02;
  color: var(--paper);
  margin: 0 0 1.75rem;
  max-width: 15ch;
}

.hero-sub {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(250, 248, 243, 0.72);
  max-width: 440px;
  line-height: 1.85;
  margin: 0 0 2.75rem;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 17px 38px;
  border-radius: 0;
  text-decoration: none;
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.btn-primary:hover {
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px 38px;
  border-radius: 0;
  border: 1px solid rgba(250, 248, 243, 0.45);
  text-decoration: none;
  margin-inline-start: 14px;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
  background: rgba(194, 161, 100, 0.08);
}

/* Dark-section variants (CTA, dark contexts) */
.btn-ink {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 17px 38px;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.btn-ink:hover { background: var(--gold); color: var(--ink); }

/* ── SCROLL HINT ── */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  inset-inline-end: 2rem;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.62rem;
  color: rgba(250, 248, 243, 0.55);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  z-index: 2;
}
.scroll-hint-line {
  width: 52px;
  height: 1px;
  background: rgba(250, 248, 243, 0.3);
  position: relative;
  overflow: hidden;
}
.scroll-hint-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-100%);
  animation: scrollhint 2.6s var(--ease) infinite;
}
@keyframes scrollhint {
  0%   { transform: translateX(-101%); }
  55%  { transform: translateX(0); }
  100% { transform: translateX(101%); }
}
[dir="rtl"] .scroll-hint-line::after { animation-name: scrollhint-rtl; }
@keyframes scrollhint-rtl {
  0%   { transform: translateX(101%); }
  55%  { transform: translateX(0); }
  100% { transform: translateX(-101%); }
}

/* ==========================================================================
   SECTION SCAFFOLDING
   ========================================================================== */
.cms-sec { position: relative; }
.cms-sec > .cms-inner { position: relative; z-index: 1; }

.sec-dark  { background: var(--ink); color: var(--paper); }
.sec-cream { background: var(--cream); }
.sec-paper { background: var(--paper); }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.section-tag::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 1.1rem;
}
.sec-dark .section-title { color: var(--paper); }

.section-sub {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--stone);
  line-height: 1.9;
  max-width: 520px;
}
.sec-dark .section-sub { color: rgba(250, 248, 243, 0.6); }

/* ==========================================================================
   STATS BAR
   ========================================================================== */
#stats-bar.cms-sec, #stats-bar {
  background: var(--ink);
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}
.stat-item {
  text-align: center;
  position: relative;
  padding: 0.5rem 1rem;
}
.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 44px;
  width: 1px;
  background: var(--hairline-inv);
}
.stat-number {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 4.5vw, 3.6rem);
  font-weight: 300;
  color: var(--paper);
  line-height: 1;
}
.stat-number::after {
  content: '';
  display: block;
  width: 22px;
  height: 1px;
  background: var(--gold);
  margin: 0.9rem auto 0.8rem;
}
.stat-label {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250, 248, 243, 0.5);
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-visual {
  position: relative;
  padding-bottom: 4.5rem;
  padding-inline-end: 3.5rem;
}
.about-visual-main {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}
.about-visual::before {
  content: '';
  position: absolute;
  top: 2rem;
  inset-inline-end: 0;
  bottom: 2.5rem;
  width: 1px;
  background: var(--gold);
  z-index: 0;
}
.about-visual-accent {
  position: absolute;
  bottom: 0;
  inset-inline-start: -1.5rem;
  width: 46%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 6px solid var(--paper);
  z-index: 2;
  box-shadow: 0 24px 60px rgba(25, 24, 23, 0.18);
}
.about-badge {
  position: absolute;
  top: -1.25rem;
  inset-inline-start: -1.25rem;
  z-index: 3;
  background: var(--ink);
  color: var(--paper);
  padding: 1.1rem 1.4rem;
  text-align: center;
}
.about-badge strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 400;
  color: var(--gold-soft);
  line-height: 1;
}
.about-badge span {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 248, 243, 0.6);
}

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gold);
  transition: color 0.3s, gap 0.3s var(--ease);
}
.btn-line:hover { color: var(--gold); gap: 18px; }
[dir="rtl"] .btn-line svg { transform: scaleX(-1); }

/* ==========================================================================
   SERVICES — editorial index
   ========================================================================== */
#services.cms-sec, #services { background: var(--cream); }

.service-row {
  display: grid;
  grid-template-columns: 72px 1.1fr 1.6fr auto;
  align-items: center;
  gap: 2rem;
  padding: 2.1rem 1.75rem;
  border-top: 1px solid var(--hairline);
  transition: background 0.4s var(--ease), border-color 0.4s;
  position: relative;
}
.service-row:last-child { border-bottom: 1px solid var(--hairline); }

.service-index {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--stone);
  transition: color 0.35s;
}

.service-name {
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 400;
  margin: 0;
  color: var(--ink);
  transition: color 0.35s;
  line-height: 1.25;
}

.service-desc {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--stone);
  line-height: 1.8;
  margin: 0;
  transition: color 0.35s;
}

.service-side {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.service-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  transition: color 0.35s, transform 0.35s var(--ease);
}
.service-icon svg {
  width: 26px; height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.2;
}
.service-arrow {
  width: 38px; height: 38px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: background 0.35s, color 0.35s, border-color 0.35s,
              transform 0.35s var(--ease);
  flex-shrink: 0;
}
.service-arrow svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.5; }

.service-row:hover {
  background: var(--ink);
  border-color: var(--ink);
}
.service-row:hover .service-index { color: var(--gold); }
.service-row:hover .service-name { color: var(--paper); }
.service-row:hover .service-desc { color: rgba(250, 248, 243, 0.6); }
.service-row:hover .service-icon { color: var(--gold-soft); transform: scale(1.08); }
.service-row:hover .service-arrow {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  transform: rotate(-45deg);
}
[dir="rtl"] .service-row:hover .service-arrow { transform: rotate(45deg); }
[dir="rtl"] .service-arrow svg,
[dir="rtl"] .service-row:hover .service-arrow svg { transform: scaleX(-1); }

/* ==========================================================================
   PROJECTS — editorial gallery
   ========================================================================== */
#projects.cms-sec, #projects { background: var(--ink); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.1rem;
  grid-auto-flow: dense;
}

.project-card {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  min-height: 300px;
  display: block;
  text-decoration: none;
  cursor: pointer;
}
.project-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.project-card:nth-child(6n+1) { grid-column: span 4; grid-row: span 2; }
.project-card:nth-child(6n+2) { grid-column: span 2; }
.project-card:nth-child(6n+3) { grid-column: span 2; }
.project-card:nth-child(6n+4) { grid-column: span 2; }
.project-card:nth-child(6n+5) { grid-column: span 2; }
.project-card:nth-child(6n+6) { grid-column: span 2; }

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
  transition: transform 1s var(--ease), opacity 0.6s;
}
.project-card:hover img { transform: scale(1.06); }

.project-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.6rem 1.75rem;
  background: linear-gradient(to top, rgba(20, 19, 17, 0.82) 0%, rgba(20, 19, 17, 0.12) 45%, transparent 65%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.project-card:hover .project-overlay,
.project-card:focus-within .project-overlay { opacity: 1; }

.project-cat {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 6px;
}
.project-name {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--paper);
  line-height: 1.2;
  margin: 0;
  overflow-wrap: break-word;
}
.project-loc {
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(250, 248, 243, 0.65);
  margin-top: 4px;
}
.project-loc::before {
  content: '— ';
  color: var(--gold);
}

/* Always show caption on touch/small screens */
@media (hover: none) {
  .project-overlay { opacity: 1; background: linear-gradient(to top, rgba(20,19,17,0.78) 0%, transparent 55%); }
}

/* ==========================================================================
   PROCESS — timeline
   ========================================================================== */
#process.cms-sec, #process { background: var(--paper); }

.process-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem 2rem;
}
.process-track::before {
  content: '';
  position: absolute;
  top: 26px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--hairline);
}
.process-step { position: relative; }
.step-number {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--gold);
  width: 52px; height: 52px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  z-index: 1;
  transition: background 0.35s, color 0.35s, border-color 0.35s;
}
.process-step:hover .step-number {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--gold-soft);
}
.process-step h3 {
  font-size: 1.3rem;
  font-weight: 500;
  margin: 1.4rem 0 0.6rem;
  color: var(--ink);
}
.process-step p {
  font-size: 0.86rem;
  font-weight: 300;
  color: var(--stone);
  line-height: 1.8;
  margin: 0;
  max-width: 30ch;
}

@media (max-width: 767px) {
  .process-track { grid-template-columns: 1fr; gap: 2.2rem; }
  .process-track::before {
    top: 0; bottom: 0; left: 26px; right: auto;
    width: 1px; height: auto;
  }
  [dir="rtl"] .process-track::before { left: auto; right: 26px; }
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
#testimonials.cms-sec, #testimonials { background: var(--cream); }

.testimonial-card {
  padding: 2.6rem 2.2rem;
  border-top: 1px solid var(--hairline);
  position: relative;
  transition: background 0.4s var(--ease);
}
.testimonial-card:hover { background: rgba(250, 248, 243, 0.65); }
.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-head);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
  height: 3rem;
}
.testimonial-quote {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.65;
  color: var(--graphite);
  margin: 0 0 1.9rem;
}
.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.testimonial-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
}
.testimonial-role {
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--stone);
  text-transform: uppercase;
}

/* ==========================================================================
   CTA
   ========================================================================== */
#cta.cms-sec, #cta {
  background:
    radial-gradient(ellipse 60% 90% at 50% 115%, rgba(194, 161, 100, 0.16), transparent 65%),
    var(--ink);
  text-align: center;
}
#cta .section-tag { justify-content: center; }
#cta .section-tag::after {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--gold);
}

.cta-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 300;
  color: var(--paper);
  line-height: 1.15;
  margin: 0 0 1.25rem;
}
.cta-desc {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(250, 248, 243, 0.6);
  line-height: 1.9;
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
#contact.cms-sec, #contact { background: var(--paper); }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.9rem;
  color: var(--graphite);
}
.contact-item-icon {
  width: 40px; height: 40px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.contact-item:hover .contact-item-icon {
  background: var(--ink);
  border-color: var(--ink);
}
.contact-item-icon svg {
  width: 17px; height: 17px;
  stroke: currentColor; fill: none; stroke-width: 1.4;
}
.contact-item a { color: inherit; text-decoration: none; transition: color 0.25s; }
.contact-item a:hover { color: var(--gold); }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.form-label {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  display: block;
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  padding: 12px 2px;
  border: none;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
  background: transparent;
  color: var(--ink);
}
.form-input:focus { border-bottom-color: var(--gold); }
select.form-input { cursor: pointer; }

.form-submit {
  background: var(--ink);
  color: var(--paper);
  padding: 17px;
  border: 1px solid var(--ink);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  width: 100%;
}
.form-submit:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background: #141311;
  color: var(--paper);
  padding: 5rem 1.5rem 2.5rem;
}
footer .section-tag,
footer .footer-heading {
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  display: block;
}
footer p { color: rgba(250, 248, 243, 0.55); }
footer a {
  color: rgba(250, 248, 243, 0.65);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 300;
  transition: color 0.25s, padding 0.25s var(--ease);
}
footer a:hover { color: var(--gold-soft); }
.footer-links { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-desc {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(250, 248, 243, 0.55);
  max-width: 300px;
}
.footer-bottom {
  border-top: 1px solid rgba(250, 248, 243, 0.1);
  margin-top: 3.5rem;
  padding-top: 2rem;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(250, 248, 243, 0.4);
  margin: 0;
}

/* ==========================================================================
   CMS PREVIEW (admin)
   ========================================================================== */
.cms-preview-banner {
  position: sticky; top: 0; z-index: 100;
  background: #f59e0b; color: #1e293b; text-align: center;
  padding: .5rem 1rem; font-size: .85rem; font-weight: 600;
}
.cms-preview-banner a { color: #1e293b; font-weight: 800; margin-inline-start: .75rem; }
.cms-preview-off { outline: 2px dashed #f59e0b; outline-offset: -2px; position: relative; }
.cms-preview-badge {
  background: #f59e0b; color: #1e293b; display: inline-block;
  font-size: .7rem; font-weight: 700; letter-spacing: .05em;
  padding: 2px 10px; border-radius: 4px; position: absolute; top: 8px; inset-inline-start: 8px; z-index: 20;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1023px) {
  .service-row {
    grid-template-columns: 52px 1fr auto;
    grid-template-areas: "idx name side" "idx desc side";
    gap: 0.4rem 1.5rem;
    padding: 1.8rem 1.25rem;
  }
  .service-index { grid-area: idx; align-self: start; }
  .service-name { grid-area: name; }
  .service-desc { grid-area: desc; }
  .service-side { grid-area: side; flex-direction: column; gap: 1rem; }
  .service-arrow { display: none; }
}

@media (max-width: 767px) {
  html { scroll-padding-top: 76px; }

  #navbar { padding: 1rem 1.25rem; }
  #navbar.scrolled { padding: 0.7rem 1.25rem; }

  #hero {
    padding: 0 1.5rem 5rem;
    align-items: flex-end;
  }
  .hero-title { max-width: 100%; }
  .hero-sub { margin-bottom: 2.25rem; }
  .btn-outline { margin-inline-start: 0; margin-top: 12px; }
  .el-buttons { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  .el-buttons .btn-primary,
  .el-buttons .btn-outline {
    display: block;
    text-align: center;
    margin-inline-start: 0;
    margin-top: 0;
    padding: 16px 24px;
  }
  .scroll-hint { display: none; }

  .lang-switch a { padding: 8px 12px; }

  .form-input { font-size: 1rem; }

  #stats-bar.cms-sec, #stats-bar { padding-top: 3.25rem; padding-bottom: 3.25rem; }
  #stats-bar .grid { gap: 2rem 0; }
  .stat-item { padding: 0 0.5rem; }
  .stat-item + .stat-item::before { display: none; }
  .stat-item:nth-child(n+3) { margin-top: 1rem; }
  .stat-number::after { margin-bottom: 0.55rem; }

  .about-visual {
    padding-bottom: 3rem;
    padding-inline-end: 2rem;
    margin-top: 1rem;
  }
  .about-badge { top: -0.9rem; inset-inline-start: -0.5rem; padding: 0.85rem 1.1rem; }
  .about-badge strong { font-size: 1.5rem; }

  .project-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .project-card,
  .project-card:nth-child(6n+1),
  .project-card:nth-child(6n+2),
  .project-card:nth-child(6n+3),
  .project-card:nth-child(6n+4),
  .project-card:nth-child(6n+5),
  .project-card:nth-child(6n+6) { grid-column: span 1; grid-row: span 1; min-height: 240px; }
  .project-card:nth-child(4n+1) { grid-column: span 2; min-height: 300px; }

  .testimonial-card { padding: 2rem 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   PROJECT DETAILS PAGE
   ========================================================================== */
.pd-hero {
  position: relative;
  min-height: 82vh;
  min-height: 82svh;
  display: flex;
  align-items: flex-end;
  padding: 0 2rem 4.5rem;
  background: var(--ink);
  overflow: hidden;
}
.pd-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--pd-hero-img, none);
  background-size: cover;
  background-position: center;
}
.pd-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 19, 17, 0.9) 0%, rgba(20, 19, 17, 0.25) 50%, rgba(20, 19, 17, 0.4) 100%);
}
.pd-hero-inner {
  position: relative;
  z-index: 2;
  margin-inline: auto;
  width: 100%;
}

.pd-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250, 248, 243, 0.65);
  text-decoration: none;
  margin-bottom: 2.25rem;
  padding: 6px 0;
  transition: color 0.25s, gap 0.3s var(--ease);
}
.pd-back svg { width: 16px; height: 16px; }
.pd-back:hover { color: var(--gold-soft); gap: 15px; }
[dir="rtl"] .pd-back svg,
[dir="rtl"] .pd-nav-prev svg,
[dir="rtl"] .pd-nav-next svg { transform: scaleX(-1); }

.pd-title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 7.5vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--paper);
  margin: 0 0 1.25rem;
  max-width: 16ch;
  overflow-wrap: break-word;
}

.pd-hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 248, 243, 0.65);
}
.pd-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
}

/* ── INFO STRIP ── */
.pd-info {
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
  padding: 2.75rem 1.5rem;
}
.pd-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}
.pd-info-item { position: relative; padding-inline-start: 1.25rem; }
.pd-info-item::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 4px; bottom: 4px;
  width: 1px;
  background: var(--gold);
}
.pd-info-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 6px;
}
.pd-info-value {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--ink);
  line-height: 1.3;
}

/* ── DESCRIPTION ── */
.pd-description {
  background: var(--paper);
  padding: 5.5rem 1.5rem;
}
.pd-description-text {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 300;
  line-height: 1.85;
  color: var(--graphite);
  margin: 0;
  max-width: 62ch;
}

/* ── GALLERY ── */
.pd-gallery {
  background: var(--ink);
  padding: 5.5rem 1.5rem;
}
.pd-gallery-head { margin-bottom: 2.25rem; }

.pd-gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.1rem;
  grid-auto-flow: dense;
}

/* Single-image gallery: full-width editorial presentation */
.pd-gallery-grid:not(.pd-gallery-grid--multi) .pd-gallery-item {
  grid-column: 1 / -1;
  min-height: 420px;
}
.pd-gallery-grid--multi .pd-gallery-item--featured {
  grid-column: span 4;
  grid-row: span 2;
}
.pd-gallery-grid--multi .pd-gallery-item:not(.pd-gallery-item--featured) {
  grid-column: span 2;
}

.pd-gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  min-height: 280px;
  padding: 0;
  border: none;
  cursor: zoom-in;
  display: block;
  width: 100%;
}
.pd-gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 19, 17, 0);
  transition: background 0.35s;
}
.pd-gallery-item:hover::after { background: rgba(20, 19, 17, 0.28); }
.pd-gallery-item:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.pd-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
  transition: transform 0.9s var(--ease);
}
.pd-gallery-item:hover img { transform: scale(1.045); }

/* ── PROJECT NAVIGATION ── */
.pd-nav {
  background: var(--paper);
  border-top: 1px solid var(--hairline);
  padding: 2.25rem 1.5rem;
}
.pd-nav-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}
.pd-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--ink);
  max-width: 260px;
  transition: color 0.25s;
}
.pd-nav-link svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}
.pd-nav-prev { justify-self: start; }
.pd-nav-next { justify-self: end; text-align: end; }
.pd-nav-link:hover { color: var(--gold); }
.pd-nav-prev:hover svg { transform: translateX(-5px); }
.pd-nav-next:hover svg { transform: translateX(5px); }
[dir="rtl"] .pd-nav-prev:hover svg { transform: scaleX(-1) translateX(-5px); }
[dir="rtl"] .pd-nav-next:hover svg { transform: scaleX(-1) translateX(5px); }
.pd-nav-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 3px;
}
.pd-nav-title {
  display: block;
  font-family: var(--font-head);
  font-size: 1.15rem;
  line-height: 1.3;
}
.pd-nav-back {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  text-decoration: none;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--hairline);
  transition: color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.pd-nav-back:hover { color: var(--ink); border-color: var(--gold); }

/* ── RELATED ── */
.pd-related {
  background: var(--cream);
  padding: 5.5rem 1.5rem;
}
.pd-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.pd-related .project-card { min-height: 320px; }

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(16, 15, 14, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
  touch-action: none;
  overscroll-behavior: contain;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-figure {
  margin: 0;
  max-width: min(1200px, 88vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  max-height: 80svh;
  object-fit: contain;
  display: block;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.97);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s;
}
.lightbox.open .lightbox-img { transform: scale(1); opacity: 1; }

.lightbox-counter {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: rgba(250, 248, 243, 0.55);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: none;
  border: 1px solid rgba(250, 248, 243, 0.25);
  border-radius: 50%;
  color: rgba(250, 248, 243, 0.8);
  width: 46px; height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, opacity 0.25s;
  z-index: 2;
}
.lightbox-close svg,
.lightbox-nav svg { width: 18px; height: 18px; }
.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.lightbox-close { top: 1.5rem; inset-inline-end: 1.5rem; }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
[dir="rtl"] .lightbox-prev { left: auto; right: 1.5rem; }
[dir="rtl"] .lightbox-next { right: auto; left: 1.5rem; }
[dir="rtl"] .lightbox-nav svg { transform: scaleX(-1); }
.lightbox-nav.hidden-nav { opacity: 0; pointer-events: none; }

body.lightbox-open { overflow: hidden; }

/* ==========================================================================
   PROJECT DETAILS — RESPONSIVE
   ========================================================================== */
@media (max-width: 1023px) {
  .pd-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .pd-hero {
    min-height: 72vh;
    min-height: 72svh;
    padding: 0 1.5rem 3.25rem;
  }
  .pd-hero::before { background-position: center 30%; }
  .pd-back { margin-bottom: 1.5rem; }
  .pd-title { margin-bottom: 1rem; }
  .pd-hero-meta { flex-wrap: wrap; gap: 10px; font-size: 0.7rem; }

  .pd-info { padding: 2rem 1.5rem; }
  .pd-info-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem 1.25rem; }
  .pd-info-value { font-size: 1.1rem; }

  .pd-description { padding: 3.5rem 1.5rem; }
  .pd-description-text { line-height: 1.75; }

  /* Gallery: featured full-width, remaining images in a 2-column mosaic */
  .pd-gallery { padding: 3.5rem 1.5rem; }
  .pd-gallery-grid,
  .pd-gallery-grid--multi { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; grid-auto-flow: row; }
  .pd-gallery-grid .pd-gallery-item,
  .pd-gallery-grid--multi .pd-gallery-item--featured,
  .pd-gallery-grid--multi .pd-gallery-item:not(.pd-gallery-item--featured) {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 0;
    aspect-ratio: 1 / 1;
  }
  .pd-gallery-grid .pd-gallery-item--featured,
  .pd-gallery-grid--multi .pd-gallery-item--featured,
  .pd-gallery-grid:not(.pd-gallery-grid--multi) .pd-gallery-item {
    grid-column: 1 / -1;
    grid-row: span 1;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  /* Navigation stacks: Previous → Back to Projects → Next */
  .pd-nav { padding: 1.75rem 1.5rem; }
  .pd-nav-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    justify-items: start;
  }
  .pd-nav-prev { order: 1; }
  .pd-nav-back { order: 2; }
  .pd-nav-next { order: 3; justify-self: start; text-align: start; }
  .pd-nav-link { max-width: 100%; padding: 4px 0; }

  .pd-related { padding: 3.5rem 1.5rem; }
  .pd-related-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .pd-related .project-card { min-height: 240px; }

  /* Lightbox: comfortable 44px touch targets */
  .lightbox-close { top: 1rem; inset-inline-end: 1rem; }
  .lightbox-prev { left: 0.6rem; }
  .lightbox-next { right: 0.6rem; }
  [dir="rtl"] .lightbox-prev { right: 0.6rem; }
  [dir="rtl"] .lightbox-next { left: 0.6rem; }
  .lightbox-close,
  .lightbox-nav { width: 44px; height: 44px; }
  .lightbox-figure { max-width: calc(100vw - 116px); }
  .lightbox-counter { letter-spacing: 0.2em; }
}

/* Small phones — keep headlines elegant without dominating the screen */
@media (max-width: 380px) {
  .hero-title { font-size: clamp(2.6rem, 10vw, 3.2rem); }
  .pd-title { font-size: clamp(2.4rem, 9vw, 2.9rem); }
  .section-title { font-size: clamp(2rem, 8vw, 2.4rem); }
  .cta-title { font-size: clamp(2rem, 9vw, 2.5rem); }
  .pd-info-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .pd-info-value { font-size: 1.15rem; }
}

/* Larger phones — related projects in a compact 2-column mosaic */
@media (min-width: 420px) and (max-width: 767px) {
  .pd-related-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-related .project-card { min-height: 200px; }
}
