/* hero-vivid: full-bleed, gradient-washed hero carousel. One slide per service.
   Markup: <section class="hv" data-hero-vivid> ... (see README). Works without JavaScript (slide 1 is static).
   hero-vivid.js adds autoplay (3.5 s), counter, progress segments, arrows, swipe, arrow keys and ?slide=N.
   RE-THEME PER SITE by overriding the custom properties below on .hv (palette, angle, headline font/weight). */
.hv{
  /* palette: four gradient stops, light to dark, plus the darkest ink used behind text */
  --hv-c1:#ff9a1f; --hv-c2:#e8351e; --hv-c3:#7a0f2e; --hv-c4:#3b1178; --hv-ink:#1d0626;
  --hv-c2d:color-mix(in srgb,var(--hv-c2) 76%,var(--hv-ink));   /* c2 deepened so white text keeps 4.5:1 on it */
  --hv-on:#fff;                 /* text colour on the wash */
  --hv-accent:#ffc65a;          /* kicker, counter, active progress */
  --hv-angle:100deg;            /* direction of the wash on wide screens (dark end sits under the text) */
  --hv-wash:1;                  /* 0-1 strength of the colour wash under the text */
  --hv-tint:.5;                 /* 0-1 strength of the soft-light palette tint over the whole picture */
  --hv-btn-a:#ffc233; --hv-btn-b:#ff7a1a; --hv-btn-ink:#2a0713;   /* gradient-filled button */
  --hv-title-font:inherit; --hv-title-weight:900; --hv-title-size:clamp(2.7rem,6.1vw,5.6rem);
  --hv-title-lh:1; --hv-title-track:-.015em; --hv-title-case:none;
  --hv-font:inherit;            /* kicker, benefit line, button, counter */
  --hv-radius:999px;            /* button and control radius */
  --hv-wrap:1180px; --hv-gutter:20px;   /* match the site's content column */
  --hv-col-end:47vw;            /* wide screens: where the text column ends (the wash is solid up to here) */
  --hv-col:calc(var(--hv-col-end) - max(0px,(100vw - var(--hv-wrap))/2) - var(--hv-gutter));
  --hv-offset:126px;            /* height of whatever sits above the hero (top bar + header) */
  --hv-min:560px; --hv-max:920px;
  --hv-focus:68% 50%;           /* object-position of the pictures (subject is right of centre) */
  --hv-float-clear:0px;         /* room to keep free at the right of the controls for a site's floating call/chat buttons */
  --hv-split:58%;               /* phones: share of the hero height given to the picture */
  --hv-interval:3500ms;         /* set from data-interval by the script; drives the progress fill */
  position:relative;isolation:isolate;overflow:hidden;width:100%;margin:0;
  height:clamp(var(--hv-min),calc(100vh - var(--hv-offset)),var(--hv-max));
  height:clamp(var(--hv-min),calc(100svh - var(--hv-offset)),var(--hv-max));
  color:var(--hv-on);font-family:var(--hv-font);
  background:linear-gradient(180deg,var(--hv-c3),var(--hv-c4) 70%,var(--hv-ink));
}
.hv *,.hv *::before,.hv *::after{box-sizing:border-box}

/* ---- slides ---- */
.hv__slide{position:absolute;inset:0;display:none;--hv-focus-sm:var(--hv-focus)}
.hv__slide.is-active{display:block;z-index:2}
.hv__slide.is-prev{display:block;z-index:1}
.hv__slide.is-primed{display:block;z-index:0;visibility:hidden}   /* next slide: laid out so its lazy picture loads */
.hv.is-anim .hv__slide.is-active{animation:hv-in .8s ease both}
.hv.is-anim .hv__slide.is-active .hv__media img{animation:hv-zoom 5s ease-out both}
.hv.is-anim .hv__slide.is-active .hv__body>*{animation:hv-rise .7s cubic-bezier(.2,.7,.2,1) both}
.hv.is-anim .hv__slide.is-active .hv__body>*:nth-child(2){animation-delay:.07s}
.hv.is-anim .hv__slide.is-active .hv__body>*:nth-child(3){animation-delay:.14s}
.hv.is-anim .hv__slide.is-active .hv__body>*:nth-child(4){animation-delay:.21s}
@keyframes hv-in{from{opacity:0}to{opacity:1}}
@keyframes hv-zoom{from{transform:scale(1.07)}to{transform:scale(1)}}
@keyframes hv-rise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}

