/* ============================================================
   Mahodadhi Homes — WATER GLASS (liquid glass) layer
   Load LAST (after glass-finish.css). Remove the <link> (and
   js/water-glass.js) to switch off.

   Recipe for every glass surface:
   1. clear body  – low-opacity white, so the page shows THROUGH it
   2. wet blur    – blur + strong saturate + a little brightness
   3. rim light   – bright 1.5px inner edge, brighter top-left
   4. gloss       – soft specular highlight pooled in the top-left
   5. depth       – inner glow + warm soft drop shadow
   6. motion      – slow light sheen sweeping over nav (and refraction
                    of what's behind it in Chromium)
   ============================================================ */

:root {
  --wg-blur: blur(14px) saturate(200%) brightness(1.06);
  --wg-body: linear-gradient(135deg, rgba(255,255,255,.46) 0%, rgba(255,255,255,.14) 42%, rgba(255,255,255,.26) 100%);
  --wg-gloss: radial-gradient(120% 70% at 8% -6%, rgba(255,255,255,.78) 0%, rgba(255,255,255,.18) 42%, transparent 62%);
  --wg-gloss-low: radial-gradient(90% 60% at 100% 112%, rgba(190,235,255,.38), transparent 60%);
  --wg-rim:
    inset 0 1.5px 0 rgba(255,255,255,.98),
    inset 1.5px 0 0 rgba(255,255,255,.55),
    inset 0 -1.5px 0 rgba(255,255,255,.4),
    inset -1.5px 0 0 rgba(255,255,255,.22),
    inset 0 0 26px rgba(255,255,255,.34);
  --wg-shadow: 0 22px 44px -12px rgba(110, 80, 50, .26), 0 4px 12px rgba(110, 80, 50, .08);
  --wg-border: 1px solid rgba(255,255,255,.62);
}

/* ---------- 1. The "water" behind the glass ----------
   Glass only looks like glass if there is something coloured to bend. */
