/* ============================================================
   Investment Page — assets/css/investment.css
   Companion stylesheet for page-investment.php
   Inherits global CSS variables from the main stylesheet
   ============================================================ */

/* ── Hero ───────────────────────────────────────────────── */
.inv-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

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

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

.inv-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(7, 31, 46, 0.55) 0%,
    rgba(7, 31, 46, 0.82) 50%,
    rgba(7, 31, 46, 0.97) 100%
  );
}

/* Diagonal accent stripe */
.inv-hero__overlay::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 40%, var(--accent-dark) 100%);
  opacity: 0.7;
}

.inv-hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: 72px;
  padding-top: 120px;
  max-width: 780px;
}

.inv-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.badge-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: inv-pulse 2.2s ease-in-out infinite;
}

@keyframes inv-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50%       { box-shadow: 0 0 0 8px transparent; }
}

.inv-hero__h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.18;
  margin: 0 0 22px;
  letter-spacing: -0.02em;
}

.inv-hero__sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  margin: 0;
  max-width: 560px;
}

/* ── Section Pad (shared) ───────────────────────────────── */
.section-pad {
  padding: 96px 0;
}

/* ── Intro Grid ─────────────────────────────────────────── */
.inv-intro {
  background: var(--white);
}

.inv-intro-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 72px;
  align-items: start;
}

/* ── Text Column ────────────────────────────────────────── */
.section-label {
  font-family: var(--font-body);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 16px;
}

.section-h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.inv-subhead {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-light);
  margin: 0 0 22px;
  line-height: 1.5;
}

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

/* ── Process List ───────────────────────────────────────── */
.inv-process {
  margin: 36px 0 32px;
}

.inv-process-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}

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

.inv-process-item:last-child {
  border-bottom: none;
}

.inv-process-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-top: 1px;
}

.inv-process-item p {
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--text);
  line-height: 1.7;
  margin: 0;
}

/* ── Distressed Section ─────────────────────────────────── */
.inv-distressed {
  background: var(--primary-mid);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  margin: 32px 0;
  position: relative;
  overflow: hidden;
}

.inv-distressed::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
  pointer-events: none;
}

.inv-distressed-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 12px;
}

.inv-distressed p {
  font-family: var(--font-body);
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
  margin: 0;
}

/* ── Blockquote ─────────────────────────────────────────── */
.inv-quote {
  position: relative;
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  background: var(--off-white);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: 32px 0 36px;
}

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

.inv-quote p {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--primary);
  line-height: 1.65;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ── CTA Button ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: all var(--tr);
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--primary-dark);
  padding: 14px 28px;
  box-shadow: var(--shadow-accent);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(0, 212, 255, 0.5);
}

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

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

/* ── Sticky Sidebar Card ─────────────────────────────────── */
.inv-sidebar {
  position: sticky;
  top: 32px;
}

.inv-sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.inv-sidebar-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.inv-sidebar-body {
  padding: 28px 28px 32px;
}

.inv-sidebar-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 10px;
}

.inv-sidebar-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
  margin: 0 0 18px;
}

.inv-sidebar-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.inv-stat {
  background: var(--off-white);
  border-radius: var(--r-md);
  padding: 14px 16px;
  text-align: center;
}

.inv-stat-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.inv-stat-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.inv-sidebar-divider {
  height: 1px;
  background: var(--border-light);
  margin: 0 0 22px;
}

.inv-sidebar-note {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 20px;
}

.inv-sidebar-note strong {
  color: var(--primary);
}

.inv-sidebar .btn--primary {
  width: 100%;
  justify-content: center;
}

/* ── Reveal animation (JS-powered) ─────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .inv-intro-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .inv-sidebar {
    position: static;
  }

  .inv-sidebar-card {
    max-width: 540px;
  }
}

@media (max-width: 640px) {
  .section-pad {
    padding: 64px 0;
  }

  .inv-hero__content {
    padding-bottom: 52px;
  }

  .inv-distressed {
    padding: 28px 22px;
  }

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