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

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

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

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

.os-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(7, 31, 46, 0.38) 0%,
    rgba(7, 31, 46, 0.72) 55%,
    rgba(7, 31, 46, 0.92) 100%
  );
}

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

.os-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;
}

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

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

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

.os-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: 680px;
  margin: 0 0 18px;
}

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

/* ── Section Wrapper ────────────────────────────────── */
.os-detail {
  padding: 96px 0;
  background: var(--white);
}

/* ── Two-Column Grid ────────────────────────────────── */
.os-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

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

/* ── Left Column — Text ─────────────────────────────── */
.os-text {}

.os-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-dark);
  background: var(--accent-dim);
  border-radius: var(--r-pill);
  padding: 5px 14px;
  margin-bottom: 20px;
}

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

.os-subhead {
  font-family: var(--font-body);
  font-size: 1.08rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0 0 28px;
  line-height: 1.6;
}

.os-text p {
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--text);
  line-height: 1.78;
  margin: 0 0 18px;
}

/* ── Features List ──────────────────────────────────── */
.os-features {
  margin: 36px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.os-features-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 16px;
}

.os-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

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

.os-feature-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 7px;
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.os-feature-item p {
  margin: 0 !important;
  font-size: 0.93rem !important;
  color: var(--text) !important;
  line-height: 1.65 !important;
}

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

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

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

.os-tag {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  transition: background var(--tr), color var(--tr), border-color var(--tr);
}

.os-tag:hover {
  background: var(--accent-dim);
  border-color: rgba(0, 212, 255, 0.3);
  color: var(--primary-dark);
}

/* ── Quote ──────────────────────────────────────────── */
.os-quote {
  margin: 0 0 36px;
  padding: 22px 24px 22px 28px;
  border-left: 3px solid var(--accent);
  background: linear-gradient(135deg, var(--off-white), var(--light-bg));
  border-radius: 0 var(--r-md) var(--r-md) 0;
  position: relative;
}

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

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

/* ── CTA Button ─────────────────────────────────────── */
.os-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;
}

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

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

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

/* ── Right Column — Image Stack ─────────────────────── */
.os-img-col {
  position: sticky;
  top: 96px;
}

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

.os-img-main {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--r-lg);
  display: block;
  box-shadow: var(--shadow-xl);
}

/* Accent card overlaid on image */
.os-img-card {
  position: absolute;
  bottom: -28px;
  left: -28px;
  background: var(--primary-dark);
  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;
}

.os-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);
}

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

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

/* Decorative accent bar behind image */
.os-img-accent {
  position: absolute;
  top: 28px;
  right: -18px;
  width: 100%;
  height: 100%;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--accent-dim), transparent);
  border: 1px solid rgba(0, 212, 255, 0.18);
  z-index: -1;
}

/* ── Stats Strip ────────────────────────────────────── */
.os-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-top: 48px;
  box-shadow: var(--shadow-sm);
}

.os-stat {
  background: var(--off-white);
  padding: 28px 24px;
  text-align: center;
  transition: background var(--tr);
}

.os-stat:hover {
  background: var(--light-bg);
}

.os-stat__number {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}

.os-stat__number em {
  color: var(--accent-dark);
  font-style: normal;
}

.os-stat__label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
}

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

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

.os-reveal--delay-1 { transition-delay: 0.12s; }
.os-reveal--delay-2 { transition-delay: 0.24s; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  .os-detail {
    padding: 64px 0;
  }

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

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

  .os-img-col {
    position: static;
  }

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

  .os-img-card {
    left: 16px;
    bottom: -20px;
  }

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

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