/* Moved from style.css – PRIVATE OFFICES RULES */
/* ========================================
   PRIVATE OFFICES -- HERO
   ======================================== */

.more-info{
  font-family: var(--font-body);
  font-size:20px;
  font-weight:400;
  line-height:130%;
  color:#111111;
  opacity:70%;
}
.tel{
  font-family: var(--font-body);
  font-size:20px;
  font-weight:500;
  color:#111111;
  line-height:130%;
  opacity:70%;
}
.tel a{
  text-decoration:underline
}
.offices-hero {
  position: relative;
  width: 100%;
  height: 90vh;
  min-height: 700px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #000;
}

.offices-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.offices-hero-bg img,
.offices-hero-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
}

.offices-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.offices-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 var(--container-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.offices-hero-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 80px;
  line-height: 1.05;
  color: var(--fomo-white);
  margin-bottom: 24px;
  text-align: center;
}

.offices-hero-description {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
  margin-bottom: 36px;
  text-align: center;
}

.offices-hero-cta {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.offices-hero-cta .btn-primary,
.offices-hero-cta .btn-outline {
  width: 220px;
  padding: 14px 40px;
  font-size: 15px;
}

/* Stats Bar */
.offices-stats-bar {
  position: relative;
  z-index: 10;
  display: flex;
  width: 80%;
  max-width: 960px;
  margin: -120px auto -80px auto;
  background-color: #f0ebe0;
  background-image: url(assets/images/ambitious-companies-bg.png);
  background-size: 100% 100%;
  background-position: center;
}

.offices-stat {
  flex: 1;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid rgba(20, 20, 20, 0.1);
}

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

.offices-stat-number {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 52px;
  color: #1a1a1a;
  line-height: 1;
  letter-spacing: -1px;
}

.offices-stat-plus {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  color: #1a1a1a;
  vertical-align: super;
}

.offices-stat-unit {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  text-transform: uppercase;
  vertical-align: baseline;
  letter-spacing: 2px;
  color: #1a1a1a;
}

.offices-stat-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: rgba(20, 20, 20, 0.45);
  text-transform: uppercase;
  letter-spacing: 2px;
}

@media (max-width: 960px) {
  .offices-hero-heading {
    font-size: 52px;
  }
  .offices-stats-bar {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    /* On mobile the bar is too tall for the desktop overlap trick to work cleanly.
       Reset both negative margins so it sits naturally between hero and features. */
    margin: 0 auto;
  }
  .offices-stat {
    border-right: none;
    border-bottom: 1px solid rgba(20, 20, 20, 0.1);
    padding: 24px 30px;
  }
  .offices-stat:last-child {
    border-bottom: none;
  }
}

@media (max-width: 600px) {
  .offices-hero-heading {
    font-size: 52px;
  }
  .offices-hero-description {
    font-size: 17.6px;
  }
  .offices-hero-cta {
    flex-direction: column;
    width: 100%;
  }
  .offices-hero-cta .btn-primary,
  .offices-hero-cta .btn-outline {
    width: 100%;
  }
  .offices-stat-number {
    font-size: 36px;
  }
  .offices-hero {
    min-height: 700px;
  }
}

/* ========================================
   PRIVATE OFFICES -- FEATURES GRID
   ======================================== */
.offices-features {
  position: relative;
  background: #ffffff;
  padding: 120px 0 120px;
  overflow: hidden;
}

