/**
 * Project microsites — each project owns its visual brand
 */

.proj-page {
  --proj-primary: #1a4d3e;
  --proj-primary-dark: #0f2e26;
  --proj-accent: #3a9b7c;
  --proj-accent-warm: #c8943a;
  --proj-light: #eef6f2;
  --proj-text: #2c3e35;
  --proj-muted: #5a7268;
  --proj-gradient: linear-gradient(135deg, var(--proj-primary-dark) 0%, var(--proj-primary) 100%);
}

.proj-page.proj-suncity {
  --proj-primary: #6b2c1a;
  --proj-primary-dark: #3d1810;
  --proj-accent: #d4a017;
  --proj-accent-warm: #e8c547;
  --proj-light: #faf6ef;
  --proj-text: #3d2a1f;
  --proj-muted: #7a6558;
}

.proj-page.proj-suncityfarms {
  --proj-primary: #4a5d23;
  --proj-primary-dark: #2d3815;
  --proj-accent: #8fbc5a;
  --proj-accent-warm: #c8943a;
  --proj-light: #f4f7ed;
  --proj-text: #2e3620;
  --proj-muted: #6b7555;
}

/* Hide generic site chrome feel inside project */
body.mib-site .proj-page .highlight,
body.mib-site .proj-page h2 span {
  color: var(--proj-accent-warm) !important;
}

body.mib-site .proj-page .button:not(.outline) {
  background: linear-gradient(135deg, var(--proj-accent-warm) 0%, #a8762a 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

body.mib-site .proj-page .button:not(.outline):hover {
  background: var(--proj-primary-dark);
}

body.mib-site .proj-page .button.outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  box-shadow: none;
}

body.mib-site .proj-page .button.outline:hover {
  background: #fff;
  color: var(--proj-primary-dark);
}

body.mib-site .proj-page .button.outline-dark {
  border-color: var(--proj-primary);
  color: var(--proj-primary);
}

body.mib-site .proj-page .button.outline-dark:hover {
  background: var(--proj-primary);
  color: #fff;
}

/* ---- Hero ---- */
.proj-hero {
  position: relative;
  min-height: 88vh;
  min-height: 88dvh;
  color: white !important;
  margin-top: calc(-1 * var(--mib-nav-height));
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.proj-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.55) 45%,
      rgba(0, 0, 0, 0.25) 100%);
}

.proj-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: calc(var(--mib-nav-height) + 48px) 0 64px;
}

.proj-hero__badge {
  display: inline-block;
  padding: 7px 14px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proj-hero__brand {
  font-family: var(--mib-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.proj-hero__descriptor {
  display: block;
  font-family: var(--mib-font);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 500;
  color: var(--proj-accent-warm);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.proj-hero__tagline {
  max-width: 620px;
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 28px;
}

.proj-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.proj-hero__location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.proj-hero__location i {
  color: var(--proj-accent-warm);
}

/* Override global site typography inside hero */
body.mib-site .proj-hero h1,
body.mib-site .proj-hero p,
body.mib-site .proj-hero span {
  color: #fff !important;
}

body.mib-site .proj-hero .proj-hero__tagline,
body.mib-site .proj-hero .proj-hero__location {
  color: rgba(255, 255, 255, 0.88) !important;
}

body.mib-site .proj-hero .proj-hero__badge {
  color: rgba(255, 255, 255, 0.92) !important;
}

body.mib-site .proj-hero .button.outline {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.85);
}

/* ---- Sticky sub-nav ---- */
.proj-subnav-wrap {
  position: sticky;
  top: var(--mib-nav-height);
  z-index: 900;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.proj-subnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.proj-subnav::-webkit-scrollbar {
  display: none;
}

.proj-subnav__links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  white-space: nowrap;
}

.proj-subnav__links a {
  display: block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--proj-muted);
  transition: all 0.2s ease;
}

.proj-subnav__links a:hover,
.proj-subnav__links a.is-active {
  background: var(--proj-light);
  color: var(--proj-primary);
}

.proj-subnav__cta .button.sm {
  line-height: 38px;
  padding: 0 18px;
  font-size: 12px;
  white-space: nowrap;
}

/* ---- Stats ribbon ---- */
.proj-stats {
  background: var(--proj-gradient);
  padding: 0;
}

.proj-stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

/* Bootstrap 3 clearfix pseudo-elements become extra grid cells */
.proj-stats .container::before,
.proj-stats .container::after {
  content: none;
  display: none;
}

.proj-stat {
  text-align: center;
  padding: 28px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.proj-stat:last-child {
  border-right: none;
}

.proj-stat strong {
  display: block;
  font-family: var(--mib-display);
  font-size: 1.65rem;
  color: var(--proj-accent-warm);
  margin-bottom: 4px;
}

.proj-stat span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.72);
}

/* ---- Section system ---- */
.proj-section {
  padding: 72px 0;
}

.proj-section--light {
  background: var(--proj-light);
}

.proj-section--white {
  background: #fff;
}

.proj-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--proj-accent);
  margin-bottom: 10px;
}

