/* ========================================
   UC Spa — Shared Styles
   ======================================== */

:root {
  --bg: #faf9f7;
  --bg-secondary: #f5f3f0;
  --muted: #8b7f73;
  --muted-light: #b8aea4;
  --accent: #4a3f35;
  --accent-dark: #3a3129;
  --primary: #2d241f;
  --card: #ffffff;
  --card-hover: #fefefe;
  --button: #4a3f35;
  --button-hover: #3a3129;
  --white: #ffffff;
  --gradient-primary: linear-gradient(135deg, #4a3f35 0%, #3a3129 100%);
  --gradient-card: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,249,247,0.98));
  --gradient-hero: linear-gradient(135deg, rgba(74,63,53,0.85) 0%, rgba(58,49,41,0.75) 100%);
  --shadow-sm: 0 2px 8px rgba(15,23,36,0.08);
  --shadow-md: 0 4px 16px rgba(15,23,36,0.12);
  --shadow-lg: 0 8px 32px rgba(15,23,36,0.16);
  --shadow-xl: 0 12px 48px rgba(15,23,36,0.2);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  --tap: 44px;
  --card-radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base ── */
html { scroll-behavior: smooth; }
html, body { height: 100%; background: var(--bg); margin: 0; overflow-x: hidden; }
* { box-sizing: border-box; }
body {
  color: var(--accent);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 20px; }

/* ── Skip Navigation (accessibility) ── */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--accent);
  color: var(--white);
  padding: 12px 24px;
  z-index: 200;
  font-weight: 700;
  border-radius: 0 0 8px 0;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-nav:focus {
  top: 0;
}

/* ── Header ── */
header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(250,249,247,0.85);
  border-bottom: 1px solid rgba(58,49,41,0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo-link {
  display: flex;
  align-items: center;
}
.logo-img { height: 34px; width: auto; display: block; }
.nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-left: auto;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a:focus {
  color: var(--primary);
}
.pill {
  background: #e9dfd5;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  color: var(--primary);
}

/* ── Mobile toggle ── */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.mobile-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  position: relative;
  transition: transform 240ms ease, background 240ms ease;
}
.mobile-toggle .bar::before,
.mobile-toggle .bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 240ms ease;
}
.mobile-toggle .bar::before { top: -6px; }
.mobile-toggle .bar::after  { top:  6px; }
.mobile-toggle.open .bar { background: transparent; }
.mobile-toggle.open .bar::before { transform: translateY(6px) rotate(45deg); }
.mobile-toggle.open .bar::after  { transform: translateY(-6px) rotate(-45deg); }

/* ── Mobile menu ── */
.mobile-menu {
  display: none;
  background: rgba(250,249,247,0.95);
  border-bottom: 1px solid rgba(58,49,41,0.06);
}
.mobile-menu-inner {
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms ease, padding 320ms ease;
  padding: 0 20px;
}
.mobile-menu-inner.open {
  max-height: 320px;
  padding: 12px 20px 18px;
}
.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid rgba(58,49,41,0.03);
}

/* ── Sub-page hero ── */
.page-hero {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 0;
}
.page-hero h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.2px;
}
.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 760px;
  line-height: 1.6;
  font-size: 15px;
}

/* ── Sub-page card ── */
.cards-wrap {
  display: flex;
  justify-content: center;
  padding: 12px 0 28px 0;
}
.page-card {
  width: 100%;
  max-width: 1100px;
  background: var(--gradient-card);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(124,113,103,0.1);
  padding: 28px;
  margin: 0 auto;
}
.page-card h3 {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 22px;
  font-weight: 700;
}
.page-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}
.page-card p:last-child { margin-bottom: 0; }

/* ── Shared buttons ── */
.card-controls {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 24px;
  align-items: center;
}
.btn {
  border: 0;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  min-width: 120px;
  box-shadow: 0 6px 16px rgba(58,49,41,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(58,49,41,0.12);
}
.btn--accent { background: var(--accent); color: var(--white); }
.btn--muted  { background: #fff; color: var(--muted); border: 1px solid rgba(124,113,103,0.2); }

/* ── Footer ── */
footer {
  padding: 40px 0 20px;
  margin-top: 40px;
  border-top: 1px solid rgba(58,49,41,0.15);
  background: var(--bg-secondary);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand { max-width: 320px; }
.footer-brand .logo-img { margin-bottom: 12px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  flex: 1;
  min-width: 260px;
}
.footer-col h4 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}
.muted { color: var(--muted); font-size: 13px; }
.small { font-size: 13px; color: var(--muted); }
footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}
footer a:hover,
footer a:focus {
  color: var(--primary);
  text-decoration: underline;
}

/* ── Reveal on scroll ── */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms cubic-bezier(.2,.9,.2,1), transform 560ms cubic-bezier(.2,.9,.2,1);
}
.reveal-on-scroll.reveal--active {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 520ms ease, transform 520ms ease;
}
.reveal-stagger.reveal--active > * {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .nav-links { display: none; }
  .mobile-toggle { display: inline-flex; }
  .container { padding: 14px; }
  .mobile-menu { display: block; }
  footer .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .page-card { padding: 20px; }
}
@media (max-width: 600px) {
  .page-hero h1 { font-size: 24px; }
  .page-card { padding: 18px; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll,
  .reveal-stagger > * {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
