/* ============================================================
   BrijCode — Reusable Industry Hero
   Scoped under .industry-page / .industry-hero
   ============================================================ */

.industry-page {
  background: var(--ink-deep);
  color: #fff;
  overflow-x: clip;
}

.industry-hero {
  --industry-navy: var(--ink-deep);
  --industry-marigold: var(--marigold);
  --industry-glass: rgba(7, 26, 51, 0.42);
  --industry-glass-border: rgba(255, 255, 255, 0.16);
  --industry-image-position: 68% center;

  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  color: #fff;
  background: var(--industry-navy);
}

/* ---- Full-bleed image + CSS overlays ---- */

.industry-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.industry-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--industry-image-position);
  transform: scale(1.04);
  animation: industryHeroImageIn 1.8s ease-out both;
}

.industry-hero__video {
  pointer-events: none;
}

.industry-hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(7, 26, 51, 0.92) 0%,
      rgba(7, 26, 51, 0.78) 22%,
      rgba(7, 26, 51, 0.35) 42%,
      rgba(7, 26, 51, 0.12) 58%,
      rgba(7, 26, 51, 0.28) 78%,
      rgba(7, 26, 51, 0.55) 100%
    ),
    linear-gradient(
      180deg,
      rgba(7, 26, 51, 0.45) 0%,
      transparent 28%,
      transparent 62%,
      rgba(7, 26, 51, 0.55) 100%
    );
}

.industry-hero__overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 55% 70% at 72% 48%,
    transparent 0%,
    transparent 42%,
    rgba(7, 26, 51, 0.18) 100%
  );
  pointer-events: none;
}

/* ---- Layout ---- */

.industry-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: clamp(110px, 14vh, 140px);
  padding-bottom: clamp(40px, 6vh, 64px);
  min-height: 100vh;
  min-height: 100dvh;
}

.industry-hero__content {
  position: relative;
  z-index: 3;
  animation: industryFadeUp 0.9s ease-out both;
}

.industry-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--industry-marigold);
}

.industry-hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--industry-marigold);
  box-shadow: 0 0 0 4px rgba(242, 154, 31, 0.18);
}

.industry-hero__title {
  margin: 0 0 8px;
  font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
  font-weight: 800;
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
}

.industry-hero__hl {
  display: block;
  color: var(--industry-marigold);
}