.of-leaf-left {
  position: absolute;
  top: -20px;
  left: 0;
  width: 280px;
  height: auto;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.of-leaf-right {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 260px;
  height: auto;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.of-flamingo {
  position: absolute;
  bottom: 40px;
  right: 20px;
  width: 140px;
  height: auto;
  z-index: 1;
}

.of-inner {
  position: relative;
  z-index: 2;
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.of-header {
  text-align: center;
  margin-bottom: 80px;
}

.of-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 52px;
  line-height: 1.15;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.of-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(20, 20, 20, 0.55);
  max-width: 580px;
  margin: 0 auto;
}

.of-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 50px;
}

.of-card {
  cursor: pointer;
  padding: 20px;
  border-radius: 4px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.of-card:hover {
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.of-card-icon {
  font-size: 48px;
  margin-bottom: 20px;
  filter: grayscale(0.5) opacity(0.5);
}

.of-card-icon .material-icons {
  font-size: 48px;
  color: #8a9b7a;
  display: block;
}

.of-card-title {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 22px;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.of-card-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(20, 20, 20, 0.55);
}

/* Card wrapper for inline popup positioning */
.of-card-wrap {
  position: relative;
}

/* Inline popup - positioned beside the card */
.of-popup {
  display: none;
  position: absolute;
  top: 0;
  z-index: 20;
  background: #fff;
  padding: 32px 36px;
  width: 380px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* Palm leaves background in popup */
.of-popup::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 220px;
  height: 220px;
  background-image: url(assets/images/plant-right.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top right;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.of-popup > * {
  position: relative;
  z-index: 1;
}

/* Default: open to the right */
.of-popup {
  left: calc(100% + 16px);
}

/* Cards in right column: open to the left */
.of-card-wrap:nth-child(3n) .of-popup {
  left: auto;
  right: calc(100% + 16px);
}

/* Cards in middle column: open to the right */
.of-card-wrap:nth-child(3n+2) .of-popup {
  left: calc(100% + 16px);
  right: auto;
}

.of-popup.active {
  display: block;
}

.of-popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #1a1a1a;
  line-height: 1;
  padding: 4px;
}

.of-popup-close:hover {
  color: #666;
}

.of-popup p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  color: #1a1a1a;
  margin-bottom: 14px;
}

.of-popup ul {
  list-style: disc;
  padding-left: 20px;
  margin: 14px 0 0;
}

.of-popup ul li {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.9;
  color: #1a1a1a;
}

@media (max-width: 960px) {
  .of-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 30px;
  }
  .of-title {
    font-size: 40px;
  }
  .of-flamingo {
    width: 100px;
  }
}

@media (max-width: 600px) {
  .of-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .of-title {
    font-size: 32px;
  }
  .offices-features {
    padding: 40px 0 80px;
  }
  .of-flamingo {
    display: none;
  }
}

.of-card.active {
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

@media (max-width: 960px) {
  .of-popup {
    width: 340px;
  }
}

@media (max-width: 600px) {
  .of-popup {
    position: fixed;
    top: 50%;
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -50%);
    width: 90vw;
    z-index: 100;
  }
}



/* ========================================
   PRIVATE OFFICES -- SHOWCASE / CAROUSEL
   ======================================== */
.offices-showcase {
  position: relative;
  background: #ffffff;
}

.showcase-paper {
  position: relative;
  width: 100%;
}

/* The paper background image defines the section height */
.showcase-paper > img {
  display: block;
  width: 100%;
  height: auto;
  visibility: hidden;
}

/* Content overlay fills the paper image area */
.showcase-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url(assets/images/showcase-paper-bg.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.showcase-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--container-padding) 0;
  margin-bottom: 60px;
}

.showcase-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 52px;
  line-height: 1.15;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.showcase-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(20, 20, 20, 0.55);
  max-width: 560px;
  margin: 0 auto 28px;
}

.showcase-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* Carousel at the bottom of the paper section */
.showcase-carousel-wrap {
  overflow: hidden;
  width: 100%;
  padding: 0;
}

.showcase-carousel {
  display: flex;
  gap: 20px;
  animation: showcaseScroll 40s linear infinite;
}

@keyframes showcaseScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.showcase-carousel:hover {
  animation-play-state: paused;
}

.showcase-slide {
  position: relative;
  flex: 0 0 380px;
  height: 260px;
  overflow: hidden;
}

.showcase-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.showcase-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
}

.showcase-logo {
  position: absolute;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  letter-spacing: 0.5px;
}

.logo-item img {
  height: 36px;
  width: auto;
  display: block;
  filter: brightness(0);
}

.logo-item--lg img {
  height: 52px;
}


