/* =============================================================
   HMM360 — extra.css  (testimonials, Klemens, card carousel,
   service card backgrounds, about photo strip, case study strips)
   Updated 2026-06-24
   ============================================================= */

/* ---- Pill spacing fix (services page) ---- */
.pill { display: block; margin-bottom: 14px; }

/* ---- Service cards with photo silhouette background ---- */
.svc-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy-deep);
  color: white;
  padding: 32px 28px;
  border: none;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: box-shadow 0.3s ease;
}
.svc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--card-img, none);
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: 0;
  transition: opacity 0.4s ease;
}
.svc-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.2); }
.svc-card:hover::before { opacity: 0.28; }
.svc-card > * { position: relative; z-index: 1; }
.svc-card .card-icon svg { stroke: var(--orange); }
.svc-card h3 { color: white; margin-top: 10px; margin-bottom: 8px; }
.svc-card p  { color: rgba(255,255,255,0.78); }

/* Featured package cards (05. Premium) */
.svc-pkg {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy-deep);
  color: white;
  padding: 32px 28px;
  border: 2px solid var(--orange);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.svc-pkg:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0,0,0,0.18); }
.svc-pkg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--card-img, none);
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 0;
}
.svc-pkg > * { position: relative; z-index: 1; }
.svc-pkg h3 { color: white; }
.svc-pkg p  { color: rgba(255,255,255,0.78); }

/* card hover lift for regular cards too */
.card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.1); }

/* How We Run It numbered cards */
.step-card {
  background: var(--navy-deep);
  color: white;
  border-radius: var(--radius);
  padding: 28px;
  border-left: 4px solid var(--orange);
}
.step-card h3 { color: var(--orange); margin-bottom: 10px; }
.step-card p  { color: rgba(255,255,255,0.8); }

/* ---- Testimonials ---- */
.testi-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.testi-card:last-child { border-bottom: none; padding-bottom: 0; }
.testi-card.reverse { direction: rtl; }
.testi-card.reverse > * { direction: ltr; }

.testi-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.testi-imgs img:first-child {
  grid-column: 1 / -1;
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 14px;
}
.testi-imgs img:not(:first-child) {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
}

.testi-logo { margin-bottom: 14px; }
.testi-logo img { height: 36px; width: auto; object-fit: contain; }

.testi-quote {
  font-size: 1rem;
  line-height: 1.78;
  color: var(--navy-deep);
  font-style: italic;
  margin-bottom: 20px;
  border-left: 3px solid var(--orange);
  padding-left: 16px;
}
.testi-author { margin-bottom: 18px; }
.testi-author strong { display: block; font-size: 1rem; color: var(--navy-deep); font-weight: 700; }
.testi-author a.t-ig {
  color: var(--orange);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
}
.testi-author a.t-ig:hover { text-decoration: underline; }
.testi-author span { display: block; font-size: 0.8rem; color: var(--text-mid); margin-top: 2px; }

.testi-nums {
  display: flex;
  gap: 20px;
  padding: 16px 0 0;
  border-top: 1px solid rgba(0,0,0,0.07);
  flex-wrap: wrap;
}
.testi-nums > div { display: flex; flex-direction: column; }
.testi-nums strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--orange);
  font-family: 'Sora', sans-serif;
}
.testi-nums span { font-size: 0.7rem; color: var(--text-mid); }

/* ---- Steven Lim testimony chat feed ---- */
.sr-testimony-feed {
  margin-top: 28px;
  padding: 20px;
  background: #1a1a2e;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
}
.sr-tf-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
}
.sr-tf-msg {
  background: #2d2d44;
  border-radius: 10px 10px 10px 2px;
  padding: 12px 14px;
  margin-bottom: 10px;
  position: relative;
}
.sr-tf-msg:last-child { margin-bottom: 0; }
.sr-tf-msg.starred::after {
  content: '★';
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: #ffd700;
  font-size: 0.8rem;
}
.sr-tf-sender {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #7ec8e3;
  margin-bottom: 4px;
  font-family: 'Sora', sans-serif;
}
.sr-tf-msg p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.55;
  margin: 0;
}
.sr-tf-msg strong { color: #ffd700; }

/* ---- Case study photo strip (below hero) ---- */
.cs-strip-section {
  background: white;
  padding: 0;
  overflow: hidden;
  line-height: 0;
}
.cs-strip-section .photo-strip-outer { margin-bottom: 0; }
.cs-strip-section .photo-strip-outer::before {
  background: linear-gradient(to right, white, transparent);
}
.cs-strip-section .photo-strip-outer::after {
  background: linear-gradient(to left, white, transparent);
}
.cs-strip-section .photo-strip img { height: 180px; }

/* ---- Klemens story section ---- */
.klemens-section {
  background: linear-gradient(135deg, #0A1F33 0%, #1C4E7A 100%);
  padding: 88px 0;
}
.klemens-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: center;
}
.klemens-photo {
  border-radius: 20px;
  overflow: hidden;
  height: 540px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.klemens-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.klemens-text .eyebrow { color: var(--orange); }
.klemens-text h2 { color: white; font-size: 2rem; margin-bottom: 20px; line-height: 1.25; }
.klemens-text p  { color: rgba(255,255,255,0.78); line-height: 1.75; margin-bottom: 14px; }
.klemens-text blockquote {
  border-left: 3px solid var(--orange);
  padding-left: 16px;
  margin: 24px 0;
  color: rgba(255,255,255,0.9);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.65;
}
.klemens-nums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.klemens-num {
  text-align: center;
  padding: 14px 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
}
.klemens-num strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--orange);
  font-family: 'Sora', sans-serif;
}
.klemens-num span { font-size: 0.68rem; color: rgba(255,255,255,0.5); }

