/* ==========================================================================
   DHARMIKAM — ASHRAM (inner page)
   Page-specific blocks only. The banner, breadcrumb and header-over-banner
   treatment come from inner-page.css; tokens, buttons and section shells come
   from base.css / sections.css.

   The gallery here is a copy of the Healing Center page's tile component under
   `.asr-*` names, so the pages look identical without this file being able to
   reach healing-center.html (or any page that does not load it).

   Load order: base.css → sections.css → animations.css → responsive.css
               → inner-page.css → ashram.css (last, so it can refine)
   ========================================================================== */

/* ==========================================================================
   1. BANNER REFINEMENT
   ========================================================================== */
.page-hero--ashram{min-height:clamp(350px,44vw,540px)}
.page-hero--ashram .page-hero__bg img{object-position:center 45%}

/* ==========================================================================
   2. INTRO FRAME
   The stone Hanuman idol is photographed against black, so the frame keeps a
   deep ground rather than the usual botanical one and the image is never
   cropped — its own aspect ratio is preserved at every width.
   ========================================================================== */
.asr-intro{position:relative;z-index:2}
.asr-intro__frame{
  position:relative;overflow:hidden;
  border-radius:var(--r-lg) var(--r-md) var(--r-lg) var(--r-md);
  box-shadow:var(--sh-md);
  background:linear-gradient(150deg,#12271C,#0B1A12);
}
.asr-intro__frame img{
  width:100%;height:auto;display:block;   /* base.css sets a global img height */
  transition:transform 1.3s var(--ease-out);
}
.asr-intro:hover .asr-intro__frame img{transform:scale(1.045)}
.asr-intro__ring{inset:-7% -5% -5% -5%;z-index:1}

@media (max-width:991.98px){
  .asr-media-col{margin-bottom:3rem}
}

/* ==========================================================================
   3. LEADERSHIP PORTRAITS
   ========================================================================== */
.asr-people{
  display:grid;
  gap:clamp(1rem,1.8vw,1.6rem);
  grid-template-columns:repeat(3,1fr);
}
@media (max-width:575.98px){.asr-people{grid-template-columns:1fr}}

.asr-person{
  position:relative;overflow:hidden;height:100%;margin:0;
  display:flex;flex-direction:column;
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--r-md);
  box-shadow:var(--sh-xs);
  transition:transform .55s var(--ease-out),box-shadow .55s var(--ease-out),
             border-color .4s var(--ease);
}
.asr-person::after{
  content:"";position:absolute;top:0;left:0;right:0;height:3px;z-index:2;
  background:linear-gradient(90deg,var(--gold),var(--herb));
  transform:scaleX(0);transform-origin:left;
  transition:transform .6s var(--ease-out);
}
.asr-person:hover,.asr-person:focus-within{
  transform:translateY(-7px);
  box-shadow:var(--sh-md);
  border-color:rgba(192,153,63,.32);
}
.asr-person:hover::after,.asr-person:focus-within::after{transform:scaleX(1)}

.asr-person__media{
  position:relative;overflow:hidden;
  aspect-ratio:447/330;
  background-image:linear-gradient(150deg,var(--mist),var(--sand));
}
.asr-person__media img{
  width:100%;height:100%;object-fit:cover;display:block;
  transition:transform 1.2s var(--ease-out);
}
.asr-person:hover .asr-person__media img,
.asr-person:focus-within .asr-person__media img{transform:scale(1.06)}

.asr-person figcaption{
  padding:1.05rem 1.2rem 1.15rem;
  text-align:center;
  font-family:var(--font-display);
  font-size:clamp(1.02rem,1.25vw,1.18rem);
  font-weight:600;line-height:1.3;letter-spacing:-.01em;
  color:var(--ink);
  transition:color .4s var(--ease);
}
.asr-person:hover figcaption{color:var(--herb)}

/* ==========================================================================
   4. NOTE CHIP
   ========================================================================== */
.asr-note{
  display:inline-flex;align-items:flex-start;gap:.8rem;
  margin-top:.4rem;padding:.85rem 1.35rem;
  border-radius:var(--r-md);
  background:var(--mist);border:1px solid rgba(45,106,79,.18);
  color:var(--deep);
  font-size:.88rem;font-weight:500;line-height:1.5;
  text-align:left;
}
.asr-note i{color:var(--herb);font-size:1rem;margin-top:.12rem;flex:none}

/* ==========================================================================
   5. GALLERY GRID
   Square tiles — the crop the ashram's own galleries use — four across on
   desktop, three on tablet, two on phones. Content-agnostic: adding or
   removing a figure needs no CSS change.
   ========================================================================== */
.asr-grid{
  display:grid;
  gap:clamp(.6rem,1.1vw,1rem);
  grid-template-columns:repeat(4,1fr);
}
@media (max-width:991.98px){.asr-grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:575.98px){.asr-grid{grid-template-columns:repeat(2,1fr);gap:.55rem}}

.asr-tile{
  position:relative;overflow:hidden;
  margin:0;                       /* figure carries a default margin */
  aspect-ratio:1;
  border-radius:var(--r-sm);
  box-shadow:var(--sh-sm);
  background-image:linear-gradient(150deg,var(--mist),var(--sand));
  transition:transform .55s var(--ease-out),box-shadow .55s var(--ease-out);
}
.asr-tile img{
  width:100%;height:100%;object-fit:cover;display:block;
  transition:transform 1.2s var(--ease-out);
}
.asr-tile::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(15,46,30,.06),rgba(15,46,30,.26));
  opacity:.55;transition:opacity .5s var(--ease);
}
.asr-tile:hover,.asr-tile:focus-within{
  transform:translateY(-5px);
  box-shadow:var(--sh-md);
}
.asr-tile:hover img,.asr-tile:focus-within img{transform:scale(1.07)}
.asr-tile:hover::after,.asr-tile:focus-within::after{opacity:1}

