
/* =============================================
   ORCHESTIFY v1.1 — Additional Components
   Hero redesign · Process Nopan · Case Cards
   WHITE THEME
============================================= */

/* ── Hero v2: clean white + subtle grid ── */
:root {
  --c-navy:    #FFFFFF;
  --c-blue:    #1863AF;
  --c-blue-d:  #124F96;
}

.hero {
  background: var(--c-white);
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
}

/* Light grid lines */
.hero__circuit {
  position: absolute;
  pointer-events: none;
  opacity: 0.07;
  z-index: 0;
}
.hero__circuit--tl {
  top: 0; left: 0;
  width: 520px; height: 320px;
  background:
    linear-gradient(90deg, rgba(24,99,175,1) 1px, transparent 1px),
    linear-gradient(0deg,  rgba(24,99,175,1) 1px, transparent 1px);
  background-size: 80px 80px;
  clip-path: polygon(0 0, 100% 0, 100% 60%, 60% 100%, 0 100%);
}
.hero__circuit--br {
  bottom: 0; right: 0;
  width: 420px; height: 280px;
  background:
    linear-gradient(90deg, rgba(24,99,175,1) 1px, transparent 1px),
    linear-gradient(0deg,  rgba(24,99,175,1) 1px, transparent 1px);
  background-size: 60px 60px;
  clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%, 0 40%);
}

/* Hero content — fully centred */
.hero__content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Eyebrow label centred */
.hero__eyebrow {
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--c-blue);
  text-transform: uppercase;
  margin-bottom: 28px;
  position: relative; z-index: 1;
}
.hero__eyebrow-dash {
  display: inline-block;
  width: 28px; height: 3px;
  background: var(--c-blue);
  border-radius: 2px;
}

/* Hero headline — CENTRED, stacked lines, no overflow */
.hero__headline {
  font-family: 'Urbanist', sans-serif;
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--c-text);
  margin-bottom: 32px;
  position: relative; z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  overflow: visible;
}

/* Each word on its own line */
.hl-line {
  display: block;
  white-space: nowrap;
  line-height: 1.08;
}
.hl-white { color: var(--c-text); }
.hl-blue  {
  color: #1863AF !important;
  text-shadow: none;
}

/* Keep old .hl class working too */
.hero__headline .hl {
  color: #1863AF !important;
  text-shadow: none;
}

.hero__sub {
  font-size: 1.125rem;
  color: var(--c-muted);
  max-width: 580px;
  line-height: 1.8;
  margin-bottom: 44px;
  position: relative; z-index: 1;
  text-align: center;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 72px;
  justify-content: center;
  position: relative; z-index: 1;
}

/* Override primary button to blue */
.btn-primary {
  background: var(--c-blue) !important;
  color: #fff !important;
  box-shadow: 0 0 28px rgba(24,99,175,0.35) !important;
}
.btn-primary:hover {
  background: var(--c-blue-d) !important;
  box-shadow: 0 0 44px rgba(24,99,175,0.55) !important;
  color: #fff !important;
}

/* Client logos strip */
.hero__clients {
  position: relative; z-index: 1;
  padding-top: 40px;
  border-top: 1px solid var(--c-border);
}
.hero__clients-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 24px;
}
.hero__clients-logos {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.hero__client-logo {
  height: 32px;
  display: flex;
  align-items: center;
  opacity: 0.45;
  transition: opacity var(--transition), filter var(--transition);
  filter: none;
}
.hero__client-logo:hover {
  opacity: 0.8;
}
.hero__client-logo img {
  height: 100%;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}
.hero__client-logo--gwa img {
  max-width: 80px;
}

/* ── Process Nopan style ── */
.process-nopan {
  max-width: 900px;
  margin: 0 auto;
}

/* The horizontal numbered bar */
.process-nopan__bar {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 56px;
  padding-top: 28px;
}

/* Connecting line behind chips */
.process-nopan__line {
  position: absolute;
  top: 14px; /* vertically centres with chip */
  left: 28px;
  right: 28px;
  height: 1px;
  background: var(--c-blue);
  opacity: 0.3;
  z-index: 0;
}

/* Each numbered node */
.process-nopan__node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

/* The numbered chip — Nopan trapezoid style */
.process-nopan__chip {
  width: 44px; height: 28px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), border-color var(--transition);
}
.process-nopan__chip span {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--c-muted);
  letter-spacing: 0.05em;
  transition: color var(--transition);
}

