/* Sekaran Residency — Glassmorphism design system
   Frosted glass panels floating over a soft colorful gradient field.
   Palette drawn from the brand mark's own colors (blue parallelogram,
   green triangle) plus one warm accent. See tasks.json for rationale. */

:root {
  --ink: #0B1220;
  --forest: #3C7A3D;
  --blue: #458BD1;
  --blue-deep: #7EB6EC;
  --amber: #FFB020;
  --text: #F3F6FA;
  --muted: rgba(243, 246, 250, 0.68);
  --muted-2: rgba(243, 246, 250, 0.52);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-bg-strong: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-border-strong: rgba(255, 255, 255, 0.3);
  --radius: 16px;
  --radius-lg: 22px;
  --header-h: 78px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse 900px 600px at 8% 0%, rgba(69, 139, 209, 0.38), transparent 55%),
    radial-gradient(ellipse 800px 600px at 95% 10%, rgba(60, 122, 61, 0.32), transparent 55%),
    radial-gradient(ellipse 700px 500px at 70% 55%, rgba(255, 176, 32, 0.16), transparent 55%),
    radial-gradient(ellipse 800px 600px at 15% 85%, rgba(69, 139, 209, 0.24), transparent 55%),
    radial-gradient(ellipse 700px 600px at 100% 95%, rgba(60, 122, 61, 0.22), transparent 55%),
    var(--ink);
  background-attachment: fixed;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: #fff;
}

img { max-width: 100%; display: block; }

a { color: var(--blue-deep); }

section { scroll-margin-top: var(--header-h); }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Glass base */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 20px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

@media (max-width: 480px) {
  .site-header { padding: 10px 12px 0; }
  .site-header .container { padding: 10px 14px; border-radius: 16px; }
  .brand img { height: 26px; }
  .brand .wordmark { font-size: 0.9rem; }
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 32px; width: auto; }
.brand .wordmark { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.05rem; line-height: 1.15; color: #fff; }
.brand .wordmark em { display: block; font-style: normal; color: var(--blue-deep); }

.site-nav { display: none; gap: 28px; }

.site-nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.94rem;
}

.site-nav a:hover { color: #fff; }

@media (min-width: 900px) {
  .site-nav { display: flex; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary, .btn-accent {
  background: linear-gradient(135deg, var(--blue), var(--forest));
  color: #fff;
  box-shadow: 0 8px 26px rgba(69, 139, 209, 0.4);
  border: none;
}
.btn-primary:hover, .btn-accent:hover { box-shadow: 0 10px 30px rgba(69, 139, 209, 0.55); }

.btn-outline, .btn-outline-light {
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #fff;
  border: 1px solid var(--glass-border-strong);
}
.btn-outline:hover, .btn-outline-light:hover { background: rgba(255, 255, 255, 0.18); }

.btn-longtext { display: inline; }

@media (max-width: 480px) {
  .btn { padding: 9px 16px; font-size: 0.85rem; gap: 6px; white-space: nowrap; }
  .btn-longtext { display: none; }
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  padding: 8px 20px 0;
}

@media (min-width: 940px) {
  .hero { grid-template-columns: 1.05fr 0.95fr; gap: 32px; min-height: 600px; align-items: center; }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 4px 40px;
  max-width: 620px;
}

.hero-copy .kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  margin-bottom: 22px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

.hero-copy .kicker .chip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  display: inline-block;
}

@media (max-width: 480px) {
  .hero-copy { padding-top: 28px; }
  .hero-copy .kicker { font-size: 0.8rem; padding: 6px 12px 6px 9px; }
  .hero-ctas { gap: 10px; }
}

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  margin-bottom: 20px;
}

.hero p.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 34px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-media {
  position: relative;
  min-height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  margin: 24px 4px 40px;
}

@media (min-width: 940px) {
  .hero-media { min-height: 460px; margin: 0; }
}

.hero-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

/* Sections */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.section-head .accent-bar {
  width: 34px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--amber));
  margin-bottom: 14px;
  border-radius: 2px;
}

.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); max-width: 560px; }
.section-head p { color: var(--muted); font-size: 1.02rem; max-width: 440px; margin: 0; }

section.pad { padding: 72px 0; }

.section-head--tight { margin-bottom: 18px; }
.section-head--center { justify-content: center; text-align: center; flex-direction: column; align-items: center; }

