/* ============================================================
   FOUNDSTONE INFRA — Tenancy Management Page Styles
   Extends: css/style.css + css/service-page.css
   ============================================================ */

/* ============================================================
   A. HERO — custom background & vertical text decoration
   ============================================================ */
.tm-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?w=1800&q=85&auto=format&fit=crop');
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.05);
  transition: transform 10s ease;
}
#svc-hero.loaded .tm-hero-bg { transform: scale(1); }

/* Vertical decorative text */
.tm-vert-text {
  position: absolute;
  right: 2.5rem;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center center;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: rgba(255,255,255,0.12);
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
}

/* ============================================================
   B. INTRODUCTION — image RIGHT layout (reverse from PM page)
   ============================================================ */
#tm-intro {
  background: var(--ivory);
  padding: 7.5rem 0;
  overflow: hidden;
}
.tm-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.tm-intro-text { order: 1; }
.tm-intro-img  { order: 2; }

.tm-intro-h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  color: var(--charcoal);
  line-height: 1.2;
  margin: 0.5rem 0 1.5rem;
}
.tm-intro-h2 em { color: var(--forest); font-style: italic; }

.tm-intro-body {
  font-size: 1.02rem;
  color: #4a4a4a;
  line-height: 1.86;
  margin-bottom: 1.2rem;
}

.tm-intro-highlights {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.5rem;
}
.tm-highlight-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--charcoal);
}

/* Image with floating badge */
.tm-intro-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: visible;
}
.tm-intro-img-wrap img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  transition: transform 0.8s ease;
}
.tm-intro-img-wrap:hover img { transform: scale(1.03); }

/* Copper-frame accent */
.tm-intro-img-wrap::before {
  content: '';
  position: absolute;
  top: -1.25rem;
  right: -1.25rem;
  left: 1.25rem;
  bottom: 1.25rem;
  border: 2px solid var(--copper);
  border-radius: 22px;
  opacity: 0.28;
  pointer-events: none;
  z-index: -1;
}

/* Floating badge */
.tm-intro-badge {
  position: absolute;
  bottom: 2rem;
  left: -1.5rem;
  background: var(--charcoal);
  border: 1px solid rgba(197,139,85,0.35);
  border-radius: 14px;
  padding: 1rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: 0 12px 36px rgba(0,0,0,0.25);
}
.tm-badge-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.tm-badge-value {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--copper-lt);
}

/* ============================================================
   C. OUR TENANCY SERVICES — editorial 2×2 card grid (beige bg)
   ============================================================ */
#tm-services {
  background: var(--beige);
  padding: 7.5rem 0;
}
.tm-services-h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.2vw, 3rem);
  color: var(--charcoal);
  margin-top: 0.4rem;
}
.tm-services-h2 em { color: var(--forest); font-style: italic; }
.tm-services-sub {
  font-size: 1rem;
  color: #666;
  max-width: 500px;
  margin: 0.9rem auto 0;
  line-height: 1.72;
}

.tm-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.tm-svc-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.38s cubic-bezier(0.4,0,0.2,1), box-shadow 0.38s ease;
  display: flex;
  flex-direction: column;
}
.tm-svc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.13);
}
.tm-svc-card-img {
  position: relative;
  height: 260px;
  overflow: hidden;
  flex-shrink: 0;
}
.tm-svc-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.tm-svc-card:hover .tm-svc-card-img img { transform: scale(1.07); }
.tm-svc-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,40,32,0.5) 0%, transparent 60%);
}
.tm-svc-card-content {
  padding: 1.8rem 2rem 2rem;
  flex: 1;
}
.tm-svc-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(52,74,61,0.08);
  border: 1px solid rgba(52,74,61,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
  margin-bottom: 1rem;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.tm-svc-card:hover .tm-svc-icon {
  background: rgba(197,139,85,0.12);
  border-color: rgba(197,139,85,0.35);
  color: var(--copper);
}
.tm-svc-card-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--charcoal);
  margin-bottom: 0.65rem;
  font-weight: 600;
  line-height: 1.3;
}
.tm-svc-card-content p {
  font-size: 0.98rem;
  color: #555;
  line-height: 1.72;
  margin: 0;
}

/* ============================================================
   D. AUDIENCE BLOCKS — forest green, 3-column glass cards
   ============================================================ */
#tm-audience {
  position: relative;
  padding: 7.5rem 0;
  overflow: hidden;
}
.tm-audience-bg {
  position: absolute;
  inset: 0;
  background: var(--forest);
}
/* Decorative circle accent */
#tm-audience::after {
  content: '';
  position: absolute;
  bottom: -100px; right: -100px;
  width: 500px; height: 500px;
  border: 1px solid rgba(197,139,85,0.1);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}
.tm-audience-header {
  text-align: center;
  margin-bottom: 4rem;
}
.tm-audience-h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.2vw, 3rem);
  color: var(--white);
  margin-top: 0.4rem;
  line-height: 1.22;
}
.tm-audience-h2 em { color: var(--copper); font-style: italic; }