/* Active / hover state — blue fill */
.process-nopan__node.is-active .process-nopan__chip,
.process-nopan__node:hover    .process-nopan__chip {
  background: var(--c-blue);
  border-color: var(--c-blue);
}
.process-nopan__node.is-active .process-nopan__chip span,
.process-nopan__node:hover    .process-nopan__chip span {
  color: #fff;
}
.process-nopan__node.is-active .process-nopan__node-label,
.process-nopan__node:hover    .process-nopan__node-label {
  color: var(--c-white);
}

.process-nopan__node-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--c-muted);
  text-align: center;
  transition: color var(--transition);
  white-space: nowrap;
}

/* Content panels below */
.process-nopan__panels { position: relative; min-height: 200px; }

.process-nopan__panel {
  display: none;
  animation: fadePanel 0.35s ease;
}
.process-nopan__panel.is-active { display: block; }

@keyframes fadePanel {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.process-nopan__panel h3 { margin-bottom: 16px; color: var(--c-text); }
.process-nopan__panel .body-lg { color: var(--c-muted); max-width: 640px; margin-bottom: 28px; }

.process-nopan__tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Badge override — brand blue */
.badge-cyan {
  background: rgba(24,99,175,0.08) !important;
  color: #1863AF !important;
  border: 1px solid rgba(24,99,175,0.2) !important;
}

/* ── Real Case Study Cards ── */
.case-card-real {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.case-card-real:hover {
  border-color: rgba(24,99,175,0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(24,99,175,0.08);
}

.case-card-real__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.case-card-real__logo-wrap {
  height: 36px;
  display: flex;
  align-items: center;
  filter: none;
  opacity: 0.85;
}
.case-card-real__logo {
  height: 100%;
  width: auto;
  max-width: 110px;
  object-fit: contain;
}
.case-card-real__logo-wrap--text { filter: none; opacity: 1; }
.case-card-real__logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: -0.02em;
}

.case-card-real__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.case-card-real__title {
  color: var(--c-text);
  margin: 0;
}

.case-card-real__desc {
  color: var(--c-muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

.case-card-real__items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid var(--c-border);
  padding-top: 20px;
}
.case-card-real__items li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.case-card-real__items li svg {
  color: var(--c-blue);
  flex-shrink: 0;
  margin-top: 3px;
}
.case-card-real__items li div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.case-card-real__items strong {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-text);
}
.case-card-real__items span {
  font-size: 0.8125rem;
  color: var(--c-muted);
  line-height: 1.6;
}

/* Badge colour overrides per project type */
.badge-violet {
  background: rgba(91,79,217,0.08) !important;
  color: #5B4FD9 !important;
  border: 1px solid rgba(91,79,217,0.2) !important;
}
.badge-green {
  background: rgba(22,163,74,0.08) !important;
  color: #16A34A !important;
  border: 1px solid rgba(22,163,74,0.2) !important;
}

/* ── Responsive additions ── */
@media (max-width: 768px) {
  .process-nopan__bar { flex-wrap: wrap; gap: 16px; }
  .process-nopan__line { display: none; }
  .hero__clients-logos { gap: 24px; }
  .hero__client-logo { height: 24px; }
}

/* ── Elementor Integration Fixes ── */

/* Remove default WP padding inside Elementor pages */
.elementor-page .site-main,
.elementor-page-wrap {
  padding: 0;
  margin: 0;
}

/* Full-width sections inside Elementor */
.elementor-section.elementor-section-full_width {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Make Elementor inherit our font stack */
.elementor-widget-container {
  font-family: var(--font-body);
  color: var(--c-text);
}

/* Elementor heading widgets use our display font */
.elementor-widget-heading .elementor-heading-title {
  font-family: var(--font-display);
}

/* Our background color inside Elementor editor preview */
.elementor-editor-active body,
body.elementor-page {
  background-color: var(--c-bg);
}

/* Fix: Elementor canvas pages don't need the 72px top padding */
.elementor-canvas-page .site-main {
  padding-top: 0;
}

/* ── Logo Updates v1.3 ── */

/* Nav SVG logo image */
.nav__logo-img {
  height: 38px;
  width: auto;
  max-width: 182px;
  object-fit: contain;
  display: block;
}

/* Footer logo */
.footer__logo-link { display: inline-flex; align-items: center; margin-bottom: 16px; }
.footer__logo-img {
  height: 32px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  opacity: 1;
}

/* ── Client logos — CENTRED ── */
.hero__clients {
  text-align: center;
}
.hero__clients-label {
  text-align: center;
}
.hero__clients-logos {
  justify-content: center;   /* centre all 5 logos */
  gap: 48px;
  flex-wrap: wrap;
}

/* All client logos same height, natural colors on white bg */
.hero__client-logo {
  height: 28px;
  opacity: 0.5;
  filter: none;
  transition: opacity 0.25s ease;
  display: flex;
  align-items: center;
}
.hero__client-logo:hover {
  opacity: 0.85;
}
.hero__client-logo img {
  height: 100%;
  width: auto;
  max-width: 110px;
  object-fit: contain;
}

/* Remove the old gwa-specific override */
.hero__client-logo--gwa img { max-width: 110px; }

/* ── Global blue #1863AF ripple through ── */
:root {
  --c-accent:  #1863AF;
  --c-blue:    #1863AF;
  --c-blue-d:  #124F96;
}

/* Button primary — brand blue */
.btn-primary {
  background: #1863AF !important;
  color: #fff !important;
  box-shadow: 0 0 20px rgba(24,99,175,0.2) !important;
}
.btn-primary:hover {
  background: #124F96 !important;
  box-shadow: 0 0 32px rgba(24,99,175,0.3) !important;
}

/* Eyebrow dash + text */
.hero__eyebrow { color: #1863AF; }
.hero__eyebrow-dash { background: #1863AF; }

/* Process chips active */
.process-nopan__node.is-active .process-nopan__chip,
.process-nopan__node:hover    .process-nopan__chip {
  background: #1863AF;
  border-color: #1863AF;
}

/* Badge cyan → brand blue */
.badge-cyan {
  background: rgba(24,99,175,0.08) !important;
  color: #1863AF !important;
  border: 1px solid rgba(24,99,175,0.2) !important;
}

/* Case card hover border */
.case-card-real:hover {
  border-color: rgba(24,99,175,0.3);
}
.case-card-real__items li svg { color: #1863AF; }

/* Nav hover accent */
.nav__list .current-menu-item a,
.nav__list a:hover { color: #1863AF; }


/* ── Case Card Thumbnails ── */
.case-card-real {
  padding: 0;
  overflow: hidden;
}
.case-card-real__thumb {
  width: 100%;
  height: 190px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.case-card-real__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.case-card-real:hover .case-card-real__thumb img {
  transform: scale(1.04);
}
.case-card-real__body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}


/* ══════════════════════════════════════════════════
   O-HERO — Isolated hero component (prefix o-hero)
   Matches Heroham.png design exactly
   Left: text content | Right: 3D cloud illustration
══════════════════════════════════════════════════ */

/* Override site-main top padding only for this page */
.site-main:has(.o-hero) { padding-top: 0; }

.o-hero {
  background: #FFFFFF;
  padding-top: 72px;
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Subtle dot-grid atmosphere */
.o-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(24,99,175,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24,99,175,0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 90% 90% at 25% 50%, black 20%, transparent 80%);
  pointer-events: none;
}

.o-hero__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 52% 48%;
  align-items: center;
  gap: 64px;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* LEFT */
.o-hero__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-right: 0;
}

.o-hero__headline {
  font-family: 'Urbanist', sans-serif;
  font-size: clamp(2.6rem, 4.2vw, 4.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--c-text);
  margin: 0 0 24px;
}

.o-hero__accent {
  color: #1863AF;
  text-shadow: none;
}

.o-hero__sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--c-muted);
  max-width: 400px;
  margin: 0 0 36px;
}

.o-hero__actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.o-hero__btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #1863AF;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 0 28px rgba(24,99,175,0.4);
  transition: background 0.25s, box-shadow 0.25s, transform 0.25s;
}
.o-hero__btn-primary:hover {
  background: #124F96;
  box-shadow: 0 0 44px rgba(24,99,175,0.6);
  transform: translateY(-2px);
  color: #fff;
}

.o-hero__btn-ghost {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--c-muted);
  text-decoration: none;
  transition: color 0.2s;
  background: none;
  border: none;
}
.o-hero__btn-ghost:hover { color: var(--c-text); }

/* RIGHT */
.o-hero__right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.o-hero__right::before {
  content: '';
  position: absolute;
  inset: -80px;
  background: radial-gradient(ellipse 65% 65% at 55% 45%,
    rgba(24,99,175,0.06) 0%, transparent 68%);
  pointer-events: none;
}

.o-hero__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
  object-fit: contain;
}

/* Responsive */
@media (max-width: 900px) {
  .o-hero { min-height: auto; }
  .o-hero__container {
    grid-template-columns: 1fr;
    padding: 60px 24px 48px;
    gap: 44px;
  }
  .o-hero__left { align-items: center; padding-right: 0; }
  .o-hero__headline { text-align: center; font-family: 'Urbanist', sans-serif; font-size: clamp(2.2rem, 7vw, 3.8rem); }
  .o-hero__sub { text-align: center; max-width: 100%; }
  .o-hero__actions { justify-content: center; }
  .o-hero__right { justify-content: center; order: -1; }
  .o-hero__img { max-width: 460px; margin: 0 auto; }
}
@media (max-width: 520px) {
  .o-hero__img { max-width: 300px; }
}

/* ══════════════════════════════════════════
   TESTIMONIAL AVATAR PHOTOS
   Real SVG portrait photos replace placeholder
══════════════════════════════════════════ */

.testimonial-card__avatar--photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(24,99,175,0.2);
  background: var(--c-surface);
}


