/* ============================================================
   Kings Contractors — Project Detail Page (Dark theme)
   Extends css/styles.css. Load AFTER styles.css.
   ============================================================ */

/* ============ BREADCRUMB ============ */
.breadcrumb {
  padding: calc(var(--nav-height) + 32px) 0 0;
  background: var(--bg);
}
.breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.breadcrumb-trail a { transition: color 0.2s; }
.breadcrumb-trail a:hover { color: var(--gold-bright); }
.breadcrumb-trail .sep {
  color: var(--gold);
  font-family: 'Fraunces', serif;
  font-style: italic;
}
.breadcrumb-trail .current { color: var(--cream); }

/* ============ PROJECT HERO ============ */
.project-hero {
  background: var(--bg);
  padding: 40px 0 80px;
  position: relative;
  overflow: hidden;
}
.project-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(201, 169, 97, 0.18), transparent 70%);
  pointer-events: none;
}
.project-hero .container { position: relative; z-index: 2; }
.project-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
}
.project-hero-title {
  font-size: clamp(48px, 9vw, 120px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--cream);
  margin-top: 18px;
}
.project-hero-title em {
  font-style: italic;
  color: var(--gold-bright);
  font-weight: 400;
}
.project-hero-sub {
  margin-top: 24px;
  font-size: clamp(17px, 2.5vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 700px;
}
.project-meta {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.project-meta .item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.project-meta .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold-bright);
}
.project-meta .value {
  font-family: 'Fraunces', serif;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--cream);
  font-weight: 500;
  line-height: 1.3;
}

/* ============ FEATURED HERO IMAGE ============ */
.project-feature {
  margin-top: 60px;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line-gold);
}
.project-feature img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ============ OVERVIEW ============ */
.project-overview {
  padding: 100px 0;
  background: var(--bg-soft);
}
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.overview-grid h2 {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--cream);
  margin-top: 22px;
  line-height: 1.05;
}
.overview-grid h2 em { font-style: italic; color: var(--gold-bright); font-weight: 400; }
.overview-grid p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.overview-grid p:last-child { margin-bottom: 0; }

/* ============ SPECS GRID ============ */
.project-specs {
  padding: 100px 0;
  background: var(--bg-deep);
  color: var(--cream);
  border-top: 1px solid var(--line-gold);
  border-bottom: 1px solid var(--line-gold);
  position: relative;
}
.project-specs::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 50% 50%, rgba(201, 169, 97, 0.06), transparent 70%);
}
.project-specs .container { position: relative; z-index: 2; }
.specs-head { text-align: center; margin-bottom: 50px; }
.specs-head h2 {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--cream);
  margin-top: 18px;
}
.specs-head h2 em { font-style: italic; color: var(--gold-bright); font-weight: 400; }
.specs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.spec-card {
  background: rgba(245, 240, 230, 0.03);
  border: 1px solid var(--line-gold);
  border-radius: 4px;
  padding: 28px 22px;
  text-align: center;
  transition: background 0.3s, transform 0.3s;
}
.spec-card:hover {
  background: rgba(201, 169, 97, 0.08);
  transform: translateY(-2px);
}
.spec-card .num {
  font-family: 'Fraunces', serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 400;
  color: var(--gold-bright);
  line-height: 1;
  letter-spacing: -0.02em;
}
.spec-card .num sup { font-size: 0.4em; vertical-align: super; }
.spec-card .label {
  margin-top: 14px;
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  line-height: 1.4;
}

/* ============ SCOPE OF WORK ============ */
.project-scope {
  padding: 100px 0;
  background: var(--bg-soft);
}
.scope-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
  align-items: end;
}
.scope-head h2 {
  font-size: clamp(28px, 4vw, 52px);
  color: var(--cream);
  margin-top: 22px;
}
.scope-head h2 em { font-style: italic; color: var(--gold-bright); font-weight: 400; }
.scope-head p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
}
.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-card);
}
.scope-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 32px;
}
.scope-card:nth-child(2n) { border-right: none; }
.scope-card:nth-last-child(-n+2) { border-bottom: none; }
.scope-num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--gold-bright);
}
.scope-card h3 {
  margin-top: 12px;
  font-size: 22px;
  font-weight: 500;
  color: var(--cream);
}
.scope-card ul {
  margin-top: 16px;
  list-style: none;
  padding: 0;
}
.scope-card li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.scope-card li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 12px; height: 1px;
  background: var(--gold);
}

