:root {
  --ink: #24302d;
  --muted: #63706b;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --sage: #6f8c75;
  --sage-dark: #415d49;
  --clay: #b97356;
  --line: #ded9ce;
  --gold: #d6ad60;
  --shadow: 0 24px 70px rgba(38, 48, 43, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 246, 0.9);
  border-bottom: 1px solid rgba(222, 217, 206, 0.72);
  backdrop-filter: blur(16px);
}

.brand,
.main-nav,
.hero-actions,
.contact-lines,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  background: var(--sage-dark);
  border-radius: 50%;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 22px;
}

.main-nav {
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.main-nav a:hover {
  color: var(--sage-dark);
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
}

.header-action,
.button.primary {
  color: #fff;
  background: var(--sage-dark);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.8);
}

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

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 160px clamp(22px, 6vw, 82px) 86px;
}

.hero img,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero img {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(18, 27, 25, 0.72), rgba(18, 27, 25, 0.25) 58%, rgba(18, 27, 25, 0.08)),
    linear-gradient(0deg, rgba(18, 27, 25, 0.55), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f2cda6;
}

h1,
h2 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 10ch;
  font-size: 8.25rem;
}

h2 {
  font-size: 3.45rem;
}

p {
  margin: 0;
}

.hero-content p:not(.eyebrow) {
  max-width: 560px;
  margin-top: 18px;
  font-size: 1.25rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.section-inner {
  width: min(1160px, calc(100% - 44px));
  margin: 0 auto;
}

.intro-section,
.schedule-section,
.teacher-section,
.location-section {
  padding: clamp(72px, 10vw, 128px) 0;
}

.intro-grid,
.split-layout,
.teacher-grid,
.location-grid {
  display: grid;
  gap: clamp(34px, 6vw, 82px);
  align-items: center;
}

.intro-grid,
.location-grid {
  grid-template-columns: 0.9fr 1.1fr;
}

.split-layout,
.teacher-grid {
  grid-template-columns: 1fr 1fr;
}

.intro-copy {
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-list,
.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.feature-list span,
.credentials span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  font-weight: 800;
}

.schedule-section {
  background: #eff2eb;
}

.schedule-copy > p:not(.eyebrow),
.teacher-grid p,
.location-grid p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hours-panel,
.booking-form,
.map-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hours-panel {
  display: grid;
  gap: 1px;
  margin-top: 28px;
  overflow: hidden;
  border-radius: 8px;
}

.hours-panel div {
  display: grid;
  gap: 4px;
  padding: 18px;
  background: #fff;
}

.hours-panel strong {
  color: var(--sage-dark);
}

.hours-panel span {
  color: var(--muted);
}

.hours-panel span[data-state]::after {
  content: "";
}

.hours-panel span[data-state="available"] {
  color: var(--sage-dark);
  font-weight: 800;
}

.hours-panel span[data-state="full"] {
  color: #9d6d61;
  text-decoration: line-through;
}

.booking-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 8px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfc8ba;
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(111, 140, 117, 0.24);
  border-color: var(--sage);
}

.form-button {
  width: 100%;
  border: 0;
  font-size: 1rem;
}

.form-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.availability-status,
.form-status {
  min-height: 24px;
  color: var(--sage-dark);
  font-weight: 800;
}

.availability-status {
  margin-top: -4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-status[data-type="error"] {
  color: #a33f32;
}

.form-status[data-type="success"] {
  color: var(--sage-dark);
}

.teacher-section {
  background: var(--paper);
}

.teacher-portrait {
  min-height: 460px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(111, 140, 117, 0.82), rgba(185, 115, 86, 0.62)),
    url("assets/yoga-hero.png") center/cover;
  box-shadow: var(--shadow);
}

.teacher-portrait span {
  display: grid;
  place-items: center;
  width: 142px;
  height: 142px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: #fff;
  background: rgba(36, 48, 45, 0.34);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 3.5rem;
  font-weight: 700;
}

.location-section {
  background: #f5efe7;
}

.contact-lines {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
  color: var(--sage-dark);
  font-weight: 900;
}

.contact-lines a {
  padding-bottom: 3px;
  border-bottom: 2px solid rgba(65, 93, 73, 0.28);
}

.map-panel {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  border-radius: 8px;
}

.map-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(65, 93, 73, 0.16) 1px, transparent 1px),
    linear-gradient(0deg, rgba(65, 93, 73, 0.16) 1px, transparent 1px),
    linear-gradient(135deg, #e9dfcf, #f9f6ef);
  background-size: 58px 58px;
}

.map-grid::before,
.map-grid::after {
  content: "";
  position: absolute;
  background: rgba(185, 115, 86, 0.38);
  border-radius: 999px;
}

.map-grid::before {
  width: 120%;
  height: 22px;
  left: -40px;
  top: 45%;
  transform: rotate(-16deg);
}

.map-grid::after {
  width: 24px;
  height: 130%;
  left: 62%;
  top: -50px;
  transform: rotate(19deg);
}

.map-pin {
  position: absolute;
  left: 50%;
  top: 47%;
  display: grid;
  gap: 2px;
  min-width: 162px;
  padding: 14px 16px;
  color: #fff;
  background: var(--sage-dark);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(38, 48, 43, 0.24);
  transform: translate(-50%, -50%);
}

.map-pin span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.map-button {
  position: absolute;
  right: 18px;
  bottom: 18px;
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(22px, 4vw, 56px);
  color: #fff;
  background: var(--ink);
}

.site-footer span:first-child {
  font-weight: 900;
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .header-action {
    min-height: 38px;
  }

  .hero {
    min-height: 86vh;
    padding-top: 178px;
  }

  h1 {
    font-size: 5.8rem;
  }

  h2 {
    font-size: 2.75rem;
  }

  .hero-content p:not(.eyebrow) {
    font-size: 1.12rem;
  }

  .intro-grid,
  .split-layout,
  .teacher-grid,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .teacher-portrait {
    min-height: 340px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand {
    font-size: 0.96rem;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .main-nav {
    gap: 16px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: 88vh;
    padding: 174px 18px 58px;
  }

  h1 {
    font-size: 4.4rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .section-inner {
    width: min(100% - 32px, 1160px);
  }

  .intro-section,
  .schedule-section,
  .teacher-section,
  .location-section {
    padding: 64px 0;
  }

  .site-footer {
    display: grid;
  }
}
