/* Duo: a salon with two specialists. One tab per person, each with its own services, hours and
   booking link; the whole page takes on the chosen person's colour. Bento-grid layout. */

:root {
  --bg: #f6f4f1;
  --surface: #ffffff;
  --text: #17151a;
  --muted: #6b6670;
  --line: #e7e2dc;
  --a1: #c63017; --a1-soft: #fde7e1;
  --a2: #0c766d; --a2-soft: #d8f2ee;
  --accent: var(--a1);
  --soft: var(--a1-soft);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --lv-surface: var(--surface);
  --lv-text: var(--text);
  --lv-muted: var(--muted);
  --lv-line: var(--line);
  --lv-accent: var(--accent);
  --lv-radius: 24px;
}
body[data-person="maria"] { --accent: var(--a2); --soft: var(--a2-soft); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  padding-bottom: 80px; transition: background 0.4s ease;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.035em; line-height: 1.04; font-weight: 800; }
h1 { font-size: clamp(2.6rem, 9vw, 5.2rem); }
h1 span { color: var(--accent); transition: color 0.4s ease; }
h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.02em; }
.label { margin: 0 0 12px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 22px;
  border-radius: 999px; border: 0; cursor: pointer; background: var(--accent); color: #fff;
  font: 700 0.98rem/1 var(--font); text-decoration: none; transition: background 0.4s ease, transform 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 0.9rem; }
.btn-light { background: #fff; color: var(--text); }
.btn-outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5); }

.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.brand-pair { display: inline-flex; }
.brand-pair i { width: 20px; height: 20px; border-radius: 50%; background: var(--a1); }
.brand-pair i + i { margin-left: -7px; background: var(--a2); mix-blend-mode: multiply; }
.nav { display: none; gap: 28px; }
.nav a { text-decoration: none; font-weight: 600; color: var(--muted); }
.nav a:hover { color: var(--text); }

