/* ============================================================
   Akshardham Associates — Smart Buyer Network
   Brand palette from logo: burnt orange #E86B1C · gold #F7B32B
   Premium 3D-touch styles: glassmorphism, tilt, parallax, CSS-3D
   ============================================================ */

html { scroll-behavior: smooth; }
body { font-family: 'Hind', 'Poppins', sans-serif; }
::selection { background: #E86B1C; color: #fff; }

/* ---------- glass ---------- */
.glass-nav {
  background: rgba(255, 252, 248, 0.78);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(232, 107, 28, 0.14);
  box-shadow: 0 4px 24px rgba(34, 21, 7, 0.06);
}
.glass-panel {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.9);
}
.glass-panel-strong {
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 1.5rem;
  box-shadow: 0 24px 60px rgba(34, 21, 7, 0.18);
}

/* ---------- hero ---------- */
.hero-bg {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(247, 179, 43, 0.20), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(232, 107, 28, 0.14), transparent 55%),
    linear-gradient(180deg, #FFF9F1 0%, #FBF3E6 100%);
}
.hero-grid-overlay {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(232,107,28,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,107,28,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 75%);
}
.hero-blob { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; will-change: transform; }
.blob-1 { width: 420px; height: 420px; background: rgba(232,107,28,.16); top: -120px; right: 8%; }
.blob-2 { width: 340px; height: 340px; background: rgba(247,179,43,.22); bottom: -100px; left: -60px; }

.trust-bg {
  position: absolute; inset: -10% 0; pointer-events: none;
  background-image: linear-gradient(rgba(251,247,240,.94), rgba(251,247,240,.88)), url('/static/img/plot-village.jpg');
  background-size: cover; background-position: center;
  will-change: transform;
}

