/* =============================================================
   SINGLE PROJECT — hero, layout, gallery, lightbox, FAQ
   ============================================================= */

/* ── Project hero ───────────────────────────────────────────── */
.proj-hero {
  padding: 84px 0 72px;
  background:
    radial-gradient(ellipse 45% 55% at 85% 45%, rgba(45,158,68,.11) 0%, transparent 58%),
    linear-gradient(140deg, #1e3a7b 0%, #0f1f4e 55%, #08142a 100%);
  position: relative; overflow: hidden;
}
.proj-hero::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,.085) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 80% 85% at 50% 50%, black 15%, transparent 100%);
  mask-image:         radial-gradient(ellipse 80% 85% at 50% 50%, black 15%, transparent 100%);
  pointer-events: none; z-index: 0;
}
.proj-hero.has-bg { background-size: cover; background-position: center; }
.proj-hero.has-bg::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,0,0,.6), rgba(0,0,0,.72)); }
.proj-hero .container { position: relative; z-index: 1; }

.proj-hero-grid   { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: center; }
.proj-hero-left   { display: flex; flex-direction: column; }
.proj-hero-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.proj-hero-title  { font-size: 2.2rem; font-weight: 900; color: #fff; line-height: 1.2; margin: 0 0 10px; }
.proj-hero-client { color: #2bb148; font-size: .88rem; font-weight: 600; margin: 0 0 14px; padding-left: 11px; border-left: 3px solid rgba(110,231,160,.5); line-height: 1.5; }
.proj-hero-desc   { color: rgba(255,255,255,.78); font-size: .95rem; line-height: 1.7; margin: 12px 0 20px; max-width: 520px; }
.proj-hero-tags   { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-hero-tag   { display: inline-block; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.32); color: #fff; font-size: .75rem; font-weight: 700; padding: 5px 13px; border-radius: 20px; letter-spacing: .03em; transition: background .2s; }
.badge-hero-tag:hover { background: rgba(255,255,255,.22); }

.proj-hero-right  { background: rgba(255,255,255,.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.22); border-radius: 16px; padding: 28px 26px; }
.proj-quickstats  { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; }
.qstat            { display: flex; align-items: center; gap: 6px; }
.qstat svg        { color: var(--green-light); flex-shrink: 0; }
.qstat span       { font-size: .82rem; color: #fff; font-weight: 600; }
.qstat small      { font-size: .72rem; color: rgba(255,255,255,.6); }

/* ── Project layout ─────────────────────────────────────────── */
.proj-page   { padding: 48px 0; }
.proj-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.proj-sidebar { position: sticky; top: calc(var(--header-h) + 24px); }

/* Content boxes */
.proj-box    { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 24px; margin-bottom: 24px; }
.proj-box h2 { margin-bottom: 18px; }
.proj-box h3 {
  font-size: .82rem; font-weight: 800; color: var(--blue);
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--light);
  text-transform: uppercase; letter-spacing: .04em;
}
.proj-specs-list   { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.proj-spec-item dt { font-size: .76rem; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.proj-spec-item dd { font-size: .9rem; font-weight: 700; color: var(--text); margin-top: 2px; }

/* Gallery */
.proj-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.proj-gallery-item { margin: 0; border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; }
.proj-gallery-item a     { display: block; height: 100%; cursor: zoom-in; }
.proj-gallery-item img   { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.proj-gallery-item a:hover img { transform: scale(1.04); }

/* Lightbox */
#irr-lb { display: none; position: fixed; inset: 0; z-index: 99999; align-items: center; justify-content: center; }
#irr-lb.lb-open { display: flex; }
#irr-lb .lb-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.9); }
#irr-lb .lb-box    { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; max-width: 92vw; max-height: 92vh; }
#irr-lb .lb-img    { max-width: 88vw; max-height: 80vh; object-fit: contain; border-radius: 6px; display: block; user-select: none; }
#irr-lb .lb-counter { color: rgba(255,255,255,.65); font-size: .8rem; margin-top: 10px; letter-spacing: .04em; }
#irr-lb .lb-close  { position: fixed; top: 14px; right: 18px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: none; background: rgba(255,255,255,.12); color: #fff; font-size: 1.3rem; cursor: pointer; line-height: 42px; text-align: center; padding: 0; transition: background .2s; }
#irr-lb .lb-prev,
#irr-lb .lb-next   { position: fixed; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: none; background: rgba(255,255,255,.12); color: #fff; font-size: 1.6rem; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; transition: background .2s; }
#irr-lb .lb-prev { left: 12px; }
#irr-lb .lb-next { right: 12px; }
#irr-lb .lb-close:hover,
#irr-lb .lb-prev:hover,
#irr-lb .lb-next:hover { background: rgba(255,255,255,.28); }
#irr-lb .lb-prev.lb-hidden,
#irr-lb .lb-next.lb-hidden { display: none; }

/* FAQ Accordion */
.proj-faq-list { margin-top: 12px; }
.faq-accordion-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; transition: all var(--transition); }
.faq-accordion-item:hover { box-shadow: var(--shadow); }
.faq-accordion-trigger {
  width: 100%; background: #fff; border: none; padding: 16px;
  cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  font-size: .95rem; font-weight: 700; color: var(--text); text-align: left;
  transition: all var(--transition);
  /* Remove native <summary> disclosure marker across all browsers */
  list-style: none;
}
.faq-accordion-trigger::-webkit-details-marker { display: none; }
.faq-accordion-trigger::marker               { display: none; }
.faq-accordion-trigger:hover { background: var(--off-white); color: var(--blue); }
.faq-accordion-icon  { transition: transform var(--transition); flex-shrink: 0; margin-left: 12px; }
.faq-accordion-item[open] .faq-accordion-trigger { color: var(--blue); background: var(--off-white); border-bottom: 1px solid var(--border); }
.faq-accordion-item[open] .faq-accordion-icon   { transform: rotate(180deg); }
.faq-accordion-title { flex: 1; }
.faq-accordion-body  { padding: 16px; font-size: .9rem; line-height: 1.65; color: var(--text-2); }
.faq-accordion-body p { margin-bottom: 8px; }
.faq-accordion-body p:last-child { margin-bottom: 0; }
.faq-accordion-body strong { color: var(--text); font-weight: 700; }

/* Sidebar boxes — .sidebar-cta-box and .sidebar-share are in sidebar.css */

/* ── Related projects ───────────────────────────────────────── */
.related-projects    { margin-top: 40px; padding-top: 32px; border-top: 2px solid var(--border); }
.related-projects h2 { font-size: 1.1rem; font-weight: 800; color: var(--blue); margin-bottom: 20px; }

/* Video embed */
.video-responsive { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius); }
.video-responsive iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.video-wrap > iframe { width: 100%; aspect-ratio: 16/9; border: none; border-radius: var(--radius); display: block; }

/* Responsive */
@media (max-width: 1024px) {
  .proj-layout  { grid-template-columns: 1fr; }
  .proj-sidebar { position: static; }
}
@media (max-width: 900px) {
  .proj-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .proj-hero-title { font-size: 1.7rem; }
}
@media (max-width: 640px) {
  .proj-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .proj-gallery-item { border-radius: 6px; }
  .proj-specs-list   { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  #irr-lb .lb-prev { left: 4px; width: 38px; height: 38px; font-size: 1.2rem; }
  #irr-lb .lb-next { right: 4px; width: 38px; height: 38px; font-size: 1.2rem; }
}
