/* ═══════════════════════════════════════════════════════
   Full-Page Layout System — replaces .page-shell on pages
   Used by: about, faq, services index, service detail
   ═══════════════════════════════════════════════════════ */

/* ── Body Base (font, background, links) ───────────── */

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

/* ── Page Content Container ─────────────────────────── */

.ts-page-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: calc(var(--nav-height, 56px) + 2.5rem) 3rem 4rem;
  min-height: 100vh;
  box-sizing: border-box;
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ts-page-content.content-ready {
  opacity: 1;
}

/* ── Page Footer ────────────────────────────────────── */

.ts-footer {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 2.5rem 2rem 2rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
  background: linear-gradient(to bottom, var(--bg) 0%, color-mix(in srgb, var(--primary) 18%, var(--bg)) 100%);
}

.dark-mode .ts-footer {
  background: linear-gradient(to bottom, var(--bg) 0%, #030a18 100%);
}

.ts-footer a {
  color: var(--primary);
  text-decoration: none;
}

.ts-footer a:hover {
  text-decoration: underline;
}

.ts-footer__sep {
  margin: 0 0.35rem;
  color: var(--border);
}

.ts-footer__swami {
  display: block;
  width: 72px;
  height: auto;
  margin: 0 auto 0.75rem;
  opacity: 0.8;
  animation: ts-swami-bob 4s ease-in-out infinite;
}

@keyframes ts-swami-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ── Footer Bubbles (snorkeling effect) ──────────── */

.ts-footer__bubbles {
  position: absolute;
  left: 50%;
  top: 0;
  width: 80px;
  height: 100%;
  transform: translateX(-50%);
  pointer-events: none;
}

.ts-footer__bubble {
  position: absolute;
  top: 2rem;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0;
  animation: ts-bubble-rise 10s ease-out infinite;
}

.ts-footer__bubble:nth-child(1) { width: 5px; height: 5px; left: 35%; animation-delay: 0s; }
.ts-footer__bubble:nth-child(2) { width: 3px; height: 3px; left: 55%; animation-delay: 2.5s; }
.ts-footer__bubble:nth-child(3) { width: 6px; height: 6px; left: 42%; animation-delay: 4.8s; }
.ts-footer__bubble:nth-child(4) { width: 4px; height: 4px; left: 60%; animation-delay: 1.3s; }
.ts-footer__bubble:nth-child(5) { width: 3px; height: 3px; left: 30%; animation-delay: 6.2s; }
.ts-footer__bubble:nth-child(6) { width: 5px; height: 5px; left: 50%; animation-delay: 8.0s; }
.ts-footer__bubble:nth-child(7) { width: 4px; height: 4px; left: 38%; animation-delay: 3.7s; }
.ts-footer__bubble:nth-child(8) { width: 3px; height: 3px; left: 65%; animation-delay: 7.1s; }

@keyframes ts-bubble-rise {
  0%, 82% {
    opacity: 0;
    transform: translateY(0);
  }
  84% {
    opacity: 0.25;
    transform: translateY(-5px);
  }
  92% {
    opacity: 0.15;
  }
  100% {
    opacity: 0;
    transform: translateY(-60px) translateX(5px);
  }
}

/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 767px) {
  .ts-page-content {
    padding: calc(var(--nav-height, 56px) + 1.5rem) 1.25rem 3rem;
    font-size: 1em;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .ts-page-content {
    max-width: 960px;
  }
}

/* ── Reduced Motion ─────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .ts-page-content {
    opacity: 1;
    transition: none;
  }

  .ts-footer__swami {
    animation: none;
  }

  .ts-footer__bubble {
    animation: none;
    display: none;
  }
}
