/* ============================================================
   HERO — Clariona v3b (Cobalt-Cyan)
   Dark hero with photo right + compact hero for sub-pages
   ============================================================ */

/* === HOMEPAGE HERO (Dark full-width section) === */
.hero-dark {
  background: var(--color-navy);
  color: #fff;
  min-height: clamp(520px, 82vh, 720px);
  display: flex;
  align-items: center;
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

/* Multi-layered background glow */
.hero-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 80% at 72% 50%, rgba(0,71,255,0.10) 0%, transparent 65%),
    radial-gradient(ellipse 35% 55% at 85% 15%, rgba(0,229,255,0.06) 0%, transparent 55%),
    radial-gradient(ellipse 40% 60% at 0% 100%, rgba(0,71,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.hero-dark > * { position: relative; z-index: 1; }

/* === HERO GRID — 2-col split INSIDE the container === */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  width: 100%;
}

/* === HERO TAG (pill badge above H1) === */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,71,255,0.16);
  border: 1px solid rgba(0,71,255,0.42);
  color: var(--color-cyan);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
}

/* === HERO TYPOGRAPHY === */
.hero-dark h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1.1rem;
}

/* Gradient accent text in H1 */
.gradient-text {
  background: linear-gradient(120deg, var(--color-cobalt) 0%, var(--color-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-right: 0.15em; /* Prevent clipping of last italicized letter */
}

.hero-dark .hero-sub {
  font-size: 1.02rem;
  color: rgba(255,255,255,0.62);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 520px;
}

/* === HERO ACTIONS === */
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  align-items: center;
}

/* === HERO TRUST (star rating) === */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.5);
}
.hero-trust .stars { color: #FFC107; letter-spacing: 1px; font-size: 0.9rem; }
.hero-trust strong { color: rgba(255,255,255,0.85); }

/* === HERO VISUAL (right side — original single-image variant) === */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* === HERO VISUAL COL — flex column wrapper for stack + review badge === */
.hero-visual-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  width: 100%;
}

.hero-img-frame {
  position: relative;
  width: 100%;
  max-width: 520px;
}

.hero-img-frame img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow:
    0 32px 80px rgba(0,0,0,0.45),
    0 0 0 1px rgba(0,71,255,0.28),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Cobalt glow behind image */
.hero-img-frame::before {
  content: '';
  position: absolute;
  inset: -28px;
  background: radial-gradient(ellipse at center, rgba(0,71,255,0.20) 0%, transparent 68%);
  z-index: -1;
  border-radius: var(--radius-lg);
}

/* === FLOATING METRIC BADGES === */
.hero-badge {
  position: absolute;
  background: rgba(13,15,26,0.90);
  border: 1px solid rgba(0,71,255,0.48);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-md);
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
  white-space: nowrap;
  animation: badge-float 4s ease-in-out infinite;
}
.hero-badge.badge-tr {
  top: 24px;
  right: -22px;
  animation-delay: 0s;
}
.hero-badge.badge-bl {
  bottom: 28px;
  left: -22px;
  animation-delay: 2s;
}
@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
.hero-badge .badge-number {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-cyan);
  line-height: 1;
}
.hero-badge .badge-text {
  font-size: 0.71rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.4;
}
.hero-badge i { color: var(--color-cobalt); font-size: 1.15rem; }

/* === RADAR RINGS — animated signal graphic === */
.radar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.radar-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 360px;
}
.radar-rings {
  position: relative;
  width: 320px;
  height: 320px;
}
.radar-ring {
  position: absolute;
  border-radius: 50%;
  border-style: solid;
  border-color: transparent;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: radar-pulse 3.5s ease-in-out infinite;
}
.radar-ring:nth-child(1) { width: 320px; height: 320px; border-color: rgba(0,71,255,0.18); border-width: 1.5px; animation-delay: 0s; }
.radar-ring:nth-child(2) { width: 258px; height: 258px; border-color: rgba(0,71,255,0.32); border-width: 2px;   animation-delay: 0.35s; }
.radar-ring:nth-child(3) { width: 196px; height: 196px; border-color: rgba(0,71,255,0.52); border-width: 2px;   animation-delay: 0.70s; }
.radar-ring:nth-child(4) { width: 134px; height: 134px; border-color: rgba(0,229,255,0.52); border-width: 2px;  animation-delay: 1.05s; }
.radar-ring:nth-child(5) { width: 72px;  height: 72px;  border-color: rgba(0,229,255,0.85); border-width: 3px;  animation-delay: 1.40s; }
.radar-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--color-cobalt);
  box-shadow: 0 0 36px var(--color-cyan), 0 0 72px rgba(0,229,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.35rem;
}
@keyframes radar-pulse {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.03); }
}

/* === INDUSTRY / TRUST BAR === */
.industry-bar {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
}
.industry-bar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.industry-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-steel);
  white-space: nowrap;
}
.industry-item i { font-size: 1rem; color: var(--color-cobalt); }
.industry-sep {
  width: 1px; height: 20px;
  background: var(--color-border);
}

