/* ============================================================
   PROJECTS PAGE – projects.css
   Styles for all 6 project sections
   ============================================================ */

/* ----- Colour tokens (project-specific) ----- */
:root {
  --green-brand: #4C6B2E;
  --green-accent: #6BBF2A;
  --dark-red: #7B1F1F;
  --light-bg: #F0F2F5;
  --card-bg: #F8F9FA;
  --border-light: #E5E7EB;
  --map-bg: #D9D9D9;
}

/* Utility */
.green-text {
  color: #7CFA00;
}

.blue-text {
  color: var(--primary-blue);
}

.proj-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #888;
  text-transform: uppercase;
  display: block;
  margin-bottom: 14px;
}

.proj-title-underline {
  width: 80px;
  height: 4px;
  border-radius: 2px;
  margin: 20px 0 36px;
}

.proj-title-underline.blue {
  background: var(--primary-blue);
}

.proj-title-underline.green {
  background: var(--green-brand);
}

.proj-title-underline.short {
  margin-bottom: 20px;
}


/* ==============================================================
   SECTION 1 – PROJECT HERO
   ============================================================== */
.proj-hero {
  position: relative;
  width: 100%;
  height: 90vh;
  min-height: 580px;
  background: url('assets/projectB.webp') no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  padding-bottom: 110px;
  /* room for stats bar */
}

.proj-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(10, 30, 80, 0.70) 0%,
      rgba(10, 30, 80, 0.30) 100%);
  z-index: 1;
}

.proj-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 100px;
}

.proj-hero-location {
  display: block;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.proj-hero-title {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 36px;
  max-width: 800px;
  text-transform: none;
}

.btn-white-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: #fff;
  color: #1A1A1A;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.btn-white-outline:hover {
  background: #f0f0f0;
}

.btn-white-outline:active,
.btn-white-outline.pressed {
  transform: scale(0.98);
  background: #e0e0e0;
}

.btn-icon {
  font-size: 18px;
}

/* Stats bar */
.proj-stats-bar {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  max-width: var(--container-width);
  width: calc(100% - 200px);
  background: #fff;
  display: flex;
  align-items: stretch;
  z-index: 5;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.10);
}

.proj-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 30px;
  gap: 10px;
}

.proj-stat-divider {
  width: 1px;
  background: var(--border-light);
  align-self: stretch;
  margin: 20px 0;
}

.proj-stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #888;
  text-transform: uppercase;
}

.proj-stat-value {
  font-size: 17px;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.3;
}

.proj-stat-value.blue-text {
  color: var(--primary-blue);
  font-size: 15px;
}

/* Stats bar bottom blue border */
.proj-stats-bar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-blue);
}


/* ==============================================================
   SECTION 2 – PROJECT OVERVIEW
   ============================================================== */
.proj-overview {
  padding: 100px 0 80px;
  background: #fff;
}

.proj-overview-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.proj-overview-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.15;
  margin-bottom: 0;
  text-transform: none;
}

.proj-overview-desc {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 28px;
}

.proj-overview-divider {
  width: 100%;
  height: 1px;
  background: var(--border-light);
  margin: 30px 0;
}

.proj-overview-stats {
  display: flex;
  gap: 60px;
}

.proj-ov-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.proj-ov-stat-value {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1;
}

.proj-ov-stat-value.green {
  color: var(--green-brand);
}

.proj-ov-stat-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #888;
  text-transform: uppercase;
}

/* Overview image column */
.proj-overview-image-col {
  position: relative;
}

.proj-overview-img-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
  margin-bottom: 90px;
}

.proj-overview-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.proj-robot-icon {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 72px;
  height: 72px;
  background: var(--green-brand);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(53, 84, 209, 0.3);
  z-index: 2;
}

.proj-robot-icon img {
  width: 50px;
  height: 50px;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

.proj-icon-text {
  position: absolute;
  top: 100%;
  left: 65px;
  margin-top: 15px;
  max-width: calc(100% - 90px);
  min-height: 72px;
  display: flex;
  align-items: center;
  font-size: 16px;
  line-height: 1.4;
  color: #444;
  font-weight: 500;
  /* background: white; */
  padding: 5px 15px;
  border-radius: 4px;

}



/* ==============================================================
   SECTION 3 – STRATEGIC ADVANTAGES
   ============================================================== */
.proj-advantages {
  padding: 80px 0 100px;
  background: var(--light-bg);
}

.proj-adv-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
  margin-bottom: 60px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 20px;
}

.proj-adv-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.2;
  margin-bottom: 0;
  text-transform: none;
}