.industry-hero__desc {
  margin: 0 0 18px;
  max-width: 440px;
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

.industry-hero__cta.btn.btn-primary {
  position: relative;
  z-index: 1;
  margin-bottom: clamp(28px, 4vh, 40px);
  color: #ffffff !important;
  border: 2px solid transparent;
  background-image: linear-gradient(
    135deg,
    #ffc46b 0%,
    #f29a1f 45%,
    #c97c08 100%
  ) !important;
  background-color: transparent !important;
  background-size: 100% 100%;
  box-shadow:
    0 8px 22px rgba(242, 154, 31, 0.4),
    0 0 18px rgba(242, 154, 31, 0.35);
  animation:
    industryFadeUp 0.9s ease-out 0.12s both,
    industryCtaGlow 2.4s ease-in-out 1s infinite;
}

.industry-hero__cta.btn.btn-primary::after {
  background: linear-gradient(
    105deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
}

.industry-hero__cta.btn.btn-primary:hover {
  color: #ffffff !important;
  border-color: transparent !important;
  background-image: linear-gradient(
    135deg,
    #ffd089 0%,
    #ffb347 42%,
    #c97c08 100%
  ) !important;
  background-color: transparent !important;
  box-shadow:
    0 12px 30px rgba(242, 154, 31, 0.5),
    0 0 28px rgba(242, 154, 31, 0.55);
  transform: translateY(-2px);
}

/* ---- Glass metric cards ---- */

.industry-hero__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.industry-metric {
  flex: 0 1 auto;
  min-width: 168px;
  max-width: 220px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--industry-glass);
  border: 1px solid var(--industry-glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  animation: industryFadeUp 0.85s ease-out both;
}

.industry-metric:nth-child(1) {
  animation-delay: 0.22s;
}

.industry-metric:nth-child(2) {
  animation-delay: 0.34s;
}

.industry-metric:nth-child(3) {
  animation-delay: 0.46s;
}

.industry-metric__value {
  margin: 0 0 6px;
  font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
  font-weight: 800;
  font-size: clamp(1rem, 1.5vw, 1.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--industry-marigold);
}

.industry-metric__label {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
}

/* ---- Floating signal cards (loyalty-style) ---- */

.industry-hero__signals {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.industry-float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: min(240px, 42vw);
  padding: 10px 14px;
  border-radius: 16px;
  background: #ffffff;
  color: var(--ink-deep, #0f2233);
  box-shadow: 0 18px 40px rgba(4, 12, 20, 0.28);
  opacity: 0;
  animation:
    industryFloatIn 0.85s ease-out forwards,
    industryFloatBob 5.2s ease-in-out 1.1s infinite;
}

.industry-float-card b {
  display: block;
  font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
}

.industry-float-card small {
  display: block;
  margin-top: 2px;
  font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
  font-size: 0.68rem;
  line-height: 1.3;
  color: #16304a;
  opacity: 0.75;
}

.industry-float-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(
    140deg,
    #ffc46b,
    var(--industry-marigold) 55%,
    var(--marigold-deep, #c97c08)
  );
  color: #fff;
}

.industry-float-ico .ico {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
}

.industry-float-card--shelf {
  top: 15%;
  right: 1%;
  animation-delay: 0.35s, 1.2s;
}

.industry-float-card--visit {
  bottom: 33%;
  left: 42%;
  animation-delay: 0.5s, 1.6s;
}

.industry-float-card--stock {
  top: 28%;
  right: 18%;
  left: auto;
  animation-delay: 0.42s, 1.4s;
}

.industry-float-badge {
  position: absolute;
  top: 22%;
  right: min(26%, 340px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10, 24, 38, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  animation: industryFloatIn 0.85s ease-out 0.55s forwards;
}

.industry-float-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--industry-marigold);
  box-shadow: 0 0 0 0 rgba(242, 154, 31, 0.55);
  animation: industryFloatPulse 2.4s ease-out infinite;
}

/* ---- Right-side organic glass pills ---- */

.industry-hero__pills {
  position: relative;
  z-index: 3;
  height: min(72vh, 620px);
  min-height: 420px;
  pointer-events: none;
}

.industry-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  padding: 0.55em 1.05em;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: #fff;
  background: rgba(7, 26, 51, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  opacity: 0;
  animation:
    industryPillIn 0.85s ease-out forwards,
    industryPillFloat 5.5s ease-in-out 1s infinite;
}

.industry-pill--1 {
  top: 12%;
  right: 8%;
  animation-delay: 0.28s, 1.1s;
}

.industry-pill--2 {
  top: 28%;
  right: 28%;
  animation-delay: 0.38s, 1.5s;
}

.industry-pill--3 {
  top: 46%;
  right: 4%;
  animation-delay: 0.48s, 0.9s;
}

.industry-pill--4 {
  top: 62%;
  right: 22%;
  animation-delay: 0.58s, 1.8s;
}

.industry-pill--5 {
  top: 78%;
  right: 10%;
  animation-delay: 0.68s, 1.2s;
}

/* ---- Animations ---- */

@keyframes industryFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes industryPillIn {
  from {
    opacity: 0;
    transform: translate3d(16px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes industryPillFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -6px, 0);
  }
}

@keyframes industryHeroImageIn {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1.04);
  }
}

@keyframes industryFloatIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes industryFloatBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes industryFloatPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(242, 154, 31, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(242, 154, 31, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(242, 154, 31, 0);
  }
}

