/* ================================================================
   TANTRA THEME — LAYOUT
   ================================================================ */

/* ── Site Header ──────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(5,5,10,0.80);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background var(--dur-base) var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(5,5,10,0.97);
  border-bottom-color: var(--surface-2);
}

.header-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

/* Site Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img {
  height: calc(var(--header-height) * 0.52);
  max-height: 70px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
}

.site-logo-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--text-primary);
  letter-spacing: var(--tracking-snug);
  line-height: 1;
}

.site-logo-text span { color: var(--gold); }

/* Primary nav */
.primary-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.primary-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.primary-nav a {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  font-size: 1.1rem;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition:
    color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  letter-spacing: var(--tracking-wide);
}

.primary-nav a:hover {
  color: var(--text-primary);
  background: var(--bg-3);
}

.primary-nav .current_page_item > a,
.primary-nav .current-menu-item > a {
  color: var(--gold-light);
}

/* Header right */
.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.lang-switcher a {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--text-muted);
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast);
}

.lang-switcher a:hover,
.lang-switcher a.is-active { color: var(--gold-light); }

.lang-switcher .sep {
  width: 1px;
  height: 12px;
  background: var(--surface-2);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  cursor: pointer;
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
}

.menu-toggle svg { width: 20px; height: 20px; }

@media (max-width: 900px) {
  .primary-nav { display: none; }
  .menu-toggle { display: flex; }

  .primary-nav.is-open {
    display: flex;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-0);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: var(--space-6) var(--gutter);
    overflow-y: auto;
    animation: slide-down var(--dur-base) var(--ease-out);
  }

  .primary-nav.is-open ul {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
  }

  .primary-nav.is-open a {
    padding: var(--space-4) var(--space-5);
    font-size: var(--text-md);
    border-bottom: var(--border);
    border-radius: 0;
  }

  @keyframes slide-down {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .header-right .btn { display: none; }
}

/* ── Site Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-0);
  border-top: var(--border);
  padding: var(--space-16) 0 var(--space-8);
  margin-top: var(--space-24);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-4);
  max-width: 30ch;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--text-muted);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-4);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--dur-fast);
}

.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  border-top: var(--border);
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: none;
}

.footer-legal {
  display: flex;
  gap: var(--space-6);
}

.footer-legal a {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.footer-legal a:hover { color: var(--gold-light); }

.footer-18 {
  font-size: var(--text-xs);
  color: var(--text-muted);
  background: var(--surface-2);
  padding: 2px var(--space-3);
  border-radius: var(--radius-pill);
  letter-spacing: var(--tracking-wide);
}

/* ── Grids ────────────────────────────────────────────────────── */
.masseuse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-6);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-6);
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.schedule-day {
  margin-bottom: var(--space-8);
}

.schedule-day__header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: var(--border);
}

.schedule-day__date {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--text-primary);
}

.schedule-day__count {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ── Filters sidebar / bar ────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-2);
  border: var(--border);
  border-radius: var(--radius-lg);
}

.filter-bar__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-muted);
  white-space: nowrap;
  margin-right: var(--space-2);
}

.filter-chip {
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--surface-2);
  border-radius: var(--radius-pill);
  background: var(--bg-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition:
    background var(--dur-fast),
    border-color var(--dur-fast),
    color var(--dur-fast);
  white-space: nowrap;
}

.filter-chip:hover {
  background: var(--surface);
  border-color: var(--gold-dim);
  color: var(--text-primary);
}

.filter-chip.is-active {
  background: rgba(196,151,74,0.12);
  border-color: var(--gold);
  color: var(--gold-light);
}

.filter-chip input { display: none; }

/* ── Page header / hero area ──────────────────────────────────── */
.page-header {
  padding: var(--space-16) 0 var(--space-10);
  background: linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(196,151,74,0.06), transparent);
  pointer-events: none;
}

.page-header__eyebrow {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--gold);
  margin-bottom: var(--space-3);
}

.page-header h1 { margin-bottom: var(--space-4); }

.page-header p {
  font-size: var(--text-lg);
  max-width: 55ch;
}

/* ── Side layout (detail pages) ──────────────────────────────── */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-12);
  align-items: start;
}

@media (max-width: 1024px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

.detail-sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-6));
}

/* ── Two column layout ────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ── Header CTA button — 1.1rem ────────────────────────────── */
.header-right .btn {
  font-size: 1.1rem;
}
