/* Design tokens: change these values to adjust the overall palette. */
:root {
  --bg: #faf9f6;
  --ink: #252923;
  --muted: #71766e;
  --accent: #52664d;
  --line: #e2e4dc;
  --soft: #edf0e7;
  --white: #fff;
  --radius: 16px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
/* Base styles, accessible focus outlines and button feedback. */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button:active:not(:disabled) {
  transform: scale(0.98);
}
:focus-visible {
  outline: 3px solid #92a785;
  outline-offset: 4px;
}
.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  background: white;
  padding: 16px;
  z-index: 10;
}
.skip:focus {
  top: 8px;
}
/* Site header and navigation. */
header {
  height: 98px;
  max-width: 1440px;
  margin: auto;
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
}
.brand-mark {
  font-size: 32px;
  letter-spacing: -9px;
  font-weight: 500;
  line-height: 1;
  border: 1px solid var(--accent);
  border-radius: 9px;
  padding: 0 13px 6px 5px;
  color: var(--accent);
}
.brand-mark span {
  font-weight: 300;
}
nav {
  display: flex;
  gap: 32px;
  font-size: 13px;
}
nav a:hover,
.admin-link:hover {
  color: var(--accent);
}
.admin-link {
  font-size: 12px;
  color: var(--muted);
}
.admin-link span {
  margin-left: 8px;
}
/* Page container and shared typography. */
main {
  max-width: 1440px;
  margin: auto;
  padding: 0 6%;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(46px, 5.3vw, 76px);
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -3px;
}
h2 {
  font-size: 34px;
  letter-spacing: -1.2px;
  font-weight: 500;
}
h3 {
  font-weight: 500;
  letter-spacing: -0.4px;
  font-size: 23px;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 2.4px;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow:before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
/* Homepage hero and classroom photography. */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 7%;
  padding: 64px 0 54px;
}
.hero h1 {
  margin: 24px 0;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 345px;
}
.hero-image {
  position: relative;
}
.hero-image img {
  width: 100%;
  height: 470px;
  object-fit: cover;
  border-radius: 5px 80px 5px 5px;
  display: block;
}
.image-caption {
  position: absolute;
  bottom: 22px;
  left: 22px;
  background: rgba(255, 255, 255, 0.94);
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.caption-icon {
  font-size: 24px;
  color: var(--accent);
}
.image-caption small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.btn {
  border: none;
  border-radius: 7px;
  background: var(--accent);
  color: white;
  padding: 14px 22px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}
.btn.secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn.danger {
  background: #a1453a;
}
.hero .btn {
  margin-top: 14px;
}
.hero-note {
  font-size: 11px !important;
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-note span {
  color: var(--accent);
}
/* Homepage benefits strip. */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
  padding: 24px 0;
  margin-bottom: 64px;
  gap: 20px;
}
.benefits div {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
}
.benefits div + div {
  border-left: 1px solid var(--line);
}
.benefits b {
  font-size: 13px;
  font-weight: 500;
}
.benefits small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
  font-size: 11px;
}
.benefits .icon {
  font-size: 23px;
  color: var(--accent);
}
/* Classroom listing sections and cards. */
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 0 0 28px;
}
.section-heading h2 {
  margin: 0 0 9px;
}
.section-heading p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  line-height: 1.7;
}
.pill {
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 13px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  display: block;
}
.card-image {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}
.card-image img {
  width: 100%;
  height: 236px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease-out;
}
.tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.94);
  padding: 7px 10px;
  font-size: 10px;
  border-radius: 5px;
}
.card-body {
  padding: 18px 1px;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card h3 {
  font-size: 21px;
  margin: 0;
}
.arrow {
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--accent);
}
.meta {
  font-size: 11px;
  color: var(--muted);
  margin: 11px 0 17px;
}
.card-bottom {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.price {
  font-size: 21px;
  font-weight: 500;
}
.price small {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.status {
  font-size: 10px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
}
.status:before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.sample-notice {
  font-size: 11px;
  color: var(--muted);
  background: #eeeee7;
  padding: 12px 16px;
  border-radius: 6px;
  line-height: 1.7;
  margin-bottom: 26px;
}
.section {
  padding-bottom: 56px;
  scroll-margin-top: 24px;
}
/* Monthly classroom feature cards. */
.monthly-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
}
.monthly-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}
.monthly-content {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.monthly-content h3 {
  font-size: 30px;
  margin: 18px 0 14px;
}
.monthly-content p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  max-width: 360px;
}
.monthly-content .card-bottom {
  margin-top: 12px;
}
.monthly-content .btn {
  align-self: flex-start;
  margin-top: 24px;
}
/* How-it-works section. */
.how {
  background: var(--soft);
  border-radius: 18px;
  padding: 38px;
  margin-bottom: 64px;
}
.how h2 {
  font-size: 28px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}