/* Hero image blend */
.o-hero__img {
  mix-blend-mode: normal;
}

/* ══════════════════════════════════════════════
   TESTIMONIAL REAL PHOTO AVATARS
══════════════════════════════════════════════ */
.testimonial-card__avatar--photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 2px solid rgba(24,99,175,0.2);
  box-shadow: 0 0 0 3px rgba(24,99,175,0.06);
  background: var(--c-surface);
}


/* ══════════════════════════════════════════════
   FIX: Descender clipping on g, y, p, q, j
   Applies to all display heading classes globally
══════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  overflow: visible !important;
  padding-bottom: 0.05em; /* tiny breathing room for descenders */
}

.display-xl {
  line-height: 1.1;
  overflow: visible !important;
  padding-bottom: 0.08em;
}

.display-lg {
  line-height: 1.15;
  overflow: visible !important;
  padding-bottom: 0.08em;
}

.display-md {
  line-height: 1.2;
  overflow: visible !important;
  padding-bottom: 0.05em;
}

.display-sm {
  line-height: 1.25;
  overflow: visible !important;
  padding-bottom: 0.05em;
}

/* Hero headline specific */
.o-hero__headline {
  font-family: 'Urbanist', sans-serif !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  overflow: visible !important;
  padding-bottom: 0.06em;
}

/* Section headings inside outsourcing/services */
.section-header h2,
.section-header .display-lg {
  overflow: visible !important;
  padding-bottom: 0.08em;
}

/* Outsourcing card titles */
.outsourcing__model .display-sm,
.service-card__title {
  overflow: visible !important;
  line-height: 1.25;
  padding-bottom: 0.05em;
}