/* thin gold hairline that draws in on hover */
.asr-tile__edge{
  position:absolute;z-index:3;inset:0;pointer-events:none;
  border:1px solid rgba(226,200,138,0);
  border-radius:inherit;
  transition:border-color .5s var(--ease);
}
.asr-tile:hover .asr-tile__edge,
.asr-tile:focus-within .asr-tile__edge{border-color:rgba(226,200,138,.55)}

.section--dark .asr-tile{
  box-shadow:0 18px 40px -24px rgba(0,0,0,.75);
  background-image:linear-gradient(150deg,#1B4332,#123722);
}

/* ==========================================================================
   6. WHAT DAILY WORSHIP IS MEANT FOR
   An ordered list — the numbers come from a counter so the markup stays a
   real <ol> and the badge styling never fights the list marker.
   ========================================================================== */
.asr-purpose{
  list-style:none;counter-reset:asr-purpose;
  margin:0;padding:0;
  display:grid;gap:clamp(.85rem,1.5vw,1.25rem);
}
.asr-purpose > li{
  position:relative;height:100%;
  display:flex;align-items:flex-start;gap:1rem;
  padding:1.35rem 1.5rem;
  background:#fff;border:1px solid var(--line);
  border-radius:var(--r-sm);
  box-shadow:var(--sh-xs);
  font-size:.95rem;line-height:1.6;color:var(--ink);
  transition:transform .5s var(--ease-out),box-shadow .5s var(--ease-out),
             border-color .4s var(--ease);
}
.asr-purpose > li::before{
  counter-increment:asr-purpose;content:counter(asr-purpose);
  flex:none;width:34px;height:34px;border-radius:50%;
  display:grid;place-items:center;
  background:var(--mist);color:var(--herb);
  font-family:var(--font-display);font-size:.98rem;font-weight:600;
  transition:background-color .4s var(--ease),color .4s var(--ease);
}
.asr-purpose > li:hover{
  transform:translateY(-6px);box-shadow:var(--sh-sm);
  border-color:rgba(45,106,79,.22);
}
.asr-purpose > li:hover::before{background:var(--deep);color:var(--gold-soft)}
.asr-purpose p{margin:0}

/* ==========================================================================
   7. WELCOME PULL LINE
   ========================================================================== */
.asr-pull{
  position:relative;
  max-width:900px;margin-inline:auto;
  padding:clamp(1.6rem,2.6vw,2.2rem) clamp(1.5rem,3vw,2.8rem);
  text-align:center;
  border-radius:var(--r-md);
  background:linear-gradient(165deg,rgba(220,233,225,.7),rgba(242,233,216,.6));
  border:1px solid rgba(192,153,63,.26);
}
.asr-pull__mark{
  width:52px;height:52px;margin:0 auto .95rem;
  display:grid;place-items:center;
  border-radius:50%;
  background:#fff;color:var(--herb);
  box-shadow:var(--sh-xs);
}
.asr-pull__mark svg{width:26px;height:26px}
.asr-pull p{
  margin:0;
  font-family:var(--font-display);
  font-size:clamp(1.08rem,1.6vw,1.35rem);
  font-weight:500;line-height:1.55;letter-spacing:-.012em;
  color:var(--deep);
}

/* ==========================================================================
   8. SPIRITUAL PRACTICES (dark band)
   ========================================================================== */
.asr-spirit{max-width:900px;margin-inline:auto}
.asr-spirit > p{color:rgba(236,244,239,.8)}
.asr-spirit__panel{
  margin-top:clamp(1.6rem,2.6vw,2.2rem);
  padding:clamp(1.5rem,2.6vw,2.2rem) clamp(1.4rem,2.4vw,2.1rem);
  border-radius:var(--r-md);
  background:rgba(255,255,255,.045);
  border:1px solid rgba(226,200,138,.18);
  transition:background-color .45s var(--ease),border-color .45s var(--ease);
}
.asr-spirit__panel:hover{
  background:rgba(255,255,255,.075);
  border-color:rgba(226,200,138,.36);
}
.asr-spirit__panel p{color:rgba(236,244,239,.82);font-size:.96rem;margin-bottom:0}
.asr-spirit__panel p + p{margin-top:1rem}

/* ==========================================================================
   9. LONG ACCENT HEADINGS
   `.accent` clips a gradient to the text. Across a line break the span is cut
   into fragments and the trailing side bearing is dropped, shaving the
   italic's terminal. Making it an atomic box keeps one unbroken clip region.
   ========================================================================== */
.section-head .accent{display:inline-block;padding-inline:.06em .16em}

/* ==========================================================================
   10. DECORATIVE BLOBS
   ========================================================================== */
.blob--asr-a{
  width:min(54vw,600px);aspect-ratio:1;top:-12%;right:-15%;
  background:radial-gradient(circle,rgba(169,201,182,.5),transparent 68%);
  animation:driftB 27s ease-in-out infinite;
}
.blob--asr-b{
  width:min(48vw,520px);aspect-ratio:1;bottom:-16%;left:-13%;
  background:radial-gradient(circle,rgba(226,200,138,.42),transparent 68%);
  animation:driftA 31s ease-in-out infinite;
}
.blob--asr-c{
  width:min(44vw,480px);aspect-ratio:1;top:8%;left:-12%;
  background:radial-gradient(circle,rgba(169,201,182,.44),transparent 68%);
  animation:driftA 29s ease-in-out infinite;
}

@media print{
  .asr-grid{grid-template-columns:repeat(4,1fr)}
  .asr-tile,.asr-person,.asr-purpose > li{break-inside:avoid;box-shadow:none}
}
