/* Public website — Shree JI Residency */
:root {
  --ink: #10262f;
  --ink-soft: #3d5a64;
  --mist: #eef4f2;
  --paper: #f6f3ec;
  --accent: #1a7a6d;
  --accent-deep: #125e54;
  --gold: #b8893a;
  --gold-soft: #f3e6cc;
  --line: rgba(16, 38, 47, 0.12);
  --shadow: 0 22px 50px rgba(16, 38, 47, 0.12);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --wrap: 1120px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.public-body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 8% -8%, rgba(184, 137, 58, 0.16), transparent 55%),
    radial-gradient(900px 480px at 100% 0%, rgba(26, 122, 109, 0.14), transparent 50%),
    linear-gradient(180deg, #fbf8f1 0%, var(--paper) 38%, #eef4f2 100%);
  min-height: 100vh;
}

a { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

.site-wrap {
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
}

.kicker {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
}
.kicker-light { color: #f3e6cc; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(251, 248, 241, 0.88);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.4rem;
  position: relative;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #1a7a6d, #0c3d42);
  color: #fbf8f1;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 18px rgba(18, 94, 84, 0.25);
}
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font: inherit;
  color: var(--ink);
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.35rem;
  align-items: center;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}
.site-nav a:hover,
.site-nav a.is-active { color: var(--ink); background: rgba(26, 122, 109, 0.08); }
.nav-phone {
  padding: 0.4rem 0.85rem !important;
  border: 1px solid var(--line);
  background: #fff !important;
}

.hero {
  position: relative;
  min-height: min(86vh, 740px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(120deg, rgba(12, 40, 46, 0.82) 8%, rgba(12, 40, 46, 0.4) 52%, rgba(184, 137, 58, 0.28) 100%),
    radial-gradient(circle at 70% 40%, rgba(255,255,255,0.16), transparent 45%),
    linear-gradient(160deg, #0c3d42, #1a7a6d 68%, #0c282e);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}
.hero-media.has-image {
  background-image:
    linear-gradient(120deg, rgba(12, 40, 46, 0.84) 6%, rgba(12, 40, 46, 0.42) 55%, rgba(184, 137, 58, 0.22) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}
@keyframes heroDrift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-1.5%, -1%, 0); }
}
.hero-inner {
  width: min(var(--wrap), calc(100% - 2rem));
  margin: 0 auto 4.5rem;
  color: #fbf8f1;
  max-width: 40rem;
  animation: heroRise 900ms cubic-bezier(.2,.7,.2,1) both;
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-kicker {
  margin: 0 0 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-soft);
}
.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.3rem);
  line-height: 0.96;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.hero-line {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.5;
  margin: 0 0 1.7rem;
  max-width: 30rem;
  color: rgba(251, 248, 241, 0.9);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-public {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.btn-public:hover { transform: translateY(-1px); }
.btn-public-primary {
  background: #fbf8f1;
  color: var(--ink);
}
.btn-public-primary:hover { background: #fff; color: var(--ink); }
.btn-public-ghost {
  background: transparent;
  color: #fbf8f1;
  border: 1px solid rgba(251, 248, 241, 0.45);
}
.btn-public-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-public-solid {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 22px rgba(26, 122, 109, 0.22);
}
.btn-public-solid:hover { background: var(--accent-deep); color: #fff; }
.btn-public-ghost-ink {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-public-ghost-ink:hover { background: var(--mist); color: var(--ink); }
.btn-table {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  box-shadow: none;
}

.section { padding: 4.4rem 0; }
.section-tight { padding-top: 0; }
.section-head {
  max-width: 36rem;
  margin-bottom: 2rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.55rem);
  margin: 0 0 0.55rem;
  letter-spacing: -0.02em;
}
.section-head p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.about-band {
  background: rgba(255,255,255,0.62);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 2.1rem;
  box-shadow: var(--shadow);
}
.about-split {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.about-split.has-photo {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}
.about-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.55rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}
.about-copy p:not(.kicker) {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 1.05rem;
}
.about-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  min-height: 280px;
  box-shadow: 0 18px 40px rgba(16, 38, 47, 0.12);
}
.about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 420px;
  object-fit: cover;
}

.stay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.stay-card {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 180ms ease;
}
.stay-card:hover { transform: translateY(-4px); color: inherit; }
.stay-card-media {
  min-height: 240px;
  background:
    linear-gradient(160deg, rgba(12, 61, 66, 0.85), rgba(26, 122, 109, 0.55)),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 10px, transparent 10px 20px);
}
.stay-card-media.has-image {
  background:
    linear-gradient(180deg, rgba(16, 38, 47, 0.05), rgba(16, 38, 47, 0.38)),
    var(--stay-image) center/cover no-repeat;
}
.stay-card-body { padding: 1.15rem 1.2rem 1.25rem; }
.stay-card-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.stay-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.35rem;
}
.stay-card p { margin: 0; color: var(--ink-soft); line-height: 1.45; }
.stay-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}
.stay-cta { font-weight: 600; color: var(--accent-deep); }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.chip-gold { background: var(--gold-soft); border-color: transparent; color: #7a5614; font-weight: 600; }
.chip-link { text-decoration: none; color: var(--accent-deep); font-weight: 600; }

.facility-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.facility-item {
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem 1.15rem;
}
.facility-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(26, 122, 109, 0.12);
  color: var(--accent);
  font-size: 1.2rem;
}
.facility-item h3 {
  margin: 0.7rem 0 0.25rem;
  font-size: 1.05rem;
}
.facility-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.4;
}

