/* Shared look for the public pages: app bar, footer, bottom tab bar, menu sheet. */
:root {
  --brand: #5b21b6;
  --brand-dark: #4c1d95;
  --brand-soft: #f1ebfb;
  --brand-soft2: #e7dcf8;
  --brand-light: #7c3aed;
  --brand-rgb: 91, 33, 182;
  --brand-dark-rgb: 76, 29, 149;
  --accent: #e11d48;
  --bg: #f6f4fa;
  --surface: #ffffff;
  --text: #14121a;
  --muted: #6b6878;
  --line: #e9e5f0;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(20, 18, 26, 0.06), 0 8px 24px rgba(20, 18, 26, 0.06);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Sans Telugu', sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(86px + var(--safe-bottom));
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.icon { width: 22px; height: 22px; flex: none; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
main { padding: 18px 0 28px; }

/* ---------- App bar ---------- */
.appbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.appbar .wrap { height: 60px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { height: 40px; width: auto; }
.brand-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.top-links { display: none; margin-left: auto; gap: 4px; }
.top-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  color: #3b3747;
}
.top-links a:hover,
.top-links a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
.icon-btn {
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.icon-btn:active { transform: scale(0.94); }
.icon-btn + .icon-btn { margin-left: 8px; }   /* globe + share side by side */
/* Globe button: the globe turns right to left and only the globe changes colour
   (site colour -> blue -> green -> red); the button stays as it is. Still for
   visitors who turn motion off. */
.appbar .site-link-btn .globe { width: 22px; height: 22px; }
.appbar .site-link-btn .globe { animation: globe-colors 8s ease-in-out infinite; }
@keyframes globe-colors {
  0%, 100% { color: var(--brand); }
  25% { color: #0284c7; }
  50% { color: #16a34a; }
  75% { color: #dc2626; }
}
@media (prefers-reduced-motion: reduce) {
  .appbar .site-link-btn .globe { animation: none; }
}

/* ---------- Page heading + content cards ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand) 60%, var(--brand-light));
  color: #fff;
  border-radius: var(--radius);
  padding: 22px 20px;
  margin-bottom: 16px;
  box-shadow: 0 10px 28px rgba(var(--brand-dark-rgb), 0.25);
}
.page-hero .eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}
.page-hero h1 { margin: 4px 0 0; font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; }
.page-hero p { margin: 8px 0 0; opacity: 0.9; font-size: 15px; }
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 12px;
}
.card h2 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0 0 10px; color: #35313f; }
.card p:last-child { margin-bottom: 0; }
.card ul { margin: 0; padding-left: 20px; color: #35313f; }
.card li + li { margin-top: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  border: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(var(--brand-rgb), 0.3); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-soft { background: var(--brand-soft); color: var(--brand); }

/* ---------- Footer ---------- */
footer.site-footer { background: #1a1029; color: #cfc8dc; padding: 28px 0 24px; font-size: 14px; }
.foot-grid { display: grid; gap: 22px; }
.site-footer h3 { margin: 0 0 8px; color: #fff; font-size: 15px; }
.site-footer p { margin: 0 0 6px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px; }
.foot-links a {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 600;
  font-size: 13px;
}
.foot-links a:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.contact-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 8px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}
.pill .icon { width: 18px; height: 18px; }
.pill-wa { background: #16a34a; }
.pill-call { background: rgba(255, 255, 255, 0.12); }
.copyright {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 13px;
  color: #9d94ad;
}

/* ---------- Bottom tab bar (phones) ---------- */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: calc(10px + var(--safe-bottom));
  transform: translateX(-50%);
  z-index: 60;
  width: calc(100% - 20px);
  max-width: 460px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 6px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(20, 18, 26, 0.08);
  box-shadow: 0 12px 32px rgba(20, 18, 26, 0.18);
  /* Compact/expand with transform only: runs on the GPU, so it stays smooth on
     phones even while the page (lots of paper images) is scrolling */
  transform-origin: 50% 100%;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}
/* Compact while reading down, full size again on scroll up */
.tabbar.is-compact { transform: translateX(-50%) scale(0.88); }
/* BOTTOM_BAR_STYLE 2 (body.bar-docked): full width, fixed to the bottom edge */
.bar-docked .tabbar,
.bar-docked .tabbar.is-compact {
  left: 0;
  bottom: 0;
  transform: none;
  width: 100%;
  max-width: none;
  padding: 4px 6px calc(4px + var(--safe-bottom));
  border-width: 1px 0 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -6px 20px rgba(20, 18, 26, 0.08);
}
.tab-label { display: block; line-height: 1.2; }
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 54px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #5d5868;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.tab.active { color: var(--brand); background: var(--brand-soft); }
.tab:active { transform: scale(0.95); }

/* ---------- Bottom sheet menu ---------- */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(20, 10, 40, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 71;
  max-width: 520px;
  margin: 0 auto;
  padding: 10px 16px calc(18px + var(--safe-bottom));
  background: var(--surface);
  border-radius: 22px 22px 0 0;
  transform: translateY(105%);
  transition: transform 0.25s ease;
}
.sheet-open .sheet-backdrop { opacity: 1; pointer-events: auto; }
.sheet-open .sheet { transform: none; }
.sheet-handle { width: 40px; height: 5px; border-radius: 3px; background: #d9d4e3; margin: 0 auto 12px; }
.sheet a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 8px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
}
.sheet a + a { border-top: 1px solid var(--line); }
.sheet a[hidden] { display: none; }
.sheet a:active { background: var(--brand-soft); }
.sheet a .icon { color: var(--brand); }
.sheet a .chev { margin-left: auto; color: #b5afc0; width: 18px; height: 18px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + var(--safe-bottom));
  transform: translate(-50%, 20px);
  z-index: 80;
  padding: 10px 16px;
  border-radius: 999px;
  background: #14121a;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Larger screens ---------- */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .top-links { display: flex; }
  .appbar .icon-btn { margin-left: 4px; }
  .appbar .icon-btn + .icon-btn { margin-left: 8px; }
  main { padding-top: 28px; }
  .page-hero { padding: 32px 30px; }
  .page-hero h1 { font-size: 34px; }
  .card { padding: 24px 26px; }
  .foot-grid { grid-template-columns: 1.2fr 1fr 1.2fr; }
  .tabbar { display: none; }
  .toast { bottom: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