.btn-block { width: 100%; justify-content: center; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
}

@media (min-width: 900px) {
  .about-grid { grid-template-columns: 0.95fr 1.05fr; }
}

.about-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.about-copy p { color: var(--muted); font-size: 1.05rem; }
.about-copy p + p { margin-top: 16px; }

/* Stat strip */
.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 40px;
}

.stat-strip .stat-item {
  flex: 1 1 160px;
  padding: 22px 24px;
  border-left: 1px solid var(--glass-border);
}

.stat-strip .stat-item:first-child { border-left: 0; }

.stat-strip .stat-item b {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  color: #fff;
}

.stat-strip .stat-item span { font-size: 0.85rem; color: var(--muted); }

/* Who it's for */
.who-strip { }

.who-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 720px) {
  .who-grid { grid-template-columns: repeat(3, 1fr); }
}

.who-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px 26px;
  position: relative;
}

.who-card::before {
  content: '';
  position: absolute;
  top: 26px; left: 26px;
  width: 30px; height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--amber));
}

.who-card h3 { font-size: 1.08rem; color: #fff; margin: 20px 0 8px; }
.who-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.trust-note {
  margin-top: 30px;
  padding: 18px 24px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Rooms — horizontal scroll-snap rail on phones/tablets (where 4 cards
   genuinely don't fit); a static grid on desktop, so nothing needs
   scrolling to be seen on a normal-width screen. */
.room-rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 14px;
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
}

.room-rail .room-card { flex: 0 0 78vw; scroll-snap-align: start; }

@media (min-width: 640px) { .room-rail .room-card { flex-basis: 300px; } }

@media (min-width: 1080px) {
  .room-rail {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow-x: visible;
    margin: 0;
    padding: 0;
  }
  .room-rail .room-card { flex-basis: auto; }
  .rail-controls { display: none; }
}

/* Glassmorphic scrollbar for any horizontally-scrolling rail (tablet/mobile) */
.room-rail {
  scrollbar-width: thin;
  scrollbar-color: rgba(126, 182, 236, 0.55) rgba(255, 255, 255, 0.08);
}

.room-rail::-webkit-scrollbar { height: 8px; }
.room-rail::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}
.room-rail::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--blue), var(--forest));
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.room-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.room-card .media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.room-card .media img { width: 100%; height: 100%; object-fit: cover; }

.room-card .body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.room-card h3 { font-size: 1.15rem; margin-bottom: 0; color: #fff; }
.room-card .floor { color: var(--muted-2); font-size: 0.88rem; }
.room-card p.desc { color: var(--muted); font-size: 0.92rem; margin: 4px 0 0; }

.price-row { margin-top: auto; padding-top: 14px; display: flex; align-items: baseline; justify-content: space-between; }

.price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  background: linear-gradient(90deg, var(--blue-deep), var(--forest));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.price small { font-size: 0.72rem; color: var(--muted-2); font-weight: 500; font-family: 'Inter', sans-serif; display: block; }

.room-card .btn { margin-top: 14px; align-self: flex-start; padding: 10px 18px; font-size: 0.88rem; }

.rate-note { text-align: center; color: var(--muted); font-size: 0.92rem; margin-top: 32px; }

.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.rail-controls { display: none; gap: 10px; }
@media (min-width: 640px) { .rail-controls { display: flex; } }

.rail-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--glass-border-strong);
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.15s ease;
}
.rail-btn:hover { background: rgba(255, 255, 255, 0.2); }

/* Facilities — bento */
.facility-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 800px) { .facility-grid { grid-template-columns: 1fr 1fr; } }

.facility-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.facility-card .media { aspect-ratio: 16/10; overflow: hidden; }
.facility-card .media img { width: 100%; height: 100%; object-fit: cover; }
.facility-card .body { padding: 30px; }
.facility-card .body h3 { color: #fff; }
.facility-card .body p { color: var(--muted); }
.facility-card .stat-row { display: flex; gap: 26px; margin-top: 18px; }
.facility-card .stat b { font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; color: #fff; display: block; }
.facility-card .stat span { font-size: 0.82rem; color: var(--muted-2); }

/* Amenities — glass rows */
.amenity-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 700px) {
  .amenity-list { grid-template-columns: repeat(2, 1fr); column-gap: 16px; }
}

.amenity-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 18px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  font-size: 0.97rem;
  font-weight: 500;
  color: #fff;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.amenity-list .icon-box {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
}

