/* =========================================================
   HOME PAGE
   ========================================================= */

/* ---- HERO ---- */
.hero {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--clr-navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--grad-blue);
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11,31,75,0.4) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: var(--fw-semi);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--clr-sky);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px; height: 2px;
  background: var(--clr-sky);
  border-radius: 2px;
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: var(--fw-black);
  color: var(--clr-white);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}
.hero-title .accent { color: var(--clr-sky); }

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,0.75);
  max-width: 540px;
  margin-bottom: var(--space-xl);
  font-weight: var(--fw-light);
}

.hero-actions { display: flex; gap: var(--space-md); flex-wrap: wrap; }

/* ---- HERO: heading on top, three photo panels underneath (photos stay fully visible) ---- */
.hero-text-overlay {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: var(--space-3xl) 0 var(--space-xl);
}
.hero-text-overlay .hero-subtitle { max-width: 620px; }

.hero-panels {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0;
  height: clamp(300px, 36vw, 440px);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-lg) var(--space-2xl);
  box-sizing: content-box;
}
.hero-panel {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: block;
  color: #fff;
  text-decoration: none;
  background: var(--clr-navy);
  border-radius: var(--radius-lg);
  margin: 0 var(--space-sm);
  box-shadow: var(--shadow-lg);
  transition: flex 0.6s var(--ease-out), box-shadow 0.3s;
}
.hero-panel:hover, .hero-panel:focus-visible { flex: 1.35; box-shadow: var(--shadow-glow), var(--shadow-lg); }
.hero-panel:focus-visible { outline: 3px solid var(--clr-sky); outline-offset: 3px; }

.hero-panel-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.hero-panel:hover .hero-panel-img { transform: scale(1.05); }

/* Dark fade only along the bottom, behind the words. The photo above it stays bright. */
.hero-panel-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 52%;
  background: linear-gradient(to top, rgba(11,31,75,0.96) 0%, rgba(11,31,75,0.82) 38%, rgba(11,31,75,0) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-panel-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--space-lg);
  text-align: left;
  z-index: 2;
}
.hero-panel-label .icon { font-size: 1.5rem; line-height: 1; margin-bottom: 0.35rem; }
.hero-panel-label strong {
  display: block;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: var(--fw-bold);
  line-height: 1.25;
}
.hero-panel-label span {
  display: block;
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 0.15rem;
}
.hero-cta-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 3;
  padding: 0.45em 1em;
  border-radius: var(--radius-full);
  background: rgba(11,31,75,0.78);
  border: 1px solid rgba(127,184,232,0.55);
  color: #fff;
  font-size: 0.75rem;
  font-weight: var(--fw-semi);
  letter-spacing: 0.04em;
  transition: background 0.3s;
}
.hero-panel:hover .hero-cta-badge { background: var(--clr-bright); }

/* ---- COUNTERS STRIP ---- */
.counters-section {
  background: var(--clr-navy);
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}
.counters-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(47,128,208,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,128,208,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

.counters-grid {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
  align-items: stretch;
}

.counter-item {
  flex: 1;
  min-width: 160px;
  text-align: center;
  padding: var(--space-lg) var(--space-xl);
  border-right: 1px solid rgba(127,184,232,0.15);
}
.counter-item:last-child { border-right: none; }

.counter-number {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: var(--fw-black);
  color: var(--clr-white);
  line-height: 1;
  letter-spacing: -0.02em;
}
.counter-suffix {
  color: var(--clr-sky);
}
.counter-label {
  font-size: 0.82rem;
  font-weight: var(--fw-medium);
  color: rgba(255,255,255,0.6);
  margin-top: 0.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .counters-grid { gap: var(--space-xs); }
  .counter-item { border-right: none; border-bottom: 1px solid rgba(127,184,232,0.1); flex-basis: 50%; }
  .counter-item:last-child { border-bottom: none; }
}

/* ---- PRODUCTS INTRO ---- */
.home-products-section {
  background: var(--surface-alt);
  position: relative;
  overflow: hidden;
}
.home-products-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47,128,208,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ---- GET IN TOUCH CTA ---- */
.cta-strip {
  background: var(--grad-blue);
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}
.cta-strip h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: var(--fw-bold);
  color: var(--clr-white);
  margin-bottom: var(--space-md);
}
.cta-strip p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  margin-bottom: var(--space-xl);
  max-width: 540px;
  margin-inline: auto;
}
.cta-strip .btn-white { margin-inline: auto; }

/* ---- HERO RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hero-text-overlay { padding: var(--space-2xl) 0 var(--space-lg); }
  .hero-panels { padding-bottom: var(--space-xl); }
}
@media (max-width: 700px) {
  .hero-panels { flex-direction: column; height: auto; gap: var(--space-md); padding: 0 var(--space-md) var(--space-xl); }
  .hero-panel { height: 210px; flex: none; margin: 0; }
  .hero-panel:hover { flex: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-panel, .hero-panel-img { transition: none; }
}

/* Home <h1>: keyword line + tagline in one heading */
.hero-h1 { margin: 0; font: inherit; }
.hero-h1 .hero-eyebrow { display: inline-block; }
.hero-h1 .hero-title { display: block; }
