/* =============================================
   WILLBERG GROUP (INDEX) — Brand Colors
   ============================================= */
:root {
  --brand-orange: #E84820;
  --brand-teal:   #00C8C0;
  --brand-yellow: #F5C400;
  --amber:        #e8a020;
  --amber-dark:   #c4841a;
  --amber-glow:   rgba(232,160,32,0.12);
  --border:       rgba(232,160,32,0.18);
}

.label::before {
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-teal), var(--brand-yellow));
}

/* =============================================
   NAVBAR — navy instead of white
   ============================================= */
.nav {
  background: var(--navy);
}
.nav.scrolled {
  background: var(--navy);
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}
.nav__links a {
  color: rgba(255,255,255,0.85);
}
.nav__links a:hover {
  color: var(--amber);
}
.nav__hamburger span {
  background: #fff;
}
.nav__dropdown-menu {
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.08);
}
.nav__dropdown-menu a {
  color: rgba(255,255,255,0.85);
}
.nav__dropdown-menu a:hover {
  color: var(--amber);
  background: rgba(255,255,255,0.04);
}

.hero__tagline::before {
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-teal), var(--brand-yellow));
}
.services-strip {
  background: linear-gradient(90deg,
    var(--brand-orange) 0%,   var(--brand-orange) 33%,
    var(--brand-teal)   33%,  var(--brand-teal)   66%,
    var(--brand-yellow) 66%,  var(--brand-yellow) 100%);
}
.hero__stat:nth-child(1) { border-left-color: var(--brand-orange); }
.hero__stat:nth-child(1) .hero__stat-num { color: var(--brand-orange); }
.hero__stat:nth-child(2) { border-left-color: var(--brand-teal); }
.hero__stat:nth-child(2) .hero__stat-num { color: var(--brand-teal); }
.hero__stat:nth-child(3) { border-left-color: var(--brand-yellow); }
.hero__stat:nth-child(3) .hero__stat-num { color: var(--brand-yellow); }
.hero__stat:nth-child(4) { border-left-color: var(--brand-orange); }
.hero__stat:nth-child(4) .hero__stat-num { color: var(--brand-orange); }
.sub-card:nth-child(1) { border-top-color: var(--brand-yellow); }
.sub-card:nth-child(1) .sub-card__num, .sub-card:nth-child(1) .sub-card__link { color: var(--brand-yellow); }
.sub-card:nth-child(2) { border-top-color: var(--brand-orange); }
.sub-card:nth-child(2) .sub-card__num, .sub-card:nth-child(2) .sub-card__link { color: var(--brand-orange); }
.sub-card:nth-child(3) { border-top-color: var(--brand-teal); }
.sub-card:nth-child(3) .sub-card__num, .sub-card:nth-child(3) .sub-card__link { color: var(--brand-teal); }

/* Sub-card logo fit */
.sub-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  padding: 14px;
  box-sizing: border-box;
  width: 110px;
  height: 110px;
  margin-bottom: 1.25rem;
}
.sub-card__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .sub-card__icon {
    width: 88px;
    height: 88px;
    padding: 12px;
  }
}
.divider {
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-teal), var(--brand-yellow));
}
.cta-band { background: var(--brand-orange); }

/* =============================================
   HERO CAROUSEL — FULL BLEED BACKGROUND
   ============================================= */

/* Carousel sits absolutely behind everything */
.hero__carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__carousel-track { position: relative; width: 100%; height: 100%; }

.hero__carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4,0,0.2,1),
              transform 1.2s cubic-bezier(0.4,0,0.2,1);
  transform: scale(1.06);
}
.hero__carousel-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}
.hero__carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Stronger overlay so text stays readable over photos */
.hero__bg {
  z-index: 1;
  background:
    linear-gradient(to right, rgba(11,17,32,0.82) 0%, rgba(11,17,32,0.45) 55%, rgba(11,17,32,0.25) 100%),
    radial-gradient(ellipse 60% 80% at 10% 60%, rgba(11,17,32,0.6) 0%, transparent 70%);
}
.hero__grid { z-index: 2; }

/* Content above carousel */
.hero__content { z-index: 3; position: relative; }

/* Stats — glassmorphism panel on the right */
.hero__right {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(11,17,32,0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid var(--amber);
  padding: 2rem 1.75rem;
}
.hero__right .hero__stat {
  border-left: none;
  padding-left: 0;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.hero__right .hero__stat:last-child { border-bottom: none; }

/* Carousel controls — top-right corner */
.hero__carousel-controls {
  position: absolute;
  top: 2rem;
  right: 2rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

/* Dots */
.hero__carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
  max-width: 200px;
}
.hero__carousel-dot {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hero__carousel-dot::before {
  content: '';
  display: block;
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.5);
  transition: background 0.3s, width 0.3s, border-radius 0.3s;
  box-sizing: border-box;
}
.hero__carousel-dot:hover::before {
  background: rgba(255,255,255,0.6);
}
.hero__carousel-dot.active::before {
  background: var(--amber);
  border-color: var(--amber);
  width: 20px;
  border-radius: 4px;
}

/* Progress bar — bottom edge */
.hero__carousel-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.08);
  z-index: 10;
}
.hero__carousel-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-teal), var(--brand-yellow));
}

/* Responsive */
@media (max-width: 1024px) {
  .hero__right {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 1.25rem;
    border-left: none;
    border-top: 3px solid var(--amber);
  }
  .hero__right .hero__stat {
    padding: 0.75rem 1rem;
    border-bottom: none;
    border-right: 1px solid rgba(255,255,255,0.07);
    flex: 1 1 auto;
  }
  .hero__right .hero__stat:last-child { border-right: none; }
}