/* ---- picture + gradient layers ---- */
.hv__media{position:absolute;inset:0;display:block;overflow:hidden;margin:0}
.hv__media img{position:absolute;inset:0;width:100%;height:100%;max-width:none;display:block;border-radius:0;
  object-fit:cover;object-position:var(--hv-focus)}
/* 1. palette tint over the whole picture (keeps every site's pictures in its own colours) */
.hv__media::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;opacity:var(--hv-tint);
  mix-blend-mode:soft-light;
  background:linear-gradient(var(--hv-angle),var(--hv-c4),var(--hv-c3) 30%,var(--hv-c2) 60%,var(--hv-c1))}
/* 2. bold multi-stop wash: solid palette under the headline, melting into the picture */
.hv__media::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;opacity:var(--hv-wash);
  background:
    linear-gradient(0deg,color-mix(in srgb,var(--hv-ink) 50%,transparent),transparent 22%),
    linear-gradient(var(--hv-angle),
      var(--hv-c4) 0%,
      color-mix(in srgb,var(--hv-c4) 50%,var(--hv-c3)) 11%,
      var(--hv-c3) 24%,
      color-mix(in srgb,var(--hv-c2d) 96%,transparent) 39%,
      color-mix(in srgb,var(--hv-c2d) 84%,transparent) 46%,
      color-mix(in srgb,var(--hv-c2) 46%,transparent) 54%,
      color-mix(in srgb,var(--hv-c1) 14%,transparent) 61%,
      transparent 70%)}

/* ---- text ---- */
.hv__body{position:absolute;z-index:3;inset:0;margin:0 auto;width:100%;max-width:var(--hv-wrap);
  padding:clamp(1.5rem,4vh,3rem) var(--hv-gutter) clamp(6rem,15vh,8.5rem);
  display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:0;text-align:left;
  pointer-events:none}
.hv__body>*{pointer-events:auto;margin:0;max-width:var(--hv-col)}
.hv__kicker{display:inline-flex;align-items:center;gap:.7rem;font-size:.8rem;font-weight:700;letter-spacing:.2em;
  text-transform:uppercase;color:var(--hv-accent);margin-bottom:1rem}
.hv__kicker::before{content:"";width:2.6rem;height:3px;border-radius:3px;
  background:linear-gradient(90deg,var(--hv-c1),var(--hv-c2))}
.hv__title{font-family:var(--hv-title-font);font-weight:var(--hv-title-weight);font-size:var(--hv-title-size);
  line-height:var(--hv-title-lh);letter-spacing:var(--hv-title-track);text-transform:var(--hv-title-case);
  color:var(--hv-on);text-wrap:balance;
  text-shadow:0 2px 26px color-mix(in srgb,var(--hv-ink) 55%,transparent)}
.hv__text{font-size:clamp(1.02rem,1.5vw,1.25rem);line-height:1.5;font-weight:500;
  color:var(--hv-on);margin-top:1.1rem;
  text-shadow:0 1px 14px color-mix(in srgb,var(--hv-ink) 70%,transparent)}
.hv__btn{display:inline-flex;align-items:center;gap:.6rem;margin-top:1.7rem;padding:.95rem 1.7rem;
  border-radius:var(--hv-radius);font-size:1.02rem;font-weight:800;line-height:1.2;letter-spacing:.01em;
  text-decoration:none;color:var(--hv-btn-ink);
  background:linear-gradient(95deg,var(--hv-btn-a),var(--hv-btn-b));
  box-shadow:0 14px 34px -12px color-mix(in srgb,var(--hv-c1) 85%,transparent),inset 0 1px 0 rgba(255,255,255,.45);
  transition:transform .18s ease,filter .18s ease}
.hv__btn::after{content:"";width:1.05em;height:1.05em;flex:none;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition:transform .18s ease}
.hv__btn:hover{transform:translateY(-2px);filter:brightness(1.06) saturate(1.08)}
.hv__btn:hover::after{transform:translateX(4px)}
.hv__btn:focus-visible,.hv__arrow:focus-visible,.hv__seg:focus-visible{outline:3px solid var(--hv-on);outline-offset:3px}
.hv__sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}