.proj-adv-right {
  padding-top: 4px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.proj-adv-right p {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  margin: 0;
  padding-left: 40px;
  border-left: 2px solid #ccc;
}

/* 3-column grid */
.proj-adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.proj-adv-card {
  background: #fff;
  border-radius: 8px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background-color 0.15s ease-in-out, box-shadow 0.3s;
}

.proj-adv-card:hover {
  background-color: #EAF2FF;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
}

.proj-adv-card.highlighted {
  background: #ECEEF4;
}

.proj-adv-card.highlighted:hover {
  background-color: #DDE4F0;
}

.proj-adv-card.dark {
  background: var(--dark-red);
  color: #fff;
}

.proj-adv-card.dark:hover {
  background-color: #661818;
}

.proj-adv-card.dark h3 {
  color: #fff;
}

.proj-adv-card.dark p {
  color: rgba(255, 255, 255, 0.85);
}

.proj-adv-icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.proj-adv-icon.green-bg {
  background: var(--green-brand);
}

.proj-adv-icon.orange-bg {
  background: #C0522A;
}

.proj-adv-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.proj-adv-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0;
}

.proj-adv-card p {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  flex: 1;
}

.proj-adv-link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #1A1A1A;
  text-decoration: none;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: color 0.2s;
}

.proj-adv-link:hover {
  color: var(--primary-blue);
}

.proj-adv-link.light {
  color: rgba(255, 255, 255, 0.9);
}

.proj-adv-link.light:hover {
  color: #fff;
}


/* ==============================================================
   SECTION 4 – EASE OF ACCESS / MAP  (light/white accordion split)
   ============================================================== */
.proj-access {
  background: var(--light-bg);
  padding: 0;
}

/* Light intro area above the panel */
.proj-access-intro {
  background: var(--light-bg);
  padding: 80px 0 48px;
}

.proj-access-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  color: #1A1A1A;
  text-transform: none;
  margin-bottom: 0;
  line-height: 1.15;
}

.proj-access-desc {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  margin-top: 4px;
  max-width: 560px;
}

/* Full-width white split container */
.proj-access-split {
  display: grid;
  grid-template-columns: 1fr 400px;
  min-height: 540px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.08);
  margin: 0 var(--container-padding, 60px) 80px;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
}

/* Map takes up its column */
.proj-access-map-wrap {
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--border-light);
}

#proj-leaflet-map {
  width: 100%;
  height: 100%;
  min-height: 520px;
}

/* White right-hand panel */
.proj-access-panel {
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 540px;
}

/* ---- Accordion ---- */
.proj-accordion {
  border-bottom: 1px solid var(--border-light);
}

.proj-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #1A1A1A;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: left;
  transition: background 0.2s, color 0.2s;
}

.proj-accordion-header:hover {
  background: #F7F8FA;
  color: var(--primary-blue);
}

.proj-accordion-header.active {
  color: var(--primary-blue);
}

.proj-accordion-icon {
  font-size: 20px;
  line-height: 1;
  color: var(--green-brand);
  font-weight: 400;
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 0.3s;
}

/* Accordion body hidden/visible with max-height animation */
.proj-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease;
  opacity: 0;
}

.proj-accordion-body.open {
  max-height: 400px;
  opacity: 1;
}

/* Location items list */
.proj-acc-list {
  list-style: none;
  padding: 2px 0 16px 28px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.proj-acc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 400;
  color: #555;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  border-left: 3px solid transparent;
  position: relative;
  border-radius: 4px;
}

.proj-acc-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ccc;
  flex-shrink: 0;
  transition: background 0.2s;
}

.proj-acc-item:hover {
  color: #1A1A1A;
  background: #F0F2F5;
}

.proj-acc-item:hover::before {
  background: var(--primary-blue);
}

.proj-acc-item.active {
  color: var(--primary-blue);
  font-weight: 600;
  background: #EEF1FB;
  border-left-color: var(--primary-blue);
}

.proj-acc-item.active::before {
  background: var(--primary-blue);
}

.proj-acc-dist {
  color: inherit;
  font-weight: inherit;
}

/* Dark map tooltip */
.proj-map-tooltip-dark {
  background: rgba(0, 0, 0, 0.85) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 4px !important;
  font-size: 13px !important;
  padding: 5px 10px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.proj-map-tooltip-dark::before {
  display: none !important;
}


/* ==============================================================
   SECTION 5 – CORE BUILDING FEATURES
   ============================================================== */
.proj-features {
  padding: 80px 0 100px;
  background: #fff;
}

.proj-features-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 0;
  text-transform: none;
}

.proj-features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.proj-feat-card {
  background: #F8F9FA;
  border-radius: 6px;
  padding: 36px 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  transition: box-shadow 0.25s;
}

.proj-feat-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.proj-feat-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.proj-feat-icon img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: invert(29%) sepia(68%) saturate(516%) hue-rotate(186deg) brightness(90%) contrast(95%);
}

.proj-feat-label {
  font-size: 14px;
  font-weight: 600;
  color: #1A1A1A;
  line-height: 1.4;
}


/* ==============================================================
   SECTION 6 – PARK AMENITIES SLIDER
   ============================================================== */
.proj-slider {
  position: relative;
  overflow: hidden;
  background: #111;
}

.proj-slider-track {
  position: relative;
  width: 100%;
}

/* Each slide */
.proj-slide {
  display: none;
  grid-template-columns: 1fr 1fr;
  min-height: 680px;
}

.proj-slide.active {
  display: grid;
}