/* ============ PROJECT GALLERY ============ */
.project-gallery-section {
  padding: 100px 0;
  background: var(--bg);
}
.project-gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 50px;
  gap: 40px;
  flex-wrap: wrap;
}
.project-gallery-head h2 {
  font-size: clamp(28px, 4vw, 52px);
  color: var(--cream);
  margin-top: 22px;
}
.project-gallery-head h2 em { font-style: italic; color: var(--gold-bright); font-weight: 400; }
.project-gallery-head p {
  color: var(--muted);
  font-size: 14px;
  max-width: 340px;
}

.proj-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 230px;
  gap: 14px;
}
.proj-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
}
.proj-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.6);
  border-color: var(--line-gold);
}
.proj-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.proj-item:hover img { transform: scale(1.06); }
.proj-item.span-2 { grid-column: span 2; }
.proj-item.span-3 { grid-column: span 3; }
.proj-item.span-4 { grid-column: span 4; }
.proj-item.row-2 { grid-row: span 2; }

/* ============ VIDEO SECTION ============ */
.project-videos {
  padding: 100px 0;
  background: var(--bg-soft);
}
.project-videos-head {
  margin-bottom: 50px;
  text-align: center;
}
.project-videos-head h2 {
  font-size: clamp(28px, 4vw, 52px);
  color: var(--cream);
  margin-top: 22px;
}
.project-videos-head h2 em { font-style: italic; color: var(--gold-bright); font-weight: 400; }
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.video-item {
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.video-item .video-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.video-item video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.video-item .meta {
  padding: 20px 22px;
  border-top: 1px solid var(--line);
}
.video-item .meta .tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-bright);
}
.video-item .meta h4 {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  margin-top: 6px;
  color: var(--cream);
  font-weight: 500;
}
.video-item .meta small {
  display: block;
  margin-top: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
}

/* ============ DESIGNER CREDIT ============ */
.designer-credit {
  padding: 80px 0;
  background: var(--bg);
  text-align: center;
  border-top: 1px solid var(--line);
}
.designer-credit .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold-bright);
  margin-bottom: 14px;
}
.designer-credit .name {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--cream);
  font-weight: 400;
}
.designer-credit .name em { font-style: italic; color: var(--gold-bright); }
.designer-credit p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ============ NEXT/BACK CTA ============ */
.project-cta {
  padding: 120px 0;
  background: var(--bg-deep);
  color: var(--cream);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line-gold);
}
.project-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 90% at 50% 50%, rgba(201, 169, 97, 0.22), transparent 70%),
    radial-gradient(circle at 20% 20%, rgba(201, 169, 97, 0.08), transparent 50%);
}
.project-cta .container { position: relative; z-index: 2; max-width: 800px; }
.project-cta h2 {
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.05;
  color: var(--cream);
}
.project-cta h2 em { font-style: italic; color: var(--gold-bright); font-weight: 400; }
.project-cta p {
  margin-top: 22px;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.project-cta .cta-buttons {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   RESPONSIVE — Project page
   ============================================================ */
@media (max-width: 1024px) {
  .specs-grid { grid-template-columns: repeat(3, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .breadcrumb { padding-top: calc(var(--nav-height) + 24px); }
  .project-hero { padding: 32px 0 60px; }
  .project-meta { grid-template-columns: 1fr 1fr; gap: 28px; }
  .project-feature { aspect-ratio: 4 / 3; }
  .project-overview { padding: 70px 0; }
  .overview-grid { grid-template-columns: 1fr; gap: 24px; }
  .project-specs { padding: 70px 0; }
  .specs-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .spec-card { padding: 22px 16px; }
  .project-scope { padding: 70px 0; }
  .scope-head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 40px; }
  .scope-card { padding: 28px 24px; }
  .project-gallery-section { padding: 70px 0; }
  .proj-gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; }
  .project-videos { padding: 70px 0; }
  .video-grid { grid-template-columns: 1fr; }
  .project-cta { padding: 80px 0; }
}
@media (max-width: 600px) {
  .breadcrumb-trail { font-size: 10px; gap: 6px; }
  .project-meta { grid-template-columns: 1fr; gap: 20px; }
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
  .scope-grid { grid-template-columns: 1fr; }
  .scope-card { border-right: none !important; }
  .scope-card:nth-last-child(2) { border-bottom: 1px solid var(--line) !important; }
  .proj-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 170px;
    gap: 10px;
  }
  .proj-item.span-3, .proj-item.span-4, .proj-item.span-2 { grid-column: span 2; }
  .proj-item.row-2 { grid-row: span 1; }
}
