/*
Theme Name: Pilates School SF Theme
Theme URI: https://www.pilatesschoolsf.com/
Author: OpenAI Codex
Description: Custom theme package based on the current Pilates School SF redesign prototype.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: pilates-school-sf-theme
*/

:root {
  --bg: #eef6fb;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #f7fbfe;
  --ink: #272328;
  --muted: #566d79;
  --line: rgba(53, 99, 122, 0.14);
  --sage: #a8cfdf;
  --forest: #5f8fa1;
  --terracotta: #1f3b67;
  --sand: #d9edf7;
  --shadow: 0 22px 60px rgba(31, 59, 103, 0.12);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(168, 207, 223, 0.46), transparent 32%),
    radial-gradient(circle at right 12% top 18%, rgba(95, 143, 161, 0.22), transparent 18%),
    linear-gradient(180deg, #fafdff 0%, #e7f1f8 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: opacity 200ms ease;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(180deg, rgba(250, 253, 255, 0.9), rgba(231, 241, 248, 0.9));
}

body.has-watermark::before,
body.has-watermark::after {
  opacity: 1;
}

body.watermark-home::before {
  opacity: 0.34;
  background-image:
    linear-gradient(180deg, rgba(250, 253, 255, 0.56), rgba(231, 241, 248, 0.58)),
    url("assets/images/20240330_131356.jpg");
  background-position: center top;
}

body.watermark-certification::before {
  opacity: 0.33;
  background-image:
    linear-gradient(180deg, rgba(250, 253, 255, 0.58), rgba(231, 241, 248, 0.56)),
    url("assets/images/IMG_20230312_102924.jpg");
  background-position: center center;
}

body.watermark-about::before {
  opacity: 0.31;
  background-image:
    linear-gradient(180deg, rgba(250, 253, 255, 0.6), rgba(231, 241, 248, 0.58)),
    url("assets/images/20250223_110612.jpg");
  background-position: center top;
}

body.watermark-facilities::before {
  opacity: 0.3;
  background-image:
    linear-gradient(180deg, rgba(250, 253, 255, 0.58), rgba(231, 241, 248, 0.56)),
    url("assets/images/20240824_100258.jpg");
  background-position: center center;
}

body.watermark-contact::before {
  opacity: 0.28;
  background-image:
    linear-gradient(180deg, rgba(250, 253, 255, 0.66), rgba(231, 241, 248, 0.64)),
    url("assets/images/20220307_131036 (1).jpg");
  background-position: center center;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.03rem;
}

h1,
h2,
h3,
h4,
.brand,
.button,
.eyebrow,
.nav-links,
.pill,
.stat strong,
.price,
.contact-card strong {
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  letter-spacing: 0.01em;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.05;
  font-weight: 700;
}

h1 {
  font-size: clamp(3rem, 8vw, 6rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--forest);
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
}

.site-shell {
  width: min(calc(100% - 2rem), var(--content));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(251, 247, 239, 0.82);
  border-bottom: 1px solid rgba(20, 38, 31, 0.08);
}

body.admin-bar .topbar {
  top: 32px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand-mark {
  display: none;
}

.brand-text {
  font-size: 1.1rem;
  font-weight: 700;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand-mark-image {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.nav-item {
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: -0.75rem;
}

.nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-parent::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% - 0.1rem);
  left: 0;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.55rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown a {
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  background: rgba(95, 143, 161, 0.12);
  outline: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--forest);
  color: #fff;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.hero {
  padding: 4.75rem 0 3rem;
}

.hero.compact {
  padding-bottom: 1.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  padding: 1.25rem 0;
}

.hero-copy p {
  max-width: 41rem;
  margin-top: 1.25rem;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.hero-note {
  margin-top: 1.2rem;
  font-size: 0.95rem;
}

.hero-card {
  position: relative;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(224, 239, 246, 0.92));
  border: 1px solid rgba(53, 99, 122, 0.12);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -8% -14% auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(168, 207, 223, 0.56), transparent 70%);
}

.hero-card-image {
  padding: 1.2rem;
}

.hero-card-image .eyebrow {
  margin-bottom: 0.9rem;
}

.hero-card-image img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: calc(var(--radius-xl) - 0.5rem);
  box-shadow: 0 22px 44px rgba(53, 99, 122, 0.14);
}

.pill-row,
.stats,
.card-grid,
.pricing-grid,
.team-grid,
.contact-grid,
.detail-grid {
  display: grid;
  gap: 1rem;
}

