/* ============================================================
   Mahodadhi Homes — site-wide "water glass" theme (iPhone style)
   Load LAST (after mobile.css). Remove the <link> to switch off.
   Idea: a soft colourful light field is fixed behind the page,
   sections are transparent, and every card is frosted glass
   with a bright edge + blur. Text stays dark/bold for contrast.
   ============================================================ */

:root {
  --glass-bg: rgba(255, 255, 255, .56);
  --glass-bg-strong: rgba(255, 255, 255, .74);
  --glass-border: rgba(255, 255, 255, .78);
  --glass-blur: blur(24px) saturate(185%);
  --glass-shadow: 0 10px 34px rgba(30, 38, 60, .12);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(255, 255, 255, .3);
  --color-text-primary: #17130d;
  --color-text-secondary: #4f4a42;          /* darker grey = readable on glass */
  --color-border: rgba(40, 32, 20, .12);
}

/* ---------- 1. Light field behind everything ---------- */
body { background-color: #f4efe6; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42vmax 42vmax at 8% 12%,  rgba(233, 170, 56, .34), transparent 62%),
    radial-gradient(46vmax 46vmax at 94% 18%, rgba(88, 96, 220, .26), transparent 62%),
    radial-gradient(40vmax 40vmax at 82% 86%, rgba(111, 190, 235, .30), transparent 62%),
    radial-gradient(44vmax 44vmax at 12% 90%, rgba(244, 150, 118, .24), transparent 62%),
    linear-gradient(180deg, #f8f4ec 0%, #efe8dc 100%);
}

/* sections become see-through so the light field shows through glass */
.about-section, .projects-section, .amenities-section, .services-section,
.testimonials-section, .faq-section, .contact-section, .emi-section,
.detail-main, .detail-body, .related-section { background: transparent; }
.projects-section, .testimonials-section, .contact-section, .emi-section, .related-section {
  background: rgba(255, 255, 255, .22);
}
.amenities-section { border-top-color: rgba(255, 255, 255, .6); }

/* ---------- 2. Glass cards ---------- */
.project-card, .amenity-card, .service-card, .highlight-item,
.testimonial-card-inner, .faq-item, .contact-form-wrapper,
.emi-card, .detail-block, .detail-spec-item, .detail-cta-card,
.detail-amenity-card, .about-frame {
  position: relative;
  background: linear-gradient(160deg, var(--glass-bg-strong), var(--glass-bg));
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-edge), var(--glass-shadow);
}
.amenity-card:hover, .detail-amenity-card:hover, .project-card:hover, .service-card:hover {
  background: linear-gradient(160deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .66));
  box-shadow: var(--glass-edge), 0 18px 44px rgba(30, 38, 60, .18);
}
.faq-item.active { background: linear-gradient(160deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .7)); }

/* contact details & plain blocks that sat on a flat background */
.contact-icon, .detail-amenity-icon {
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: inset 0 1px 0 #fff;
}

/* ---------- 3. Form fields ---------- */
.form-group input, .form-group textarea, .form-group select {
  background: rgba(255, 255, 255, .62);
  border: 1.5px solid rgba(40, 32, 20, .14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #17130d;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  background: rgba(255, 255, 255, .9);
  border-color: var(--color-gold);
  box-shadow: 0 0 0 4px rgba(178, 111, 45, .16);
}
.form-group label { background: transparent; color: #4f4a42; }
.form-group input:focus ~ label, .form-group input:not(:placeholder-shown) ~ label,
.form-group input.has-value ~ label, .form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label, .form-group textarea.has-value ~ label {
  background: rgba(255, 255, 255, .95);
  border-radius: 6px;
  color: #8d5723;
  font-weight: 600;
}

/* ---------- 4. EMI calculator: dark glass result card ---------- */
.emi-result-card {
  background: linear-gradient(160deg, rgba(14, 28, 51, .86), rgba(22, 41, 74, .76));
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 18px 44px rgba(14, 28, 51, .3);
}

/* ---------- 5. Footer: deep glass panel ---------- */
.footer-section {
  background:
    radial-gradient(60% 80% at 15% 0%, rgba(233, 170, 56, .16), transparent 60%),
    radial-gradient(60% 80% at 90% 10%, rgba(88, 96, 220, .22), transparent 60%),
    linear-gradient(180deg, #0e1c33, #0a1426);
  border-top: 1px solid rgba(255, 255, 255, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.footer-highlight {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* ---------- 6. Buttons & floating UI ---------- */
.btn-outline { background: rgba(255, 255, 255, .5); border-color: rgba(40, 32, 20, .22); color: #17130d; }
.btn-outline:hover { background: rgba(255, 255, 255, .8); }
.mh-bar {
  background: rgba(255, 255, 255, .7) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
  backdrop-filter: blur(24px) saturate(190%) !important;
  border-top: 1px solid rgba(255, 255, 255, .85) !important;
  box-shadow: inset 0 1px 0 #fff, 0 -8px 28px rgba(30, 38, 60, .14) !important;
}

/* ---------- 7. Lighter blur on phones (smooth scrolling) ---------- */
@media (max-width: 767px) {
  :root { --glass-blur: blur(16px) saturate(170%); }
  body::before {
    background:
      radial-gradient(70vmax 70vmax at 0% 8%,   rgba(233, 170, 56, .32), transparent 62%),
      radial-gradient(70vmax 70vmax at 100% 40%, rgba(88, 96, 220, .22), transparent 62%),
      radial-gradient(70vmax 70vmax at 0% 95%,  rgba(111, 190, 235, .28), transparent 62%),
      linear-gradient(180deg, #f8f4ec 0%, #efe8dc 100%);
  }
}

/* ---------- 8. Fallbacks ---------- */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .project-card, .amenity-card, .service-card, .highlight-item, .testimonial-card-inner,
  .faq-item, .contact-form-wrapper, .emi-card, .detail-block, .detail-spec-item,
  .detail-cta-card, .detail-amenity-card, .about-frame { background: rgba(255, 255, 255, .94); }
  .emi-result-card { background: #0e1c33; }
}
@media (prefers-reduced-transparency: reduce) {
  .project-card, .amenity-card, .service-card, .highlight-item, .testimonial-card-inner,
  .faq-item, .contact-form-wrapper, .emi-card, .detail-block, .detail-spec-item,
  .detail-cta-card, .detail-amenity-card, .about-frame { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}