.tm-audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  position: relative;
  z-index: 2;
  align-items: stretch;
}
.tm-audience-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 2.5rem 2rem 2.2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.38s ease, border-color 0.38s ease, background 0.38s ease;
}
.tm-audience-card:hover {
  transform: translateY(-6px);
  border-color: rgba(197,139,85,0.45);
  background: rgba(255,255,255,0.09);
}
/* Featured (centre) card subtle elevation */
.tm-audience-card--featured {
  background: rgba(197,139,85,0.1);
  border-color: rgba(197,139,85,0.3);
}
.tm-audience-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(197,139,85,0.14);
  border: 1px solid rgba(197,139,85,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--copper);
  margin-bottom: 1.4rem;
  transition: background 0.3s ease;
  flex-shrink: 0;
}
.tm-audience-card:hover .tm-audience-icon { background: rgba(197,139,85,0.26); }
.tm-audience-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 0.9rem;
  width: 100%;
}
.tm-audience-tag--copper { color: var(--copper-lt); border-color: rgba(197,139,85,0.3); }
.tm-audience-card-h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
}
.tm-audience-card p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.72;
  margin: 0;
  flex: 1;
}

/* ============================================================
   E. PROCESS — 4-step vertical timeline (charcoal bg)
   ============================================================ */
#tm-process {
  background: var(--charcoal);
  padding: 7.5rem 0;
  position: relative;
  overflow: hidden;
}
#tm-process::before {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 400px; height: 400px;
  border: 1px solid rgba(197,139,85,0.07);
  border-radius: 50%;
  pointer-events: none;
}
.tm-process-header {
  text-align: center;
  margin-bottom: 5rem;
}
.tm-process-h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.2vw, 3rem);
  color: var(--white);
  margin-top: 0.4rem;
  line-height: 1.22;
}
.tm-process-h2 em { color: var(--copper); font-style: italic; }
.tm-process-sub {
  font-size: 1.02rem;
  color: rgba(255,255,255,0.6);
  max-width: 480px;
  margin: 1rem auto 0;
  line-height: 1.72;
}

/* Vertical timeline */
.tm-timeline {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tm-timeline-line {
  position: absolute;
  left: 28px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: linear-gradient(to bottom, var(--copper), rgba(197,139,85,0.15));
  pointer-events: none;
}
.tm-timeline-step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 2.2rem;
  align-items: flex-start;
  padding-bottom: 3.5rem;
  position: relative;
}
.tm-timeline-step:last-child { padding-bottom: 0; }
.tm-step-num {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--copper);
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 8px rgba(197,139,85,0.15);
  position: relative;
  z-index: 1;
}
.tm-step-body {
  padding-top: 0.9rem;
}
.tm-step-body h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 0.65rem;
  font-weight: 600;
  line-height: 1.3;
}
.tm-step-body p {
  font-size: 0.98rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.74;
  margin: 0;
}

/* F. WHY FOUNDSTONE — reuse svc-why from service-page.css */
#tm-why {
  background: var(--forest);
  padding: 7.5rem 0;
  position: relative;
  overflow: hidden;
}
#tm-why::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border: 1px solid rgba(197,139,85,0.1);
  border-radius: 50%;
  pointer-events: none;
}

/* ============================================================
   G. FINAL CTA — Photo background
   ============================================================ */
#tm-cta {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.tm-cta-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?w=1800&q=85&auto=format&fit=crop');
  background-size: cover;
  background-position: center 60%;
  transform: scale(1.03);
  transition: transform 0.6s ease;
}
#tm-cta:hover .tm-cta-bg { transform: scale(1); }
.tm-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(36,53,41,0.97) 0%,
    rgba(36,53,41,0.82) 55%,
    rgba(36,53,41,0.38) 100%
  );
}
.tm-cta-content {
  position: relative;
  z-index: 2;
  padding: 6rem 0;
  width: 100%;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .tm-audience-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .tm-intro-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .tm-intro-text { order: 1; }
  .tm-intro-img  { order: 2; }
  .tm-intro-img-wrap img { height: 420px; }
  .tm-intro-img-wrap::before { display: none; }
  .tm-intro-badge { left: 1rem; bottom: 1rem; }
  .tm-services-grid { grid-template-columns: 1fr; }
  .tm-audience-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .tm-timeline { max-width: 100%; }
}

@media (max-width: 768px) {
  #tm-intro, #tm-services, #tm-audience, #tm-process, #tm-why { padding: 5rem 0; }
  .tm-intro-highlights { grid-template-columns: 1fr; }
  .tm-services-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .tm-svc-card-img { height: 220px; }
  .tm-audience-grid { grid-template-columns: 1fr; }
  .tm-cta-content { padding: 4rem 0; }
  .tm-vert-text { display: none; }
}

@media (max-width: 640px) {
  .tm-intro-img-wrap img { height: 320px; }
  .tm-timeline-line { left: 22px; }
  .tm-timeline-step { grid-template-columns: 46px 1fr; gap: 1.4rem; }
  .tm-step-num { width: 46px; height: 46px; font-size: 0.88rem; }
}