/* hero */
.hero { padding: 48px 0 40px; }
.pill { display: inline-block; margin: 0 0 22px; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 0.85rem; font-weight: 600; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 36rem; margin: 20px 0 0; }
.people { display: grid; gap: 14px; margin-top: 36px; }
.person {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 16px; width: 100%;
  padding: 18px; border-radius: 26px; border: 2px solid transparent; background: var(--surface); color: inherit;
  font: inherit; text-align: left; cursor: pointer; box-shadow: 0 10px 30px rgba(23, 21, 26, 0.06);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.person:hover { transform: translateY(-3px); }
.person[aria-current="true"] { border-color: var(--pc); }
.avatar {
  grid-row: span 2; display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 22px; color: #fff; font-size: 1.6rem; font-weight: 800;
  background: linear-gradient(135deg, var(--pc), color-mix(in srgb, var(--pc) 55%, #17151a));
}
.p-name { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.p-role { font-size: 0.95rem; color: var(--muted); }
.p-go { grid-row: span 2; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg); font-size: 1.2rem; }
.p-status { grid-column: 2 / -1; display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.p-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #b4aeb7; }
.p-status.is-open::before { background: #22a55a; }

/* tab switch with a sliding glider */
.team { padding: 30px 0 70px; }
.switch { position: relative; display: inline-flex; padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 22px; max-width: 100%; }
.switch-glider { position: absolute; top: 6px; bottom: 6px; left: 6px; border-radius: 999px; background: var(--accent); transition: transform 0.45s cubic-bezier(0.3, 1.3, 0.5, 1), width 0.45s ease, background 0.4s ease; }
.tab {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 20px 6px 8px;
  border: 0; border-radius: 999px; background: transparent; color: var(--text); cursor: pointer; font: 700 1rem/1 var(--font);
  transition: color 0.3s ease;
}
.tab[aria-selected="true"] { color: #fff; }
.tab .mini { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--pc); color: #fff; font-size: 0.9rem; }
.tab[aria-selected="true"] .mini { background: rgba(255, 255, 255, 0.22); }
.tab small { display: none; font-weight: 500; opacity: 0.75; }
.tab[aria-selected="true"] small { opacity: 1; }

/* bento */
.panel { display: grid; gap: 14px; outline: none; }
.panel:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; border-radius: 8px; }
.panel.is-entering > * { animation: rise 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.panel.is-entering > *:nth-child(2) { animation-delay: 0.05s; }
.panel.is-entering > *:nth-child(3) { animation-delay: 0.1s; }
.panel.is-entering > *:nth-child(4) { animation-delay: 0.15s; }
.panel.is-entering > *:nth-child(5) { animation-delay: 0.2s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.card { padding: 26px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); }
.profile { background: var(--soft); border-color: transparent; display: flex; flex-direction: column; gap: 14px; transition: background 0.4s ease; }
.profile .avatar { width: 84px; height: 84px; border-radius: 28px; font-size: 2.2rem; }
.profile h2 { font-size: 2.2rem; }
.profile .role { margin: -6px 0 0; font-weight: 600; color: var(--accent); }
.profile p { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.7); font-size: 0.85rem; font-weight: 600; }
.profile .btn { margin-top: auto; align-self: flex-start; }

.svc-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.svc-head small { color: var(--muted); }
.svc-group { margin: 16px 0 4px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 2px 14px; width: 100%;
  padding: 14px 10px; margin: 0 -10px; width: calc(100% + 20px); border: 0; border-radius: 16px; background: none;
  color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: background 0.2s ease;
}
.svc:hover { background: var(--soft); }
.svc-name { font-weight: 700; }
.svc-meta { grid-column: 1; grid-row: 2; font-size: 0.85rem; color: var(--muted); }
.svc-price { grid-row: span 2; font-weight: 800; }
.svc-go { grid-row: span 2; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; transition: background 0.4s ease; }
.svc-list li + li { border-top: 1px solid var(--line); }

.hours-card .status { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 12px; border-radius: 999px; background: var(--bg); font-size: 0.85rem; font-weight: 700; }
.hours-card .status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #b4aeb7; }
.hours-card .status.is-open::before { background: #22a55a; }
.days { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.days li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 10px; font-size: 0.95rem; }
.days li span:last-child { font-variant-numeric: tabular-nums; }
.days li.today { background: var(--soft); font-weight: 700; }
.days li.closed span:last-child { color: var(--muted); }
.fine { margin: 12px 0 0; font-size: 0.82rem; color: var(--muted); }

.work-card { padding: 10px; display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; min-height: 280px; }
.work-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
.work-card img:first-child { grid-row: span 2; }
.work-card figcaption { display: none; }

.review-card { background: var(--text); color: #fff; border: 0; display: flex; flex-direction: column; }
.review-card .stars { color: #f6c35b; letter-spacing: 2px; }
.review-card blockquote { margin: 12px 0 0; font-size: 1.15rem; line-height: 1.45; font-weight: 600; letter-spacing: -0.01em; }
.review-card figcaption { margin-top: auto; padding-top: 16px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); }
.review-card .sample { margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

/* studio */
.studio { padding: 40px 0 80px; }
.studio-grid { display: grid; gap: 14px; }
.studio-photo { margin: 0; border-radius: 28px; overflow: hidden; min-height: 260px; }
.studio-photo img { width: 100%; height: 100%; object-fit: cover; }
.studio-card p { color: var(--muted); }
.studio-card h2 { margin-bottom: 12px; }
.map { display: flex; align-items: center; justify-content: center; min-height: 160px; margin-top: 16px; border-radius: 20px; background: var(--bg); color: var(--muted); border: 1px dashed var(--line); }
.book-both { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.book-both .btn { flex: 1 1 160px; background: var(--pc); }

.cta { padding: 90px 0; text-align: center; color: #fff; background: linear-gradient(120deg, var(--a1), #8a3fd1 50%, var(--a2)); }
.cta p { max-width: 36rem; margin: 18px auto 28px; opacity: 0.92; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.foot { padding: 30px 0; color: var(--muted); font-size: 0.88rem; }
.foot-inner { display: flex; flex-direction: column; gap: 4px; text-align: center; }
.foot p { margin: 0; }

.sticky {
  position: fixed; left: 16px; right: 16px; bottom: 12px; z-index: 30;
  display: flex; align-items: center; justify-content: center; min-height: 54px; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 700;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 40%, transparent); transition: background 0.4s ease;
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .sticky { display: none; }
  .hero { padding: 80px 0 50px; }
  .people { grid-template-columns: 1fr 1fr; max-width: 820px; }
  .tab small { display: inline; }
  .panel { grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(0, auto); }
  .profile { grid-row: span 2; }
  .services-card { grid-column: span 2; }
  .review-card { grid-column: 1 / -1; }
  .review-card blockquote { font-size: 1.6rem; max-width: 46rem; }
  .studio-grid { grid-template-columns: 1.2fr 1fr; }
  .foot-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
@media (min-width: 900px) { .nav { display: flex; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .panel.is-entering > * { animation: none; }
  .switch-glider { transition: none; }
}

/* Until app.js has filled in the live sections (see index.html). */
.js-wait main > section:not(.hero), .js-wait .foot { display: none; }