.pill-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.7rem;
}

.pill {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
  font-size: 0.94rem;
}

.stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.stat {
  padding: 1rem 0;
  border-top: 1px solid rgba(53, 99, 122, 0.14);
}

.stat strong {
  display: block;
  font-size: 2rem;
  color: var(--forest);
}

.section {
  padding: 2.8rem 0;
}

.section-head {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.7rem;
  max-width: 45rem;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.pricing-card,
.contact-card,
.detail-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card {
  min-height: 100%;
}

.card p,
.pricing-card p,
.contact-card p,
.detail-card p {
  margin-top: 0.8rem;
}

.mini-list {
  margin: 1rem 0 0;
  padding-left: 1rem;
  color: var(--muted);
}

.mini-list li + li {
  margin-top: 0.45rem;
}

.band {
  padding: 2rem;
  background: linear-gradient(135deg, rgba(31, 59, 103, 0.96), rgba(95, 143, 161, 0.92));
  color: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.band p,
.band .eyebrow {
  color: rgba(255, 255, 255, 0.84);
}

.band-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-card {
  position: relative;
  overflow: hidden;
}

.pricing-card.featured {
  background: linear-gradient(180deg, #f7fbfe 0%, #e2f0f7 100%);
  border-color: rgba(95, 143, 161, 0.28);
}

.program-grid {
  display: grid;
  gap: 1.2rem;
}

.program-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.4rem;
  align-items: start;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.program-card.featured {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(226, 240, 247, 0.92));
}

.program-meta {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(217, 237, 247, 0.5);
  border: 1px solid rgba(95, 143, 161, 0.18);
}

.program-meta p + p {
  margin-top: 0.7rem;
}

.anchor-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.anchor-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.bio-section + .bio-section {
  margin-top: 2rem;
}

.bio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.bio-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.bio-photo {
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(168, 207, 223, 0.75), rgba(95, 143, 161, 0.88)),
    linear-gradient(135deg, rgba(31, 59, 103, 0.15), rgba(255, 255, 255, 0));
  margin-bottom: 1rem;
}

.bio-role {
  display: inline-flex;
  margin-top: 0.65rem;
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--forest);
}

.price {
  display: block;
  margin-top: 1rem;
  font-size: 2.35rem;
  color: var(--forest);
}

.price small {
  font-size: 0.95rem;
  color: var(--muted);
}

.detail-grid {
  grid-template-columns: 1fr 1fr;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.timeline {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
}

.timeline-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.timeline-step span {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--sand);
  color: var(--terracotta);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.team-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.team-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(230, 241, 247, 0.94));
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--line);
}

.portrait {
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  margin-bottom: 1rem;
  background:
    linear-gradient(180deg, rgba(168, 207, 223, 0.8), rgba(95, 143, 161, 0.92)),
    linear-gradient(135deg, rgba(31, 59, 103, 0.18), rgba(255, 255, 255, 0));
}

.contact-grid {
  grid-template-columns: 0.95fr 1.05fr;
}

.contact-card strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.contact-list {
  display: grid;
  gap: 1rem;
}

.site-footer {
  padding: 2rem 0 4rem;
}

.footer-card {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
}

.page-hero {
  padding: 3.75rem 0 2rem;
}

.hero-banner {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(95, 143, 161, 0.18);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 36, 50, 0.72) 0%, rgba(20, 36, 50, 0.28) 52%, rgba(20, 36, 50, 0.1) 100%);
}

.hero-banner-content {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  padding: 2.4rem;
  color: white;
}

.hero-banner-content p,
.hero-banner-content .eyebrow {
  color: rgba(255, 255, 255, 0.88);
}

.hero-banner-content .eyebrow::before {
  background: rgba(255, 255, 255, 0.7);
}

.page-hero .hero-card {
  min-height: 100%;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.6rem;
}

.gallery-sections {
  display: grid;
  gap: 2rem;
}

.gallery-room {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.gallery-room-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.gallery-room-head p {
  max-width: 38rem;
}

.gallery-shell {
  position: relative;
}

.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(82%, 1fr);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.4rem;
}

.gallery-track::-webkit-scrollbar {
  height: 10px;
}

.gallery-track::-webkit-scrollbar-thumb {
  background: rgba(95, 143, 161, 0.35);
  border-radius: 999px;
}