/* === COMPACT HERO (service / location sub-pages) === */
.hero-compact {
  min-height: clamp(280px, 45vh, 460px);
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
}
/* Anti-overlay: gradient only on left text side, fades to clear at 55% */
.hero-compact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(13,15,26,0.93) 0%, rgba(13,15,26,0.75) 40%, transparent 58%);
}
.hero-compact .container { position: relative; z-index: 1; }
.hero-compact h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 600; }
.hero-compact .hero-sub { color: rgba(255,255,255,0.75); max-width: 500px; margin-top: 14px; margin-bottom: 28px; }

/* === BREADCRUMB === */
.breadcrumb {
  padding: 13px 0;
  font-size: 0.8rem;
  color: var(--color-steel);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}
.breadcrumb a { color: var(--color-cobalt); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { margin: 0 7px; color: var(--color-border); }

/* === HERO STACK — Three overlapping photo cards (right column) === */
.hero-stack {
  position: relative;
  width: 100%;
  height: 530px;          /* tall enough for cards 2+3 to be vertically separated on right */
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Each card is an absolutely positioned photo tile */
.hero-stack .stack-card {
  position: absolute;
  width: 210px;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(0,0,0,0.55),
    0 0 0 2px rgba(0,71,255,0.35);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.hero-stack .stack-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-stack .stack-card:hover {
  transform: scale(1.015) rotate(0deg) !important;
  box-shadow: 0 28px 70px rgba(0,0,0,0.60), 0 0 0 2px rgba(0,229,255,0.5);
  z-index: 10 !important;
}

/* Card 1 — left column, vertically centred, subtle left tilt */
.hero-stack .stack-card-1 {
  left: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-3deg);
  transform-origin: center left;   /* scales rightward, away from review badge */
  z-index: 3;
  width: 215px;
}

/* Card 2 — right column, TOP half, slight right tilt */
.hero-stack .stack-card-2 {
  right: 0;
  top: 10px;
  transform: rotate(2deg);
  transform-origin: top center;    /* scales upward, away from card 3 below */
  z-index: 2;
  width: 190px;
}

/* Card 3 — right column, BOTTOM half, slight left tilt */
.hero-stack .stack-card-3 {
  right: 0;
  bottom: 10px;
  transform: rotate(-2deg);
  transform-origin: bottom center; /* scales downward, away from card 2 above */
  z-index: 4;
  width: 185px;
}

/* Industry badge overlay on card 1 */
.stack-card-badge {
  position: absolute;
  top: 14px;
  left: 12px;
  background: rgba(11,16,51,0.90);
  border: 1px solid rgba(0,71,255,0.50);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-pill);
  padding: 5px 12px 5px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-cyan);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 2;
}
.stack-card-badge i { font-size: 0.7rem; color: var(--color-cyan); }

/* Review badge — flows below the card stack as a normal block element */
.stack-review-badge {
  position: static;
  background: rgba(11,16,51,0.93);
  border: 1px solid rgba(0,71,255,0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  width: 100%;
  max-width: 340px;
  animation: badge-float 5s ease-in-out infinite;
}
.stack-review-badge .review-stars {
  color: #FFC107;
  font-size: 0.75rem;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.stack-review-badge .review-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-cyan);
  margin-bottom: 7px;
}
.stack-review-badge .review-text {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.80);
  line-height: 1.45;
  font-style: italic;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-dark { padding: 48px 0; min-height: auto; }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }
  .hero-dark .hero-sub { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-trust   { justify-content: center; }
  .hero-visual  { justify-content: center; }
  .hero-img-frame { max-width: 400px; }
  .hero-badge.badge-tr { top: 12px; right: 0; }
  .hero-badge.badge-bl { bottom: 12px; left: 0; }

  /* Stack: switch to a flat 3-col row on tablet/mobile */
  .hero-stack {
    height: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    justify-items: center;
  }
  .hero-stack .stack-card,
  .hero-stack .stack-card-1,
  .hero-stack .stack-card-2,
  .hero-stack .stack-card-3 {
    position: static !important;
    width: 100% !important;
    transform: none !important;
    aspect-ratio: 3/4;
  }
  .stack-review-badge { display: none; }

  .radar-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .radar-container { height: 260px; }
  .radar-rings { width: 240px; height: 240px; }
  .radar-ring:nth-child(1) { width: 240px; height: 240px; }
  .radar-ring:nth-child(2) { width: 194px; height: 194px; }
  .radar-ring:nth-child(3) { width: 148px; height: 148px; }
  .radar-ring:nth-child(4) { width: 100px; height: 100px; }
  .radar-ring:nth-child(5) { width: 54px;  height: 54px; }

  .industry-bar-inner { gap: 20px; }
  .industry-sep { display: none; }

  .hero-compact::before {
    background: linear-gradient(to bottom, rgba(11,16,51,0.85) 0%, rgba(11,16,51,0.65) 100%);
  }
}
@media (max-width: 600px) {
  .hero-badge { display: none; }
  .hero-stack { grid-template-columns: 1fr; gap: 10px; }
  .hero-stack .stack-card { aspect-ratio: 16/9; }
}
