/* =====================================================================
   Lodha Sadahalli — UI/UX enhancement layer
   Loaded LAST so it cleanly overrides theme.css / style.css.
   1) Typography  2) CTA gradient + motion  3) Gold GIF icons  4) UX polish
   ===================================================================== */

:root {
  --brand: #9E801B;
  --brand-2: #C9AE4A;
  --brand-dark: #7E6615;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ------------------------------- 1. Typography ------------------------------- */
body {
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-size: 15.5px;
  line-height: 1.65;
  color: #23272f;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6,
.section-title, .modal-title, .price-sub-text, .overview-data h2 {
  font-family: "Plus Jakarta Sans", "DM Sans", sans-serif !important;
  letter-spacing: -0.01em;     /* the old 1.2px tracking hurt readability */
  line-height: 1.22;
}
.section-title { font-weight: 700; }
p, li, .overview-info, label { letter-spacing: 0.003em; }
.overview-info { line-height: 1.7; }

/* keyframes */
@keyframes ctaShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes ctaSheen {
  0%        { left: -60%; }
  60%, 100% { left: 130%; }
}

/* --------------------- 2. CTA buttons: orange gradient + motion --------------------- */
/* Kill the green (#72c526) base + the spinning conic-gradient "border" animation */
.custom-btn {
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  overflow: visible !important;
  border-radius: 12px;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), filter 0.28s ease !important;
}
.custom-btn::before { content: none !important; animation: none !important; display: none !important; }
.custom-btn:focus { box-shadow: none; }
.custom-btn:hover { transform: translateY(-3px) scale(1.015); }
.custom-btn:active { transform: translateY(-1px) scale(0.99); }

/* the visible pill surfaces get the animated gold gradient.
   Stops are kept at #7E6615–#8A7017 (deep gold) so white text clears WCAG AA
   4.5:1; the lighter #C9AE4A brand accent is reserved for non-text surfaces. */
.enquireNowBtn,
.navbar-nav .brochure span,
.micro-form-btn,
.effetMoveGradient {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #7E6615 0%, #8A7017 50%, #7E6615 100%) !important;
  background-size: 200% 100% !important;
  animation: ctaShift 5s ease infinite !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(158, 128, 27, 0.3);
  transition: box-shadow 0.28s ease, filter 0.28s ease, transform 0.28s var(--ease);
}

/* light sweep / sheen on hover */
.enquireNowBtn::after,
.micro-form-btn::after,
.effetMoveGradient::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
.custom-btn:hover .enquireNowBtn::after,
.micro-form-btn:hover::after,
.effetMoveGradient:hover::after { animation: ctaSheen 0.8s var(--ease); }

.custom-btn:hover .enquireNowBtn,
.micro-form-btn:hover,
.effetMoveGradient:hover {
  box-shadow: 0 12px 26px rgba(158, 128, 27, 0.42);
  filter: brightness(1.05) saturate(1.05);
}
.micro-form-btn:hover,
.effetMoveGradient:hover { transform: translateY(-2px); }

/* nav "Brochure" button: clean orange, no spin */
.navbar-nav .brochure { background: transparent !important; padding: 0 !important; border-radius: 18px; }
.navbar-nav .brochure::before { content: none !important; animation: none !important; display: none !important; }
.navbar-nav .brochure span { border-radius: 18px; padding: 6px 16px !important; }

/* Floating WhatsApp button motion */
.whatsaapBtn { transition: transform 0.28s var(--ease); }
.whatsaapBtn:hover { transform: translateY(-3px) scale(1.06); }

/* sticky/footer action buttons */
.footer-enquiryBtn .monCall,
.desktop-summary .btn,
.callBackBtn { transition: transform 0.25s var(--ease), box-shadow 0.25s ease; }
.footer-enquiryBtn .monCall:active { transform: scale(0.95); }

/* --------------------------- 3. GIF icons -> brand gold (#9E801B) --------------------------- */
/* CSS tint (source-independent). For pixel-perfect icons, supply real gold GIF/SVG assets. */
img[src$=".gif"] {
  filter: grayscale(1) sepia(1) saturate(4) hue-rotate(8deg) brightness(0.9);
}
/* Keep WhatsApp's recognisable green — do not gold-tint it. */
img[src*="whatsapp" i] {
  filter: none;
}

/* ------------------------------- 4. UX polish ------------------------------- */
html { scroll-behavior: smooth; }

/* keep fixed-navbar from overlapping in-page anchor targets */
section[id], #walkthrough { scroll-margin-top: 80px; }

a, .nav-link, input, textarea, select, .data-id-btn {
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

/* visible keyboard focus everywhere (accessibility) */
:focus-visible {
  outline: 3px solid rgba(158, 128, 27, 0.55);
  outline-offset: 2px;
  border-radius: 8px;
}

/* form fields: clear orange focus ring */
.form-control:focus,
.micro-form-field:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 0.2rem rgba(158, 128, 27, 0.18) !important;
}

/* nav link hover -> brand (use the darker gold so text on white clears WCAG AA) */
.navbar-light .navbar-nav .nav-item:hover a.nav-link,
.navbar-light .navbar-nav .nav-link:hover { color: var(--brand-dark) !important; }

/* card / image hover lift */
.highlightData,
.gallery-img-holder { transition: transform 0.3s var(--ease), box-shadow 0.3s ease; }
.highlightData:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1); }
.gallery-img-holder { overflow: hidden; border-radius: 12px; }
.gallery-img-holder:hover .gallery-img { transform: scale(1.04); }