.step-number {
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}
.steps h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.steps p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 0;
}
/* Site footer. */
footer {
  max-width: 1440px;
  margin: auto;
  border-top: 1px solid var(--line);
  padding: 36px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer p {
  font-size: 12px;
  line-height: 1.8;
  margin: 0;
  color: var(--muted);
}
footer a:last-child {
  font-size: 11px;
  color: var(--muted);
}
/* Loading and empty states. */
.loading,
.empty {
  padding: 90px 20px;
  text-align: center;
  color: var(--muted);
}
/* Classroom detail pages and photo galleries. */
.back {
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
  margin: 32px 0;
}
.detail-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.detail-title h1 {
  font-size: 48px;
  margin: 18px 0;
}
.detail-title p {
  color: var(--muted);
  font-size: 13px;
}
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
  margin: 20px 0 36px;
}
.gallery img {
  height: 380px;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.gallery img:only-child {
  grid-column: 1/-1;
}
.gallery-more {
  display: flex;
  gap: 10px;
  overflow: auto;
  margin-top: -20px;
  margin-bottom: 28px;
}
.gallery-more img {
  width: 150px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 70px;
  margin-bottom: 70px;
}
.detail-copy {
  line-height: 1.9;
  color: var(--muted);
  font-size: 14px;
}
.detail-copy h2 {
  color: var(--ink);
  font-size: 26px;
  margin: 12px 0 20px;
}
.facilities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 36px;
}
.facility {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
}
/* Public booking panel, calendar and customer form. */
.booking-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  align-self: start;
}
.booking-panel h2 {
  font-size: 25px;
  margin: 0 0 8px;
}
.booking-panel .sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 14px;
  font-size: 14px;
}
.calendar-head button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 6px;
  width: 32px;
  height: 32px;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.calendar .weekday {
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  padding: 7px;
}
.date {
  border: 0;
  background: #f6f7f2;
  height: 36px;
  border-radius: 5px;
  font-size: 12px;
}
.date.selected {
  background: var(--accent);
  color: white;
}
.date:disabled {
  background: #f4f3f1;
  text-decoration: line-through;
  color: #989b94;
}
.legend {
  display: flex;
  gap: 18px;
  font-size: 10px;
  color: var(--muted);
  margin: 12px 0 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
label {
  display: block;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 12px;
  background: white;
  color: var(--ink);
  margin-top: 5px;
  min-height: 44px;
}
textarea {
  resize: vertical;
  min-height: 85px;
}
.full {
  grid-column: 1/-1;
}
.summary {
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  font-size: 13px;
}
.booking-panel .btn {
  width: 100%;
}
.terms {
  font-size: 10px !important;
  line-height: 1.8;
  color: var(--muted);
  margin: 12px 0 0;
}
.error {
  color: #a1453a;
  font-size: 12px;
  line-height: 1.7;
}
.notice {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  font-size: 12px;
  line-height: 1.7;
  margin: 18px 0;
}
/* Admin sign-in. */
.auth {
  max-width: 440px;
  margin: 70px auto 100px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}
.auth h1 {
  font-size: 34px;
  letter-spacing: -1px;
}
.auth label {
  margin-top: 16px;
}
.auth .btn {
  width: 100%;
  margin-top: 24px;
}
.auth p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
/* Admin dashboard, filters and booking tables. */
.admin-heading {
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.admin-heading h1 {
  font-size: 40px;
  letter-spacing: -1.4px;
  margin: 0 0 10px;
}
.admin-heading p {
  font-size: 12px;
  color: var(--muted);
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  margin: 24px 0;
}
.tabs button {
  background: none;
  border: none;
  padding: 14px 0;
  color: var(--muted);
  font-size: 13px;
}
.tabs button.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 24px 0;
}
.stat {
  background: white;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.stat strong {
  font-size: 30px;
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}
.stat span {
  font-size: 12px;
  color: var(--muted);
}
.filters {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.filters > * {
  width: auto;
  flex: 1;
  min-width: 130px;
}
.table-wrap {
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 70px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th {
  text-align: left;
  color: var(--muted);
  font-weight: 500;
  background: #f5f6f1;
}
th,
td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}
.badge {
  display: inline-block;
  padding: 6px 9px;
  background: var(--soft);
  border-radius: 5px;
  font-size: 10px;
}
.badge.pending {
  background: #f6efd9;
  color: #8d702c;
}
.badge.cancelled,
.badge.declined,
.badge.expired {
  background: #f3e8e5;
  color: #9b5347;
}
.table-btn {
  padding: 8px 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 11px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.admin-room {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.admin-room img {
  height: 170px;
  width: 100%;
  object-fit: cover;
}
.admin-room > div {
  padding: 18px;
}
.admin-room h3 {
  font-size: 20px;
}
.admin-room p {
  font-size: 12px;
  color: var(--muted);
}
.admin-room .btn {
  width: 100%;
}
/* Admin availability calendar. */
.admin-calendar {
  max-width: 750px;
  padding-bottom: 70px;
}
.admin-calendar .calendar {
  gap: 8px;
}
.admin-calendar .date {
  height: 65px;
}
.calendar-cell {
  padding: 10px;
  border-radius: 6px;
  background: white;
  border: 1px solid var(--line);
  min-height: 65px;
  font-size: 12px;
}
.calendar-cell.busy {
  background: var(--soft);
}
.calendar-cell small {
  display: block;
  font-size: 9px;
  margin-top: 6px;
  color: var(--accent);
}
/* Review dialogs, confirmation dialogs and photo editor. */
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 90px #18221825;
  width: min(600px, calc(100% - 32px));
  padding: 30px;
  color: var(--ink);
  background: var(--bg);
  max-height: 90vh;
}
dialog::backdrop {
  background: #20282066;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 28px;
  margin: 0 0 15px;
}
dialog p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}
.close {
  border: 1px solid var(--line);
  background: white;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 18px;
  flex: none;
}
.review-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  font-size: 12px;
}
.review-row span {
  color: var(--muted);
}
.review-row b {
  text-align: right;
  font-weight: 500;
  max-width: 65%;
  overflow-wrap: anywhere;
}
.actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.actions .btn {
  flex: 1;
  white-space: nowrap;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 22px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  font-size: 12px;
  box-shadow: 0 10px 30px #0002;
  display: none;
  z-index: 20;
  max-width: 90vw;
}
.photo-list {
  display: grid;
  gap: 10px;
  margin: 15px 0;
}
.photo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.photo-row img {
  width: 70px;
  height: 45px;
  object-fit: cover;
  border-radius: 5px;
}
.photo-row button {
  padding: 7px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 4px;
}
.photo-row span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}
.section-empty {
  padding: 35px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 30px;
}
/* Pointer hover interactions. */
@media (hover: hover) and (pointer: fine) {
  .card:hover img {
    transform: scale(1.025);
  }
  .btn:hover {
    filter: brightness(0.94);
  }
}
/* Responsive layouts: large screens, tablets and phones. */
@media (min-width: 1400px) {
  .hero-image img {
    height: 510px;
  }
}
@media (max-width: 1000px) {
  header,
  main,
  footer {
    padding-left: 4%;
    padding-right: 4%;
  }
  nav {
    gap: 18px;
  }
  .hero {
    gap: 5%;
  }
  .hero-image img {
    height: 420px;
  }
  h1 {
    font-size: 54px;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-grid {
    gap: 30px;
  }
  .monthly-content {
    padding: 26px;
  }
}
@media (max-width: 700px) {
  header {
    height: 76px;
  }
  .brand {
    font-size: 10px;
    letter-spacing: 1.4px;
    gap: 10px;
  }
  .brand-mark {
    font-size: 27px;
  }
  nav {
    display: none;
  }
  main {
    padding: 0 5%;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0 30px;
  }
  .hero h1 {
    font-size: 54px;
    letter-spacing: -2.5px;
  }
  .hero p {
    max-width: 100%;
  }
  .hero-image img {
    height: 340px;
    border-radius: 5px 55px 5px 5px;
  }
  .benefits {
    gap: 10px;
    padding: 20px 0;
    margin-bottom: 40px;
  }
  .benefits div {
    display: block;
    text-align: center;
  }
  .benefits .icon {
    display: block;
    margin-bottom: 10px;
  }
  .benefits b {
    font-size: 10px;
  }
  .benefits small {
    font-size: 9px;
  }
  .section-heading {
    align-items: start;
    gap: 16px;
  }
  .section-heading h2 {
    font-size: 28px;
  }
  .section-heading .pill {
    display: none;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .card-image img {
    height: 260px;
  }
  .monthly-card {
    grid-template-columns: 1fr;
  }
  .monthly-card img {
    height: 270px;
  }
  .monthly-content {
    padding: 25px;
  }
  .how {
    padding: 26px;
    margin-bottom: 38px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .step-number {
    margin-bottom: 8px;
  }
  .detail-title h1 {
    font-size: 35px;
    letter-spacing: -1.5px;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
  .gallery img {
    height: 280px;
  }
  .gallery img + img {
    display: none;
  }
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .booking-panel {
    padding: 22px;
  }
  .detail-copy {
    font-size: 13px;
  }
  .auth {
    margin: 45px 0;
  }
  .admin-heading h1 {
    font-size: 30px;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 15px;
  }
  .stat span {
    font-size: 10px;
  }
  .tabs {
    gap: 15px;
  }
  .tabs button {
    font-size: 12px;
  }
  .filters {
    gap: 8px;
  }
  .admin-heading {
    align-items: start;
  }
  .admin-heading .btn {
    padding: 10px;
  }
  .admin-calendar .calendar {
    gap: 4px;
  }
  .calendar-cell {
    padding: 6px;
    min-height: 55px;
  }
  .calendar-cell small {
    font-size: 8px;
  }
  footer {
    flex-wrap: wrap;
    gap: 24px;
    padding: 30px 5%;
  }
  footer p {
    display: none;
  }
  dialog {
    padding: 24px;
  }
  .form-grid {
    gap: 12px;
  }
  .form-grid .full-mobile {
    grid-column: 1/-1;
  }
}
/* Respect reduced-motion accessibility preferences. */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