/* Bottom torn edge */
.showcase-torn-bottom {
  position: relative;
  z-index: 2;
  line-height: 0;
  background: #ffffff;
  margin-bottom: -1px;
}

.showcase-torn-bottom img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 960px) {
  .showcase-title { font-size: 40px; }
  .showcase-slide { flex: 0 0 300px; height: 200px; }
}

@media (max-width: 600px) {
  .showcase-title { font-size: 30px; }
  .showcase-slide { flex: 0 0 260px; height: 170px; }
  .showcase-buttons { flex-direction: column; }
  .showcase-text { padding: 40px 20px 20px; }
}

/* ========================================
   PRIVATE OFFICES -- CAMPUS EXPLORER
   ======================================== */
.offices-campus {
  position: relative;
  background: #fff;
  overflow-x: clip;
  margin-top: 0;
}

.offices-campus::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to bottom, transparent, #ffffff 75%);
  pointer-events: none;
  z-index: 10;
}


.campus-header {
  text-align: center;
  padding: 60px var(--container-padding) 30px;
  max-width: var(--site-width);
  margin: 0 auto;
  background: #fff;
}

.campus-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 52px;
  line-height: 1.15;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.campus-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(20, 20, 20, 0.55);
  max-width: 540px;
  margin: 0 auto;
}

/* Aerial map */
.campus-map {
  position: relative;
  width: 100%;
  line-height: 0;
  margin-top: 50px;
  /* height: 1300px; */
  overflow: hidden;
}

.campus-map::before,
.campus-map::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 1;
}