.proj-slide-image {
  overflow: hidden;
  position: relative;
}

.proj-slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.proj-slide.active .proj-slide-image img {
  transform: scale(1.02);
}

.proj-slide-content {
  background: linear-gradient(135deg, #3d5e1e 0%, #2d4a6b 60%, var(--primary-blue) 100%);
  padding: 60px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  position: relative;
}

.proj-slide-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-transform: none;
  letter-spacing: 0;
  display: block;
}

.proj-slide-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin: 0;
  text-transform: none;
}

.proj-slide-subtitle {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.80);
  display: block;
}

.proj-slide-content p {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
  max-width: 500px;
}

.proj-slide-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 8px;
  transition: gap 0.25s;
}

.proj-slide-link:hover {
  gap: 14px;
}

/* Slider navigation – absolute inside right (content) panel */
.proj-slider-nav {
  position: absolute;
  bottom: 32px;
  right: 56px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 20;
}

.proj-slider-counter {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  min-width: 40px;
}

.proj-slider-counter strong {
  color: #fff;
  font-weight: 700;
}

.proj-slider-btn {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  font-size: 18px;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, border-color 0.25s;
}

.proj-slider-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

.proj-slider-btn:disabled {
  opacity: 0.3;
  cursor: default;
}


/* ==============================================================
   SITEMAP LIGHTBOX
   ============================================================== */
.sitemap-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.721);
  /* Dimmed black background */
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sitemap-lightbox.show {
  opacity: 1;
  visibility: visible;
}

.sitemap-lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sitemap-lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* ==============================================================
   RESPONSIVE – tablets & below
   ============================================================== */

/* 1100px */
@media (max-width: 1100px) {
  .proj-stats-bar {
    width: calc(100% - 60px);
  }

  .proj-hero-content {
    padding: 0 40px;
  }

  .proj-adv-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proj-features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .proj-access-split {
    grid-template-columns: 1fr 300px;
    margin-left: 40px;
    margin-right: 40px;
  }
}

/* 900px */
@media (max-width: 900px) {
  .proj-hero {
    height: 70vh;
    min-height: 500px;
    padding-bottom: 0;
    align-items: flex-end;
    padding-bottom: 20px;
  }

  .proj-stats-bar {
    position: static;
    transform: none;
    width: 100%;
    flex-wrap: wrap;
    border-top: 3px solid var(--primary-blue);
    box-shadow: none;
  }

  .proj-stat {
    flex: 1 1 40%;
    border-bottom: 1px solid var(--border-light);
    padding: 20px;
  }

  .proj-stat-divider {
    display: none;
  }

  /* Ease of Access – stack on tablet */
  .proj-access-split {
    grid-template-columns: 1fr;
    margin-left: 24px;
    margin-right: 24px;
    border-radius: 8px;
  }

  .proj-access-map-wrap {
    min-height: 320px;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }

  #proj-leaflet-map {
    min-height: 320px;
    height: 320px;
  }

  .proj-access-panel {
    max-height: none;
  }

  .proj-overview-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .proj-overview-img {
    height: 300px;
  }

  .proj-adv-header {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .proj-slide {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .proj-slide-image {
    height: 280px;
  }

  .proj-slide-content {
    padding: 40px 32px;
  }

  .proj-slider-nav {
    position: static;
    justify-content: flex-end;
    padding: 16px 24px;
    background: linear-gradient(90deg, #2d4a6b, var(--primary-blue));
  }

  .proj-slider-counter {
    color: rgba(255, 255, 255, 0.85);
  }

  .proj-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 600px */
@media (max-width: 600px) {
  .proj-hero-content {
    padding: 0 20px;
  }

  .proj-hero-title {
    font-size: 28px;
  }

  .content-wrapper {
    padding: 0 20px;
  }

  .proj-stats-bar {
    width: 100%;
  }

  .proj-stat {
    flex: 1 1 100%;
  }

  .proj-adv-grid {
    grid-template-columns: 1fr;
  }

  .proj-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proj-slide-content {
    padding: 28px 20px 60px;
  }

  .proj-slider-nav {
    gap: 10px;
    padding: 14px 20px;
  }

  .proj-accordion-header {
    padding: 16px 18px;
    font-size: 15px;
  }

  .proj-acc-list {
    padding-left: 16px;
  }

  .proj-access-split {
    margin-left: 16px;
    margin-right: 16px;
    border-radius: 6px;
  }

  .proj-overview-stats {
    gap: 30px;
    flex-wrap: wrap;
  }

  .proj-overview-desc {
    font-size: 14px;
  }
}

@media (max-width: 400px) {
  .proj-features-grid {
    grid-template-columns: 1fr;
  }

  .proj-hero-title {
    font-size: 24px;
  }

  .proj-hero-content {
    padding: 0 16px;
  }

  .proj-stat {
    padding: 16px;
  }

  .proj-slide-content {
    padding: 24px 16px 50px;
  }

  .proj-overview {
    padding: 60px 0 50px;
  }

  .proj-advantages {
    padding: 50px 0 60px;
  }
}