/* ---- controls (built by the script) ---- */
.hv__ui{position:absolute;z-index:4;left:0;right:0;bottom:0;margin:0 auto;width:100%;max-width:var(--hv-wrap);
  padding:0 calc(var(--hv-gutter) + var(--hv-float-clear)) clamp(1.3rem,4vh,2.2rem) var(--hv-gutter);display:flex;align-items:center;gap:1.2rem}
.hv:not(.is-ready) .hv__ui{display:none}
.hv__count{display:flex;align-items:baseline;gap:.35rem;font-family:var(--hv-title-font);font-weight:var(--hv-title-weight);
  font-variant-numeric:tabular-nums lining-nums;line-height:1;color:var(--hv-on);flex:none}
.hv__count b{font-size:2.3rem;font-weight:inherit;color:var(--hv-accent)}
.hv__count span{font-size:1rem;opacity:.85}
.hv__segs{display:flex;align-items:center;gap:8px;flex:0 1 420px;min-width:0}
.hv__seg{flex:1 1 0;min-width:0;height:28px;padding:0;border:0;background:none;cursor:pointer;position:relative;border-radius:6px}
.hv__seg::before,.hv__seg::after{content:"";position:absolute;left:0;right:0;top:50%;height:5px;margin-top:-2.5px;border-radius:5px}
.hv__seg::before{background:color-mix(in srgb,var(--hv-on) 34%,transparent)}
.hv__seg::after{background:linear-gradient(90deg,var(--hv-c1),var(--hv-accent));transform-origin:0 50%;transform:scaleX(0)}
.hv__seg.is-done::after{transform:none;opacity:.55}
.hv__seg[aria-current="true"]::after{transform:none}
.hv.is-playing .hv__seg[aria-current="true"]::after{animation:hv-fill var(--hv-interval) linear both}
@keyframes hv-fill{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.hv__arrows{display:flex;gap:.6rem;margin-left:auto;flex:none}
.hv__arrow{width:52px;height:52px;padding:0;display:grid;place-items:center;cursor:pointer;border-radius:var(--hv-radius);
  color:var(--hv-on);border:2px solid color-mix(in srgb,var(--hv-on) 60%,transparent);
  background:color-mix(in srgb,var(--hv-ink) 42%,transparent);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  transition:background .18s ease,color .18s ease,border-color .18s ease}
.hv__arrow:hover{background:linear-gradient(95deg,var(--hv-btn-a),var(--hv-btn-b));color:var(--hv-btn-ink);border-color:transparent}
.hv__arrow svg{width:22px;height:22px;display:block}
/* palette signature along the bottom edge */
.hv::after{content:"";position:absolute;z-index:5;left:0;right:0;bottom:0;height:5px;pointer-events:none;
  background:linear-gradient(90deg,var(--hv-c1),var(--hv-c2) 35%,var(--hv-c3) 68%,var(--hv-c4))}

/* ---- phones and small tablets: picture on top, fading by gradient into the text block ---- */
@media (max-width:760px){
  .hv{--hv-min:600px;--hv-max:800px;--hv-title-size:clamp(2.15rem,10.4vw,3.1rem);--hv-col:100%}
  .hv__slide{background:linear-gradient(180deg,var(--hv-c3) var(--hv-split),var(--hv-c4) 84%,color-mix(in srgb,var(--hv-c4) 55%,var(--hv-ink)))}
  .hv__media{inset:0 0 auto 0;height:var(--hv-split)}
  .hv__media img{object-position:var(--hv-focus-sm)}
  .hv__media::before{opacity:calc(var(--hv-tint)*.6)}
  .hv__media::after{
    background:linear-gradient(180deg,
      color-mix(in srgb,var(--hv-c4) 38%,transparent) 0%,transparent 16%,transparent 44%,
      color-mix(in srgb,var(--hv-c2d) 46%,transparent) 64%,
      color-mix(in srgb,var(--hv-c3) 88%,transparent) 86%,var(--hv-c3) 100%)}
  .hv__body{justify-content:flex-end;padding:0 var(--hv-gutter) 5.1rem}
  .hv__kicker{font-size:.72rem;margin-bottom:.6rem}
  .hv__text{font-size:1rem;line-height:1.42;margin-top:.7rem;padding-right:var(--hv-float-clear)}
  .hv__btn{margin-top:1.05rem;padding:.8rem 1.4rem;font-size:.98rem}
  .hv__ui{top:0;align-items:flex-end;gap:.9rem;padding-bottom:1.15rem;pointer-events:none}
  .hv__ui>*{pointer-events:auto}
  .hv__count b{font-size:1.7rem}
  .hv__count span{font-size:.85rem}
  .hv__segs{flex:1 1 auto;gap:5px}
  /* arrows move up to the sides of the picture; counter + progress keep the bottom row */
  .hv__arrows{position:absolute;left:10px;right:10px;top:calc(var(--hv-split)*.46);margin:-21px 0 0;justify-content:space-between;pointer-events:none}
  .hv__arrow{width:42px;height:42px;pointer-events:auto;border-width:1.5px}
  .hv__arrow svg{width:18px;height:18px}
}
@media (max-width:760px) and (max-height:700px){
  .hv{--hv-split:50%;--hv-min:540px}
  .hv__text{display:none}
}
/* portrait tablets: keep the picture from being cropped to a sliver */
@media (min-width:761px) and (orientation:portrait){
  .hv{--hv-max:700px}
}
/* wide but short windows (laptops with toolbars, landscape tablets) */
@media (min-width:761px) and (max-height:720px){
  .hv{--hv-min:480px;--hv-title-size:clamp(2.4rem,5vw,4rem)}
  .hv__body{padding-bottom:5.5rem}
}
@media (prefers-reduced-motion:reduce){
  .hv.is-anim .hv__slide.is-active,.hv.is-anim .hv__slide.is-active .hv__media img,
  .hv.is-anim .hv__slide.is-active .hv__body>*,.hv.is-playing .hv__seg[aria-current="true"]::after{animation:none}
  .hv__btn,.hv__btn::after{transition:none}
}
@media (forced-colors:active){
  .hv__media::before,.hv__media::after{display:none}
  .hv__body{background:Canvas;color:CanvasText}
}

/* ---- site theme: healerramji.com - the site's own crimson and saffron from the Astrologer Ramji logo (style.css: crimson #C8102E, saffron #F7941D, --text #2A0E12, cream #FFF7EE) ---- */
@font-face{font-family:"Playfair Display Hero";font-style:normal;font-weight:900;font-display:swap;
  src:url("../fonts/playfair-display-900.woff2") format("woff2")}
.hv{
  --hv-c1:#ffc45c; --hv-c2:#f7941d; --hv-c3:#c00f2c; --hv-c4:#8a0a20; --hv-ink:#2a0e12;
  --hv-c2d:#b6311a;               /* saffron is too light for white text: a vermilion between the two brand colours sits under the end of the text column */
  --hv-accent:#ffedc6; --hv-angle:104deg;
  --hv-btn-a:#ffffff; --hv-btn-b:#ffe2b8; --hv-btn-ink:#a00c24;
  --hv-title-font:"Playfair Display Hero","Playfair Display",var(--font-display); --hv-title-weight:900;
  --hv-title-size:clamp(2.6rem,5.6vw,5.2rem); --hv-title-lh:1.03; --hv-title-track:-.015em;
  --hv-font:var(--font-body); --hv-wrap:var(--wrap); --hv-offset:153px;
  /* room for the site's floating Call / WhatsApp pill (263px wide, 20px from the right edge) */
  --hv-float-clear:max(0px,calc((min(var(--hv-wrap),100vw) - 100vw)/2 - var(--hv-gutter) + 303px));
}
.hv__btn{box-shadow:0 14px 34px -12px rgba(255,214,150,.8),inset 0 1px 0 rgba(255,255,255,.6)}
/* height of top bar + header at each breakpoint; below 900px the Call / WhatsApp pill becomes a 68px bar across the bottom */
@media (max-width:899px){.hv{--hv-offset:250px;--hv-float-clear:0px}}
@media (max-width:760px){.hv{--hv-offset:203px;--hv-split:53%;--hv-title-size:clamp(2rem,9.4vw,2.8rem)}}
@media (min-width:761px) and (max-height:720px){.hv{--hv-title-size:clamp(2.3rem,4.6vw,3.8rem)}}

/* slide counter hidden (owner request, 25 Nov 2026) */
.hv__count{display:none!important}