.campus-map::before {
  top: 0;
  height: 180px;
  background: linear-gradient(to bottom, #ffffff, transparent);
}

.campus-map::after {
  bottom: 0;
  height: 180px;
  background: linear-gradient(to top, #ffffff, transparent);
}

.campus-map > img {
  width: 100%;
  height: auto;
  display: block;
  transform: translateY(-23%);
}

.campus-label {
  position: absolute;
  background: #1a1a1a;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  z-index: 2;
}

.campus-label:hover {
  background: #333;
  transform: translateY(-2px);
}

.campus-label.active {
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Mobile tab strip — visible only on mobile */
.campus-mobile-tabs {
  display: none;
}

/* Wrapper: position relative so the detail card can be anchored to the bottom */
.campus-map-wrap {
  position: relative;
}

/* Detail cards */
.campus-details {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 14;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 var(--container-padding) 120px;
}

.campus-detail {
  display: none;
  background: rgba(240, 235, 224, 0.95);
  backdrop-filter: blur(10px);
  overflow: hidden;
  opacity: 0;
  height: 300px;
  transform: translateX(var(--slide-in, 100vw));
}

.campus-detail.active {
  display: flex;
  animation: campusSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.campus-detail.sliding-out {
  display: flex;
  animation: campusSlideOut 0.4s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

@keyframes campusSlideIn {
  0% { opacity: 0; transform: translateX(var(--slide-in, 100vw)); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes campusSlideOut {
  0% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(var(--slide-out, -100vw)); }
}

.campus-detail-img {
  flex: 0 0 50%;
  overflow: hidden;
  margin: 16px;
  border-radius: 2px;
}

.campus-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.campus-detail-info {
  flex: 0 0 50%;
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
}

.campus-detail-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.campus-detail-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(20, 20, 20, 0.6);
  margin-bottom: 16px;
}

.campus-detail-link {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  display: inline-block;
}

.campus-detail-link:hover {
  text-decoration: underline;
}

.campus-detail-tags {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 400;

  font-size: 16px;
  color: rgba(20, 20, 20, 0.5);
  border-top: 1px solid rgba(20, 20, 20, 0.1);
  padding-top: 16px;
  margin-top: auto;
}

@media (max-width: 960px) {
  .campus-header { padding: 50px var(--container-padding) 24px; }
  .campus-title { font-size: 40px; }
  .campus-detail { flex-direction: column; }
  .campus-detail-img { flex: none; height: 220px; }
  .campus-details { max-width: 100%; padding: 0 var(--container-padding) 32px; }
  .campus-detail-info { padding: 28px 28px; }
}

/* Stop overlapping the aerial image once the photo gets small.
   Break the shared-grid overlay and stack map -> tabs -> details. */
@media (max-width: 768px) {
  .campus-map-wrap { display: flex; flex-direction: column; }
  .campus-details { position: static; padding-top: 0; }

  /* Collapse the huge fixed-height aerial map and reset the image offset */
  .campus-map { height: auto; margin-top: 0; }
  .campus-map > img { transform: none; }
  .campus-map::before,
  .campus-map::after { display: none; }
  .offices-campus::after { display: none; }

  /* Detail card: let height be driven by content */
  .campus-detail { height: auto; }
  .campus-details { max-width: 100%; padding: 0 var(--container-padding) 20px; }

  /* Hide on-map labels and show the tab strip instead */
  .campus-map .campus-label { display: none; }
  .campus-mobile-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 16px var(--container-padding);
  }
  .campus-mobile-tabs .campus-label {
    position: static;
    width: 100%;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 12px 10px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .campus-header { padding: 40px var(--container-padding) 20px; }
  .campus-title { font-size: 32px; }
  .campus-desc { font-size: 15px; line-height: 1.6; }
  .campus-detail-img { height: 180px; }
  .campus-detail-info { padding: 24px 20px; }
  .campus-detail-name { font-size: 24px; }
  .campus-detail-desc { font-size: 14px; }
  .campus-detail-link { margin-bottom: 16px; }
  .campus-detail-tags {
    flex-wrap: wrap;
    row-gap: 6px;
    font-size: 13px;
    padding-top: 14px;
  }
  .campus-map .campus-label { display: none; }

  /* Show the mobile tab strip as an even 2x2 grid.
     Also reset the absolute positioning inherited from .campus-label
     so the tabs actually lay out. */
  .campus-mobile-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 16px var(--container-padding);
  }
  .campus-mobile-tabs .campus-label {
    position: static;
    width: 100%;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 12px 10px;
    text-align: center;
  }
}

@media (max-width: 400px) {
  .campus-title { font-size: 28px; }
  .campus-detail-img { height: 160px; }
  .campus-detail-info { padding: 20px 16px; }
  .campus-mobile-tabs .campus-label { font-size: 10px; padding: 10px 6px; }
}

/* ========================================
   PRIVATE OFFICES -- WORKPLACE ECOSYSTEM
   ======================================== */
.offices-ecosystem {
  position: relative;
  background: #ffffff url('../images/ambitious-companies-bg.png') center center / cover no-repeat;
  padding: 100px 0 120px;
  overflow: hidden;
}

.eco-flamingo {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 140px;
  height: auto;
  z-index: 1;
}

.eco-inner {
  position: relative;
  z-index: 2;
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  gap: 80px;
}

/* Stacked images */
.eco-images {
  position: relative;
  flex: 0 0 48%;
  min-height: 560px;
}

.eco-img-back {
  position: absolute;
  top: 0;
  left: -40px;
  width: 80%;
  transform: rotate(-5deg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  z-index: 1;
  background: #fff;
  padding: 8px;
}

.eco-img-back img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.eco-img-front {
  position: absolute;
  top: 30px;
  left: 60px;
  width: 90%;
  transform: rotate(2deg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  z-index: 2;
  background: #fff;
  padding: 8px;
}

.eco-img-front img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

/* Content */
.eco-content {
  flex: 1;
}

.eco-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.15;
  color: #1a1a1a;
  margin-bottom: 28px;
}

.eco-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(20, 20, 20, 0.55);
  margin-bottom: 20px;
}

.eco-text strong em {
  color: #1a1a1a;
}

/* Transport stats */
.eco-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0;
  flex-wrap: wrap;
}

.eco-stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: #1a1a1a;
}

.eco-stat-icon {
  font-size: 18px;
  opacity: 0.6;
}

.eco-stat-divider {
  width: 1px;
  height: 20px;
  background: rgba(20, 20, 20, 0.2);
}

@media (max-width: 960px) {
  .eco-inner {
    flex-direction: column;
    gap: 60px;
  }
  .eco-images {
    flex: none;
    width: 100%;
    min-height: 400px;
  }
  .eco-content {
    text-align: center;
  }
  .eco-title {
    font-size: 38px;
  }
}

@media (max-width: 600px) {
  .eco-images {
    min-height: 300px;
  }
  .eco-title {
    font-size: 30px;
  }
  .eco-stats {
    flex-direction: column;
  }
  .eco-stat-divider {
    display: none;
  }
  .offices-ecosystem {
    padding: 60px 0 80px;
  }
  .eco-flamingo {
    display: none;
  }
}

/* ========================================
   PRIVATE OFFICES -- TRUST SECTION
   ======================================== */

/* Logo sizing when img itself carries the logo-item class (no span wrapper) */
img.logo-item {
  height: 36px;
  width: auto;
  display: block;
  opacity: 1;
  filter: brightness(0);
}

img.logo-item.logo-item--lg {
  height: 52px;
}

img.logo-item.logo-item--cyviz {
  height: 52px;
}

.offices-trust {
  position: relative;
  background: #fff;
  padding: 0;
  overflow: hidden;
}

.trust-leaf-left {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 300px;
  height: auto;
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
}

.trust-leaf-right {
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  width: 280px;
  height: auto;
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}

.trust-marquee-top {
  border-bottom: none;
  padding: 30px 0;
}

.trust-marquee-bottom {
  border-bottom: none;
  padding: 30px 0;
}

.trust-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px var(--container-padding);
  max-width: 700px;
  margin: 0 auto;
}

.trust-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 52px;
  line-height: 1.15;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.trust-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(20, 20, 20, 0.55);
}