.proj-section__title {
  font-family: var(--mib-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  color: var(--proj-primary-dark);
  margin-bottom: 14px;
  line-height: 1.2;
}

.proj-section__lead {
  color: var(--proj-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 640px;
  margin-bottom: 0;
}

.proj-section__head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.proj-section__head .proj-section__lead {
  margin: 0 auto;
}

/* Overview split */
.proj-split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.proj-split__media {
  flex: 1 1 340px;
}

.proj-split__media img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
  border: 4px solid #fff;
}

.proj-split__content {
  flex: 1 1 340px;
}

.proj-points {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.proj-points li {
  position: relative;
  padding: 12px 0 12px 32px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--proj-text);
  font-weight: 500;
  line-height: 1.55;
}

.proj-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--proj-accent);
  opacity: 0.2;
}

.proj-points li::after {
  content: "✓";
  position: absolute;
  left: 4px;
  top: 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--proj-primary);
}

/* Feature cards */
.proj-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.proj-feature-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease;
}

.proj-section--light .proj-feature-card {
  border-color: rgba(0, 0, 0, 0.04);
}

.proj-feature-card:hover {
  transform: translateY(-4px);
}

.proj-feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--proj-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.proj-feature-card__icon i {
  font-size: 24px;
  color: var(--proj-primary);
}

.proj-feature-card h5 {
  font-family: var(--mib-display);
  font-size: 1.1rem;
  color: var(--proj-primary-dark);
  margin-bottom: 8px;
}

.proj-feature-card p {
  color: var(--proj-muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

/* Story blocks */
.proj-story {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}

.proj-story--reverse {
  flex-direction: row-reverse;
}

.proj-story__media {
  flex: 1 1 300px;
}

.proj-story__media img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.proj-story__body {
  flex: 1 1 300px;
}

.proj-story__body h3 {
  font-family: var(--mib-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  color: var(--proj-primary-dark);
  margin-bottom: 8px;
}

.proj-story__body .proj-subtitle {
  font-size: 1rem;
  color: var(--proj-accent-warm);
  font-weight: 600;
  margin-bottom: 16px;
}

/* Full-width feature band */
.proj-feature-band {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.proj-feature-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.35) 100%);
}

.proj-feature-band__content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: 64px 0;
}

