/* =============================================================
   public/css/space-rentals.css
   Durable Impact — Space Rentals page
   Depends on public/css/styles.css (Poppins, variables, .btn-green)
   ============================================================= */

/* ══════════════════════════════════════════════════════════════
   1. HERO
   ══════════════════════════════════════════════════════════════ */
.sr-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.sr-hero__bg {
  position: absolute;
  inset: 0;
}

.sr-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.sr-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.42);
}

.sr-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 0 110px clamp(2.5rem, 5vw, 4rem);
}

/* ── Sub-nav (mirrors prog-subnav exactly) ──────────────────── */
.sr-subnav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

.sr-subnav__label {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
}

.sr-subnav__tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sr-subnav__tab {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: rgba(255,255,255,0.75);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  padding: 8px 18px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.sr-subnav__tab:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}

.sr-subnav__tab--active {
  background: #7EBB55;
  color: #fff;
  border-color: #7EBB55;
}

/* ══════════════════════════════════════════════════════════════
   2. INTRO
   Left: text · Right: photo — mirrors .welcome-inner layout
   ══════════════════════════════════════════════════════════════ */
.sr-intro {
  background: #ffffff;
  padding: 112px 0;
}

.sr-intro__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 110px;
  display: flex;
  align-items: center;
  gap: 80px;
}

.sr-intro__text {
  flex: 0 0 48%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sr-intro__title {
  font-family: var(--font-main);
  font-size: 46px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.1;
  margin: 0;
}

.sr-intro__body {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.7;
  margin: 0;
}

.sr-intro__photo {
  flex: 1;
}

.sr-intro__photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* ══════════════════════════════════════════════════════════════
   3. PHOTO GALLERY STRIP
   5-column grid of equal-sized image tiles
   ══════════════════════════════════════════════════════════════ */
.sr-gallery {
  background: var(--color-bg-light);
  padding: 48px 0;
}

.sr-gallery__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 110px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.sr-gallery__item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
}

.sr-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.sr-gallery__item:hover img {
  transform: scale(1.05);
}

/* ══════════════════════════════════════════════════════════════
   4. FEATURES
   Left: big heading · Right: 2×2 feature text blocks
   Mirrors .making-impact-inner layout
   ══════════════════════════════════════════════════════════════ */
.sr-features {
  background: #ffffff;
  padding: 112px 0;
}

.sr-features__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 110px;
  display: flex;
  align-items: flex-start;
  gap: 80px;
}

.sr-features__left {
  flex: 0 0 32%;
}

.sr-features__title {
  font-family: var(--font-main);
  font-size: 46px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.1;
  margin: 0;
}

.sr-features__grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 48px;
}

.sr-feature__title {
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 12px;
  line-height: 1.3;
}

.sr-feature__body {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.7;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   5. LAYOUTS & SETUP
   Header · then two labelled rows of 5 space-type cards
   ══════════════════════════════════════════════════════════════ */
.sr-layouts {
  background: var(--color-bg-light);
  padding: 112px 0;
}

.sr-layouts__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 110px;
}

.sr-layouts__header {
  display: flex;
  align-items: flex-start;
  gap: 80px;
  margin-bottom: 60px;
}

.sr-layouts__title {
  font-family: var(--font-main);
  font-size: 46px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.1;
  margin: 0;
  flex: 0 0 40%;
}

.sr-layouts__intro {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.7;
  margin: 0;
  flex: 1;
  padding-top: 6px;
}

/* Row labels */
.sr-layouts__row-label {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin: 0 0 20px;
}

/* 5-column card row */
.sr-layouts__row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

/* Layout card — photo + name + capacity */
.sr-layout-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.sr-layout-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}

.sr-layout-card__photo {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.sr-layout-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.sr-layout-card:hover .sr-layout-card__photo img {
  transform: scale(1.04);
}

.sr-layout-card__info {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sr-layout-card__name {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.3;
}

.sr-layout-card__capacity {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-muted);
}

/* ══════════════════════════════════════════════════════════════
   6. PRIVATE OFFICE CTA
   Photo left · text + btn right — mirrors .impact-report-inner
   ══════════════════════════════════════════════════════════════ */
.sr-office-cta {
  background: #ffffff;
  padding: 112px 0;
}

.sr-office-cta__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 110px;
  display: flex;
  align-items: center;
  gap: 80px;
}

.sr-office-cta__photo {
  flex: 0 0 44%;
}

.sr-office-cta__photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.sr-office-cta__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sr-office-cta__title {
  font-family: var(--font-main);
  font-size: 46px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.1;
  margin: 0;
}

.sr-office-cta__body {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.7;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   7. OTHER INSPIRING SPACES
   Photo left · two text blocks right — same structure as sr-intro
   ══════════════════════════════════════════════════════════════ */
.sr-other-spaces {
  background: var(--color-bg-light);
  padding: 112px 0;
}

.sr-other-spaces__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 110px;
  display: flex;
  align-items: flex-start;
  gap: 80px;
}

.sr-other-spaces__photo {
  flex: 0 0 44%;
}

.sr-other-spaces__photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.sr-other-spaces__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.sr-other-spaces__title {
  font-family: var(--font-main);
  font-size: 46px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.1;
  margin: 0;
}

.sr-other-spaces__block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sr-other-spaces__subtitle {
  font-family: var(--font-main);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0;
  line-height: 1.3;
}

.sr-other-spaces__body {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.7;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .sr-hero__inner,
  .sr-intro__inner,
  .sr-gallery__grid,
  .sr-features__inner,
  .sr-layouts__inner,
  .sr-office-cta__inner,
  .sr-other-spaces__inner {
    padding-left: 60px;
    padding-right: 60px;
  }

  .sr-intro__title,
  .sr-features__title,
  .sr-layouts__title,
  .sr-office-cta__title,
  .sr-other-spaces__title {
    font-size: 38px;
  }

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

@media (max-width: 900px) {
  .sr-intro__inner,
  .sr-features__inner,
  .sr-office-cta__inner,
  .sr-other-spaces__inner {
    flex-direction: column;
    gap: 48px;
  }

  .sr-intro__text,
  .sr-features__left,
  .sr-office-cta__photo,
  .sr-other-spaces__photo {
    flex: none;
    width: 100%;
  }

  .sr-layouts__header {
    flex-direction: column;
    gap: 24px;
  }

  .sr-layouts__title { flex: none; }

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

@media (max-width: 767px) {
  .sr-hero__inner,
  .sr-intro__inner,
  .sr-gallery__grid,
  .sr-features__inner,
  .sr-layouts__inner,
  .sr-office-cta__inner,
  .sr-other-spaces__inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .sr-intro,
  .sr-features,
  .sr-layouts,
  .sr-office-cta,
  .sr-other-spaces {
    padding: 80px 0;
  }

  .sr-subnav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .sr-features__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

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

  .sr-intro__title,
  .sr-features__title,
  .sr-layouts__title,
  .sr-office-cta__title,
  .sr-other-spaces__title {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .sr-layouts__row {
    grid-template-columns: 1fr;
  }

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