/* ---- About page single-row photo strip ---- */
.about-strip-section {
  background: white;
  padding: 0;
  overflow: hidden;
}
.about-strip-section .photo-strip-outer { margin-bottom: 0; }
.about-strip-section .photo-strip-outer::before {
  background: linear-gradient(to right, white, transparent);
}
.about-strip-section .photo-strip-outer::after {
  background: linear-gradient(to left, white, transparent);
}
.about-strip-section .photo-strip img { height: 200px; }

/* ---- Client card carousel (Portfolio) ---- */
.more-clients { padding: 64px 0 72px; }
.ccl-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 4px 12px;
}
.ccl-track::-webkit-scrollbar { display: none; }
.ccl-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  display: block;
  color: inherit;
}
.ccl-card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(0,0,0,0.13); }
.ccl-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.ccl-thumb-logo {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0A1F33, #1C4E7A);
}
.ccl-thumb-logo img {
  max-width: 120px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.ccl-body { padding: 14px 16px; }
.ccl-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--orange);
  margin-bottom: 5px;
}
.ccl-card h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin: 0 0 5px;
  font-family: 'Sora', sans-serif;
}
.ccl-card p {
  font-size: 0.78rem;
  color: var(--text-mid);
  margin: 0 0 8px;
  line-height: 1.5;
}
.ccl-result {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy-deep);
  padding-top: 8px;
  border-top: 1px solid rgba(0,0,0,0.07);
}
.ccl-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.ccl-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--navy-deep);
  border: none; color: white;
  font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
  line-height: 1;
}
.ccl-btn:hover { background: var(--orange); }

/* Portfolio story expansion */
.cs-story {
  background: var(--cream);
  border-radius: 0 0 16px 16px;
  padding: 36px 36px 32px;
  border-top: 3px solid var(--orange);
  margin-top: -8px;
}
.cs-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.cs-story p { color: var(--text-mid); line-height: 1.75; margin-bottom: 10px; font-size: 0.9rem; }
.cs-story p:last-child { margin-bottom: 0; }
.cs-story-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cs-story-imgs img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; }
.cs-story-imgs img:first-child { grid-column: 1/-1; height: 170px; }

/* Featured case study cards on portfolio */
.work-card-lg {
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  text-decoration: none;
  display: block;
  color: inherit;
  transition: box-shadow 0.25s ease;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.work-card-lg:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.14); }
.work-card-lg img { width: 100%; height: 240px; object-fit: cover; display: block; }
.work-card-lg .work-body { padding: 24px; background: white; }
.work-card-lg .work-body h3 { margin-bottom: 6px; }

/* ---- Bottom brand CTA section ---- */
.brand-cta-section {
  background: linear-gradient(135deg, #0A1F33 0%, #1C4E7A 100%);
  padding: 72px 0;
  text-align: center;
}
.brand-cta-section .eyebrow { color: var(--orange); }
.brand-cta-section h2 { color: white; font-size: 1.9rem; margin-bottom: 12px; }
.brand-cta-section p  { color: rgba(255,255,255,0.72); margin-bottom: 10px; }
.brand-cta-section .cta-note {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin-top: 24px;
  margin-bottom: 0;
}

/* ---- Responsive — 860px ---- */
@media (max-width: 860px) {
  .testi-card, .testi-card.reverse { grid-template-columns: 1fr; direction: ltr; gap: 28px; }
  .testi-card { padding: 40px 0; }
  .klemens-grid { grid-template-columns: 1fr; gap: 32px; }
  .klemens-photo { height: 280px; }
  .klemens-nums { grid-template-columns: repeat(3, 1fr); }
  .cs-story-grid { grid-template-columns: 1fr; }
  .ccl-card { flex: 0 0 220px; }
  .sr-testimony-feed { margin-top: 20px; }
  .cs-strip-section .photo-strip img { height: 140px; }
}

/* ---- Responsive — 600px ---- */
@media (max-width: 600px) {
  .testi-imgs img:first-child { height: 200px; }
  .testi-imgs img:not(:first-child) { height: 130px; }
  .testi-nums { gap: 10px; flex-wrap: wrap; }
  .testi-nums > div { min-width: 80px; }
  .testi-card { padding: 32px 0; gap: 20px; }
  .klemens-num strong { font-size: 1.1rem; }
  .klemens-nums { gap: 8px; }
  .klemens-photo { height: 240px; }
  .cs-story { padding: 20px; }
  .ccl-card { flex: 0 0 190px; }
  .ccl-thumb, .ccl-thumb-logo { height: 130px; }
  .sr-tf-msg p { font-size: 0.75rem; }
}

/* ---- Responsive — 480px ---- */
@media (max-width: 480px) {
  .testi-nums { gap: 8px; }
  .testi-nums strong { font-size: 0.95rem; }
  .klemens-nums { grid-template-columns: 1fr 1fr; gap: 8px; }
  .testi-imgs { gap: 6px; }
  .testi-imgs img:first-child { height: 180px; }
  .testi-imgs img:not(:first-child) { height: 110px; }
  .ccl-card { flex: 0 0 170px; }
  .ccl-thumb, .ccl-thumb-logo { height: 115px; }
  .ccl-body { padding: 10px 12px; }
}
