/* =====================================================================
   Shraddha Garden — Botanical Editorial Luxury decorative system
   Reusable vanilla patterns (this is a static HTML/CSS/JS site, not React).
   All decorative SVGs are rendered via <img> and marked aria-hidden.
   Assets: assets/botanical/**  (23 original SVGs)
   ===================================================================== */

/* ---- Reveal (reuses the site's IntersectionObserver: .bo-reveal gets .in) ---- */
.bo-reveal{opacity:0;transform:translateY(24px);transition:opacity 1200ms var(--ease),transform 1200ms var(--ease)}
.bo-reveal.in{opacity:1;transform:none}

/* ---- Dividers (preserve intrinsic ratios: width 100%, height auto) ---- */
.bo-divider{display:block;height:auto;margin-inline:auto}
/* Issue 01: signature divider is full-bleed (edge to edge), proportions preserved via height:auto */
.bo-divider.signature{width:100%;margin-block:clamp(40px,7vh,84px)}                 /* 1800x320 */
/* Ornamental divider (single artwork with a gold centerpiece + endpoints): shown ONCE, centered,
   sized by height so it stays a tasteful band and is never stretched or cropped. Not tiled —
   tiling would repeat the centerpiece/endpoints. */
.bo-divider.vine{display:block;width:100%;height:clamp(46px,7vw,112px);
  background:url('../assets/botanical/dividers/ornament-divider.webp') no-repeat center/contain;
  margin-block:clamp(16px,3vh,44px)}
.bo-divider.minimal{width:min(1100px,86%);margin-block:clamp(36px,6vh,72px)}        /* 2000x180 */
.bo-divider.architectural{width:100%;margin-block:clamp(28px,5vh,60px)}             /* 2400x200 */
.bo-divider.ornament{width:min(360px,60%)}                                          /* 1200x300 */

/* Issue 02: architectural stripe straddles a section boundary.
   Zero-height wrapper sits on the seam; the divider is centered on it with translateY(-50%),
   so the overlap scales with the divider's own rendered height at every breakpoint. */
.bo-transition{position:relative;height:0;z-index:5}
/* sit just below the green seam — the divider's top starts at the green/white boundary
   (small -14% so only the tick peaks reach up into the green) */
.bo-transition .bo-divider{position:absolute;left:0;right:0;top:0;transform:translateY(-14%);margin:0;width:100%}
/* breathing room BELOW the overlapping divider (and a touch above), consistent on mobile → desktop */
.bo-transition + section{padding-top:clamp(96px,16vh,220px)}
section:has(+ .bo-transition){padding-bottom:clamp(72px,12vh,160px)}

/* ---- Section ornament above a heading ---- */
.bo-section-ornament{display:block;width:clamp(180px,22vw,300px);height:auto;margin:0 auto clamp(18px,2.4vw,30px)}

/* Botanical emblem above a heading (single, centered, proportions preserved) */
.bo-arch{display:block;width:clamp(74px,8vw,108px);height:auto;margin:0 auto clamp(20px,2.6vw,38px)}
@media(max-width:768px){.bo-arch{width:clamp(68px,17vw,96px)}}

/* ---- Emblem ---- */
.bo-emblem{display:block;height:auto;width:clamp(84px,9vw,132px);margin-inline:auto}
.bo-emblem.lg{width:clamp(120px,13vw,180px)}

/* ---- Heading decoration ---- */
.bo-hdeco{display:block;height:auto;margin:14px auto 0}
.bo-hdeco.horizontal{width:clamp(150px,18vw,260px)}
.bo-hdeco.vertical{width:auto;height:clamp(120px,16vh,180px);margin:0}

/* ---- Motifs (inline small accents) ---- */
.bo-motif{display:inline-block;height:auto;vertical-align:middle;width:clamp(18px,1.6vw,26px);opacity:.9}
.bo-motif.md{width:clamp(28px,3vw,44px)}
.bo-motif.lg{width:clamp(44px,5vw,70px)}

/* ---- Editorial image frame (SVG border over photo; transparent center) ----
   The media box is set to the SVG's native aspect ratio so the frame never distorts. */
.media-frame.framed{position:relative}
.media-frame.framed .bo-frame{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2}
.media-frame.framed.r-landscape{aspect-ratio:16/9}
.media-frame.framed.r-landscape43{aspect-ratio:4/3}
.media-frame.framed.r-portrait{aspect-ratio:3/4}
.media-frame.framed.r-square{aspect-ratio:1/1}
/* inset the photo slightly so the ornamental border reads */
.media-frame.framed img:not(.bo-frame){width:100%;height:100%;object-fit:cover}
/* keep the ornamental frame static while the photo under it gently zooms on hover */
.media-frame.framed .bo-frame,.media-frame.framed:hover .bo-frame{transform:none !important;transition:none}

/* ---- Corner ornaments on an editorial composition ---- */
.bo-corners{position:relative}
.bo-corners>.bo-corner{position:absolute;width:clamp(48px,7vw,96px);height:auto;z-index:3;pointer-events:none;opacity:.92}
.bo-corners>.bo-corner.tl{top:10px;left:10px}
.bo-corners>.bo-corner.tr{top:10px;right:10px}
.bo-corners>.bo-corner.bl{bottom:10px;left:10px}
.bo-corners>.bo-corner.br{bottom:10px;right:10px}

/* ---- Seamless pattern background (subtle, selective) ---- */
/* Full-bleed patterned section: the green geometric tile fills the WHOLE section (100vw),
   content stays in its max-width container. Opaque tile → the section reads as a dark-green panel. */
/* Full-bleed patterned section: the section itself goes edge-to-edge and the green tile is its
   own background (no max-width cap, no 100vw pseudo → no side gaps, no horizontal scroll).
   Content stays readable/centered via its own text widths + the section's gutter padding. */
.bo-pattern{position:relative;isolation:isolate;max-width:none;width:100%;
  background:#F5F0E9 url('../assets/botanical/patterns/botanical-pattern-light.webp') repeat center;
  background-size:clamp(360px,36vw,560px)}
.bo-pattern::before{content:none}
/* Light ivory pattern → keep the section's normal dark text (no overrides needed). */

/* ---- Reduced motion ---- */
@media(prefers-reduced-motion:reduce){
  .bo-reveal{transition:opacity .4s ease;transform:none;opacity:1}
}

/* ---- Mobile: trim decorative density ---- */
@media(max-width:768px){
  .bo-corners>.bo-corner{width:46px}
  .bo-corners>.bo-corner.tl,.bo-corners>.bo-corner.tr{top:6px}
  .bo-corners>.bo-corner.bl,.bo-corners>.bo-corner.br{bottom:6px}
  .bo-corners>.bo-corner.tl,.bo-corners>.bo-corner.bl{left:6px}
  .bo-corners>.bo-corner.tr,.bo-corners>.bo-corner.br{right:6px}
  .bo-hdeco.vertical{display:none}
}
