/* ==========================================================================
   Bhosale Builders — Grove theme styles (works alongside Tailwind)
   ========================================================================== */
:root { --ease: cubic-bezier(.16, 1, .3, 1); --ease-io: cubic-bezier(.77, 0, .18, 1);
        --sand: #F7F1E8; --linen: #FFFBF5; --sage: #A97434; --moss: #4A1517; --clay: #A11E21; --mint: #F6D28F; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
img { -webkit-user-drag: none; }
::selection { background: var(--sage); color: #fff; }

/* smooth light/dark swap */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color .6s ease, color .6s ease, border-color .6s ease, fill .6s ease, stroke .6s ease !important; }

/* ---------- header ---------- */
[data-header] > div { transition: background .5s, box-shadow .5s, max-width .8s var(--ease), color .4s; background: rgba(255,251,245,.85); box-shadow: 0 12px 40px -18px rgba(74,21,23,.35); }
.dark [data-header] > div { background: rgba(33,23,22,.85); }
[data-header].over-hero:not(.is-scrolled) { color: #fff; }
[data-header].over-hero:not(.is-scrolled) > div { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
[data-header].is-scrolled > div { max-width: 68rem; }
.nav-link { position: relative; border-radius: 999px; padding: .5rem .85rem; transition: background .3s; }
.nav-link:hover { background: rgba(127,127,127,.12); }
.nav-link.is-active::after { content: ''; position: absolute; left: 50%; bottom: .2rem; width: 4px; height: 4px; border-radius: 50%; background: var(--clay); transform: translateX(-50%); }

/* ---------- scroll reveals ---------- */
[data-reveal] { opacity: 0; transition: opacity 1s var(--ease), transform 1.3s var(--ease), filter 1.1s var(--ease); }
[data-reveal=""], [data-reveal="up"] { transform: translate3d(0, 40px, 0); }
[data-reveal="left"] { transform: translate3d(-48px, 0, 0); }
[data-reveal="right"] { transform: translate3d(48px, 0, 0); }
[data-reveal="zoom"] { transform: scale(.93); }
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }
[data-reveal].revealing { transition-property: opacity, transform, filter !important; transition-duration: 1s, 1.3s, 1.1s !important; transition-timing-function: var(--ease), var(--ease), var(--ease) !important; }
/* mask reveals clip the children (an IntersectionObserver ignores fully clipped targets) */
[data-reveal^="mask"] { opacity: 1; }
[data-reveal^="mask"][data-reveal] > * { transition: clip-path 1.5s var(--ease-io), transform 2s var(--ease); transition-delay: inherit; }
[data-reveal="mask"]:not(.is-in) > * { clip-path: inset(100% 0 0 0); }
[data-reveal^="mask"] img { transition: transform 2s var(--ease); }
[data-reveal^="mask"]:not(.is-in) img { transform: scale(1.2); }

[data-split] .sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
[data-split] .sw > span { display: inline-block; transform: translate3d(0, 110%, 0); transition: transform 1.1s var(--ease); }
[data-split].is-in .sw > span { transform: none; }

.pop-in { animation: popIn .7s var(--ease) both; }
@keyframes popIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.fade-swap { animation: fadeSwap .8s var(--ease) both; }
@keyframes fadeSwap { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- ambient motion ---------- */
.kenburns { animation: kenburns 26s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
.float-y { animation: floatY 6s ease-in-out infinite; }
@keyframes floatY { 50% { transform: translateY(-12px); } }
.spin-slow { animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scroll-cue { animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(220%); } }
.curtain { position: fixed; inset: 0; z-index: 200; pointer-events: none; background: var(--moss); transform-origin: top; animation: curtain 1.1s .15s var(--ease-io) forwards; }
@keyframes curtain { to { transform: scaleY(0); } }
.rise > * { opacity: 0; transform: translateY(36px); animation: rise 1.2s var(--ease) forwards; }
.rise > *:nth-child(1) { animation-delay: .7s; } .rise > *:nth-child(2) { animation-delay: .82s; } .rise > *:nth-child(3) { animation-delay: .94s; }
.rise > *:nth-child(4) { animation-delay: 1.06s; } .rise > *:nth-child(5) { animation-delay: 1.18s; } .rise > *:nth-child(6) { animation-delay: 1.3s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.u-link { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.u-link:hover { background-size: 100% 1px; }
[data-progress] { transform: scaleX(0); transform-origin: left; }
.typed-cursor { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: currentColor; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.tilt { transition: transform .5s var(--ease), box-shadow .5s; will-change: transform; }

/* ---------- mobile menu ---------- */
[data-menu] { opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; }
.menu-open [data-menu] { opacity: 1; visibility: visible; }
.menu-open body { overflow: hidden; }
[data-menu] .menu-item { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.menu-open [data-menu] .menu-item { opacity: 1; transform: none; }

/* ---------- forms ---------- */
.bb-input { width: 100%; border-radius: 1rem; border: 1px solid rgba(74,21,23,.15); background: #fff; padding: .85rem 1.1rem; font-size: 15px; color: var(--moss); outline: none; transition: border-color .3s, box-shadow .3s; }
.bb-input:focus { border-color: var(--sage); box-shadow: 0 0 0 4px rgba(169,116,52,.18); }
.bb-input.has-error { border-color: #dc2626; }
.dark .bb-input { background: #2D201E; border-color: rgba(247,241,232,.12); color: var(--sand); }
select.bb-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236B8A6C' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.bb-error { display: none; margin-top: .35rem; padding-left: .5rem; font-size: 12px; color: #dc2626; }
.bb-error.show { display: block; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 1rem; background: rgba(22,14,13,.55); backdrop-filter: blur(6px); opacity: 0; transition: opacity .4s var(--ease); }
.modal[hidden] { display: none; }
.modal.open { opacity: 1; }
.modal .modal-box { transform: translateY(24px) scale(.97); transition: transform .6s var(--ease); max-height: calc(100svh - 2rem); overflow-y: auto; }
.modal.open .modal-box { transform: none; }

/* ---------- floating buttons ---------- */
.fab { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 999px; color: #fff; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); transition: transform .4s var(--ease); }
.fab:hover { transform: scale(1.1) rotate(-6deg); }

/* ---------- swiper ---------- */
.swiper { padding-bottom: 3rem !important; }
.swiper-pagination-bullet { width: 8px; height: 8px; background: var(--moss); opacity: .2; transition: width .4s var(--ease), opacity .3s; }
.swiper-pagination-bullet-active { width: 28px; border-radius: 99px; opacity: 1; background: var(--clay); }
.dark .swiper-pagination-bullet { background: var(--sand); }
.on-dark .swiper-pagination-bullet { background: #fff; }
.swiper-slide { height: auto; }

/* ---------- accordion ---------- */
.faq-item { border-radius: 1.5rem; background: #fff; transition: background .4s; }
.dark .faq-item { background: #211716; }
.faq-q { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.4rem; text-align: left; font-weight: 600; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.faq-a > div { overflow: hidden; padding: 0 1.4rem; color: rgba(74,21,23,.75); line-height: 1.7; font-size: 15px; }
.dark .faq-a > div { color: rgba(247,241,232,.65); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-item.open .faq-a > div { padding-bottom: 1.3rem; }
.faq-item .faq-icon { transition: transform .5s var(--ease), background .3s, color .3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--moss); color: #fff; }

/* ---------- filters ---------- */
[data-filter].is-active { background: var(--moss); color: var(--linen); border-color: var(--moss); }
.dark [data-filter].is-active { background: var(--sand); color: var(--moss); border-color: var(--sand); }
.on-dark [data-filter].is-active { background: var(--sand); color: var(--moss); border-color: var(--sand); }

/* ---------- gallery (masonry via CSS columns) ---------- */
.masonry { columns: 2 220px; column-gap: 12px; }
@media (min-width: 1024px) { .masonry { columns: 4; } }
.masonry > * { break-inside: avoid; margin-bottom: 12px; }
.masonry img, .masonry video { width: 100%; height: auto; display: block; }

/* ---------- lazy images: soft shimmer until loaded, then fade in (see site.js) ---------- */
img.lazy { background: linear-gradient(100deg, rgba(74,21,23,.06) 30%, rgba(74,21,23,.14) 50%, rgba(74,21,23,.06) 70%) 0 0 / 300% 100%; animation: lazyShimmer 1.4s linear infinite; color: transparent; }
.dark img.lazy { background-image: linear-gradient(100deg, rgba(247,241,232,.04) 30%, rgba(247,241,232,.1) 50%, rgba(247,241,232,.04) 70%); }
img.lazy.is-loaded { animation: lazyFade .5s ease both; background: none; }
@keyframes lazyShimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes lazyFade { from { opacity: 0; } to { opacity: 1; } }
/* parallax backgrounds keep their own opacity after fading in */
img.lazy.is-loaded[class*="opacity-"] { animation: none; }

.arch { border-radius: 999px 999px 1.75rem 1.75rem; }
.bar-fill { transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .3s; }
.is-in .bar-fill, .is-in.bar-fill { transform: scaleX(var(--p)); }

/* ---------- About: growing vine behind the values list ---------- */
[data-reveal="vine"] { opacity: 1; transform: none; }
.vine-wrap .vine { scale: 1 0; transform-origin: top; transition: scale 2.4s var(--ease-io) .2s; }
.vine-wrap.is-in .vine { scale: 1 1; }

/* ---------- About: biography slide-over (native <dialog>) ---------- */
.bio-sheet { position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; border: 0; width: min(520px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; background: transparent; color: inherit; overflow: hidden;
  transform: translateX(100%); transition: transform .6s var(--ease), overlay .6s allow-discrete, display .6s allow-discrete; }
.bio-sheet[open] { transform: none; }
@starting-style { .bio-sheet[open] { transform: translateX(100%); } }
.bio-sheet::backdrop { background: rgba(22,14,13,0); backdrop-filter: blur(0); transition: background .6s, backdrop-filter .6s, overlay .6s allow-discrete, display .6s allow-discrete; }
.bio-sheet[open]::backdrop { background: rgba(22,14,13,.55); backdrop-filter: blur(4px); }
@starting-style { .bio-sheet[open]::backdrop { background: rgba(22,14,13,0); backdrop-filter: blur(0); } }
html.dialog-open { overflow: hidden; }

/* ---------- About: horizontal timeline ---------- */
.no-bar { scrollbar-width: none; -ms-overflow-style: none; }
.no-bar::-webkit-scrollbar { display: none; }
.hs-pad { padding-inline: max(1.25rem, calc((100vw - 80rem) / 2 + 2rem)); scroll-padding-inline: max(1.25rem, calc((100vw - 80rem) / 2 + 2rem)); }
@media (max-width: 767px) { .hs-pad { padding-inline: 1.25rem; scroll-padding-inline: 1.25rem; } }
[data-hscroll].is-dragging { scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
[data-hscroll].is-dragging * { pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .vine-wrap .vine { scale: 1 1; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal], [data-split] .sw > span, .rise > * { opacity: 1 !important; transform: none !important; clip-path: none !important; filter: none !important; }
  .curtain { display: none; }
}

/* brand red is too dark for small text on the dark theme — lift it to a readable tint */
.dark .text-clay { color: #E8777A; }

/* ---------- logo: maroon version on light backgrounds, light version over the hero and in dark mode ---------- */
.brand .logo-light { display: none; }
/* dark mode: header uses the same light logo as the footer */
.dark .brand .logo-dark { display: none; }
.dark .brand .logo-light { display: block; }
/* TESTING: header always shows the original logo — uncomment these two lines to switch to the light logo over the hero / in dark mode again
[data-header].over-hero:not(.is-scrolled) .brand .logo-dark, .dark .brand .logo-dark { display: none; }
[data-header].over-hero:not(.is-scrolled) .brand .logo-light, .dark .brand .logo-light { display: block; } */