/* ============================================================
   HERO — "Precision Care" editorial theme
   Loaded AFTER home.css, so these rules override the default hero.
   To revert: remove the hero-unique.css <link> from index.php.
   ============================================================ */

.hero-modern {
  --ink: #05121f;
  --ink-2: #071b2c;
  --hero-line: rgba(255, 255, 255, .10);
  --hero-teal: #35d0c0;
  --hero-mint: #7ff3e2;
  position: relative;
  min-height: 100vh;
  padding: 9rem 0 6rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(1200px 700px at 84% -12%, rgba(7, 152, 213, .20), transparent 60%),
    radial-gradient(900px 620px at 6% 112%, rgba(0, 128, 54, .18), transparent 62%),
    linear-gradient(158deg, #05121f 0%, #071b2c 55%, #04101b 100%);
}

/* Fine blueprint grid */
.hero-modern::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 74px 74px;
  -webkit-mask-image: radial-gradient(125% 105% at 28% 28%, #000 0%, transparent 78%);
  mask-image: radial-gradient(125% 105% at 28% 28%, #000 0%, transparent 78%);
}

/* Slow-drifting aurora wash */
.hero-modern::after {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(53, 208, 192, .20), transparent) 18% 32% / 58% 58% no-repeat,
    radial-gradient(closest-side, rgba(7, 152, 213, .20), transparent) 82% 18% / 50% 50% no-repeat;
  filter: blur(32px);
  animation: heroAurora 18s ease-in-out infinite alternate;
}
@keyframes heroAurora {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(2.4%, -2%, 0) scale(1.08); }
}