body::before {
  background:
    radial-gradient(46vmax 40vmax at 100% -4%, rgba(255, 196, 140, .62), transparent 62%),
    radial-gradient(42vmax 42vmax at -8% 30%,  rgba(150, 222, 240, .50), transparent 62%),
    radial-gradient(50vmax 44vmax at 96% 64%,  rgba(255, 186, 140, .46), transparent 62%),
    radial-gradient(44vmax 44vmax at 6% 92%,   rgba(170, 225, 245, .48), transparent 62%),
    linear-gradient(180deg, #f9f4ec 0%, #f1ebe2 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(30vmax 22vmax at 22% 28%, rgba(255, 255, 255, .55), transparent 70%),
    radial-gradient(26vmax 20vmax at 78% 52%, rgba(190, 236, 250, .42), transparent 70%),
    radial-gradient(28vmax 22vmax at 38% 82%, rgba(255, 214, 176, .45), transparent 70%);
  animation: wg-drift 26s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes wg-drift {
  from { transform: translate3d(-3%, -2%, 0) rotate(0deg) scale(1); }
  to   { transform: translate3d(3%, 3%, 0) rotate(6deg) scale(1.08); }
}

/* ---------- 2. Glass surfaces ---------- */
.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-experience-badge, .hero-feature-card {
  background: var(--wg-gloss), var(--wg-gloss-low), var(--wg-body);
  -webkit-backdrop-filter: var(--wg-blur);
  backdrop-filter: var(--wg-blur);
  border: var(--wg-border);
  box-shadow: var(--wg-rim), var(--wg-shadow);
}
.project-card:hover, .amenity-card:hover, .service-card:hover, .detail-amenity-card:hover {
  background: var(--wg-gloss), var(--wg-gloss-low),
    linear-gradient(135deg, rgba(255,255,255,.58), rgba(255,255,255,.22) 45%, rgba(255,255,255,.34));
  box-shadow: var(--wg-rim), 0 30px 60px -14px rgba(110, 80, 50, .34), 0 6px 16px rgba(110, 80, 50, .1);
  transform: translateY(-4px);
}
.faq-item.active {
  background: var(--wg-gloss), var(--wg-gloss-low),
    linear-gradient(135deg, rgba(255,255,255,.6), rgba(255,255,255,.28));
}
.hero-feature-card { box-shadow: var(--wg-rim), 0 30px 64px -14px rgba(120, 70, 30, .34); }

/* small glass "droplets": chips, round buttons, icon tiles */
.section-subtitle, .hero-eyebrow, .hero-trust li, .hf-badge, .hf-meta > span,
.btn-outline, .btn-details, .hero-secondary, .hero-slider-button,
.nav-toggle, .nav-link.active,
.highlight-icon, .contact-icon, .detail-amenity-icon, .amenity-icon, .service-icon {
  background:
    radial-gradient(100% 90% at 14% -10%, rgba(255,255,255,.9), rgba(255,255,255,.12) 55%, transparent 70%),
    linear-gradient(160deg, rgba(255,255,255,.52), rgba(255,255,255,.2));
  -webkit-backdrop-filter: blur(10px) saturate(200%);
  backdrop-filter: blur(10px) saturate(200%);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow:
    inset 0 1.5px 0 #fff,
    inset 0 -1.5px 0 rgba(255,255,255,.4),
    inset 0 0 10px rgba(255,255,255,.4),
    0 8px 18px -6px rgba(110, 80, 50, .24);
}
.hero-secondary:hover, .btn-outline:hover, .btn-details:hover, .hero-slider-button:hover {
  background:
    radial-gradient(100% 90% at 14% -10%, #fff, rgba(255,255,255,.3) 60%, transparent 75%),
    linear-gradient(160deg, rgba(255,255,255,.8), rgba(255,255,255,.45)) !important;
}
.hf-meta > span { border-radius: 999px; }

/* dark "tinted water" buttons: dark glass with a wet highlight on top */
.btn-primary, .hero-primary, .nav-phone, .mh-bar .mh-bar-visit, .hf-cta i {
  background:
    radial-gradient(90% 70% at 18% -12%, rgba(255,255,255,.5), rgba(255,255,255,0) 58%),
    linear-gradient(180deg, rgba(70, 62, 52, .88), rgba(24, 21, 17, .94)) !important;
  border: 1px solid rgba(255,255,255,.28) !important;
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,.55),
    inset 0 -2px 6px rgba(0,0,0,.35),
    0 12px 24px -6px rgba(27, 25, 21, .42) !important;
}
.btn-primary:hover, .hero-primary:hover, .nav-phone:hover {
  background:
    radial-gradient(90% 70% at 18% -12%, rgba(255,255,255,.6), rgba(255,255,255,0) 58%),
    linear-gradient(180deg, rgba(88, 78, 66, .9), rgba(34, 30, 25, .95)) !important;
}

/* form fields: thin recessed glass */
.form-group input, .form-group textarea, .form-group select {
  background: linear-gradient(180deg, rgba(255,255,255,.3), rgba(255,255,255,.55));
  -webkit-backdrop-filter: blur(8px) saturate(180%);
  backdrop-filter: blur(8px) saturate(180%);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: inset 0 2px 5px rgba(110, 80, 50, .1), inset 0 -1px 0 rgba(255,255,255,.8);
}

/* ---------- 3. Navbar pill: the showpiece ---------- */
.nav-container::before {
  background: var(--wg-gloss), var(--wg-gloss-low),
    linear-gradient(100deg, rgba(255,255,255,.5) 0%, rgba(255,255,255,.2) 50%, rgba(255,255,255,.34) 100%);
  -webkit-backdrop-filter: blur(12px) saturate(210%) brightness(1.06);
  backdrop-filter: blur(12px) saturate(210%) brightness(1.06);
  border: var(--wg-border);
  box-shadow: var(--wg-rim), 0 20px 40px -12px rgba(110, 80, 50, .3), 0 3px 10px rgba(110, 80, 50, .1);
}
.navbar.scrolled .nav-container::before {
  background: var(--wg-gloss), var(--wg-gloss-low),
    linear-gradient(100deg, rgba(255,255,255,.62), rgba(255,255,255,.34) 50%, rgba(255,255,255,.46));
}
/* light sheen gliding across the glass like light on moving water */
.nav-container::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.7) 48%, rgba(255,255,255,.12) 53%, transparent 62%);
  background-size: 260% 100%;
  background-position: 130% 0;
  animation: wg-sheen 7s ease-in-out infinite;
}
@keyframes wg-sheen {
  0%, 18%  { background-position: 130% 0; }
  62%, 100% { background-position: -30% 0; }
}

.nav-menu.active {
  background: var(--wg-gloss), linear-gradient(160deg, rgba(255,255,255,.68), rgba(255,248,240,.5)) !important;
  -webkit-backdrop-filter: blur(20px) saturate(200%) brightness(1.05) !important;
  backdrop-filter: blur(20px) saturate(200%) brightness(1.05) !important;
  border: var(--wg-border) !important;
  box-shadow: var(--wg-rim), 0 30px 60px -12px rgba(110, 80, 50, .34) !important;
}

