/* ============================================================
   INTENDO — B2B Page Styles (corporate.html & government.html)
   Layout language inspired by enterprise caterers (Sodexo,
   Compass Group): full-bleed photo heroes, image-led service
   cards, credential strips — finished with the site's glass
   accents and Airbnb white/red base.
   Depends on: css/style.css (loaded first).
   ============================================================ */

/* ────────────────────────────────────────
   B2B HERO — full-bleed photo + glass panel
──────────────────────────────────────── */
.b2b-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.b2b-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.b2b-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Dark gradient so white text stays readable over any photo */
.b2b-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10,10,12,0.72) 0%, rgba(10,10,12,0.35) 60%, rgba(10,10,12,0.15) 100%);
}
.b2b-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6rem 2rem;
  width: 100%;
}
/* The signature glass panel — Apple-style frosted card over the photo */
.b2b-hero-panel {
  max-width: 620px;
  padding: 2.5rem;
}
.b2b-hero-panel .eyebrow { color: #ffb3c0; }
.b2b-hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  color: white;
  margin-bottom: 1rem;
}
.b2b-hero-sub {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}
.b2b-hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }

/* Glass stat chips floating along the hero bottom edge */
.b2b-hero-stats {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: -3rem auto 0;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.b2b-stat {
  padding: 1.4rem 1.25rem;
  text-align: center;
}
.b2b-stat-num {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--red);
  display: block;
}
.b2b-stat-lbl {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 600;
  margin-top: 0.15rem;
}

/* ────────────────────────────────────────
   SERVICE CARDS — image-led, Compass style
──────────────────────────────────────── */
.svc-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.svc-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}
.svc-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.svc-card-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--off-white);
}
.svc-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.svc-card:hover .svc-card-img img { transform: scale(1.05); }
/* Glass label sitting on the photo — small liquid-glass moment */
.svc-card-tag {
  position: absolute;
  bottom: 12px; left: 12px;
}
.svc-card-body { padding: 1.5rem; }
.svc-card-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.svc-card-desc {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.svc-card-list { margin-bottom: 1.25rem; }
.svc-card-list li {
  font-size: 0.83rem;
  color: var(--text-light);
  padding: 0.18rem 0;
}

/* ────────────────────────────────────────
   SPLIT SECTION — photo + content (alternating)
──────────────────────────────────────── */
.split {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split-media { position: relative; }
.split-media img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-xl);
}
/* Small glass caption card overlapping the photo */
.split-media-card {
  position: absolute;
  bottom: -1.25rem;
  right: -1rem;
  padding: 1rem 1.4rem;
  max-width: 260px;
}
.split-media-card-title { font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; }
.split-media-card-sub { font-size: 0.75rem; color: var(--muted); }
.split-body { color: var(--text-light); font-size: 1rem; line-height: 1.75; margin-bottom: 1.25rem; }
.split-checklist { margin: 1.25rem 0 1.75rem; }
.split-checklist li {
  display: flex;
  gap: 0.6rem;
  padding: 0.45rem 0;
  font-size: 0.92rem;
  color: var(--text);
}
.split-checklist li::before { content: "✓"; color: var(--green); font-weight: 800; }

/* ────────────────────────────────────────
   PROCESS — how engagements work
──────────────────────────────────────── */
.process-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.process-step {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  position: relative;
}
.process-num {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--red-light);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  margin-bottom: 0.9rem;
}
.process-title { font-family: var(--font-head); font-weight: 700; font-size: 0.98rem; margin-bottom: 0.35rem; }
.process-desc { font-size: 0.83rem; color: var(--muted); line-height: 1.55; }

/* ────────────────────────────────────────
   COMPLIANCE / CREDENTIALS STRIP
──────────────────────────────────────── */
.cred-strip {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.cred-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.4rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.cred-icon { font-size: 1.75rem; flex-shrink: 0; }
.cred-title { font-family: var(--font-head); font-weight: 700; font-size: 0.92rem; }
.cred-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.5; margin-top: 0.15rem; }

/* ────────────────────────────────────────
   SECTOR / SEGMENT PILLS  (govt page)
──────────────────────────────────────── */
.segment-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.segment-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  background: white;
  transition: box-shadow 0.2s;
}
.segment-card:hover { box-shadow: var(--shadow-md); }
.segment-icon { font-size: 1.9rem; display: block; margin-bottom: 0.7rem; }
.segment-title { font-family: var(--font-head); font-weight: 700; font-size: 1rem; margin-bottom: 0.35rem; }
.segment-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

/* ────────────────────────────────────────
   B2B CTA BAND — photo bg + glass panel
──────────────────────────────────────── */
.b2b-cta {
  position: relative;
  overflow: hidden;
  padding: 5rem 2rem;
}
.b2b-cta-bg { position: absolute; inset: 0; }
.b2b-cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.b2b-cta-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(12,12,14,0.55);
}
.b2b-cta-panel {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 2.5rem;
}
.b2b-cta-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: white;
  margin-bottom: 0.75rem;
}
.b2b-cta-sub { color: rgba(255,255,255,0.85); margin-bottom: 1.75rem; font-size: 1rem; }

/* Scroll reveal for B2B components (observed by js/main.js) */
.svc-card, .process-step, .cred-card, .segment-card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.svc-card.visible, .process-step.visible, .cred-card.visible, .segment-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ────────────────────────────────────────
   RESPONSIVE
──────────────────────────────────────── */
@media (max-width: 1024px) {
  .svc-grid, .segment-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid, .cred-strip { grid-template-columns: repeat(2, 1fr); }
  .b2b-hero-stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 3rem; }
  .split-media-card { right: 0.5rem; }
}
@media (max-width: 768px) {
  .b2b-hero { min-height: auto; }
  .b2b-hero-inner { padding: 4rem 1.25rem; }
  .b2b-hero-panel { padding: 1.75rem; }
  .b2b-hero-stats { padding: 0 1.25rem; margin-top: -2rem; }
  .svc-grid, .segment-grid, .process-grid, .cred-strip, .split { padding-left: 1.25rem; padding-right: 1.25rem; }
}
@media (max-width: 560px) {
  .svc-grid, .segment-grid, .process-grid, .cred-strip { grid-template-columns: 1fr; }
  .b2b-hero-stats { grid-template-columns: 1fr 1fr; }
}