/* pricing table readability */
.sec-price .table thead th { letter-spacing: 0.02em; }
.table-pricing td { vertical-align: middle; }

/* ---- Uniform image sizing: gallery tiles ----
   Source renders have mixed aspect ratios; force one height + cover-crop. */
.gallery-img-holder {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}
.gallery-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
@media (max-width: 600px) {
  .gallery-img { height: 220px; }
}

/* respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Form-gated (blurred) master / unit plans ---- */
/* The plan images stay blurred; clicking opens the enquiry modal. The real,
   un-blurred plan is shared with the lead after they submit the form. */
.plan-gate {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
}
.plan-gate .plan-blurred {
  filter: blur(10px);
  transform: scale(1.06);   /* crop the soft blurred edges */
  transition: filter 0.35s var(--ease), transform 0.35s var(--ease);
  width: 100%;
  display: block;
  pointer-events: none;
}
.plan-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 18px;
  color: #fff;
  background: linear-gradient(180deg, rgba(20, 16, 4, 0.30), rgba(20, 16, 4, 0.55));
  transition: background 0.3s ease;
}
.plan-lock-text {
  font-weight: 700;
  font-size: 15px;
  max-width: 240px;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}
.plan-gate:hover .plan-lock-overlay,
.plan-gate:focus-visible .plan-lock-overlay { background: linear-gradient(180deg, rgba(20, 16, 4, 0.38), rgba(20, 16, 4, 0.62)); }
.plan-gate:hover .plan-blurred { transform: scale(1.09); }

/* ---- Icon-based amenities grid ---- */
.amenity-icon-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin: 0 auto;
  padding: 0;
}
.amenity-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  text-align: center;
  padding: 24px 12px;
  background: #fff;
  border: 1px solid rgba(158, 128, 27, 0.18);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, border-color 0.3s ease;
}
.amenity-icon-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(158, 128, 27, 0.18);
  border-color: var(--brand, #9E801B);
}
.amenity-icon {
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand, #9E801B), var(--brand-2, #C9AE4A));
  color: #fff;
  font-size: 26px;
  box-shadow: 0 6px 16px rgba(158, 128, 27, 0.28);
}
.amenity-icon-label {
  font-weight: 600;
  font-size: 14px;
  color: #23272f;
  line-height: 1.3;
}
@media (max-width: 992px) {
  .amenity-icon-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .amenity-icon-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .amenity-icon { width: 52px; height: 52px; font-size: 22px; }
  .amenity-icon-label { font-size: 12.5px; }
  .amenity-icon-item { padding: 18px 8px; }
}

/* ---- Hero walkthrough video pause/play control (WCAG 2.2.2) ---- */
#walkthrough { position: relative; }
.hero-video-toggle {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 6;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(20, 16, 4, 0.55);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.hero-video-toggle:hover,
.hero-video-toggle:focus-visible { background: var(--brand-dark, #7E6615); transform: scale(1.06); }
@media (max-width: 600px) {
  .hero-video-toggle { width: 38px; height: 38px; font-size: 14px; left: 12px; bottom: 12px; }
}
