/* ==========================================================================
   Industry CPT — shared bundle
   Loaded for every is_singular('industry'), on top of the per-family
   (healthcare-app-development / real-estate-app-development) bundle. Home for
   family-neutral Industry section variants so their CSS lives once, not
   duplicated across both family stylesheets.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Why Us — Variant 3: pinned stacking accordion
   Heading + description, then rows of [ title | image + body ]. Desktop pins
   the .ind-why3-accordions block and collapses each row's __text on scroll
   (assets/js/industries.js, initIndustryWhyUs3). Below 1024px / reduced
   motion: no pin, every row open, single column.
   -------------------------------------------------------------------------- */

.ind-why3 {
  position: relative;
  padding: clamp(64px, 6vw, 80px) 0;
  background: #000000;
}

.ind-why3-head {
  max-width: 820px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.ind-why3-title {
  margin: 0;
  font-weight: 700;
  color: #fff;
  /* font-size/line-height now controlled globally by .heading2 in style.css */
}

.ind-why3-title .ind-why3-accent {
  background: linear-gradient(90deg, #00c2ff, #6a8bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ind-why3-intro {
  margin: 20px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: #ffffff;
}

/* Pinned window. JS (desktop, motion-ok) gives it a fixed height +
   overflow:hidden so the pinned element never shrinks — a shrinking pinned
   element is what leaves a blank gap under the section. Everywhere else it's
   a transparent passthrough. */
.ind-why3-viewport {
  position: relative;
}

.ind-why3-accordions {
  position: relative;
}

.ind-why3-accordion {
  display: grid;
  grid-template-columns: minmax(200px, 300px) 1fr;
  column-gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding: clamp(20px, 2.6vw, 30px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ind-why3-accordion:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ind-why3-accordion__title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.38);
  transition: color 0.45s ease;
}

.ind-why3-accordion.is-open .ind-why3-accordion__title {
  color: #fff;
}

.ind-why3-accordion__dot {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 0.55em;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

.ind-why3-accordion.is-open .ind-why3-accordion__dot {
  background: #00c2ff;
  opacity: 1;
}

/* .ind-why3-accordion__text is the collapsing element (GSAP: the ".text").
   overflow:hidden so the scroll-scrubbed height tween clips cleanly. */
.ind-why3-accordion__text {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  column-gap: clamp(24px, 3.5vw, 48px);
  align-items: start;
  overflow: hidden;
  padding-bottom: clamp(6px, 1.4vw, 14px);
  will-change: height;
}

.ind-why3-accordion__media {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.ind-why3-accordion__media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 2;
  object-fit: cover;
}

.ind-why3-accordion__body {
  color: #ffffff;
  font-size: clamp(0.92rem, 1.15vw, 1rem);
  line-height: 1.75;
}

.ind-why3-accordion__body p {
  margin: 0;
}

.ind-why3-accordion__body p + p {
  margin-top: 0.9em;
}

/* Tablet / mobile: single column, no pin (the JS bails under 1024px), every
   row's text stays open. */
@media (max-width: 1023px) {
  .ind-why3-accordion {
    grid-template-columns: 1fr;
    row-gap: 16px;
  }

  .ind-why3-accordion__text {
    grid-template-columns: 1fr;
    row-gap: 18px;
    /* JS never runs here, so force the open state regardless of the
       server-rendered is-open class. */
    height: auto !important;
    opacity: 1 !important;
  }

  .ind-why3-accordion__media img {
    aspect-ratio: 16 / 10;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ind-why3-accordion__title {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Projects — Variant 2: case-study colour-panel slider
   Left header (eyebrow / title / description) + prev-next control, over a
   Swiper of solid-colour panels (Name / Subtitle / The Problem / What We
   Built / Outcomes + a phone mockup bleeding off the bottom). Swiper init in
   assets/js/industries.js (initIndustryProjects2).
   -------------------------------------------------------------------------- */

.ind-proj2 {
  position: relative;
  padding: clamp(56px, 7vw, 96px) 0;
  background: #000;
  overflow: hidden;
}

.ind-proj2-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.ind-proj2-head-text {
  max-width: 640px;
}

.ind-proj2-eyebrow {
  display: block;
  margin-bottom: 16px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffc400;
}

.ind-proj2-title {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  /* font-size/line-height now controlled globally by .heading2 in style.css */
}

.ind-proj2-intro {
  margin: 20px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 1);
}

.ind-proj2-nav {
  flex: none;
  display: flex;
  gap: 12px;
}

.ind-proj2-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #000000;
  color: #fff;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.ind-proj2-nav-btn svg {
  width: 20px;
  height: 20px;
}

.ind-proj2-nav-btn:hover {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.32);
}

.ind-proj2-nav-btn.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
}

/* Swiper is left-anchored to the container; slides overflow to the right and
   the section's own overflow:hidden clips them. */
.ind-proj2-swiper {
  overflow: visible;
}

.ind-proj2-card {
  --ind-proj2-pad: clamp(24px, 2vw, 34px);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 560px;
  padding: var(--ind-proj2-pad);
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  background: #241a6d;
}

.ind-proj2-card--indigo { background: linear-gradient(180deg, #241a6d 0%, #34247f 100%); }
.ind-proj2-card--blue   { background: linear-gradient(180deg, #123fa3 0%, #1c56c9 100%); }
.ind-proj2-card--teal   { background: linear-gradient(180deg, #12657f 0%, #1a7f95 100%); }
.ind-proj2-card--green  { background: linear-gradient(180deg, #0c6b4f 0%, #128a63 100%); }
.ind-proj2-card--slate  { background: linear-gradient(180deg, #1f2937 0%, #33414f 100%); }

.ind-proj2-card-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.ind-proj2-card-name {
  margin: 0;
  font-size: clamp(1.4rem, 1.4rem, 1.4rem);
  font-weight: 700;
  line-height: 1.15;
}

.ind-proj2-card-subtitle {
  margin: 8px 0 0;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 1);
}

.ind-proj2-card-h {
  margin: 20px 0 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.ind-proj2-card-p {
  margin: 0;
  font-size: 10px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 1);
}

.ind-proj2-card-list {
  margin: 6px 0 0;
  padding-left: 18px;
  list-style: disc;
}

.ind-proj2-card-list li {
  margin-top: 6px;
  font-size: 10px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 1);
}

.ind-proj2-card-media {
  margin: 22px calc(-1 * var(--ind-proj2-pad)) calc(-1 * var(--ind-proj2-pad));
  padding: 0 clamp(16px, 3vw, 28px);
}

.ind-proj2-card-media img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  object-position: bottom center;
}

@media (max-width: 767px) {
  .ind-proj2-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .ind-proj2-card {
    min-height: 0;
  }

  .ind-proj2-card-body {
    overflow: visible;
  }
}
