/* =========================================================
   CITY PAGE — scoped styles
   Linked only from city.html. Does not alter other pages.
   Content rail matches production .container (header/footer).
   ========================================================= */

.page-city {
  background: #fff;
}

/* Reuse production .container on City inners.
   At 1920px: max-width 1280px + pad 80px → same left/right as header/footer.
   width:100% is required so flex parents cannot shrink the rail to content. */
.page-city-hero__inner,
.page-city-content__inner,
.page-city-projects__inner {
  width: 100%;
  box-sizing: border-box;
}

.page-city-projects__inner {
  overflow: hidden;
}

/* ===== Hero (500px) =====
   city-hero.png is a translucent PNG (alpha ~0.4–0.7).
   Opaque underlay prevents it from washing out against the white page.
   No CSS gradient overlay is applied on top of the image. */
.page-city-hero {
  position: relative;
  display: block;
  height: 500px;
  overflow: hidden;
  color: #fff;
  background-color: #0b1612;
}

.page-city-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-city-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 0;
}

.page-city-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 30px;
  padding-bottom: 56px;
  min-height: 500px;
}

.page-city-hero__crumbs {
  margin: 0 0 40px;
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.6);
}

.page-city-hero__crumbs a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.page-city-hero__crumbs a:hover {
  color: #fff;
}

.page-city-hero__crumbs-sep {
  margin: 0 4px;
}

.page-city-hero__crumbs-current {
  color: #fff;
}

.page-city-hero__title {
  margin: 0;
  max-width: 830px;
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 60px;
  line-height: 80px;
  letter-spacing: -1.5px;
}

.page-city-hero__title-text {
  color: #fff;
  letter-spacing: -0.9px;
}

.page-city-hero__accent {
  color: #faa819;
  letter-spacing: -0.9px;
}

.page-city-hero__actions {
  margin-top: 40px;
}

.page-city-hero__actions .btn--lg {
  min-height: 56px;
  padding: 16px 28px;
  border-radius: 10px;
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  box-shadow:
    0 1px 2px -1px rgba(0, 0, 0, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ===== Article ===== */
.page-city-content {
  padding: 32px 0 0;
  background: #fff;
}

.page-city-content__title {
  margin: 0 0 24px;
  max-width: 1084px;
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 36px;
  line-height: 40px;
  letter-spacing: -0.9px;
  color: #212931;
}

.page-city-content__body {
  width: 100%;
  color: rgba(33, 41, 49, 0.7);
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 20px;
  line-height: 26px;
}

.page-city-content__body p {
  margin: 0 0 26px;
}

.page-city-content__body p:last-child {
  margin-bottom: 0;
}

.page-city-content__body h3 {
  margin: 26px 0;
  font-family: var(--font-semibold);
  font-weight: 600;
  font-size: 20px;
  line-height: 26px;
  color: #212931;
}

.page-city-content__body h3:first-of-type {
  margin-top: 26px;
}

.page-city-content__list-lead {
  margin-bottom: 8px;
}

.page-city-content__list {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.page-city-content__list li {
  position: relative;
  padding-left: 28px;
  margin: 0 0 6px;
}

.page-city-content__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #173f36;
}

/* ===== Projects =====
   Mobile/tablet: inherit homepage .slider / .project-card rules from style.css.
   Desktop (min-width: 1024px): keep approved City desktop presentation. */
.page-city-projects {
  padding: 64px 0 96px;
  background: #fff;
}

.page-city-projects__slider {
  position: relative;
}

.page-city-projects__head {
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.page-city-projects__title {
  margin: 0;
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 28px;
  line-height: 32px;
  text-align: center;
  color: #212931;
}

@media (min-width: 768px) {
  .page-city-projects__title {
    font-size: 36px;
    line-height: 40px;
  }
}

/* Desktop-only City project presentation (approved 1920 layout).
   Below 1024px, homepage slider/card rules apply unchanged. */
@media (min-width: 1024px) {
  .page-city-projects__head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    min-height: 48px;
  }

  .page-city-projects__title {
    font-size: 48px;
    line-height: 48px;
  }

  /* Move homepage-style controls into the Figma top-right arrow position */
  .page-city-projects .slider__controls {
    position: absolute;
    top: 0;
    right: 0;
    margin-top: 0;
    gap: 8px;
    z-index: 2;
  }

  .page-city-projects .slider__dots {
    display: none;
  }

  .page-city-projects .slider__arrow {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 9999px;
    background: #faa819;
    color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  }

  .page-city-projects .slider__arrow:hover {
    background: #e89710;
    border-color: transparent;
  }

  .page-city-projects .slider__track {
    gap: 40px;
  }

  .page-city-projects .slider__slide {
    flex: 0 0 calc((100% - 120px) / 4);
  }

  .page-city-projects .project-card {
    height: 380px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    background: #fff;
    gap: 12px;
    box-shadow: none;
    cursor: default;
  }

  .page-city-projects .project-card:hover,
  .page-city-projects .project-card:active {
    transform: none;
    box-shadow: none;
    border-color: #e5e7eb;
  }

  .page-city-projects .project-card:hover .project-card__img {
    transform: none;
  }

  .page-city-projects .project-card__img {
    flex: 0 0 auto;
    height: 206px;
    max-height: 206px;
    aspect-ratio: 1.6;
    border-radius: 0;
  }

  .page-city-projects .project-card__body {
    padding: 0 16px 16px;
    gap: 12px;
  }

  .page-city-projects .project-card__power {
    font-size: 12px;
    line-height: 16px;
    color: #faa819;
  }

  .page-city-projects .project-card__text {
    font-size: 16px;
    line-height: 22px;
    color: #212931;
  }
}

/* ===== Responsive (non-projects) ===== */
@media (max-width: 1199px) {
  .page-city-hero__title {
    font-size: 44px;
    line-height: 56px;
  }

  .page-city-content__title {
    font-size: 30px;
    line-height: 36px;
  }

  .page-city-projects {
    padding-top: 56px;
  }
}

@media (max-width: 767px) {
  .page-city-hero {
    height: auto;
    min-height: 420px;
  }

  .page-city-hero__inner {
    min-height: 420px;
    padding-top: 40px;
    padding-bottom: 48px;
  }

  .page-city-hero__crumbs {
    margin-bottom: 28px;
  }

  .page-city-hero__title {
    font-size: 34px;
    line-height: 42px;
    max-width: none;
  }

  .page-city-hero__actions {
    margin-top: 28px;
  }

  .page-city-content {
    padding-top: 28px;
  }

  .page-city-content__title {
    font-size: 26px;
    line-height: 32px;
    margin-bottom: 20px;
  }

  .page-city-content__body,
  .page-city-content__body h3 {
    font-size: 16px;
    line-height: 24px;
  }

  .page-city-projects {
    /* Match homepage .section vertical rhythm on small screens */
    padding: clamp(48px, 8vw, 96px) 0;
  }
}