.gallery-track.portrait-carousel {
  grid-auto-columns: minmax(30%, 1fr);
}

.gallery-slide {
  scroll-snap-align: start;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(231, 241, 248, 0.92));
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}

.gallery-image {
  aspect-ratio: 16 / 10;
  background: #dcebf4;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-caption {
  padding: 1rem 1rem 1.15rem;
  display: grid;
  gap: 0.6rem;
}

.caption-label {
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--forest);
}

.caption-placeholder {
  min-height: 68px;
  border: 1px dashed rgba(95, 143, 161, 0.45);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
  padding: 0.95rem;
  color: #7593a0;
  font-style: italic;
}

.gallery-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-top: 1rem;
}

.gallery-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--terracotta);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease;
}

.gallery-button:hover {
  transform: translateY(-1px);
  background: #fff;
}

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.schedule-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.schedule-filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.9rem;
}

.embed-shell {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.embed-carousel {
  display: grid;
  gap: 1rem;
}

.embed-carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(100%, 1fr);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.embed-carousel-track::-webkit-scrollbar {
  height: 10px;
}

.embed-carousel-track::-webkit-scrollbar-thumb {
  background: rgba(95, 143, 161, 0.35);
  border-radius: 999px;
}

.embed-panel {
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(95, 143, 161, 0.18);
  border-radius: 24px;
  padding: 1rem;
}

.embed-panel-head {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.embed-panel-head p {
  max-width: 44rem;
}

.embed-box {
  min-height: 560px;
  border-radius: 24px;
  border: 2px dashed rgba(95, 143, 161, 0.45);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(231, 241, 248, 0.78));
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
}

.embed-box strong {
  display: block;
  margin-bottom: 0.65rem;
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 1.2rem;
  color: var(--terracotta);
}

.code-note {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(217, 237, 247, 0.55);
  border: 1px solid rgba(95, 143, 161, 0.22);
}

.embed-carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
}

.calendar-reel {
  display: grid;
  gap: 1rem;
}

.calendar-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(30%, 1fr);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.calendar-track::-webkit-scrollbar {
  height: 10px;
}

.calendar-track::-webkit-scrollbar-thumb {
  background: rgba(95, 143, 161, 0.35);
  border-radius: 999px;
}

.calendar-card {
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.calendar-card h3 {
  margin-bottom: 0.8rem;
}

.calendar-card ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
}

.calendar-card li + li {
  margin-top: 0.45rem;
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid rgba(95, 143, 161, 0.18);
  background:
    linear-gradient(180deg, rgba(228, 239, 244, 0.92), rgba(243, 248, 250, 0.98)),
    radial-gradient(circle at top left, rgba(120, 174, 194, 0.14), transparent 40%);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  padding: 2.5rem 0 2rem;
}

.footer-branding {
  display: grid;
  gap: 1rem;
}

.footer-brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.footer-mark {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
}

.footer-brand-lockup h2 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.45rem, 2vw, 1.8rem);
}

.footer-copy {
  max-width: 40rem;
  color: var(--muted);
}

.footer-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-contact-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(95, 143, 161, 0.22);
  color: var(--ink);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.footer-contact-links a:hover,
.footer-contact-links a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(31, 58, 96, 0.25);
  background: rgba(255, 255, 255, 0.96);
  outline: none;
}

.footer-quick-links {
  display: grid;
  gap: 0.85rem;
}

.footer-quick-links h3 {
  margin: 0;
  font-size: 1rem;
}

.footer-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.footer-link-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(95, 143, 161, 0.22);
  color: var(--ink);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.footer-link-list a:hover,
.footer-link-list a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(31, 58, 96, 0.25);
  background: rgba(255, 255, 255, 0.96);
  outline: none;
}

.footer-accreditation {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(95, 143, 161, 0.18);
  box-shadow: 0 18px 36px rgba(34, 69, 88, 0.08);
  max-width: 330px;
}

.footer-accreditation img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.footer-visit {
  display: grid;
  gap: 1rem;
}

.footer-locations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.footer-location {
  display: grid;
  gap: 0.65rem;
  padding: 1.1rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(95, 143, 161, 0.18);
  box-shadow: 0 18px 36px rgba(34, 69, 88, 0.08);
}

.footer-location h3 {
  margin: 0;
  font-size: 1rem;
}

.footer-location p {
  margin: 0;
  color: var(--muted);
}

.footer-location a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}