@media (max-width: 768px) {
  .hero__carousel-controls { top: 4.5rem; right: 1rem; }

  /* Stats panel: 2×2 grid below hero text */
  .hero__right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
    background: rgba(11,17,32,0.65);
    backdrop-filter: blur(10px);
    border: none;
    border-top: 2px solid rgba(255,255,255,0.08);
    margin-top: 2rem;
  }
  .hero__right .hero__stat {
    padding: 1rem;
    border-right: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: center;
  }
  .hero__right .hero__stat:nth-child(2),
  .hero__right .hero__stat:nth-child(4) { border-right: none; }
  .hero__right .hero__stat:nth-child(3),
  .hero__right .hero__stat:nth-child(4) { border-bottom: none; }

  /* Stronger left-side overlay on mobile so text is readable */
  .hero__bg {
    background:
      linear-gradient(to bottom, rgba(11,17,32,0.6) 0%, rgba(11,17,32,0.3) 40%, rgba(11,17,32,0.75) 100%),
      linear-gradient(to right, rgba(11,17,32,0.85) 0%, rgba(11,17,32,0.4) 100%);
  }
}

@media (max-width: 390px) {
  .hero__carousel-controls { top: 4rem; right: 0.75rem; }
  .hero__carousel-dots { max-width: 150px; gap: 0.3rem; }
  .hero__carousel-dot::before { width: 5px; height: 5px; }
  .hero__carousel-dot.active::before { width: 15px; }
}
/* =============================================
   HERO HEADING — BOLD & ANIMATED
   ============================================= */
.hero__heading {
  font-weight: 800 !important;
  animation: heroIn 0.9s cubic-bezier(0.16,1,0.3,1) 0.2s both;
}
.hero__heading .line {
  display: block;
  overflow: hidden;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__tagline {
  animation: fadeSlide 0.7s ease 0.05s both;
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Sub-card — floating icon */
@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
.sub-card:hover .sub-card__icon {
  animation: floatIcon 1s ease-in-out infinite;
}

/* =============================================
   ABOUT PILLAR FLOATER ICONS
   ============================================= */
.about__pillar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 12px;
  background: var(--amber-glow);
  border: 1px solid var(--border);
  color: var(--amber);
  margin-bottom: 1rem;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.about__pillar:nth-child(1) .about__pillar-icon { color: var(--brand-orange); background: rgba(232,72,32,0.10); border-color: rgba(232,72,32,0.22); }
.about__pillar:nth-child(2) .about__pillar-icon { color: var(--brand-teal); background: rgba(0,200,192,0.10); border-color: rgba(0,200,192,0.22); }
.about__pillar:nth-child(3) .about__pillar-icon { color: var(--brand-yellow); background: rgba(245,196,0,0.10); border-color: rgba(245,196,0,0.22); }
.about__pillar:nth-child(4) .about__pillar-icon { color: var(--amber); background: var(--amber-glow); border-color: var(--border); }

@keyframes floatPillarIcon {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-6px) rotate(5deg); }
}
.about__pillar:hover .about__pillar-icon {
  animation: floatPillarIcon 0.9s ease-in-out;
}
.about__pillar:nth-child(1):hover .about__pillar-icon { background: var(--brand-orange); color: #fff; border-color: var(--brand-orange); }
.about__pillar:nth-child(2):hover .about__pillar-icon { background: var(--brand-teal); color: var(--navy); border-color: var(--brand-teal); }
.about__pillar:nth-child(3):hover .about__pillar-icon { background: var(--brand-yellow); color: var(--navy); border-color: var(--brand-yellow); }
.about__pillar:nth-child(4):hover .about__pillar-icon { background: var(--amber); color: var(--navy); border-color: var(--amber); }

@media (max-width: 768px) {
  .about__pillar-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
}

/* =============================================
   HERO BLANK FIX
   Ensure hero content always visible regardless
   of whether carousel images load
   ============================================= */

/* Hero must always show content — never collapse */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh; /* fallback */
  display: flex;
  flex-direction: column;
}

/* Guarantee navy bg so text is readable if images fail */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--navy);
  z-index: 0;
}

/* Ensure all overlay layers stack correctly */
.hero__carousel { z-index: 0; }
.hero__bg       { z-index: 1; }
.hero__grid     { z-index: 2; }
.hero .container { z-index: 3; position: relative; }
.hero__scroll   { z-index: 4; }
.hero__carousel-controls { z-index: 5; }

/* hero content must always be visible */
.hero__content {
  position: relative;
  z-index: 3;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Ensure hero__left text is never clipped or hidden */
.hero__left {
  position: relative;
  z-index: 3;
}

/* Mobile: ensure sufficient height and padding */
@media (max-width: 768px) {
  .hero {
    min-height: 100svh;
    padding-top: 5rem;
    padding-bottom: 2rem;
  }
  .hero .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .hero__content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
}

/* Footer contact items as clickable links (tel: / maps) */
.footer__contact-item {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: color 0.2s ease;
}
.footer__contact-item:hover {
  color: var(--amber);
}
.footer__contact-item:hover svg {
  stroke: var(--amber);
}

/* =============================================
   ABOUT SECTION — IMAGE CAROUSEL
   ============================================= */
.about__carousel {
  position: relative;
}
.about__carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.about__carousel-slide.active {
  opacity: 1;
  z-index: 1;
}
.about__carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.about__carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  background: rgba(0,0,0,0.35);
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.about__carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.6);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.about__carousel-dot:hover { border-color: #fff; transform: scale(1.15); }
.about__carousel-dot.active {
  background: var(--amber);
  border-color: var(--amber);
  width: 16px;
  border-radius: 4px;
}