:root {
  /* Palette: deep plum / aubergine primary + warm saffron accent.
     Chosen for a nasha-mukti / recovery feel (hope, warmth, new beginnings),
     intentionally away from green/blue. Variable names kept (teal-*/coral*)
     so all existing markup keeps working; only the color values changed. */
  --teal-900: #1e0d24;  /* deepest plum (headings, dark sections) */
  --teal-800: #2c1335;  /* dark plum */
  --teal-700: #431d4f;  /* primary dark */
  --teal-600: #5e2869;  /* primary (plum) */
  --teal-500: #864792;  /* primary light */
  --teal-100: #ead9ec;  /* soft tint */
  --teal-50:  #f7f0f8;  /* lightest tint */
  --sand: #fff2e4;      /* warm cream wash */
  --ink: #1c121f;
  --muted: #665168;
  --line: #e6d6e8;
  --white: #ffffff;
  --amber: #e07812;     /* warm saffron accent (darker) */
  --coral: #e07812;     /* saffron (CTA buttons, darker) */
  --coral-dark: #c25f05;
  --radius: 16px;
  --shadow: 0 8px 28px rgba(42, 20, 48, 0.08);
  --shadow-lg: 0 18px 48px rgba(42, 20, 48, 0.18);
  --max: 1140px;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, "Noto Sans", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}
.container.narrow { max-width: 820px; }

h1, h2, h3, h4 { line-height: 1.25; color: var(--teal-900); margin: 0 0 .4em; }
h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
a { color: var(--teal-700); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1rem; }

.hi { color: var(--teal-700); font-size: .95em; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--teal-900);
  color: #e3d2e6;
  font-size: .85rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 20px;
  flex-wrap: wrap;
}
.topbar .hi { color: #c79ad0; }
.topbar-call { color: #fff; font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-500));
  color: #fff;
  border-radius: 12px; font-weight: 800; letter-spacing: .3px;
  font-size: .95rem;
  box-shadow: 0 6px 16px rgba(116, 53, 127, 0.38);
}
.brand-text strong { display: block; color: var(--teal-900); font-size: 1.05rem; }
.brand-text small { color: var(--muted); }

.main-nav ul {
  display: flex; align-items: center; gap: 6px;
  list-style: none; margin: 0; padding: 0;
}
.main-nav a {
  display: inline-block; padding: 8px 14px; border-radius: 10px;
  color: var(--ink); font-weight: 500;
}
.main-nav a:hover { background: var(--teal-50); text-decoration: none; }
.main-nav a.active { color: var(--teal-700); background: var(--teal-100); }
.nav-cta {
  background: linear-gradient(135deg, var(--coral), var(--coral-dark)) !important;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(245, 138, 31, 0.4);
}
.nav-cta:hover { filter: brightness(1.05); }
.nav-toggle, .nav-toggle-label { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; cursor: pointer; border: 2px solid transparent;
  transition: transform .08s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  color: #fff; box-shadow: 0 8px 22px rgba(245, 138, 31, 0.42);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--coral-dark), var(--coral));
  color: #fff; box-shadow: 0 12px 28px rgba(245, 138, 31, 0.52);
}
.btn-ghost { background: transparent; color: var(--teal-700); border-color: var(--teal-500); }
.btn-ghost:hover { background: var(--teal-50); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, var(--teal-100) 0%, transparent 60%),
    linear-gradient(160deg, var(--teal-50) 0%, var(--sand) 100%);
  padding: 64px 0;
}
.hero-grid {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 44px; align-items: center;
}
.eyebrow { color: var(--teal-700); font-weight: 600; font-size: .9rem; }
.hero h1 { font-size: 2.8rem; }
.lead { font-size: 1.2rem; color: var(--teal-800); font-weight: 600; margin-bottom: .3rem; }
.hero-bullets { list-style: none; padding: 0; margin: 1.2rem 0; }
.hero-bullets li { margin-bottom: .5rem; }
.tick {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal-100); color: var(--teal-700);
  font-size: .8rem; margin-right: 6px; font-weight: 700;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.2rem; }
.hero-actions.center { justify-content: center; }
.hero-media { text-align: center; }
.hero-image {
  font-size: 7rem; background: #fff; border-radius: 20px;
  box-shadow: var(--shadow-lg); padding: 48px; display: grid; place-items: center;
}
img.hero-image {
  padding: 0; width: 100%; max-width: 480px; height: auto;
  aspect-ratio: 4 / 3; object-fit: cover; margin: 0 auto;
}
.caption { margin-top: 14px; color: var(--muted); font-size: .9rem; }

/* Facility photos */
.facility-img {
  width: 100%; height: 160px; object-fit: cover;
  border-radius: 12px; margin-bottom: 12px;
}

/* Gallery grid */
.gallery-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.gallery-item {
  margin: 0; border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-lg); background: #fff;
}
.gallery-item img {
  width: 100%; height: 220px; object-fit: cover; display: block;
  transition: transform .3s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--teal-50); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.section-head h2 { margin-bottom: .2em; }