.footer-location a:hover,
.footer-location a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.footer-map-card {
  display: grid;
  gap: 0.85rem;
  padding: 1.15rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(95, 143, 161, 0.18);
  box-shadow: 0 18px 36px rgba(34, 69, 88, 0.08);
}

.footer-map {
  position: relative;
  min-height: 230px;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(172, 205, 220, 0.38), rgba(244, 249, 251, 0.92)),
    radial-gradient(circle at top right, rgba(31, 58, 96, 0.08), transparent 34%);
}

.footer-map::before,
.footer-map::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.74);
}

.footer-map::before {
  width: 120%;
  height: 16px;
  left: -5%;
  top: 46%;
  transform: rotate(-10deg);
}

.footer-map::after {
  width: 16px;
  height: 120%;
  left: 53%;
  top: -10%;
  transform: rotate(10deg);
}

.map-route {
  position: absolute;
  inset: 16% 22% 18% 24%;
  border: 2px dashed rgba(31, 58, 96, 0.24);
  border-radius: 999px;
}

.map-pin {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 12px 20px rgba(31, 58, 96, 0.24);
  transition: transform 180ms ease;
}

.map-pin::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  bottom: -4px;
  background: var(--navy);
  transform: rotate(45deg);
}

.map-pin span {
  position: relative;
  z-index: 1;
}

.map-pin:hover,
.map-pin:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.pin-office {
  top: 24%;
  left: 28%;
}

.pin-geary {
  top: 42%;
  left: 55%;
}

.pin-mcallister {
  top: 62%;
  left: 41%;
}

.map-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.map-legend li {
  display: grid;
  gap: 0.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.map-legend strong {
  color: var(--ink);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.faq-accordion {
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  border: 1px solid rgba(95, 143, 161, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.1rem;
  font-weight: 600;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  font-size: 1.2rem;
  color: var(--navy);
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-answer {
  padding: 0 1.1rem 1rem;
  color: var(--muted);
}

.faq-answer p,
.faq-answer ul {
  margin: 0;
}

.faq-answer ul {
  padding-left: 1.1rem;
}

.faq-answer p + p,
.faq-answer p + ul,
.faq-answer ul + p,
.faq-answer ul + ul {
  margin-top: 0.7rem;
}

.fade-up {
  opacity: 0;
  transform: translateY(18px);
  animation: fade-up 700ms ease forwards;
}

.fade-up.delay-1 {
  animation-delay: 90ms;
}

.fade-up.delay-2 {
  animation-delay: 180ms;
}

.fade-up.delay-3 {
  animation-delay: 270ms;
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .band-grid,
  .pricing-grid,
  .program-card,
  .bio-grid,
  .faq-grid,
  .page-hero-grid,
  .split,
  .detail-grid,
  .contact-grid,
  .card-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .pill-row,
  .stats {
    grid-template-columns: 1fr;
  }

  .gallery-room-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-track {
    grid-auto-columns: minmax(94%, 1fr);
  }

  .gallery-track.portrait-carousel {
    grid-auto-columns: minmax(82%, 1fr);
  }

  .embed-box {
    min-height: 420px;
  }

  .nav-toggle {
    display: inline-flex;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.65);
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(255, 250, 242, 0.98);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
  }

  .nav-item {
    width: 100%;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .nav-parent {
    width: 100%;
    justify-content: space-between;
  }

  .nav-dropdown {
    position: static;
    display: flex;
    min-width: 100%;
    padding: 0.5rem 0 0 0.9rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .nav-dropdown a {
    padding-left: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .topbar-inner {
    position: relative;
  }

  .footer-locations,
  .map-legend {
    grid-template-columns: 1fr;
  }

  .footer-map {
    min-height: 260px;
  }

  .footer-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  body {
    background:
      radial-gradient(circle at top left, rgba(168, 207, 223, 0.38), transparent 38%),
      linear-gradient(180deg, #fafdff 0%, #e7f1f8 100%);
  }

  body::before {
    background-size: auto 120%;
    background-position: center top;
  }

  .hero,
  .page-hero {
    padding-top: 2.6rem;
  }

  .hero-banner {
    min-height: 340px;
  }

  .hero-banner-content {
    padding: 1.5rem;
  }

  .hero-card,
  .band,
  .card,
  .pricing-card,
  .detail-card,
  .contact-card,
  .gallery-room {
    padding: 1.25rem;
  }

  h1 {
    font-size: 2.8rem;
  }
}

