/**
 * BLU-D Construction — Project full node component
 * Styles for the project detail page (node--project--full.html.twig).
 */

/* ============================================================
   FULL-BLEED HERO — break out of base theme container
   .page-node-project is set by blud_preprocess_html()
   ============================================================ */

.page-node-project .main-content > .container {
  padding-left: 0;
  padding-right: 0;
}

.page-node-project .main-content > .container > .row {
  margin: 0;
}

.page-node-project .main-content > .container > .row > div {
  padding: 0;
}

.project-hero {
  width: 100%;
  margin: 0;
}

/* ============================================================
   HERO
   ============================================================ */

.project-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 3rem;
}

.project-hero .wmd-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 43, 94, 0.3) 0%,
    rgba(10, 18, 42, 0.75) 100%
  );
  z-index: 1;
}

.project-hero__content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
}

/* --- Breadcrumb --- */

.project-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  opacity: 0.85;
}

.project-hero__breadcrumb a {
  color: var(--color-white);
  text-decoration: none;
}

.project-hero__breadcrumb a:hover {
  opacity: 0.75;
}

.project-hero__breadcrumb-sep {
  opacity: 0.5;
}

/* --- Sector badge on hero --- */

.project-hero__sector {
  margin-bottom: 0.75rem;
}

.blud-sector-tag--hero {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  opacity: 0.95;
}

/* --- Title --- */

.project-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

/* --- GC name --- */

.project-hero__gc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}

/* ============================================================
   BODY — restore container padding below hero
   ============================================================ */

.project-body {
  padding: 1.5rem 15px 4rem;
  max-width: 1320px;
  margin: 0 auto;
}

.project-body__section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}

/* --- Scope --- */

.project-body__scope {
  margin-bottom: 2rem;
}

.project-body__scope p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-body-text);
}

/* --- Execution highlight --- */

.project-body__highlight {
  background: var(--color-off-white);
  border-left: 4px solid var(--color-primary);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.project-body__quote {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--color-dark-gray);
  line-height: 1.65;
  margin: 0.6rem 0 0;
}

/* --- Gallery --- */

.project-body__gallery {
  margin-bottom: 2rem;
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.project-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.project-sidebar__card {
  background: var(--color-white);
  border: 1px solid var(--color-card-border);
  border-radius: var(--border-radius-lg);
  padding: 1.25rem;
}

.project-sidebar__heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-mid-gray);
  margin: 0 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--color-light-gray);
}

.project-sidebar__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-light-gray);
}

.project-sidebar__row:last-child {
  border-bottom: none;
}

.project-sidebar__label {
  font-size: 0.8rem;
  color: var(--color-mid-gray);
  font-weight: 600;
}

.project-sidebar__value {
  font-size: 0.85rem;
  color: var(--color-body-text);
  text-align: right;
}

/* --- Map --- */

.project-sidebar__map .geolocation-map-wrapper,
.project-sidebar__map .geolocation-map-container {
  width: 100% !important;
  height: 220px !important;
  border-radius: var(--border-radius);
  overflow: hidden;
}

/* --- CTA card --- */

.project-sidebar__cta {
  background: var(--color-primary);
  border-color: var(--color-primary);
  text-align: center;
}

.project-sidebar__cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  margin: 0 0 1rem;
  line-height: 1.5;
}

.project-sidebar__cta .btn-blud-primary {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
  width: 100%;
  text-align: center;
  display: block;
}

.project-sidebar__cta .btn-blud-primary:hover {
  background: var(--color-off-white);
  border-color: var(--color-off-white);
  color: var(--color-primary);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 991px) {
  .project-sidebar {
    position: static;
    margin-top: 2.5rem;
  }

  .project-hero {
    min-height: 320px;
  }
}


/* ============================================================
   BIG SQUARE & PLUMB BADGE — used on full project node only.
   Filled orange circle with white SVG icon, sized prominent.
   Stacked centered on mobile.
   ============================================================ */

.project-body__highlight .blud-sq-plumb-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.project-body__highlight .blud-sq-plumb-badge .blud-sq-plumb-inline {
  width: 64px;
  height: 64px;
  background: var(--color-accent);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
}

.project-body__highlight .blud-sq-plumb-badge .blud-sq-plumb-inline svg {
  height: 60%;
  width: auto;
}

@media (max-width: 767px) {
  .project-body__highlight .blud-sq-plumb-badge {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}