.amenity-list svg { width: 19px; height: 19px; color: var(--blue-deep); stroke-width: 1.6; }

/* Nearby */
.nearby-group { margin-bottom: 28px; }
.nearby-group:last-of-type { margin-bottom: 0; }
.nearby-group__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--amber);
  text-transform: none;
  margin: 0 0 14px;
}

/* Location */
.location-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 940px) { .location-grid { grid-template-columns: 1fr 0.85fr; } }

.map-embed {
  width: 100%;
  aspect-ratio: 4/3;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  filter: saturate(0.9) brightness(0.92);
}

.location-facts { display: flex; flex-direction: column; gap: 14px; }

.location-facts .fact {
  padding: 18px 20px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--blue-deep);
  border-radius: var(--radius);
}

.location-facts .fact strong { display: block; font-family: 'Space Grotesk', sans-serif; color: #fff; }
.location-facts .fact span.muted { color: var(--muted); font-size: 0.94rem; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 4px 20px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  color: #fff;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--blue-deep);
  flex: 0 0 auto;
}

.faq-item[open] summary::after { content: '\2212'; }

.faq-item p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* Sticky mobile booking bar */
.mobile-bookbar {
  display: none;
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 210;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

@media (max-width: 699px) {
  .mobile-bookbar { display: flex; }
  body { padding-bottom: 84px; }
  .whatsapp-fab { display: none; }
}

.mobile-bookbar .btn { flex: 1; justify-content: center; white-space: normal; text-align: center; line-height: 1.2; }

@media (max-width: 480px) {
  .mobile-bookbar { padding: 10px 12px; gap: 8px; }
  .mobile-bookbar .btn { padding: 10px 8px; font-size: 0.82rem; }
}

/* Scroll reveal (progressive enhancement — content visible without JS) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in-view { opacity: 1; transform: none; }
html:not(.js-ready) .reveal { opacity: 1; transform: none; }

/* Enquiry */
.enquiry-wrap {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 680px;
  margin: 0 auto;
}

.form-row { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: 18px; }
@media (min-width: 620px) { .form-row.two { grid-template-columns: 1fr 1fr; } }

label { font-weight: 600; font-size: 0.9rem; display: block; margin-bottom: 6px; color: rgba(255, 255, 255, 0.9); }

input, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--glass-border-strong);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
}

input::placeholder, textarea::placeholder { color: rgba(255, 255, 255, 0.4); }

input:focus, textarea:focus, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue-deep);
  outline-offset: 2px;
}

input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: 0.8; }

.captcha-slot {
  margin: 20px 0;
  padding: 16px;
  border: 1px dashed var(--glass-border-strong);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.form-note { font-size: 0.82rem; color: var(--muted-2); margin-top: 16px; }
.form-note a { color: var(--blue-deep); }

/* Footer */
footer.site-footer {
  padding: 60px 20px 28px;
}

footer.site-footer .container {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.footer-grid { display: grid; grid-template-columns: 1fr; gap: 36px; }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; font-family: 'Space Grotesk', sans-serif; }
.footer-grid a { color: var(--muted); text-decoration: none; display: block; margin-bottom: 9px; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--amber); }

.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 30px; }
.footer-brand span { font-family: 'Space Grotesk', sans-serif; font-weight: 600; color: #fff; }

.footer-tagline { color: var(--muted); font-size: 0.9rem; max-width: 320px; margin: 0; }

.footer-bottom {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
  font-size: 0.82rem;
  color: var(--muted-2);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.whatsapp-fab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 200;
  background: #25D366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  font-size: 1.6rem;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Simple pages (T&C / Privacy / Cancellation) */
.doc-page main { max-width: 760px; margin: 0 auto; padding: 40px 24px 90px; }
.doc-page .doc-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.doc-page h1 { margin-bottom: 6px; font-size: 2rem; }
.doc-page .updated { color: var(--muted-2); font-size: 0.85rem; margin-bottom: 32px; }
.doc-page h2 { margin-top: 34px; font-size: 1.15rem; font-family: 'Space Grotesk', sans-serif; color: #fff; }
.doc-page p, .doc-page li { color: var(--muted); }
.doc-page ul { padding-left: 20px; }
.doc-page strong { color: #fff; }