/* Image slideshow becomes a clipped diagonal panel on the right */
.hero-slideshow {
  left: auto;
  right: 0;
  width: 58%;
  opacity: .5;
  z-index: 1;
  -webkit-clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-slideshow .slide {
  filter: grayscale(.2) saturate(1.05) brightness(.85) contrast(1.05);
  -webkit-filter: grayscale(.2) saturate(1.05) brightness(.85) contrast(1.05);
  transform: translateX(48px);
  transition: transform 1.2s cubic-bezier(.6, .05, .25, 1), opacity 1s ease, filter 1s ease;
}
.hero-slideshow .slide.active {
  transform: translateX(0);
  filter: grayscale(.2) saturate(1.05) brightness(.85) contrast(1.05);
  -webkit-filter: grayscale(.2) saturate(1.05) brightness(.85) contrast(1.05);
}
.slideshow-overlay {
  background:
    linear-gradient(90deg, #05121f 0%, rgba(5, 18, 31, .94) 16%, rgba(5, 18, 31, .5) 44%, rgba(5, 18, 31, .18) 72%, rgba(5, 18, 31, .4) 100%),
    radial-gradient(120% 120% at 92% 40%, rgba(4, 16, 27, .25), rgba(4, 16, 27, .82) 100%);
}
.slideshow-overlay::after { display: none; }

/* Remove the older decorative clutter */
.floating-elements,
.balloon-field { display: none !important; }
.hero-bg-animation { opacity: .35; animation: none; }

/* Layout */
.hero-modern-container {
  max-width: 1320px;
  padding: 0 clamp(24px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Content */
.hero-modern-content { max-width: 620px; }
.hero-modern-content::before { display: none; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--hero-line);
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 1.6rem;
  color: #bfe0f2;
  font-size: .68rem;
  letter-spacing: .22em;
  box-shadow: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.tag-pulse {
  background: var(--hero-teal);
  box-shadow: 0 0 0 4px rgba(53, 208, 192, .16), 0 0 14px rgba(53, 208, 192, .9);
}

.hero-modern-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.04em;
  color: #fff;
  text-shadow: none;
  max-width: 15ch;
  margin-bottom: 1.3rem;
}
.hero-modern-title .title-accent {
  background: linear-gradient(100deg, #7ff3e2 0%, #35d0c0 42%, #56b8f2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 800;
}

/* Animated ECG pulse line */
.hero-pulse {
  width: min(340px, 82%);
  height: 34px;
  margin: 0 0 1.25rem;
  opacity: .95;
}
.hero-pulse svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hero-pulse .pulse-line {
  fill: none;
  stroke: var(--hero-teal);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 460;
  stroke-dashoffset: 460;
  filter: drop-shadow(0 0 6px rgba(53, 208, 192, .85));
  animation: heroPulseDraw 3.6s ease-in-out infinite;
}
@keyframes heroPulseDraw {
  0%        { stroke-dashoffset: 460; opacity: .15; }
  38%       { stroke-dashoffset: 0;   opacity: 1; }
  72%, 100% { stroke-dashoffset: 0;   opacity: .3; }
}

.hero-modern-verse {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(53, 208, 192, .08);
  border: 1px solid rgba(53, 208, 192, .28);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 1.5rem;
  color: #a9f2e6;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.hero-modern-verse i { color: #5ff0d8; }

.hero-modern-text {
  color: rgba(214, 232, 244, .72);
  font-weight: 400;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.78;
  max-width: 46ch;
  text-shadow: none;
  margin-bottom: 2rem;
}

.hero-buttons { gap: .9rem; margin-bottom: 2.2rem; }
.btn-hero-primary {
  background: linear-gradient(120deg, #0a6f9e 0%, #0b8f8a 55%, #0aa07a 100%);
  border-radius: 999px;
  padding: 15px 30px;
  font-size: .92rem;
  box-shadow: 0 18px 40px rgba(7, 152, 213, .26), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 52px rgba(10, 160, 122, .38), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn-hero-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .28);
  color: #eaf6ff;
  border-radius: 999px;
  box-shadow: none;
  padding: 14px 28px;
}
.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: none;
}

.hero-social-proof {
  display: inline-flex;
  align-items: center;
  gap: 1.6rem;
  padding: 1rem 1.4rem;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--hero-line);
  border-radius: 16px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.proof-number {
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
}
.proof-label { color: rgba(203, 224, 238, .58); }
.proof-divider {
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .22), transparent);
}

/* Gallery composition */
.hero-modern-gallery {
  position: relative;
  align-self: center;
  margin-top: 0;
  min-width: 0;
}
.gallery-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  opacity: 1;
  animation: none;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .16);
  cursor: pointer;
  transition: transform .45s cubic-bezier(.22, .61, .36, 1), box-shadow .45s ease;
}
.gallery-item-1 {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
}
.gallery-item-2 { transform: translateY(16px) rotate(-1.3deg); }
.gallery-item-3 { transform: translateY(-10px) rotate(1.4deg); }
.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 36px 70px rgba(0, 0, 0, .55);
}
.gallery-item-1:hover { transform: translateY(-6px); }
.gallery-item::after {
  background: linear-gradient(180deg, transparent 45%, rgba(4, 14, 24, .55));
}

/* Rotating quality seal */
.hero-seal {
  position: absolute;
  top: -34px;
  right: -12px;
  width: 122px;
  height: 122px;
  z-index: 3;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(53, 208, 192, .34);
  background: radial-gradient(circle at 50% 45%, rgba(7, 27, 44, .92), rgba(5, 18, 31, .62));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .4));
}
.hero-seal svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: sealSpin 22s linear infinite;
}
.hero-seal text {
  fill: #9df3e6;
  font-family: 'Sora', sans-serif;
  font-size: 8.6px;
  font-weight: 700;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}
.hero-seal-core {
  font-size: 1.25rem;
  color: #5ff0d8;
  filter: drop-shadow(0 0 8px rgba(53, 208, 192, .7));
}
@keyframes sealSpin { to { transform: rotate(360deg); } }

