/* ==========================================================
   Pratiksha Realtors — Homepage motion flow
   Loaded after style.css; only affects index.html sections
   ========================================================== */

:root { --ease: cubic-bezier(.22,.8,.24,1); --intro: 2.6s; }
html.no-intro { --intro: 0s; }

/* ---------- 1. Opening logo intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 200;
  background: var(--linen);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  animation: introOut .9s var(--ease) 1.9s forwards;
}
html.no-intro .intro { display: none; }
.intro-logo {
  font-family: var(--serif); font-size: clamp(34px, 6vw, 60px); font-weight: 700;
  color: var(--espresso); opacity: 0; transform: translateY(14px);
  animation: introLogo 1s var(--ease) .25s forwards;
}
.intro-logo span { color: var(--bronze); font-weight: 400; font-style: italic; }
.intro-line { width: 0; height: 2px; background: var(--bronze); animation: introLine .9s var(--ease) .9s forwards; }
.intro-sub {
  font-size: 13px; letter-spacing: 4px; text-transform: uppercase; color: var(--pecan);
  opacity: 0; animation: introLogo .8s var(--ease) 1.1s forwards;
}
@keyframes introLogo { to { opacity: 1; transform: none; } }
@keyframes introLine { to { width: 120px; } }
@keyframes introOut { to { transform: translateY(-100%); visibility: hidden; } }

/* ---------- 2. Aerial hero ---------- */
.aerial {
  position: relative; min-height: 92vh; display: flex; align-items: flex-end;
  overflow: hidden; background: #1F4D2B; color: #fff;
}
.aerial-bg { position: absolute; inset: -5%; will-change: transform; }
.aerial-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%;
  transform: scale(1.02); transform-origin: 60% 55%;
  animation: slowZoom 28s ease-out var(--intro) forwards;
}
@keyframes slowZoom { to { transform: scale(1.22); } }
.aerial-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(31,77,43,.35) 0%, rgba(31,77,43,0) 30%),
    linear-gradient(0deg, rgba(31,77,43,.88) 0%, rgba(31,77,43,.45) 45%, rgba(31,77,43,.1) 100%);
}
.aerial-inner { position: relative; z-index: 2; padding-top: 140px; padding-bottom: 110px; }
.aerial-text { max-width: 680px; will-change: transform; }
.aerial .eyebrow { color: #FFFFFF; }
.aerial .eyebrow::before { background: #FFFFFF; }
.aerial h1 { color: #fff; font-size: clamp(40px, 6vw, 72px); line-height: 1.06; margin-bottom: 24px;  }
.aerial h1 em { color: #FFFFFF; font-style: italic; font-weight: 400; }
.aerial .lead { color: rgba(255,255,255,.88); font-size: 21px; max-width: 540px; }
.aerial .actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }
.aerial .btn.light { background: #fff; color: var(--espresso); border-color: #fff; }
.aerial .btn.light:hover { background: var(--pecan); border-color: var(--pecan); color: #fff; }
.aerial .btn.line { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.aerial .btn.line:hover { background: #fff; color: var(--espresso); }
.scroll-cue.light { color: #fff; }
.scroll-cue.light .scroll-cue-line { background: linear-gradient(to bottom, #fff, transparent); }

/* Text staged entrance after the intro lifts */
.js .aerial .in { opacity: 0; transform: translateY(26px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--intro) - .5s + var(--s) * .16s); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Floating location pin */
.aerial-pin { position: absolute; z-index: 2; right: 14%; top: 34%; will-change: transform; pointer-events: none; }
.js .aerial-pin { opacity: 0; animation: pinIn 1s var(--ease) forwards; animation-delay: calc(var(--intro) + .3s); }
@keyframes pinIn { from { opacity: 0; margin-top: -40px; } to { opacity: 1; margin-top: 0; } }
.pin-float { position: relative; display: flex; flex-direction: column; align-items: center; color: #fff; animation: bob 3.4s ease-in-out infinite; }
.pin-float svg { width: 54px; height: 54px; filter: drop-shadow(0 10px 14px rgba(31,77,43,.4)); color: #fff; }
.pin-float em {
  margin-top: 8px; font-style: normal; font-size: 13px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase;
  background: rgba(31,77,43,.7); border: 0;
  padding: 6px 14px; border-radius:0; white-space: nowrap;
}
.pin-pulse { display:none; position: absolute; top: 58px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius:0; background: rgba(255,255,255,.7); animation: pulse 2.4s ease-out infinite; }
.pin-shadow { display:none; display: block; width: 36px; height: 8px; margin: 6px auto 0; border-radius:0; background: rgba(31,77,43,.35); filter: blur(4px); animation: shadow 3.4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes shadow { 0%,100% { transform: scale(1); opacity: .6; } 50% { transform: scale(.7); opacity: .35; } }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(7); opacity: 0; } }

/* ---------- 3. Property cards: staggered reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.show { opacity: 1; transform: none; }
.js .card.reveal.show { transition: opacity .8s var(--ease), transform .8s var(--ease), box-shadow .3s; }
.js .card.reveal.show:hover { transform: translateY(-5px); }
.card-img img { transition: transform 1.1s var(--ease); }

/* ---------- 4. About: split reveal + counters ---------- */
.about .split { align-items: center; }
.js .about-img { clip-path: inset(0 100% 0 0); transition: clip-path 1.3s var(--ease); }
.js .about-img.show { clip-path: inset(0 0 0 0); }
.js .about-img::after { opacity: 0; transition: opacity .8s ease 1s; }
.js .about-img.show::after { opacity: .5; }
.js .about-img img { transform: scale(1.25); transition: transform 1.8s var(--ease); }
.js .about-img.show img { transform: scale(1); }
.js .rv { opacity: 0; transform: translateX(46px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(.25s + var(--s, 0) * .1s); }
.js .about-copy.show .rv, .js .enquiry.show .rv { opacity: 1; transform: none; }
.count-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 34px; }
.count { padding: 20px 22px; background: var(--linen); border: 1px solid var(--sand); border-left: 3px solid var(--bronze); }
.count strong { display: block; font-family: var(--sans); font-size: 42px; line-height: 1.1; font-weight: 600; color: var(--pecan); font-variant-numeric: tabular-nums; }
.count > span { display: block; font-size: 14px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); margin-top: 4px; }

/* ---------- 5. Location map ---------- */
.loc-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
.map-wrap { background: var(--card-bg); border: 1px solid var(--sand); padding: 14px; box-shadow:none; }
.raigad-map { width: 100%; height: auto; display: block; }
.map-note { font-size: 14px; margin-top: 10px; text-align: center; }
.sea-lbl { font-family: var(--sans); font-size: 12px; letter-spacing: 4px; fill: #000000; }
.river { stroke: #1F4D2B; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 900; }
.map-wrap.show .river { animation: draw 2.4s ease forwards .4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.river-lbl { font-family: var(--serif); font-style: italic; font-size: 13px; fill: #000000; }

.pin { cursor: pointer; outline: none; }
.pin .drop { fill: var(--pecan); stroke: #fff; stroke-width: 1.5; transform-box: fill-box; transform-origin: 50% 100%; transition: transform .3s var(--ease), fill .2s; }
.pin .dot { fill: #fff; }
.pin.home .drop { fill: #1F4D2B; }
.pin.area .drop { fill: #fff; stroke: var(--pecan); stroke-width: 2; }
.pin.area .dot { fill: var(--pecan); }
.pin .ring { fill: none; stroke: var(--pecan); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.pin.home .ring { stroke: #1F4D2B; }
.pin .lbl { font-family: var(--sans); font-size: 13px; font-weight: 600; fill: var(--espresso); paint-order: stroke; stroke: #FFFFFF; stroke-width: 4px; stroke-linejoin: round; }
.pin.active .drop, .pin:hover .drop, .pin:focus-visible .drop { transform: scale(1.35); fill: var(--bronze); }
.pin.home.active .drop, .pin.home:hover .drop { fill: #1F4D2B; }
.pin.area.active .drop, .pin.area:hover .drop { fill: var(--sand); }
.pin.active .ring { animation: ringOut 1.8s ease-out infinite; }
.pin.active .ring.r2 { animation-delay: .9s; }
@keyframes ringOut { 0% { transform: scale(.8); opacity: .8; } 100% { transform: scale(4.2); opacity: 0; } }
.pin.active .lbl { font-size: 15px; }
/* pins drop in when the map scrolls into view */
.js .pin { opacity: 0; transform-box: fill-box; }
.js .map-wrap.show .pin { animation: pinDrop .7s var(--ease) forwards; animation-delay: calc(.5s + var(--i) * .12s); }
@keyframes pinDrop { from { opacity: 0; filter: blur(3px); } to { opacity: 1; filter: none; } }

.loc-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.js .loc-item { opacity: 0; transform: translateX(30px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(.2s + var(--i) * .07s); }
.js .loc-list.show .loc-item { opacity: 1; transform: none; }
.loc-item { background: var(--card-bg); border: 1px solid var(--sand); transition: border-color .25s, box-shadow .25s; }
.loc-item.active { border-color: var(--bronze); box-shadow:none; }
.loc-head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: none; border: 0; text-align: left; color: var(--espresso); }
.loc-dot { width: 12px; height: 12px; border-radius:0; background: var(--pecan); flex: none; }
.loc-item.home .loc-dot { background: #1F4D2B; }
.loc-item.area .loc-dot { background: #fff; border: 2px solid var(--pecan); }
.loc-name { font-family: var(--serif); font-size: 21px; flex: 1; }
.loc-badge { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.loc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.loc-body > div { overflow: hidden; padding: 0 20px; }
.loc-item.active .loc-body { grid-template-rows: 1fr; }
.loc-item.active .loc-body > div { padding-bottom: 18px; }
.loc-body strong { font-family: var(--serif); font-weight: 400; font-size: 18px; color: var(--pecan); }
.loc-body p { font-size: 16px; margin: 4px 0 10px; }
.loc-links { display: flex; gap: 18px; flex-wrap: wrap; }
.loc-links a { font-size: 14px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--pecan); border-bottom: 1px solid var(--pecan); }
.loc-links a:hover { color: var(--bronze); border-color: var(--bronze); }

/* ---------- 6. Final enquiry ---------- */
.enquiry { position: relative; overflow: hidden; background: var(--espresso); color: #fff; text-align: center; padding: 120px 0; }
.enq-glow { display:none; position: absolute; inset: -20%; background: radial-gradient(ellipse 45% 55% at 50% 40%, rgba(31,77,43,.45), transparent 70%); animation: glow 8s ease-in-out infinite alternate; }
@keyframes glow { to { transform: scale(1.15) translateY(-3%); opacity: .7; } }
.enq-inner { position: relative; z-index: 1; max-width: 820px; }
.enquiry .eyebrow { color: #FFFFFF; }
.enquiry .eyebrow::before { background: #FFFFFF; }
.enquiry h2 { color: #fff; font-size: clamp(32px, 5vw, 54px); font-weight: 400; margin-bottom: 18px; }
.enquiry p { color: rgba(255,255,255,.82); font-size: 20px; max-width: 620px; margin: 0 auto; }
.enq-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 40px; }
.btn-wa { background: #FFFFFF !important; color: var(--green) !important; box-shadow: none !important;
  display: inline-flex; align-items: center; gap: 12px; padding: 18px 34px; border-radius:0;
  background: #1F4D2B; color: #fff; font-weight: 600; font-size: 17px; letter-spacing: 1px; text-transform: uppercase;
  box-shadow:none; transition: transform .25s var(--ease), box-shadow .25s;
  
}
.btn-wa svg { width: 26px; height: 26px; }
.btn-wa:hover { transform: translateY(-3px) scale(1.03); box-shadow:none; }
@keyframes waPulse { 0%,100% { box-shadow:none; } 60% { box-shadow:none; } }
.btn.ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); border-radius:0; padding: 18px 30px; }
.btn.ghost-light:hover { background: #fff; color: var(--espresso); }
.enq-meta { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; margin-top: 64px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.2); text-align: left; }
.enq-meta small { display: block; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #FFFFFF; margin-bottom: 8px; }
.enq-meta span { color: rgba(255,255,255,.85); font-size: 17px; line-height: 1.6; }
.enq-meta a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.6); }
.js .enquiry .enq-actions.rv, .js .enquiry .enq-meta.rv { transform: translateY(30px); }
.js .enquiry.show .enq-actions.rv, .js .enquiry.show .enq-meta.rv { transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .loc-grid { grid-template-columns: 1fr; }
  .aerial-pin { right: 8%; top: 16%; }
  .pin-float svg { width: 42px; height: 42px; }
  .enq-meta { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .aerial { min-height: 86vh; }
  .aerial-inner { padding-top: 100px; padding-bottom: 90px; }
  .aerial .lead { font-size: 18px; }
  .count strong { font-size: 34px; }
  .enquiry { padding: 84px 0; }
  .btn-wa, .btn.ghost-light { width: 100%; justify-content: center; }
  .pin .lbl { font-size: 15px; }
}

/* ---------- Reduced motion: everything visible, nothing moving ---------- */
@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .aerial-bg img, .pin-float, .pin-pulse, .pin-shadow, .enq-glow, .btn-wa { background: #FFFFFF !important; color: var(--green) !important; box-shadow: none !important; animation: none !important; }
  .js .aerial .in, .js .aerial-pin, .js .reveal, .js .rv, .js .loc-item, .js .pin { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .js .about-img { clip-path: none; }
  .js .about-img img { transform: none; }
  .river { stroke-dashoffset: 0; }
}

/* Off-screen start positions must never create horizontal scroll */
.about, .loc-section, .enquiry, #properties { overflow-x: clip; }

/* Two-colour map: green and white only */
.pin.home .drop { fill: var(--green); }
.pin.home .lbl { font-weight: 800; font-size: 14px; }
.pin.home .drop { transform: scale(1.2); }
.pin.area .drop { fill: #FFFFFF; stroke: var(--green); }
.pin.active .drop, .pin:hover .drop { fill: #FFFFFF; stroke: var(--green); stroke-width: 2.5; }
.pin.active .dot, .pin:hover .dot { fill: var(--green); }
.pin .lbl { stroke: #FFFFFF; }
.loc-item.active { background: var(--green); }
.loc-item.active .loc-name, .loc-item.active .loc-badge, .loc-item.active .loc-body strong, .loc-item.active .loc-body p, .loc-item.active .loc-links a { color: #FFFFFF; }
.loc-item.active .loc-links a { border-color: #FFFFFF; }
.loc-item.active .loc-dot { background: #FFFFFF; border-color: #FFFFFF; }
.count { background: #FFFFFF; }
.enquiry .btn.ghost-light:hover { background: #FFFFFF; color: var(--green); }
.river { stroke-opacity: .35; }
.loc-body strong { color: #000000; }
.loc-item.active .loc-body strong { color: #FFFFFF; }