/* Chromium only: real refraction — what sits behind the pill bends slightly (js/water-glass.js adds the filter) */
html.wg-refract .nav-container::before {
  -webkit-backdrop-filter: url(#wg-refract) blur(6px) saturate(210%) brightness(1.06);
  backdrop-filter: url(#wg-refract) blur(6px) saturate(210%) brightness(1.06);
}

/* ---------- 4. Bottom bar on phones ---------- */
@media (max-width: 767px) {
  .mh-bar {
    background: var(--wg-gloss), linear-gradient(100deg, rgba(255,255,255,.58), rgba(255,255,255,.28)) !important;
    -webkit-backdrop-filter: blur(16px) saturate(200%) brightness(1.05) !important;
    backdrop-filter: blur(16px) saturate(200%) brightness(1.05) !important;
    border: var(--wg-border) !important;
    box-shadow: var(--wg-rim), 0 20px 40px -10px rgba(110, 80, 50, .38) !important;
  }
  .mh-bar .mh-bar-call {
    background: radial-gradient(100% 90% at 14% -10%, #fff, rgba(255,255,255,.3) 60%), rgba(255,255,255,.55);
    border: 1px solid rgba(255,255,255,.8);
    box-shadow: inset 0 1.5px 0 #fff, 0 6px 14px -4px rgba(110, 80, 50, .25);
  }
  .mh-bar .mh-bar-wa {
    background: radial-gradient(90% 70% at 18% -12%, rgba(255,255,255,.5), transparent 58%), linear-gradient(180deg, #2fbf62, #17803a);
    box-shadow: inset 0 1.5px 0 rgba(255,255,255,.5), 0 8px 16px -4px rgba(23, 128, 58, .45);
  }
}

/* ---------- 5. Lighter blur on phones for smooth scrolling ---------- */
@media (max-width: 767px) {
  :root { --wg-blur: blur(10px) saturate(190%) brightness(1.05); }
  body::after { animation-duration: 40s; }
}

/* ---------- 6. Accessibility / fallbacks ---------- */
@media (prefers-reduced-motion: reduce) {
  body::after, .nav-container::after { animation: none; }
}
@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, .hero-feature-card, .about-experience-badge { background: #fffaf3; -webkit-backdrop-filter: none; backdrop-filter: none; }
  body::after { display: none; }
}
@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, .hero-feature-card, .about-experience-badge { background: rgba(255, 250, 244, .94); }
}

/* glass that sits over a photo needs a bit more body so text stays readable */
.about-experience-badge {
  background: var(--wg-gloss), linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,255,255,.6));
}
.about-experience-badge .badge-text { color: #4a463f; }

/* ============================================================
   READABILITY PASS — stronger text colour + clearer font
   (keep last; overrides the softer greys used earlier)
   ============================================================ */
:root {
  --color-text-primary: #15120e;
  --color-text-secondary: #46423a;   /* was a light grey; now ~9:1 contrast on cream */
}
body { font-family: var(--font-body); color: #15120e; -webkit-font-smoothing: antialiased; }

/* body copy */
.section-description, .about-text, .project-description, .project-location,
.project-card p, .amenity-card p, .service-card p, .highlight-item p,
.testimonial-card-inner p, .faq-answer, .faq-answer p, .contact-form-wrapper p,
.detail-block p, .detail-block li, .detail-spec-item span, .emi-card p, .emi-card label {
  color: #3f3b34;
  font-weight: 450;
}
.section-description, .about-text { font-size: 1.02rem; line-height: 1.75; }
.section-title, .project-title, .amenity-card h3, .service-card h3, .faq-question { color: #15120e; }

/* nav */
.nav-link { color: #1f1b16; font-weight: 600; }
.nav-brand small { color: #6a583f; }
.nav-brand strong { color: #15120e; }

/* hero: clear sans headline, solid colours, stronger cream wash behind the text */
.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.06;
  color: #15120e;
}
.hero-title > span:not(.hw) .hwi,
.hero-title:not(.is-split) > span:not(.hw) {
  background: none !important;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: #a2490f !important;
  -webkit-text-fill-color: #a2490f !important;
  animation-name: hero-word-in !important;
}
.hero-title:not(.is-split) > span:not(.hw) { animation: none !important; }
.hero-description { color: #2f2b25; font-weight: 500; font-size: clamp(1.02rem, 1.25vw, 1.2rem); }
.hero-eyebrow, .hero-trust, .hero-trust li { color: #15120e; font-weight: 600; }
.hf-loc, .hf-stats > span { color: #3f3b34; }
.hf-meta > span, .hf-meta em { color: #15120e; }

.hero-section::after {
  background:
    linear-gradient(90deg, rgba(255, 244, 232, .97) 0%, rgba(255, 241, 226, .92) 42%, rgba(255, 234, 212, .5) 72%, rgba(255, 226, 196, .16) 100%),
    linear-gradient(0deg, rgba(246, 243, 238, .9) 0%, rgba(246, 243, 238, 0) 22%);
}
@media (max-width: 1023px) {
  .hero-section::after {
    background:
      linear-gradient(180deg, rgba(255, 244, 232, .95) 0%, rgba(255, 240, 224, .92) 60%, rgba(255, 234, 212, .88) 100%),
      linear-gradient(0deg, rgba(246, 243, 238, .9) 0%, rgba(246, 243, 238, 0) 18%);
  }
}
@media (max-width: 767px) {
  .hero-section::after {
    background: linear-gradient(180deg, rgba(255, 244, 232, .94) 0%, rgba(255, 239, 222, .92) 60%, rgba(252, 236, 216, .95) 100%);
  }
  .hero-title { font-size: clamp(2.3rem, 10.5vw, 3rem) !important; letter-spacing: -.03em !important; }
}

/* accent text (copper) darkened for contrast */
.text-highlight, .section-subtitle i { color: #a2490f; }
.hero-trust i { color: #fff !important; }
.hf-name, .hf-stats em { font-family: var(--font-heading); font-weight: 700; letter-spacing: -.02em; color: #15120e; }