/* Floating card */
.hero-float-card {
  bottom: -22px;
  right: 20px;
  background: rgba(7, 27, 44, .88);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .42);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.hero-float-card-icon {
  background: linear-gradient(135deg, #35d0c0, #0798d5);
  box-shadow: 0 4px 14px rgba(53, 208, 192, .45);
}
.hero-float-card-info h4 { color: #fff; }
.hero-float-card-info p { color: #7ff3e2; }

/* Scroll cue */
.scroll-indicator-modern {
  color: rgba(203, 224, 238, .6);
  letter-spacing: .28em;
}
.scroll-mouse { border-color: rgba(255, 255, 255, .34); }
.scroll-wheel { background: linear-gradient(180deg, #5ff0d8, #0798d5); }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .hero-modern { padding: 8rem 0 5rem; min-height: auto; }
  .hero-modern-container { grid-template-columns: 1fr; gap: 2.6rem; }
  .hero-modern-content { max-width: 680px; }
  .hero-slideshow {
    width: 100%;
    opacity: .32;
    -webkit-clip-path: none;
    clip-path: none;
  }
  .hero-modern-gallery { width: 100%; max-width: 620px; margin: 0 auto; }
  .hero-seal { top: -26px; right: 6px; width: 104px; height: 104px; }
}

@media (max-width: 768px) {
  .hero-modern {
    padding: clamp(5.5rem, 13vw, 7rem) 0 clamp(2.5rem, 7vw, 3.5rem);
  }
  .hero-modern-container {
    padding: 0 clamp(16px, 5.5vw, 26px);
    gap: 2rem;
  }
  .hero-modern-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0;
  }
  .hero-modern-title {
    font-size: clamp(1.9rem, 8.6vw, 2.9rem);
    line-height: 1.06;
    letter-spacing: -.03em;
    max-width: none;
    overflow-wrap: break-word;
    margin-bottom: clamp(.9rem, 3vw, 1.3rem);
  }
  .hero-tag {
    max-width: 100%;
    flex-wrap: wrap;
    font-size: clamp(.66rem, 3.1vw, .72rem);
    letter-spacing: .12em;
    line-height: 1.45;
    color: #d7eefb;
    padding: 7px 13px;
    gap: 7px;
    margin-bottom: 1.1rem;
  }
  .hero-modern-verse {
    max-width: 100%;
    flex-wrap: wrap;
    font-size: clamp(.7rem, 3.2vw, .78rem);
    letter-spacing: .07em;
    line-height: 1.4;
    color: #c3f8ef;
    padding: 6px 13px;
    margin-bottom: 1.1rem;
  }
  .hero-pulse {
    width: min(100%, 300px);
    height: clamp(24px, 7vw, 30px);
    margin: 0 auto 1rem;
  }
  .hero-modern-text {
    font-size: clamp(.98rem, 3.8vw, 1.08rem);
    line-height: 1.72;
    max-width: none;
    color: rgba(226, 241, 250, .88);
    margin-bottom: 1.6rem;
  }
  .hero-buttons {
    flex-wrap: nowrap;
    gap: .7rem;
    margin-bottom: 1.8rem;
  }
  .btn-hero-primary,
  .btn-hero-secondary {
    flex: 1 1 0;
    min-width: 0;
    padding: 13px 16px;
    font-size: clamp(.8rem, 3.2vw, .9rem);
    text-align: center;
    white-space: nowrap;
  }
  .hero-modern-gallery,
  .hero-seal,
  .scroll-indicator-modern { display: none; }
}

@media (max-width: 480px) {
  .hero-modern { padding-top: clamp(5rem, 16vw, 6rem); }
  .hero-modern-title { font-size: clamp(1.75rem, 9.5vw, 2.3rem); }
  .hero-tag { letter-spacing: .1em; }
  .hero-buttons { flex-direction: row; flex-wrap: nowrap; gap: .5rem; }
  .btn-hero-primary,
  .btn-hero-secondary {
    flex: 1 1 0;
    padding: 12px 8px;
    font-size: clamp(.72rem, 3.4vw, .8rem);
    letter-spacing: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-modern::after,
  .hero-seal svg,
  .hero-pulse .pulse-line { animation: none; }
  .hero-pulse .pulse-line { stroke-dashoffset: 0; }
}

/* ============================================================
   V2 ORNAMENTS � precision-instrument treatment
   ============================================================ */

/* Numbered eyebrow */
.hero-tag::before {
  content: "01";
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  color: #5ff0d8;
  padding-right: 11px;
  margin-right: 5px;
  border-right: 1px solid rgba(53, 208, 192, .4);
}

/* Crosshair frame */
.hero-corners {
  position: absolute;
  inset: clamp(74px, 9vh, 98px) clamp(22px, 4vw, 58px) clamp(38px, 6vh, 66px);
  z-index: 2;
  pointer-events: none;
}
.hero-corners i {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(127, 243, 226, .32);
}
.hero-corners i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hero-corners i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hero-corners i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hero-corners i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* Vertical side rail */
.hero-rail {
  position: absolute;
  left: clamp(14px, 2.4vw, 28px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  writing-mode: vertical-rl;
  font-family: 'Sora', sans-serif;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .44em;
  text-transform: uppercase;
  color: rgba(203, 224, 238, .45);
  pointer-events: none;
}
.hero-rail i {
  display: block;
  width: 1px;
  height: 54px;
  background: linear-gradient(180deg, transparent, rgba(53, 208, 192, .75), transparent);
}

/* Giant outlined ghost word */
.hero-ghost {
  position: absolute;
  left: -1.5%;
  bottom: -7%;
  z-index: 0;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: clamp(9rem, 27vw, 27rem);
  line-height: .78;
  letter-spacing: -.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .055);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* Centrifuge rings behind the gallery */
.hero-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(155%, 760px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}
.hero-rings span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(127, 243, 226, .15);
}
.hero-rings span:nth-child(1) { animation: heroRingSpin 44s linear infinite; }
.hero-rings span:nth-child(2) {
  inset: 13%;
  border-style: solid;
  border-color: rgba(127, 243, 226, .08);
  animation: heroRingSpin 64s linear infinite reverse;
}
.hero-rings span:nth-child(3) { inset: 28%; border-color: rgba(255, 255, 255, .05); }
@keyframes heroRingSpin { to { transform: rotate(360deg); } }

/* Diagnostic scanning beam over the gallery */
.hero-scan {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 2%;
  height: 2px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(127, 243, 226, .9), transparent);
  box-shadow: 0 0 18px rgba(53, 208, 192, .7);
  opacity: 0;
  animation: heroScan 6s ease-in-out infinite;
}
@keyframes heroScan {
  0%, 8%   { top: 2%;  opacity: 0; }
  14%      { opacity: .8; }
  50%      { top: 97%; opacity: .55; }
  58%, 100%{ top: 97%; opacity: 0; }
}

/* Floating spec chips */
.hero-spec {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid rgba(53, 208, 192, .3);
  border-radius: 999px;
  background: rgba(5, 18, 31, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: 'Sora', sans-serif;
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #a9f2e6;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .32);
}
.hero-spec::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--hero-teal);
  box-shadow: 0 0 8px var(--hero-teal);
}
.hero-spec-a { top: 17%; left: -28px; }
.hero-spec-b { bottom: 11%; right: -22px; }

/* Title balance + selection accent */
.hero-modern-title { text-wrap: balance; }

@media (max-width: 1024px) {
  .hero-rail,
  .hero-corners { display: none; }
  .hero-spec-a { left: 4px; }
  .hero-spec-b { right: 4px; }
}

@media (max-width: 640px) {
  .hero-ghost { display: none; }
  .hero-spec,
  .hero-rings,
  .hero-scan { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-rings span,
  .hero-scan { animation: none; }
  .hero-scan { opacity: 0; }
}