/* ---------- hero rural photo + CSS 3D scene ---------- */
.hero-3d { position: absolute; right: 3%; top: 50%; transform: translateY(-52%); width: 500px; height: 480px; pointer-events: none; }
.hero-photo {
  position: absolute; inset: 0; border-radius: 2rem; overflow: hidden;
  border: 6px solid rgba(255,255,255,.9);
  box-shadow: 0 40px 80px rgba(34,21,7,.28), 0 0 0 1px rgba(232,107,28,.12);
  transform: rotate(2.5deg);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(247,179,43,.10), transparent 45%, rgba(34,21,7,.22));
}
.hero-photo-tag {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  background: rgba(34,21,7,.75); color: #fff; backdrop-filter: blur(8px);
  font-size: 12px; font-weight: 600; padding: 7px 14px; border-radius: 999px;
}
.scene { position: absolute; left: -70px; bottom: -50px; width: 260px; height: 260px; perspective: 1000px; display: grid; place-items: center; }
.plot3d { position: relative; width: 190px; height: 190px; transform-style: preserve-3d; animation: plotFloat 7s ease-in-out infinite; }
@keyframes plotFloat { 0%,100% { transform: rotateX(58deg) rotateZ(-38deg) translateZ(0);} 50% { transform: rotateX(58deg) rotateZ(-38deg) translateZ(22px);} }
.plot-base {
  position: absolute; inset: 0; border-radius: 16px;
  background: linear-gradient(135deg, #9ed07f, #63ab52);
  box-shadow: 0 0 0 6px rgba(255,255,255,.6), 0 34px 50px rgba(34,21,7,.30);
}
.plot-grid {
  position: absolute; inset: 12px; border-radius: 10px;
  background-image:
    linear-gradient(rgba(255,255,255,.4) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255,255,255,.4) 2px, transparent 2px);
  background-size: 44px 44px;
}
.house3d { position: absolute; left: 60px; top: 60px; width: 70px; height: 70px; transform-style: preserve-3d; }
.h-face { position: absolute; bottom: 0; width: 70px; height: 48px; background: #fdf6e3; border: 2px solid #d8c9a3; }
.h-front  { transform: translateZ(35px); }
.h-back   { transform: translateZ(-35px); }
.h-left   { transform: rotateY(-90deg) translateZ(35px); background: #f2e8cf; }
.h-right  { transform: rotateY(90deg) translateZ(35px); background: #f2e8cf; }
.h-roof {
  position: absolute; left: -5px; top: -24px; width: 80px; height: 80px;
  background: linear-gradient(135deg, #E86B1C, #B44E0E);
  transform: rotateX(90deg) translateZ(23px) rotateZ(45deg) scale(.72);
  border: 2px solid #8C3D0B;
}
.pin3d { position: absolute; left: 18px; top: 14px; transform-style: preserve-3d; animation: pinBob 2.6s ease-in-out infinite; }
@keyframes pinBob { 0%,100% { transform: translateZ(56px);} 50% { transform: translateZ(78px);} }
.pin-head { display: block; width: 34px; height: 34px; border-radius: 50% 50% 50% 4px; background: linear-gradient(135deg, #F7B32B, #E86B1C); transform: rotate(-45deg); box-shadow: inset -4px -4px 0 rgba(0,0,0,.14); }
.pin-head::after { content: ''; position: absolute; inset: 9px; background: #fff; border-radius: 50%; }
.pin-shadow { position: absolute; left: 2px; top: 26px; width: 30px; height: 10px; background: rgba(34,21,7,.28); border-radius: 50%; transform: rotate(45deg) translateZ(-58px); filter: blur(3px); }

.float-chip {
  position: absolute; display: flex; align-items: center; gap: 8px; z-index: 3;
  background: rgba(255,255,255,.88); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.9); border-radius: 999px;
  padding: 9px 16px; font-size: 13px; font-weight: 600; color: #221507;
  box-shadow: 0 10px 30px rgba(34,21,7,.16);
  animation: chipFloat 5s ease-in-out infinite;
}
.chip-a { top: 6%; left: -8%; animation-delay: 0s; }
.chip-b { top: 42%; right: -7%; animation-delay: 1.2s; }
.chip-c { bottom: 16%; right: 4%; animation-delay: 2.1s; }
@keyframes chipFloat { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-12px);} }

/* ---------- buttons: depth-shift micro-interaction ---------- */
.btn-depth {
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s ease, filter .18s ease;
  will-change: transform;
}
.btn-depth:hover { transform: translateY(-3px); filter: brightness(1.05); }
.btn-depth:active { transform: translateY(0) scale(.98); }

/* ---------- section tags ---------- */
.section-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: #B44E0E; background: #FEF5EC; border: 1px solid #FBD1A6; border-radius: 999px; padding: 5px 14px;
}

/* ---------- stats ---------- */
.stat-cell { padding: 1.75rem 1rem; text-align: center; }
.stat-num { font-family: 'Poppins', sans-serif; font-size: 2.25rem; font-weight: 800; color: #221507; line-height: 1; }
.stat-num::after { content: '+'; color: #F09A0A; }
.stat-label { margin-top: .4rem; font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: #78716c; text-transform: uppercase; }

/* ---------- 3D tilt cards ---------- */
.tilt-card {
  position: relative; background: #fff; border-radius: 1.4rem; padding: 1.75rem;
  border: 1px solid #F0E6D6;
  box-shadow: 0 10px 30px rgba(34,21,7,.07);
  transform-style: preserve-3d;
  transition: box-shadow .3s ease;
  will-change: transform;
}
.tilt-card .tilt-glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px circle at var(--gx,50%) var(--gy,50%), rgba(255,244,230,.55), transparent 55%);
  opacity: 0; transition: opacity .3s ease;
}
.tilt-card:hover .tilt-glare { opacity: 1; }
.step-card .step-num {
  position: absolute; top: 1.1rem; right: 1.4rem;
  font-family: 'Poppins', sans-serif; font-size: 3.4rem; font-weight: 800; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px #FBD1A6;
}

/* ---------- listing cards ---------- */
.listing-card { padding: 0; overflow: hidden; }
.listing-img-wrap { position: relative; height: 190px; overflow: hidden; }
.listing-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tilt-card:hover .listing-img { transform: scale(1.07); }
.listing-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(34,21,7,.82); color: #fff; backdrop-filter: blur(6px);
  font-size: 11px; font-weight: 600; padding: 5px 11px; border-radius: 999px;
}
.listing-leads {
  position: absolute; top: 12px; right: 12px;
  background: rgba(247,179,43,.94); color: #221507;
  font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: 999px;
}
.no-photo { height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, #FEF5EC, #FBD1A6); color: #E86B1C; font-size: 2.4rem; }

/* ---------- USP cards ---------- */
.usp-card {
  background: #fff; border: 1px solid #F0E6D6; border-radius: 1.2rem; padding: 1.4rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.usp-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(34,21,7,.12); }
.usp-icon { font-size: 1.5rem; margin-bottom: .7rem; display: inline-block; }
.usp-card h4 { font-family: 'Poppins', sans-serif; font-weight: 700; color: #221507; margin-bottom: .3rem; }
.usp-card p { font-size: .88rem; color: #78716c; line-height: 1.55; }

/* ---------- form fields: focus glow ---------- */
.field label { display: block; font-size: .82rem; font-weight: 600; color: #221507; margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid #EBDCC4; border-radius: .8rem; padding: .65rem .9rem;
  font-size: .92rem; background: #FFFDF9; color: #292524; outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: #E86B1C; background: #fff;
  box-shadow: 0 0 0 4px rgba(232,107,28,.14), 0 4px 14px rgba(232,107,28,.10);
}
.filter-input {
  border: 1.5px solid #EBDCC4; border-radius: .8rem; padding: .5rem .8rem;
  font-size: .85rem; background: #fff; color: #292524; outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.filter-input:focus { border-color: #E86B1C; box-shadow: 0 0 0 3px rgba(232,107,28,.14); }

/* ---------- photo upload slots ---------- */
.photo-slot {
  display: flex; align-items: center; gap: .8rem; cursor: pointer;
  background: #fff; border: 1.5px dashed #E7C89B; border-radius: .9rem; padding: .65rem .9rem;
  transition: border-color .2s ease, background .2s ease;
}
.photo-slot:hover { border-color: #E86B1C; background: #FFF9F1; }
.photo-slot.has-file { border-style: solid; border-color: #10b981; background: #f0fdf7; }
.photo-badge {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: #E86B1C; color: #fff; font-size: .75rem; font-weight: 700;
  display: grid; place-items: center;
}
.photo-slot.has-file .photo-badge { background: #10b981; }
.photo-input { display: none; }

/* ---------- modals ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: rgba(34,21,7,.48); backdrop-filter: blur(6px);
  animation: fadeIn .25s ease;
  padding: 1rem 0;
}
.modal-panel { animation: modalUp .35s cubic-bezier(.34,1.4,.64,1); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalUp { from { opacity: 0; transform: translateY(28px) scale(.97); } }

/* ---------- reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
[data-reveal].revealed { opacity: 1; transform: none; }

/* ---------- toast ---------- */
#toast-wrap { position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: .5rem; align-items: center; }
.toast {
  background: #221507; color: #fff; font-size: .88rem; font-weight: 500;
  padding: .75rem 1.3rem; border-radius: 999px; box-shadow: 0 12px 30px rgba(34,21,7,.35);
  animation: toastIn .3s cubic-bezier(.34,1.4,.64,1);
  display: flex; align-items: center; gap: .5rem; max-width: 90vw;
}
.toast.ok { background: #065f46; }
.toast.err { background: #991b1b; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } }

/* ---------- dashboard shared ---------- */
.side-link { display: flex; align-items: center; gap: .7rem; padding: .65rem .9rem; border-radius: .8rem; font-size: .9rem; font-weight: 500; color: #57534e; transition: background .2s, color .2s; cursor: pointer; }
.side-link:hover { background: #FEF5EC; color: #B44E0E; }
.side-link.active { background: linear-gradient(90deg, #E86B1C, #D95F12); color: #fff; box-shadow: 0 6px 16px rgba(232,107,28,.35); }
.badge { display: inline-block; font-size: .68rem; font-weight: 700; padding: .22rem .6rem; border-radius: 999px; letter-spacing: .02em; }
.badge-green { background: #d1fae5; color: #065f46; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-blue { background: #FDE8D4; color: #B44E0E; }
.badge-gray { background: #f1f5f9; color: #475569; }
.badge-purple { background: #ede9fe; color: #5b21b6; }
.mini-table th { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: #78716c; font-weight: 700; padding: .6rem .8rem; text-align: left; }
.mini-table td { padding: .65rem .8rem; font-size: .85rem; border-top: 1px solid #F5EEE2; vertical-align: top; }
.mini-table tr:hover td { background: #FFF9F1; }

/* ---------- reduced motion & mobile: lighten 3D ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (max-width: 1023px) {
  .hero-3d { display: none; }
  .tilt-card { transform: none !important; }
  [data-parallax] { transform: none !important; }
}
