:root {
  --paper: #fbfaf7;
  --surface: #ffffff;
  --ink: #24352f;
  --muted: #65726d;
  --sage: #879d8b;
  --sage-dark: #556f5c;
  --clay: #b67a5b;
  --clay-dark: #8f5b43;
  --line: #e6e0d7;
  --charcoal: #1e2724;
  --focus: #315d70;
  --danger: #9f3d35;
  --success: #35684c;
  --shadow: 0 14px 38px rgba(39, 50, 45, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

a {
  color: inherit;
}

a,
button,
input,
select,
textarea {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1160px, 92vw);
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 188px;
}

.brand img {
  width: 146px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
}

.nav-links a {
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--clay-dark);
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--charcoal);
  border-radius: 6px;
  background: var(--charcoal);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  color: var(--charcoal);
}

.button.warm {
  border-color: var(--clay-dark);
  background: var(--clay-dark);
}

.button:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(49, 93, 112, 0.28);
  outline-offset: 2px;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(28, 34, 31, 0.86) 0%, rgba(28, 34, 31, 0.68) 42%, rgba(28, 34, 31, 0.18) 100%),
    url("/pilates/assets/hero-pilates-studio.png") center right / cover no-repeat;
  color: #fff;
}

.hero-inner,
.section-inner,
.page-header-inner {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.hero-copy {
  max-width: 650px;
  padding: 64px 0 96px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #e5d2bf;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 500;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 500;
}

h3 {
  font-size: 20px;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.hero-actions,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.section {
  padding: 76px 0;
}

.section.alt {
  background: #f1f3ed;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 32px;
}

.section-head p {
  max-width: 680px;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.package-card {
  display: grid;
  align-content: start;
  gap: 16px;
}

.package-card .price {
  color: var(--charcoal);
  font-size: 40px;
  font-weight: 900;
}

.package-card .meta {
  color: var(--clay-dark);
  font-weight: 800;
}

.check-list,
.policy-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.check-list li + li,
.policy-list li + li {
  margin-top: 8px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: start;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.fine-print {
  font-size: 13px;
  color: var(--muted);
}

.page-header {
  padding: 58px 0;
  background: #efe7dd;
  border-bottom: 1px solid var(--line);
}

.page-header p {
  max-width: 760px;
  margin-top: 14px;
}

.policy-section {
  display: grid;
  gap: 12px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.policy-section:first-child {
  border-top: 0;
}

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

.field,
.full-field {
  display: grid;
  gap: 7px;
}

.full-field {
  grid-column: 1 / -1;
}

label {
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d8d0c6;
  border-radius: 6px;
  background: #fff;
  padding: 12px 13px;
  color: var(--charcoal);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--charcoal);
  font-weight: 700;
}

.choice input {
  width: 16px;
  height: 16px;
}

.status-box {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--focus);
  border-radius: 6px;
  background: #fff;
  color: var(--charcoal);
}

.status-box.error {
  border-left-color: var(--danger);
}

.status-box.success {
  border-left-color: var(--success);
}

.signature-pad {
  width: 100%;
  min-height: 180px;
  border: 1px solid #d8d0c6;
  border-radius: 6px;
  background: #fff;
  touch-action: none;
}

.waiver-text {
  max-height: 360px;
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.waiver-text h3 {
  margin: 18px 0 8px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

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

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

th {
  color: var(--charcoal);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.site-footer {
  padding: 34px 0;
  background: var(--charcoal);
  color: #fff;
}

.site-footer .section-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}

.admin-note {
  padding: 12px 14px;
  border: 1px solid #e4c5bb;
  border-left: 5px solid var(--clay-dark);
  border-radius: 6px;
  background: #fff7f1;
  color: var(--charcoal);
}

@media (max-width: 900px) {
  .nav {
    align-items: flex-start;
    padding: 14px 0;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 14px;
  }

  .section-head,
  .split,
  .cards-3,
  .cards-2 {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 720px;
    background:
      linear-gradient(180deg, rgba(28, 34, 31, 0.88) 0%, rgba(28, 34, 31, 0.62) 55%, rgba(28, 34, 31, 0.3) 100%),
      url("/pilates/assets/hero-pilates-studio.png") center / cover no-repeat;
  }
}

@media (max-width: 640px) {
  .nav {
    display: grid;
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .nav-links {
    justify-content: flex-start;
    font-size: 13px;
  }

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

  .hero-copy {
    padding: 46px 0 78px;
  }

  .section,
  .page-header {
    padding: 48px 0;
  }
}