@media (max-width: 960px) {
  .trust-title { font-size: 40px; }
  .trust-leaf-left { width: 200px; }
  .trust-leaf-right { width: 180px; }
}

@media (max-width: 600px) {
  .trust-title { font-size: 32px; }
  .trust-content { padding: 50px var(--container-padding); }
  .trust-leaf-left, .trust-leaf-right { display: none; }
}



/* ========================================
   PRIVATE OFFICES -- WORKSPACE CTA
   ======================================== */
.offices-workspace-cta {
  position: relative;
}

.ws-main {
  position: relative;
  width: 100%;
}

.ws-bg-img {
  display: block;
  width: 100%;
  height: auto;
  visibility: hidden;
}

.ws-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url(../images/offices-cta-frame.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.ws-card {
  position: relative;
  z-index: 2;
  width: 900px;
  max-width: 85%;
  background: url('../images/cta-banner-bg.png') center center / cover no-repeat;
  padding: 70px 55px 65px;
  text-align: center;
  overflow: hidden;
  border: 16px solid #ffffff;
}

.ws-card .companies-texture {
  border-radius: 0;
}
.ws-btn-outline {
  background: transparent;
  color: #111111;
  border-color: #111111;
  border: 2px solid #111111;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  width: 200px;
  padding: 0 32px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.ws-card .cta-btn-dark {
  background: #ffffff;
  color: #111;
  border-color: #ffffff;
}

.ws-card .cta-btn-dark:hover {
  background: transparent;
  color: #ffffff;
}

.ws-card .cta-btn-outline {
  color: #ffffff;
  border-color: #ffffff;
}

.ws-card .cta-btn-outline:hover {
  background: #ffffff;
  color: #3a3a2e;
}

.ws-leaf {
  position: absolute;
  top: -30px;
  left: -20px;
  width: 200px;
  height: auto;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.ws-flamingo {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 90px;
  height: auto;
  z-index: 0;
}

.ws-card-inner {
  position: relative;
  z-index: 1;
}

.ws-badge {
  display: inline-block;
  background: #E4B23A;
  color: #000000;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 18px;
  margin-bottom: 20px;
  letter-spacing: 0.2px;
}

.ws-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 53px;
  line-height: 1.15;
  color: #1a1a1a;
  margin-bottom: 14px;
}

.ws-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
  color: rgba(20, 20, 20, 0.6);
  max-width: 680px;
  margin: 0 auto 28px;
}

.ws-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.ws-buttons .cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  width: 200px;
  padding: 0 32px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-decoration: none;
  border: 2px solid #ffffff;
  color: #ffffff;
  background: transparent;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.ws-buttons .ws-btn-filled {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.ws-buttons .ws-btn-outline {
  background: transparent;
  color: #111111;
  border-color: #111111;
}

@media (max-width: 960px) {
  .ws-card { padding: 40px 36px 35px; }
  .ws-title { font-size: 34px; }
}

@media (max-width: 600px) {
  .ws-card { padding: 32px 24px 28px; }
  .ws-title { font-size: 32px; }
  .ws-buttons { flex-direction: column; }
  .ws-buttons .cta-btn { width: 100%; }
  .ws-leaf { width: 140px; }
  .ws-flamingo { width: 60px; }
}

/* ========================================
   PRIVATE OFFICES -- FOMO DESIGN
   ======================================== */
.offices-design {
  position: relative;
  background: #fff;
  padding: 100px 0;
  overflow: hidden;
  transition: background-color 0.6s ease;
}

.offices-design:hover {
  background-color: #f5d5d0;
}

/* Leaves SVG - hidden above, flush with top on hover */
.dl {
  position: absolute;
  top: 0;
  width: 65%;
  height: auto;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transform: translateY(-100%);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.dl-left {
  left: -5%;
}

.dl-right {
  right: -5%;
  transform: translateY(-100%) scaleX(-1);
}

.offices-design:hover .dl-left {
  opacity: 1;
  transform: translateY(0);
}

.offices-design:hover .dl-right {
  opacity: 1;
  transform: translateY(0) scaleX(-1);
}

.design-inner {
  position: relative;
  z-index: 2;
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  gap: 80px;
  margin-top: 100px;
}

/* Media (image + video overlay) */
.design-media {
  position: relative;
  flex: 0 0 45%;
  overflow: hidden;
}

.design-img-default {
  width: 100%;
  height: auto;
  display: block;
  transition: filter 0.6s ease, opacity 0.6s ease;
}

.offices-design:hover .design-img-default {
  filter: grayscale(1) brightness(0.4);
}

.design-video-overlay {
  position: absolute;
  inset: 10%;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.6s ease 0.2s;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.offices-design:hover .design-video-overlay {
  opacity: 1;
}

.design-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Content */
.design-content {
  flex: 1;
}

.design-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.1;
  color: #1a1a1a;
  margin-bottom: 24px;
}

.design-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(20, 20, 20, 0.55);
  margin-bottom: 32px;
}

.design-buttons {
  display: flex;
  gap: 12px;
}

.design-buttons .cta-btn {
  width: 220px;
}

.design-buttons .cta-btn-dark {
  background: #111111;
  color: #ffffff;
  border: 2px solid #111111;
}

.design-buttons .cta-btn-dark:hover {
  background: transparent;
  color: #111111;
}

.design-buttons .cta-btn-outline {
  color: #111111;
  border: 2px solid #111111;
}

.design-buttons .cta-btn-outline:hover {
  background: #111111;
  color: #ffffff;
}

@media (max-width: 960px) {
  .design-inner {
    flex-direction: column;
    gap: 40px;
  }
  .design-media { flex: none; width: 100%; }
  .design-title { font-size: 38px; }
}

@media (max-width: 600px) {
  .design-title { font-size: 30px; }
  .design-buttons { flex-direction: column; }
  .design-buttons .cta-btn { width: 100%; }
  .offices-design { padding: 60px 0; }
  .dl-left, .dl-right { display: none; }
}


/* ============================================
   OFFICES PAPER BG content
   ============================================ */
.opb-inner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 90px 80px;
}
.opb-text {
  text-align: center;
  max-width: 720px;
}
.opb-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 52px;
  line-height: 1.15;
  color: #1a1a1a;
  margin-bottom: 20px;
}
.opb-desc {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.7;
  color: #111111;
  margin-bottom: 36px;
}
.opb-buttons {
  display: flex;
  flex-direction:column;
  align-items: center;
  gap: 12px;
  justify-content: center;
}
.opb-btn {
  display: inline-flex;
  width:fit-content;
  align-items: center;
  margin-bottom:32px;
  justify-content: center;
  height: 52px;
  padding: 0 32px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.opb-btn-dark {
  background: #1a1a1a;
  color: #fff;
  border: 2px solid #1a1a1a;
 
}
.opb-btn-dark:hover {
  background: transparent;
  color: #1a1a1a;
}
.opb-btn-outline {
  background: transparent;
  color: #1a1a1a;
  border: 2px solid #1a1a1a;
}
.opb-btn-outline:hover {
  background: #1a1a1a;
  color: #fff;
}
.opb-carousel-wrap {
  overflow: hidden;
  width: 100%;
}
.opb-carousel {
  display: flex;
  gap: 0;
  animation: opbScroll 40s linear infinite;
}
.opb-carousel:hover {
  animation-play-state: paused;
}
@keyframes opbScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.opb-slide {
  position: relative;
  flex: 0 0 25%;
  border: 3px solid #fff;
}
.opb-slide img {
  width: 100%;
  height: auto;
  display: block;
}
.opb-logo {
  position: absolute;
  bottom: 16px;
  left: 20px;
  z-index: 2;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  letter-spacing: 0.3px;
}

.opb-logo img {
  height: 32px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.opb-logo--lg img {
  height: 42px;
}

.opb-logo--lg {
  bottom: 8px;
}

.opb-logo--cyviz img {
  height: 52px;
}

.logo-item--cyviz img {
  height: 52px;
}

/* ============================================
   PRIVATE OFFICES — CONSOLIDATED MOBILE RULES
   (appended last so these win the cascade)
   ============================================ */

/* Global safeguard: stop decorative/absolute elements causing
   horizontal scroll on small screens */
.offices-hero,
.offices-features,
.offices-paper-bg,
.offices-campus,
.offices-ecosystem,
.offices-trust,
.offices-workspace-cta,
.offices-design {
  max-width: 100%;
}

@media (max-width: 960px) {
  /* Paper BG (offices-paper-bg) */
  .opb-inner {
    padding: 70px 32px 50px;
  }
  .opb-title {
    font-size: 40px;
  }
  .opb-desc {
    font-size: 15px;
    margin-bottom: 28px;
  }
  .opb-slide {
    flex: 0 0 45%;
  }

  /* Workspace CTA — override aspect-ratio set in functions.php
     so the card isn't squeezed into a narrow letterbox on tablet/mobile */
  .ws-main {
    aspect-ratio: auto !important;
    padding: 70px 0 !important;
  }
  /* Switch overlay from absolute (collapses ws-main) to in-flow */
  .ws-overlay {
    position: relative;
    inset: auto;
  }
  .ws-card {
    border-width: 10px;
    padding: 50px 40px 45px;
  }
  .ws-desc {
    font-size: 17px;
  }

  /* Design section — scale decorative leaves */
  .dl {
    width: 80%;
  }

  /* Trust marquee — keep logos readable */
  .logo-item img {
    height: 30px;
  }
  .logo-item--lg img {
    height: 42px;
  }
  .logo-item--cyviz img {
    height: 42px;
  }
}

@media (max-width: 768px) {
  /* Paper BG carousel */
  .opb-slide {
    flex: 0 0 60%;
  }

  /* Design: hide the decorative grass leaves on touch devices */
  .dl-left,
  .dl-right {
    display: none;
  }

  /* Workspace CTA — tighten card for portrait tablet */
  .ws-card {
    border-width: 8px;
    padding: 44px 28px 38px;
    width: 92%;
    max-width: 92%;
  }
  .ws-buttons {
    flex-wrap: wrap;
    justify-content: center;
  }
  .ws-buttons .cta-btn {
    width: 220px;
  }
}

@media (max-width: 600px) {
  /* Paper BG — stack buttons, tighten padding */
  .opb-inner {
    padding: 50px 20px 40px;
  }
  .opb-title {
    font-size: 30px;
  }
  .opb-desc {
    font-size: 15px;
    line-height: 1.6;
  }
  .opb-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .opb-btn {
     
    padding: 0 20px;
  }
  .opb-slide {
    flex: 0 0 75%;
    height: 170px;
  }
  .opb-logo img {
    height: 26px;
  }
  .opb-logo--lg img {
    height: 34px;
  }
  .opb-logo--cyviz img {
    height: 40px;
  }

  /* Trust content tighter */
  .trust-content {
    padding: 48px 20px;
  }
  .trust-desc {
    font-size: 15px;
  }

  /* Trust marquee logos smaller on phone */
  .logo-item img {
    height: 24px;
  }
  .logo-item--lg img {
    height: 34px;
  }
  .logo-item--cyviz img {
    height: 34px;
  }

  /* Workspace CTA card */
  .ws-card {
    border-width: 6px;
    padding: 34px 22px 30px;
    width: 94%;
    max-width: 94%;
  }
  .ws-desc {
    font-size: 15px;
  }
  .ws-badge {
    font-size: 12px;
    padding: 5px 14px;
  }
  .ws-buttons {
    margin-top: 18px;
    gap: 10px;
  }
  .ws-buttons .cta-btn {
    width: 100%;
    height: 48px;
    font-size: 13px;
  }

  /* Ecosystem stacked images — switch to natural flow on phone
     so empty space from absolute positioning disappears */
  .eco-images {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .eco-img-back,
  .eco-img-front {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    transform: none;
  }
  .eco-img-back img,
  .eco-img-front img {
    height: 240px;
  }

  /* Design video overlay — give it more room at tiny sizes */
  .design-video-overlay {
    inset: 5%;
  }
}

@media (max-width: 400px) {
  .offices-hero-heading {
    font-size: 32px;
  }
  .offices-hero-description {
    font-size: 15px;
  }
  .of-title,
  .opb-title,
  .campus-title,
  .eco-title,
  .trust-title,
  .design-title,
  .ws-title,
  .showcase-title {
    font-size: 26px;
  }
  .ws-card {
    border-width: 5px;
    padding: 28px 18px 26px;
  }
  .ws-buttons .cta-btn {
    font-size: 12px;
    letter-spacing: 0.3px;
    padding: 0 16px;
  }
  .opb-slide {
    flex: 0 0 85%;
  }
}

/* Marquee on offices page — white background so side fades blend correctly */
.page-template-page-offices .marquee-wrapper {
  background: #ffffff;
}

.page-template-page-offices .marquee-wrapper {
  -webkit-mask-image: none;
  mask-image: none;
  overflow: hidden;
}

.page-template-page-offices .marquee-wrapper::before,
.page-template-page-offices .marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 200px;
  z-index: 2;
  pointer-events: none;
}

.page-template-page-offices .marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #ffffff 0%, transparent 100%);
}

.page-template-page-offices .marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #ffffff 0%, transparent 100%);
}

@media (max-width: 1100px) {
  .page-template-page-offices .footer-logo-overlap {
    top: -55px;
  }
}

@media (max-width: 900px) {
  .page-template-page-offices .footer-logo-overlap {
    top: -45px;
  }
}

@media (max-width: 480px) {
  .page-template-page-offices .footer-logo-overlap {
    top: -35px;
  }
}

/* Campus nav arrows */


.campus-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-150%);
  background: #1a1a1a;
  color: #fff;
  border: none;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: background 0.2s ease, transform 0.2s ease;
}

.campus-nav-btn:hover {
  background: #333;
  transform: translateY(-150%) scale(1.05);
}

.campus-nav-prev { left: 90px; }
.campus-nav-next { right: 90px; }

@media (max-width: 600px) {
  .campus-nav-btn { display: none; }
}
