/* ─── project.css — Ada Trustar Project Detail Page ─────── */

/* ── HERO ── */
.proj-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: var(--nav-h, 102px);
}
@media (max-width: 768px) { .proj-hero { min-height: 300px; } }

.proj-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(.52) saturate(.72);
}
.proj-hero-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0b131e 0%, #070c15 100%);
  opacity: 0;
}
.proj-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212,146,42,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,146,42,.05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.proj-hero-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,8,12,1) 0%, rgba(7,8,12,.55) 55%, transparent 100%);
}
.proj-hero-body {
  position: relative;
  z-index: 2;
  padding: 0 52px 44px;
  max-width: 900px;
}
@media (max-width: 768px) { .proj-hero-body { padding: 0 18px 30px; } }

.proj-hero-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Teko', sans-serif;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.proj-hero-tag::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--gold);
}
.proj-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 7vw, 96px);
  color: var(--white);
  line-height: .9;
  letter-spacing: .02em;
}
.proj-hero-loc {
  font-family: 'Teko', sans-serif;
  font-size: 16px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--silver);
  margin-top: 12px;
}
.proj-hero-logo {
  background: linear-gradient(135deg, #0b131e 0%, #07090f 100%);
  justify-content: center;
}
.proj-hero-body-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 52px;
}
.proj-hero-logo-wrap {
  padding: 20px 30px;
  background: rgba(212,146,42,.06);
  border: 1px solid rgba(212,146,42,.15);
  margin-bottom: 18px;
}
.proj-hero-logo-img {
  max-width: 280px;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(30%) brightness(1.5);
}

/* ── STICKY BACK BAR ── */
.proj-backbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 52px;
  background: rgba(10,14,26,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--nav-h, 102px);
  z-index: 90;
}
@media (max-width: 768px) { .proj-backbar { padding: 10px 18px; top: 66px; } }

.proj-back-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Teko', sans-serif;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--silver);
  text-decoration: none;
  transition: color .2s;
}
.proj-back-link:hover { color: var(--gold); }
.proj-back-title {
  font-family: 'Teko', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 280px;
}
@media (max-width: 600px) { .proj-back-title { display: none; } }
.proj-back-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Teko', sans-serif;
  font-size: 12px;
  letter-spacing: .12em;
  color: rgba(148,163,184,.5);
}
.proj-nav-arrow {
  font-size: 20px;
  color: var(--silver);
  text-decoration: none;
  line-height: 1;
  transition: color .2s;
  padding: 2px 6px;
}
.proj-nav-arrow:hover { color: var(--gold); }

/* ── LOGO BAND ── */
.proj-logo-band {
  background: var(--deep);
  border-bottom: 1px solid var(--border);
  padding: 20px 52px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
  min-height: 88px;
}
.proj-logo-band .ada-logo-right {
  padding-left: 48px;
  border-left: 1px solid var(--border);
  opacity: .65;
}
@media(max-width:768px){.proj-logo-band{padding:16px 18px;gap:24px}}
.proj-logo-band img {
  max-width: 220px;
  max-height: 72px;
  object-fit: contain;
  filter: none;
}
@media (max-width: 768px) { .proj-logo-band { padding: 16px 18px; } }

/* ── MAIN LAYOUT ── */
.proj-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  min-height: 400px;
}
@media (max-width: 900px) { .proj-layout { grid-template-columns: 1fr; } }

/* ── META SIDEBAR ── */
.proj-meta {
  background: var(--deep);
  border-right: 1px solid var(--border);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
@media (max-width: 900px) { .proj-meta { border-right: none; border-bottom: 1px solid var(--border); } }

.proj-meta-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.proj-meta-row:last-of-type { border-bottom: none; }
.proj-meta-label {
  font-family: 'Teko', sans-serif;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 7px;
}
.proj-meta-value {
  font-size: 14px;
  font-weight: 500;
  color: rgba(230,240,255,.95);
  line-height: 1.5;
}
.proj-equip-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.proj-equip-tag {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(212,146,42,.14);
  border: 1px solid rgba(212,146,42,.35);
  padding: 10px 16px;
  font-family: 'Teko', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--light);
  transition: background .25s;
}
.proj-equip-tag:hover { background: rgba(212,146,42,.16); }
.proj-equip-tag svg { color: var(--gold); flex-shrink: 0; }

.btn-whatsapp {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(37,211,102,.1);
  border: 1px solid rgba(37,211,102,.3);
  color: #4ade80;
  font-family: 'Teko', sans-serif;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  justify-content: center;
  transition: background .2s;
  margin-top: 10px;
}
.btn-whatsapp:hover { background: rgba(37,211,102,.2); }

/* ── INFO PANEL ── */
.proj-info {
  background: var(--panel);
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
@media (max-width: 768px) { .proj-info { padding: 28px 18px; } }

.proj-scope-section {}
.proj-scope-head {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 34px;
  color: #ffffff;
  letter-spacing: .04em;
  margin-bottom: 16px;
}
.proj-scope-body {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.88;
  color: rgba(200,215,230,.9);
}

.proj-note {
  padding: 20px 24px;
  background: rgba(212,146,42,.06);
  border-left: 3px solid var(--gold);
}
.proj-note p {
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--silver);
}

