/* ============================================================
   Retail Space Page — assets/css/retail-space.css
   Inherits global CSS variables from the theme's global stylesheet
   ============================================================ */

/* ── Hero ─────────────────────────────────────────── */
.rs-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.rs-hero__img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.rs-hero__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  display: block;
}

.rs-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(7, 31, 46, 0.30) 0%,
    rgba(7, 31, 46, 0.68) 50%,
    rgba(7, 31, 46, 0.90) 100%
  );
}

.rs-hero__content {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  padding-bottom: 64px;
}

.rs-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: var(--r-pill);
  padding: 6px 16px 6px 10px;
  margin-bottom: 20px;
}

.rs-badge-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  position: relative;
}

.rs-badge-pulse::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
  animation: rs-pulse 1.8s ease-out infinite;
}

@keyframes rs-pulse {
  0%   { transform: scale(1); opacity: 0.4; }
  70%  { transform: scale(2.2); opacity: 0; }
  100% { opacity: 0; }
}

.rs-hero__h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.12;
  max-width: 700px;
  margin: 0 0 18px;
}

.rs-hero__sub {
  font-family: var(--font-body);
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  line-height: 1.65;
  margin: 0;
}

/* ── Dark Detail Section ────────────────────────────── */
.rs-detail {
  padding: 96px 0;
  background: var(--primary-dark);
  position: relative;
  overflow: hidden;
}

/* Subtle background texture */
.rs-detail::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(0, 212, 255, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(0, 212, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Two-Column Grid (image left, text right) ───────── */
.rs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  position: relative;
  z-index: 1;
}

@media (max-width: 960px) {
  .rs-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ── Left Column — Image ────────────────────────────── */
.rs-img-col {
  position: sticky;
  top: 96px;
}

.rs-img-stack {
  position: relative;
}

.rs-img-main {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--r-lg);
  display: block;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.45);
}

/* Decorative accent border behind image */
.rs-img-accent {
  position: absolute;
  top: -18px;
  left: -18px;
  width: 100%;
  height: 100%;
  border-radius: var(--r-lg);
  border: 1px solid rgba(0, 212, 255, 0.2);
  z-index: -1;
}

/* Info card overlaid on image */
.rs-img-card {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--primary-mid);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--r-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-lg);
  max-width: 220px;
}

.rs-img-card-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.rs-img-card strong {
  display: block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.rs-img-card span {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-light);
}

/* ── Right Column — Text ────────────────────────────── */
.rs-text {}

.rs-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--r-pill);
  padding: 5px 14px;
  margin-bottom: 20px;
}

.rs-h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.18;
  margin: 0 0 14px;
}

.rs-subhead {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
  margin: 0 0 28px;
  line-height: 1.6;
}

.rs-text p {
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
  margin: 0 0 16px;
}

/* ── Features List ──────────────────────────────────── */
.rs-features {
  margin: 36px 0 32px;
}

.rs-features-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.rs-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.rs-feature-item:last-child {
  border-bottom: none;
}

.rs-feature-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 7px;
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
}

.rs-feature-item p {
  margin: 0 !important;
  font-size: 0.93rem !important;
  color: rgba(255, 255, 255, 0.75) !important;
  line-height: 1.68 !important;
}

/* ── Tags ───────────────────────────────────────────── */
.rs-tags-block {
  margin-bottom: 32px;
}

.rs-tags-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

.rs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rs-tag {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  transition: background var(--tr), border-color var(--tr), color var(--tr);
}

.rs-tag:hover {
  background: var(--accent-dim);
  border-color: rgba(0, 212, 255, 0.35);
  color: var(--white);
}

/* ── Quote ──────────────────────────────────────────── */
.rs-quote {
  margin: 0 0 36px;
  padding: 22px 24px 22px 28px;
  border-left: 3px solid var(--accent);
  background: rgba(0, 212, 255, 0.05);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  position: relative;
}

.rs-quote::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.2;
  line-height: 1;
  position: absolute;
  top: 8px;
  left: 16px;
}

.rs-quote p {
  font-family: var(--font-body);
  font-size: 0.95rem !important;
  font-style: italic;
  color: rgba(255, 255, 255, 0.82) !important;
  line-height: 1.7 !important;
  margin: 0 !important;
  padding-left: 28px;
}

/* ── CTA Button ─────────────────────────────────────── */
.rs-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary-dark);
  background: var(--accent);
  border: none;
  border-radius: var(--r-pill);
  padding: 15px 30px;
  text-decoration: none;
  box-shadow: var(--shadow-accent);
  transition: background var(--tr), transform var(--tr), box-shadow var(--tr);
  cursor: pointer;
}

.rs-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(0, 212, 255, 0.5);
}

.rs-btn svg {
  transition: transform var(--tr);
}

.rs-btn:hover svg {
  transform: translateX(4px);
}

/* ── Scroll Reveal ──────────────────────────────────── */
.rs-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.rs-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.rs-reveal--delay-1 { transition-delay: 0.14s; }
.rs-reveal--delay-2 { transition-delay: 0.28s; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 960px) {
  .rs-img-col {
    position: static;
    order: -1;
  }
}

@media (max-width: 768px) {
  .rs-detail {
    padding: 64px 0;
  }

  .rs-hero {
    min-height: 420px;
  }

  .rs-hero__content {
    padding-bottom: 48px;
  }

  .rs-img-main {
    height: 340px;
  }

  .rs-img-card {
    right: 12px;
    bottom: -20px;
  }
}

@media (max-width: 480px) {
  .rs-btn {
    width: 100%;
    justify-content: center;
  }
}