.proj-feature-band__content h2 {
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

body.mib-site .proj-feature-band .proj-feature-band__content h2 {
  color: rgba(255, 255, 255, 0.95) !important;
}

body.mib-site .proj-feature-band .proj-eyebrow {
  color: rgba(255, 255, 255, 0.72) !important;
}

.proj-feature-band__content p,
.proj-feature-band__content li {
  color: rgba(255, 255, 255, 0.85);
}

body.mib-site .proj-feature-band .proj-points li {
  color: rgba(255, 255, 255, 0.9) !important;
}

.proj-feature-band .proj-points li {
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}

.proj-feature-band .proj-points li::before {
  background: var(--proj-accent-warm);
}

.proj-feature-band .proj-points li::after {
  color: var(--proj-accent-warm);
}

/* Two-column topic grid */
.proj-topics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.proj-topic-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.proj-topic-card__img {
  height: 180px;
  overflow: hidden;
}

.proj-topic-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proj-topic-card__body {
  padding: 24px;
}

.proj-topic-card__body h4 {
  font-family: var(--mib-display);
  color: var(--proj-primary-dark);
  margin-bottom: 12px;
}

/* Map block */
.proj-map-block {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
  border: 3px solid #fff;
}

/* Downloads section */
.proj-downloads {
  background: var(--proj-primary-dark);
  color: #fff;
  padding: 72px 0;
}

.proj-downloads .proj-section__title {
  color: #fff;
}

.proj-downloads .proj-section__lead {
  color: rgba(255, 255, 255, 0.85);
}

body.mib-site .proj-downloads h2,
body.mib-site .proj-downloads h2.proj-section__title,
body.mib-site .proj-downloads .proj-brochure-banner h3 {
  color: #fff !important;
}

body.mib-site .proj-downloads h2.proj-section__title span {
  color: var(--proj-accent-warm) !important;
}

body.mib-site .proj-downloads .proj-section__lead,
body.mib-site .proj-downloads .proj-brochure-banner p {
  color: rgba(255, 255, 255, 0.88) !important;
}

body.mib-site .proj-downloads .proj-eyebrow {
  color: rgba(255, 255, 255, 0.75) !important;
}

.proj-brochure-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  margin-bottom: 36px;
}

.proj-brochure-banner h3 {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.proj-brochure-banner p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  max-width: 640px;
}

.proj-layout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.proj-layout-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
}

.proj-layout-item__preview {
  position: relative;
  aspect-ratio: 4/3;
  background: #f0f0f0;
  cursor: pointer;
}

.proj-layout-item__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.proj-layout-item:hover .proj-layout-item__preview img {
  transform: scale(1.04);
}

.proj-layout-item__zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.25s ease;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.proj-layout-item__preview:hover .proj-layout-item__zoom {
  opacity: 1;
}

.proj-layout-item__info {
  padding: 20px;
}

.proj-layout-item__info h5 {
  font-family: var(--mib-display);
  color: var(--proj-primary-dark);
  margin-bottom: 6px;
}

.proj-layout-item__info p {
  color: var(--proj-muted);
  font-size: 13px;
  margin-bottom: 14px;
}

.proj-layout-item__info .button {
  width: 100%;
  line-height: 42px;
  font-size: 12px;
}

/* CTA */
.proj-cta {
  text-align: center;
  padding: 72px 0;
  background: var(--proj-light);
}

.proj-cta h2 {
  font-family: var(--mib-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--proj-primary-dark);
  margin-bottom: 12px;
}

.proj-cta p {
  color: var(--proj-muted);
  max-width: 520px;
  margin: 0 auto 24px;
}

.proj-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Developer strip */
.proj-byline {
  text-align: center;
  padding: 20px;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 13px;
  color: var(--proj-muted);
}

.proj-byline a {
  color: var(--proj-primary);
  font-weight: 600;
}

/* Modal overrides for project brand */
body.mib-site .proj-page .mib-modal__dialog h3 span {
  color: var(--proj-accent-warm);
}

body.mib-site .proj-page .mib-form-group input:focus {
  border-color: var(--proj-accent-warm);
  box-shadow: 0 0 0 3px rgba(200, 148, 58, 0.15);
}

body.mib-site .proj-page .mib-modal__submit {
  background: linear-gradient(135deg, var(--proj-accent-warm) 0%, #a8762a 100%);
}

/* Responsive */
@media (max-width: 991px) {
  .proj-stats .container {
    grid-template-columns: repeat(2, 1fr);
  }

  .proj-stat:nth-child(2) {
    border-right: none;
  }

  .proj-stat {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .proj-subnav__cta {
    display: none;
  }

  .proj-hero {
    min-height: 75vh;
  }

  .proj-feature-band {
    background-attachment: scroll;
  }
}

@media (max-width: 767px) {
  .proj-section {
    padding: 56px 0;
  }

  .proj-story--reverse {
    flex-direction: column;
  }

  .proj-hero__actions .button {
    width: 100%;
    text-align: center;
  }

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