/* ---------- Grid + cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: transform .12s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-icon { font-size: 2rem; margin-bottom: 10px; }
.card h3, .card h4 { margin-bottom: .25em; }

.service-card { border-top: 4px solid var(--teal-500); }

.member { text-align: center; }
.avatar {
  width: 64px; height: 64px; margin: 0 auto 12px;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--teal-600); color: #fff; font-size: 1.6rem; font-weight: 700;
}
.role { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.facility { text-align: center; }

.chip {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 18px; box-shadow: var(--shadow); font-weight: 500;
}

/* ---------- Process ---------- */
.process {
  list-style: none; padding: 0; margin: 0 0 20px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step;
}
.process li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 18px; text-align: center; box-shadow: var(--shadow);
}
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 12px;
  border-radius: 50%; background: var(--teal-100); color: var(--teal-700); font-weight: 800; font-size: 1.2rem;
}

/* ---------- Banner ---------- */
.banner {
  margin-top: 36px; background: var(--teal-900); color: #fff;
  border-radius: var(--radius); padding: 24px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.banner strong { display: block; font-size: 1.15rem; }
.banner .hi { color: #c79ad0; }

/* ---------- FAQ ---------- */
.faq {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 6px 20px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer; font-weight: 600; padding: 12px 0; color: var(--teal-900); list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; float: right; color: var(--teal-600); }
.faq[open] summary::after { content: "－"; }
.faq p { margin: 0 0 10px; }

/* ---------- CTA band ---------- */
.cta-band {
  background-color: #2c1335 !important;
  background: linear-gradient(135deg, #431d4f, #1e0d24) !important;
  color: #ffffff; text-align: center; padding: 64px 0;
}
.cta-band h2 { color: #ffffff; }
.cta-band .hi { color: #f3d9f6; }
.cta-band p { color: #f1e6f3; }

/* ---------- Footer ---------- */
.site-footer { background-color: #1e0d24 !important; color: #e9dcea; margin-top: 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding: 54px 20px 36px;
}
.footer-col h4 { color: #fff; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col a { color: #e3d2e6; }
.footer-col a:hover { color: #fff; }
.footer-call { display: inline-block; margin-top: 8px; color: var(--amber); font-size: 1.2rem; font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); font-size: .85rem; }
.footer-bottom .container { display: flex; justify-content: space-between; padding: 16px 20px; }
.admin-link { color: #c79ad0; }

/* ---------- Simple content page ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--teal-50), var(--sand));
  padding: 48px 0; text-align: center;
}
.page-body { padding: 48px 0; }
.page-body .prose { max-width: 760px; margin: 0 auto; }
.prose p { white-space: pre-wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--teal-900); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 1rem; font-family: inherit; background: var(--teal-50);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--teal-500); background: #fff;
  box-shadow: 0 0 0 3px rgba(156, 90, 166, .2);
}
.field textarea { min-height: 130px; resize: vertical; }
.alert { padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; }
.alert-success { background: #e6f6ee; color: #1b6b3a; border: 1px solid #bfe6cf; }
.alert-error { background: #fdecec; color: #a12626; border: 1px solid #f3c3c3; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 12px; margin-bottom: 18px; }
.info-ico { font-size: 1.4rem; }

/* ---------- Admin ---------- */
.admin-body { background: var(--teal-50); min-height: 100vh; }
.admin-login-wrap {
  min-height: 100vh; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal-700), var(--teal-900)); padding: 20px;
}
.admin-login-card {
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 40px; width: 100%; max-width: 400px;
}
.admin-login-card h1 { font-size: 1.5rem; text-align: center; }
.admin-login-card .sub { text-align: center; color: var(--muted); margin-bottom: 24px; }
.btn-block { width: 100%; text-align: center; border: none; }

.admin-topbar {
  background: var(--teal-900); color: #fff; padding: 14px 0;
}
.admin-topbar .container { display: flex; justify-content: space-between; align-items: center; }
.admin-topbar a { color: #c9e3de; margin-left: 16px; }
.admin-topbar a:hover { color: #fff; }
.admin-brand { color: #fff; font-weight: 700; font-size: 1.1rem; }
.admin-main { padding: 32px 0; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.stat {
  background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  border-left: 4px solid var(--teal-500);
}
.stat .num { font-size: 2rem; font-weight: 800; color: var(--teal-700); }
.stat .label { color: var(--muted); }

.panel {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 24px;
}
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }

table.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .5px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.badge-on { background: #e6f6ee; color: #1b6b3a; }
.badge-off { background: #f1f1f1; color: #777; }
.badge-new { background: #fdecd3; color: #9a5c0f; }

.btn-sm { padding: 6px 12px; font-size: .85rem; border-radius: 8px; }
.btn-danger { background: #c0392b; color: #fff; border: none; }
.btn-danger:hover { background: #a13225; color: #fff; }
.btn-outline { background: #fff; color: var(--teal-700); border: 1px solid var(--teal-500); }
.inline-form { display: inline; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkbox-row { display: flex; gap: 24px; margin: 10px 0 20px; }
.checkbox-row label { display: flex; gap: 8px; align-items: center; font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .grid-5, .process { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-grid, .form-row { grid-template-columns: 1fr; }
  h1, .hero h1 { font-size: 2.1rem; }

  .nav-toggle-label { display: block; font-size: 1.6rem; cursor: pointer; color: var(--teal-800); }
  .main-nav ul {
    display: none; position: absolute; top: 70px; right: 16px; left: 16px;
    flex-direction: column; align-items: stretch; background: #fff;
    border: 1px solid var(--line); border-radius: 12px; padding: 10px; box-shadow: var(--shadow-lg);
  }
  .nav-toggle:checked ~ ul { display: flex; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .grid-5, .process { grid-template-columns: 1fr; }
  .topbar-inner { justify-content: center; text-align: center; }
}

/* ---------- Floating action buttons (WhatsApp + Location) ---------- */
.floating-actions {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.fab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 18px 0 16px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: transform .14s ease, box-shadow .15s ease, filter .15s ease;
  max-width: 56px;              /* collapsed: just the icon */
  overflow: hidden;
  white-space: nowrap;
}
.fab:hover { text-decoration: none; transform: translateY(-2px); max-width: 240px; }
.fab .fab-ic {
  display: grid;
  place-items: center;
  width: 24px;
  min-width: 24px;
  font-size: 1.35rem;
  line-height: 1;
}
.fab .fab-label {
  opacity: 0;
  transition: opacity .15s ease;
}
.fab:hover .fab-label { opacity: 1; }

.fab-whatsapp { background: #25d366; }
.fab-whatsapp:hover { filter: brightness(1.03); }
.fab-location { background: linear-gradient(135deg, var(--coral), var(--coral-dark)); }

/* Always show labels on wider screens for clarity */
@media (min-width: 720px) {
  .fab { max-width: 220px; }
  .fab .fab-label { opacity: 1; }
}

/* ---------- Admin settings form extras ---------- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--teal-900); }
.form-group .hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
.form-group input[type="text"],
.form-group textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 1rem; font-family: inherit; background: var(--teal-50);
}
.form-group input[type="text"]:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--teal-500); background: #fff;
  box-shadow: 0 0 0 3px rgba(156, 90, 166, .25);
}
.switch-row {
  display: flex; align-items: center; gap: 10px;
  margin: 6px 0 18px; font-weight: 500; cursor: pointer;
}
.switch-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--teal-600); }

/* ---------------- Floating action buttons (phone / whatsapp / location) ---------------- */
.floating-actions {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.floating-actions .fab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  transition: transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.floating-actions .fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
}
.floating-actions .fab-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.floating-actions .fab-call {
  background: #e11d2a;
}
.floating-actions .fab-call:hover {
  background: #c40f1c;
}
.floating-actions .fab-whatsapp {
  background: #25d366;
}
.floating-actions .fab-location {
  background: var(--teal-500, #14b8a6);
}

/* ---------------- Sticky bottom contact bar (mobile only) ---------------- */
.mobile-bar {
  display: none; /* shown only on small screens via media query below */
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  background: #fff;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, .14);
  padding: 8px;
  gap: 8px;
}
.mobile-bar-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 10px;
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  line-height: 1.1;
}
.mobile-bar-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  font-size: 1.1rem;
  flex: none;
}
.mobile-bar-txt {
  display: flex;
  flex-direction: column;
}
.mobile-bar-txt small {
  font-size: .72rem;
  opacity: .9;
  font-weight: 500;
}
.mobile-bar-txt strong {
  font-size: .98rem;
  font-weight: 800;
  letter-spacing: .2px;
}
.mobile-bar-call {
  background: linear-gradient(135deg, #f43f3f, #d31120);
}
.mobile-bar-wa {
  background: linear-gradient(135deg, #2bd16a, #12a150);
}
.mobile-bar-btn:active { transform: translateY(1px); }

/* On small screens: show the sticky bottom bar AND keep the round WhatsApp /
   location floating buttons (sitting just above the bar). The call button is
   hidden from the round stack because it already lives in the bottom bar.
   Extra body padding keeps page content clear of the fixed bar. */
@media (max-width: 640px) {
  .mobile-bar {
    display: flex;
  }
  .floating-actions {
    left: auto;
    right: 12px;
    bottom: 80px; /* sit above the sticky bottom bar */
    gap: 10px;
    align-items: flex-end;
  }
  .floating-actions .fab-call {
    display: none; /* call already available in the bottom bar */
  }
  .floating-actions .fab-whatsapp,
  .floating-actions .fab-location {
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .floating-actions .fab-whatsapp .fab-label,
  .floating-actions .fab-location .fab-label {
    display: none;
  }
  body {
    padding-bottom: 72px;
  }
}