@keyframes industryCtaGlow {
  0%,
  100% {
    box-shadow:
      0 8px 22px rgba(242, 154, 31, 0.4),
      0 0 14px rgba(242, 154, 31, 0.3);
  }
  50% {
    box-shadow:
      0 10px 28px rgba(242, 154, 31, 0.55),
      0 0 32px 8px rgba(242, 154, 31, 0.5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .industry-hero__image,
  .industry-hero__content,
  .industry-hero__cta,
  .industry-hero__cta.btn.btn-primary,
  .industry-metric,
  .industry-pill,
  .industry-float-card,
  .industry-float-badge {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .industry-hero__image {
    transform: scale(1.02);
  }

  .industry-hero__cta.btn.btn-primary {
    box-shadow: 0 8px 22px rgba(242, 154, 31, 0.4);
  }

  .industry-float-pulse {
    animation: none !important;
  }
}

/* ---- FMCG only: featured first capabilities card ---- */

.industry-page--fmcg .ai-retail-features__card:first-child {
  background: linear-gradient(
    145deg,
    #ffc46b 0%,
    var(--marigold, #f29a1f) 52%,
    var(--marigold-deep, #c97c08) 100%
  );
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 36px rgba(201, 124, 8, 0.28);
}

.industry-page--fmcg
  .ai-retail-features__card:first-child
  .ai-retail-features__number {
  color: rgba(255, 255, 255, 0.72);
}

.industry-page--fmcg
  .ai-retail-features__card:first-child
  .ai-retail-features__icon {
  color: var(--marigold-deep, #c97c08);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 4px 14px rgba(7, 26, 51, 0.12);
}

.industry-page--fmcg
  .ai-retail-features__card:first-child
  .ai-retail-features__icon-glow {
  opacity: 0.35;
}

.industry-page--fmcg
  .ai-retail-features__card:first-child
  .ai-retail-features__card-title {
  color: #ffffff;
}

.industry-page--fmcg
  .ai-retail-features__card:first-child
  .ai-retail-features__description {
  color: rgba(255, 255, 255, 0.9);
}

.industry-page--fmcg
  .ai-retail-features__card:first-child
  .ai-retail-features__label {
  color: #ffffff;
  border-top-color: rgba(255, 255, 255, 0.22);
}

.industry-page--fmcg
  .ai-retail-features__card:first-child
  .ai-retail-features__card-accent {
  background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.35));
}

@media (hover: hover) and (pointer: fine) {
  .industry-page--fmcg .ai-retail-features__card:first-child:hover {
    border-color: rgba(255, 255, 255, 0.38);
    box-shadow:
      0 20px 44px rgba(201, 124, 8, 0.34),
      0 0 0 1px rgba(255, 255, 255, 0.12);
  }

  .industry-page--fmcg
    .ai-retail-features__card:first-child:hover
    .ai-retail-features__icon {
    border-color: rgba(255, 255, 255, 0.75);
    box-shadow:
      0 0 0 4px rgba(255, 255, 255, 0.18),
      0 0 18px rgba(255, 255, 255, 0.22);
  }
}

/* FMCG — CTA sits on light wrap like service pages (not industry dark bg) */
.industry-page--fmcg .loyalty-cta,
.industry-page--telecom .loyalty-cta,
.industry-page--consumer-durable .loyalty-cta,
.industry-page--campaign-microsite .loyalty-cta {
  background: #f7f8fa;
  color: #071a33;
}

/* Consumer Durable — Reality title sizing (page-only) */
.industry-page--consumer-durable .industry-reality__title {
  font-size: clamp(2rem, 2vw, 2rem);
}

.industry-page--consumer-durable .loyalty-hero-title {
  font-size: clamp(2rem, 3vw, 3rem);
}

/* Consumer Durable — hero floats: lift "Lead captured" away from trust row */
.industry-page--consumer-durable .loyalty-float-card--reward {
  bottom: 30%;
  right: 50%;
}

.industry-page--consumer-durable .loyalty-float-card--survey {
  top: 46%;
  left: 43%;
}

@media (max-width: 1199px) {
  .industry-page--consumer-durable .loyalty-float-card--reward {
    bottom: 28%;
    right: min(14%, 180px);
  }
}

@media (max-width: 991px) {
  .industry-page--consumer-durable .loyalty-float-card--reward {
    top: 14%;
    bottom: auto;
    right: 16px;
  }

  .industry-page--consumer-durable .loyalty-float-card--survey {
    top: auto;
    bottom: 22%;
    left: 16px;
  }
}

/* Consumer Durable — workflow phones sized to balance the step card */
.industry-page--consumer-durable .section-workflow .workflow-phone {
  max-width: min(380px, 32vw);
  width: min(380px, 32vw);
}

.industry-page--consumer-durable .section-workflow .workflow-phone img {
  width: 100%;
  height: auto;
  max-height: min(58vh, 720px);
  object-fit: contain;
  object-position: bottom center;
}

.industry-page--consumer-durable .section-workflow .workflow-phone--center img {
  transform: scale(1.06);
}

.industry-page--consumer-durable .section-workflow .workflow-phone--past img,
.industry-page--consumer-durable .section-workflow .workflow-phone--future img {
  transform: scale(0.94);
}

@media (min-width: 992px) {
  .industry-page--consumer-durable .section-workflow .workflow-m-card__phone {
    max-width: 300px;
  }
}

@media (max-width: 1199.98px) {
  .industry-page--consumer-durable .section-workflow .workflow-phone {
    max-width: min(320px, 34vw);
    width: min(320px, 34vw);
  }

  .industry-page--consumer-durable .section-workflow .workflow-phone img {
    max-height: min(52vh, 620px);
  }
}

/* Telecom — portrait workflow phones (~900×1740) need a tighter display width */
.industry-page--telecom .section-workflow .workflow-phone,
.industry-page--campaign-microsite .section-workflow .workflow-phone {
  max-width: min(280px, 24vw);
  width: min(280px, 24vw);
}

.industry-page--telecom .section-workflow .workflow-phone img,
.industry-page--campaign-microsite .section-workflow .workflow-phone img {
  width: 100%;
  height: auto;
  max-height: min(52vh, 500px);
  object-fit: contain;
  object-position: bottom center;
}

.industry-page--telecom .section-workflow .workflow-phone--center img,
.industry-page--campaign-microsite
  .section-workflow
  .workflow-phone--center
  img {
  transform: scale(1.05);
}

.industry-page--telecom .section-workflow .workflow-phone--past img,
.industry-page--telecom .section-workflow .workflow-phone--future img,
.industry-page--campaign-microsite .section-workflow .workflow-phone--past img,
.industry-page--campaign-microsite
  .section-workflow
  .workflow-phone--future
  img {
  transform: scale(0.92);
}

@media (min-width: 992px) {
  .industry-page--telecom .section-workflow .workflow-m-card__phone,
  .industry-page--campaign-microsite .section-workflow .workflow-m-card__phone {
    max-width: 260px;
  }
}

@media (max-width: 1199.98px) {
  .industry-page--telecom .section-workflow .workflow-phone,
  .industry-page--campaign-microsite .section-workflow .workflow-phone {
    max-width: min(240px, 26vw);
    width: min(240px, 26vw);
  }

  .industry-page--telecom .section-workflow .workflow-phone img,
  .industry-page--campaign-microsite .section-workflow .workflow-phone img {
    max-height: min(48vh, 440px);
  }
}

.industry-page--fmcg .loyalty-cta__visual {
  position: absolute;
  right: -4%;
  bottom: -18%;
  z-index: 999;
  width: 100%;
  max-width: 920px;
  pointer-events: none;
  user-select: none;
}

/* Consumer Durable CTA — portrait phone asset (not FMCG-scale decorative art) */
.industry-page--consumer-durable .loyalty-cta__visual {
  position: absolute;
  right: 8%;
  bottom: -4%;
  z-index: 999;
  width: min(280px, 28vw);
  max-width: 280px;
  pointer-events: none;
  user-select: none;
}

.industry-page--consumer-durable .loyalty-cta__arrow {
  width: 100%;
  height: auto;
  max-height: min(420px, 52vh);
  object-fit: contain;
  object-position: bottom center;
  transform: rotate(-10deg) scale(1);
}

.industry-page--consumer-durable .loyalty-cta.is-revealed .loyalty-cta__arrow {
  transform: rotate(-10deg) scale(1);
}

@media (max-width: 991px) {
  .industry-page--consumer-durable .loyalty-cta__visual {
    width: min(220px, 36vw);
    max-width: 220px;
    right: 6%;
    bottom: -2%;
  }

  .industry-page--consumer-durable .loyalty-cta__arrow {
    max-height: min(360px, 48vh);
  }
}

/* Telecom CTA — portrait phone asset needs a tighter frame than FMCG */
.industry-page--telecom .loyalty-cta__visual,
.industry-page--campaign-microsite .loyalty-cta__visual {
  position: absolute;
  right: 6%;
  bottom: -2%;
  z-index: 999;
  width: min(280px, 32vw);
  max-width: 280px;
  pointer-events: none;
  user-select: none;
}

.industry-page--telecom .loyalty-cta__arrow,
.industry-page--campaign-microsite .loyalty-cta__arrow {
  width: 100%;
  height: auto;
  max-height: min(420px, 52vh);
  object-fit: contain;
  object-position: bottom center;
  transform: rotate(-12deg) scale(1);
}

.industry-page--telecom .loyalty-cta.is-revealed .loyalty-cta__arrow,
.industry-page--campaign-microsite
  .loyalty-cta.is-revealed
  .loyalty-cta__arrow {
  transform: rotate(-12deg) scale(1);
}

@media (max-width: 991px) {
  .industry-page--telecom .loyalty-cta__visual,
  .industry-page--campaign-microsite .loyalty-cta__visual {
    width: min(220px, 36vw);
    max-width: 220px;
    right: 6%;
    bottom: -2%;
  }

  .industry-page--telecom .loyalty-cta__arrow,
  .industry-page--campaign-microsite .loyalty-cta__arrow {
    max-height: min(360px, 48vh);
  }
}

.industry-page--fmcg .site-footer,
.industry-page--telecom .site-footer,
.industry-page--consumer-durable .site-footer,
.industry-page--campaign-microsite .site-footer {
  padding: 6rem 0 2rem;
}

@media (max-width: 767px) {
  .industry-page--fmcg .site-footer,
  .industry-page--telecom .site-footer,
  .industry-page--consumer-durable .site-footer,
  .industry-page--campaign-microsite .site-footer {
    padding: 5.5rem 0 1.75rem;
  }
}

@media (max-width: 480px) {
  .industry-page--fmcg .site-footer,
  .industry-page--telecom .site-footer,
  .industry-page--consumer-durable .site-footer,
  .industry-page--campaign-microsite .site-footer {
    padding: 5rem 0 1.5rem;
  }
}