.gallery-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 28vw);
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
}
.gallery-rail img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  scroll-snap-align: start;
  filter: saturate(0.98);
}
.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.85rem;
}
.gallery-tile {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  grid-column: span 4;
  min-height: 200px;
  background: #0c282e;
}
.gallery-tile.is-feature {
  grid-column: span 8;
  min-height: 320px;
}
.gallery-tile img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 480ms ease;
}
.gallery-tile:hover img {
  transform: scale(1.04);
}
.gallery-tile figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 1rem;
  color: #fbf8f1;
  font-size: 0.92rem;
  font-weight: 600;
  background: linear-gradient(transparent, rgba(12, 40, 46, 0.78));
}

.cta-band {
  margin: 1rem 0 0;
  background: linear-gradient(135deg, #0c3d42, #1a7a6d 60%, #b8893a);
  color: #fbf8f1;
  padding: 3.2rem 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.cta-band.has-image {
  background:
    linear-gradient(120deg, rgba(12, 40, 46, 0.88) 10%, rgba(12, 61, 66, 0.78) 55%, rgba(184, 137, 58, 0.55) 100%),
    var(--cta-image) center/cover no-repeat;
}
.cta-band-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0.2rem 0 0.4rem;
}
.cta-band p { margin: 0; color: rgba(251,248,241,0.88); max-width: 32rem; }

.enquire-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.enquire-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 0.6rem;
}
.enquire-intro p { color: var(--ink-soft); line-height: 1.5; }
.enquire-form {
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.enquire-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.enquire-form .field { margin-bottom: 0.9rem; }
.enquire-form input,
.enquire-form select,
.enquire-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
.enquire-form .error {
  color: #9b2c2c;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}
.form-alert {
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}
.form-alert-ok { background: #dff3ef; color: #13685f; }
.form-alert-bad { background: #fde8e8; color: #9b2c2c; }
.form-alert-warn { background: #fff4d6; color: #8a5a00; }

.property-hero { padding: 2.8rem 0 2.2rem; }
.property-hero-inner { max-width: 44rem; }
.crumb { margin: 0 0 0.8rem; }
.crumb a { text-decoration: none; color: var(--ink-soft); }
.property-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
}
.property-lead {
  max-width: 40rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 1.1rem;
}
.property-hero .hero-actions { margin-top: 1.4rem; }

.rooms-table-wrap {
  overflow-x: auto;
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.rooms-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.rooms-table th {
  text-align: left;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.95rem 1rem;
  background: rgba(16, 38, 47, 0.04);
  border-bottom: 1px solid var(--line);
}
.rooms-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.rooms-table tr:last-child td { border-bottom: 0; }
.rooms-table tbody tr:hover { background: rgba(26, 122, 109, 0.04); }
.muted-line {
  display: block;
  color: var(--ink-soft);
  font-size: 0.82rem;
  margin-top: 0.2rem;
}
.rent-cell { font-weight: 700; }
.status-pill {
  display: inline-flex;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.status-open { background: #dff3ef; color: #13685f; }
.status-partial { background: var(--gold-soft); color: #7a5614; }
.empty-panel {
  background: rgba(255,255,255,0.78);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.empty-panel p { margin: 0 0 1rem; color: var(--ink-soft); }

.portal-flash { padding-top: 1rem; }
.portal-narrow { max-width: 28rem; }
.portal-wide { max-width: 52rem; }
.portal-card { position: relative; }
.portal-card-gap { margin-top: 1.25rem; }
.portal-alt { margin: 1rem 0 0; color: var(--ink-soft); font-size: 0.92rem; }
.hint { margin: 0.35rem 0 0; color: var(--ink-soft); font-size: 0.82rem; }
.portal-h {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
}
.portal-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.portal-toolbar h2 { margin: 0 0 0.25rem; font-family: var(--font-display); }
.portal-toolbar p { margin: 0; color: var(--ink-soft); }
.portal-toolbar-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
}
.portal-span-2 { grid-column: 1 / -1; }
.portal-preview img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin-bottom: 0.5rem;
  border: 1px solid var(--line);
}
.portal-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.portal-stats-compact { margin: 0.75rem 0 0; }
.portal-stat {
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem 1rem;
}
.portal-stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 0.25rem;
}
.portal-stat-value { font-weight: 600; }
.portal-stat-sub {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.2rem;
}
.portal-bill-meta { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 0.5rem; }
.portal-table-wrap { overflow-x: auto; }
.portal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.portal-table th {
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  padding: 0.45rem 0.4rem;
}
.portal-table td {
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid var(--line);
}

.site-footer {
  margin-top: 0;
  padding: 2.6rem 0 1.4rem;
  border-top: 1px solid var(--line);
  background: #10262f;
  color: #d7e3e6;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.45rem;
  color: #fbf8f1;
}
.footer-label {
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: #fbf8f1;
}
.footer-copy, .site-footer p {
  margin: 0 0 0.35rem;
  color: #b7c8cd;
  line-height: 1.45;
}
.site-footer a { text-decoration: none; color: #e8d5a8; }
.site-footer a:hover { color: #fff; }
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
  color: #8ea3aa;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1rem;
}
.muted { color: var(--ink-soft); }

@media (max-width: 860px) {
  .enquire-panel,
  .footer-grid,
  .portal-grid,
  .portal-stats,
  .portal-stats-compact,
  .about-split.has-photo {
    grid-template-columns: 1fr;
  }
  .gallery-mosaic {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-tile,
  .gallery-tile.is-feature {
    grid-column: span 1;
    min-height: 180px;
  }
  .gallery-tile.is-feature {
    grid-column: 1 / -1;
    min-height: 240px;
  }
  .hero-inner { margin-bottom: 3rem; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    left: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.6rem;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav .nav-phone { display: inline-flex; }
  .rooms-table { min-width: 0; }
  .rooms-table thead { display: none; }
  .rooms-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid var(--line);
  }
  .rooms-table td {
    display: flex;
    flex-direction: column;
    padding: 0.2rem 0;
    border: 0;
  }
  .rooms-table td::before {
    content: attr(data-label);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 0.15rem;
  }
  .rooms-table td:first-child,
  .rooms-table td:last-child { grid-column: 1 / -1; }
  .status-pill { align-self: start; width: max-content; }
  .rooms-table td:last-child .btn-table { width: 100%; }
}