.proj-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
}
.proj-spec-cell {
  background: var(--card);
  padding: 16px 18px;
}
.proj-spec-label {
  font-family: 'Teko', sans-serif;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 4px;
}
.proj-spec-value {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--light);
  line-height: 1.4;
}
@media (max-width: 600px) { .proj-specs-grid { grid-template-columns: 1fr; } }

/* ── GALLERY ── */
.proj-gal-section {
  background: var(--deep);
  padding: 52px;
}
@media (max-width: 768px) { .proj-gal-section { padding: 36px 18px; } }

.proj-gal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  margin-top: 28px;
}
@media (max-width: 900px) { .proj-gal-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .proj-gal-grid { grid-template-columns: 1fr 1fr; } }

.proj-gal-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--card);
}
.proj-gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.6) saturate(.65);
  transition: transform .55s ease, filter .35s;
  display: block;
}
.proj-gal-item:hover img {
  transform: scale(1.07);
  filter: brightness(.95) saturate(1);
}
.proj-gal-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: rgba(212,146,42,.85);
  opacity: 0;
  transition: opacity .3s;
  background: rgba(0,0,0,.12);
}
.proj-gal-item:hover .proj-gal-zoom { opacity: 1; }

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox #lb-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 0 80px rgba(0,0,0,.5);
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  padding: 0;
  transition: background .2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(212,146,42,.4); }
.lb-close { top: 20px; right: 20px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.lb-prev  { left: 20px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.lb-next  { right: 20px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 26px; }

/* ── PREV/NEXT NAV BAR ── */
.proj-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 52px;
  background: var(--panel);
  border-top: 1px solid var(--border);
}
@media (max-width: 768px) {
  .proj-nav-bar { padding: 18px; flex-wrap: wrap; gap: 12px; }
}

.proj-nav-card {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: color .2s;
  max-width: 240px;
}
.proj-nav-card:hover { color: var(--gold); }
.proj-nav-dir {
  font-family: 'Teko', sans-serif;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--silver);
}
.proj-nav-name {
  font-family: 'Teko', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.proj-nav-counter {
  font-family: 'Teko', sans-serif;
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(148,163,184,.4);
}

/* ── THEME TOGGLE ── */
.theme-btn {
  background: none;
  border: 1px solid rgba(255,255,255,.12);
  color: var(--silver);
  cursor: pointer;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.theme-btn:hover { border-color: var(--gold); color: var(--gold); }

[data-theme="dark"]  .icon-sun  { display: none; }
[data-theme="dark"]  .icon-moon { display: block; }
[data-theme="light"] .icon-sun  { display: block; }
[data-theme="light"] .icon-moon { display: none; }

/* ── LIGHT THEME OVERRIDES ── */
[data-theme="light"] {
  --bg:     #f4f5f7;
  --deep:   #ebedf0;
  --surface: #ffffff;
  --card:   #ffffff;
  --panel:  #f8f9fb;
  --border: #d1d5db;
  --light:  #1a1f2e;
  --silver: #4b5563;
  --white:  #111827;
}
[data-theme="light"] .topbar        { background: #1a1f2e; }
[data-theme="light"] .main-nav      { background: rgba(255,255,255,.97); border-bottom-color: #d1d5db; }
[data-theme="light"] .nav-logo-dark { display: none; }
[data-theme="light"] .nav-logo-light{ display: block; }
[data-theme="dark"]  .nav-logo-dark { display: block; }
[data-theme="dark"]  .nav-logo-light{ display: none; }
[data-theme="light"] .proj-hero-img { filter: brightness(.45) saturate(.7); }
[data-theme="light"] .proj-logo-band img { filter: grayscale(0%) brightness(.9); }

/* Gallery first layout */
.proj-detail-wrap {
  display: flex;
  flex-direction: column;
}
.proj-detail-wrap .proj-gal-section { order: 1; }
.proj-detail-wrap .proj-layout { order: 2; }
.proj-detail-wrap .proj-nav-bar { order: 3; }

/* Project equip tags - bigger text */
.proj-equip-tag {
  font-size: 15px !important;
}

/* Project meta values bigger */
.proj-meta-label {
  font-size: 12px !important;
  letter-spacing: .18em !important;
}
.proj-meta-value {
  font-size: 15px !important;
}

/* Project scope body - bigger */
.proj-scope-body {
  font-size: 15.5px !important;
  line-height: 1.9 !important;
  color: rgba(220,232,248,.92) !important;
}

/* No grayscale on proj gal */
.proj-gal-item img {
  filter: brightness(.6) !important;
}
.proj-gal-item:hover img {
  filter: brightness(.98) saturate(1.05) !important;
}
