:root {
  color-scheme: light;
  --bg: #f5eadf;
  --panel: rgba(255, 249, 241, 0.9);
  --panel-soft: #174c3d;
  --text: #153f35;
  --muted: #5b675f;
  --accent: #b98a34;
  --accent-strong: #d2a64f;
  --line: rgba(21, 63, 53, 0.16);
  --danger: #9f3030;
  --success: #0f6a45;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 18%, rgba(185, 138, 52, 0.16), transparent 20rem),
    radial-gradient(circle at 92% 8%, rgba(23, 76, 61, 0.12), transparent 22rem),
    linear-gradient(135deg, #f8efe6 0%, #f4e7db 52%, #efe0d1 100%);
}

a {
  color: inherit;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(20px, 5vw, 48px) 0;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.brand-mark {
  width: clamp(92px, 14vw, 132px);
  height: clamp(92px, 14vw, 132px);
  object-fit: contain;
  object-position: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbf4ec;
  box-shadow: 0 18px 50px rgba(21, 63, 53, 0.14);
}

.brand-mark-small {
  width: 84px;
  height: 84px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 249, 241, 0.66);
  font-weight: 800;
  text-decoration: none;
}

.music-toggle {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #fff8ef;
  background: var(--panel-soft);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.music-toggle.is-playing {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(18px, 4vw, 32px);
  align-items: stretch;
  min-height: min(760px, 72vh);
}

.hero-content,
.hero-card,
.info-card,
.admin-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: 0 28px 80px rgba(21, 63, 53, 0.12);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 7vw, 72px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 8vw, 6.4rem);
  font-weight: 500;
  letter-spacing: -0.045em;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  letter-spacing: 0.02em;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  color: #fff8ef;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.button-secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 249, 241, 0.72);
}

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: clamp(360px, 58vw, 620px);
  padding: 0;
  background: var(--panel-soft);
}

.hero-card img {
  width: 100%;
  height: 100%;
  min-height: clamp(360px, 58vw, 620px);
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-card-panel {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  padding: 22px;
  border: 1px solid rgba(210, 166, 79, 0.38);
  border-radius: 22px;
  color: #fff8ef;
  background: rgba(18, 70, 55, 0.88);
  backdrop-filter: blur(8px);
}

.hero-card-label {
  color: var(--accent);
  font-weight: 800;
}

.hero-card strong {
  display: block;
  margin-top: 12px;
  color: #fff8ef;
  font-size: clamp(1.55rem, 4.6vw, 2.2rem);
  line-height: 1.05;
  white-space: nowrap;
}

.hero-card-panel p {
  margin-bottom: 0;
  color: rgba(255, 248, 239, 0.86);
}

.hero-card p,
.info-card p,
.status-message {
  color: var(--muted);
  line-height: 1.6;
}

.hero-card .hero-card-panel p {
  color: rgba(255, 248, 239, 0.86);
}

.content-grid,
.admin-grid,
.admin-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 18px;
  margin-top: 18px;
}

.appointment-board {
  margin-top: 18px;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 12%, rgba(185, 138, 52, 0.12), transparent 16rem),
    var(--panel);
  box-shadow: 0 28px 80px rgba(21, 63, 53, 0.12);
}

.section-heading {
  max-width: 760px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.6;
}

.public-slots {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.public-slots-day {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 249, 241, 0.66);
}

.public-slots-day h3 {
  margin: 0 0 14px;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.22rem, 3vw, 1.65rem);
  text-transform: capitalize;
}

.public-slots-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.public-slot-link {
  display: grid;
  gap: 6px;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid rgba(23, 76, 61, 0.18);
  border-radius: 18px;
  color: #fff8ef;
  background: var(--panel-soft);
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(21, 63, 53, 0.14);
}

.public-slot-link strong {
  font-size: 1.35rem;
  line-height: 1;
}

.public-slot-link span {
  color: rgba(255, 248, 239, 0.8);
  font-size: 0.92rem;
  font-weight: 800;
}

.info-card,
.admin-card {
  padding: 24px;
}

.info-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
}

.info-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(185, 138, 52, 0.28);
  border-radius: 999px;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #fff8ef;
  background: var(--panel-soft);
  font-weight: 900;
}

.service-photo {
  width: calc(100% + 48px);
  height: clamp(180px, 26vw, 240px);
  margin: -24px -24px 22px;
  object-fit: cover;
  display: block;
}

.info-card-featured {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 260px;
  background:
    radial-gradient(circle at 82% 12%, rgba(185, 138, 52, 0.14), transparent 12rem),
    var(--panel);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 34px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.46em;
  text-align: center;
  text-transform: uppercase;
}

.site-footer span {
  height: 1px;
  background: var(--accent);
  opacity: 0.55;
}

.admin-shell {
  max-width: 1180px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}

.admin-brand {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.admin-header h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
}

.admin-grid {
  grid-template-columns: 0.8fr 1.2fr;
}

.admin-layout {
  grid-template-columns: minmax(260px, 0.7fr) minmax(420px, 1.3fr);
  align-items: start;
}

.calendar-panel {
  display: grid;
  gap: 14px;
}

.calendar-actions {
  display: flex;
  gap: 8px;
}

.button-icon {
  min-width: 48px;
  padding: 0 14px;
  font-size: 1.8rem;
  line-height: 1;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-weekdays {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day {
  min-height: clamp(40px, 7vw, 48px);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  background: rgba(255, 249, 241, 0.76);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.calendar-day-muted {
  opacity: 0.38;
}

.calendar-day-selected {
  color: #fff8ef;
  border-color: var(--panel-soft);
  background: var(--panel-soft);
}

.calendar-day-has-slots {
  box-shadow: inset 0 -5px 0 rgba(185, 138, 52, 0.75);
}

.time-panel {
  margin-top: 28px;
}

.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.time-slot-check {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  background: rgba(255, 249, 241, 0.7);
  font-weight: 900;
  cursor: pointer;
}

.time-slot-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.time-slot-check:has(input:checked) {
  color: #fff8ef;
  border-color: var(--panel-soft);
  background: var(--panel-soft);
}

.time-slot-existing {
  opacity: 0.72;
  cursor: not-allowed;
}

label {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--text);
  background: rgba(255, 249, 241, 0.72);
  font: inherit;
}

textarea {
  resize: vertical;
}

form .button {
  width: 100%;
  margin-top: 20px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.slots-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.services-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.service-price-item {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(120px, 0.45fr) minmax(120px, 0.45fr) auto;
  gap: 14px;
  align-items: end;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 249, 241, 0.64);
}

.service-price-item label {
  margin-top: 0;
}

.service-price-item .button {
  min-height: 48px;
}

.slot-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 249, 241, 0.64);
}

.slot-item strong {
  display: block;
  margin-bottom: 6px;
}

.slot-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.pill {
  border-radius: 999px;
  padding: 8px 12px;
  color: #fff8ef;
  background: var(--success);
  font-weight: 900;
}

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

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

@media (max-width: 820px) {
  .hero,
  .content-grid,
  .admin-grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-header,
  .section-title {
    flex-direction: column;
    align-items: stretch;
  }

  .slot-item {
    grid-template-columns: 1fr;
  }

  .service-price-item {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .site-footer {
    grid-template-columns: 1fr;
    letter-spacing: 0.22em;
  }

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

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-content {
    min-height: auto;
  }

  .hero-card {
    min-height: 460px;
  }

  .hero-card img {
    min-height: 460px;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 24px, 1120px);
  }

  .site-header {
    align-items: center;
  }

  .brand-mark {
    margin: 0 auto;
  }

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

  .site-nav a,
  .music-toggle,
  .hero-actions .button {
    flex: 1 1 100%;
    width: 100%;
  }

  .hero-content,
  .appointment-board,
  .info-card,
  .admin-card {
    border-radius: 22px;
    padding: 22px;
  }

  .hero-card {
    min-height: 360px;
    border-radius: 22px;
  }

  .hero-card img {
    min-height: 360px;
  }

  .hero-card-panel {
    right: 12px;
    bottom: 12px;
    left: 12px;
    padding: 16px;
  }

  .service-photo {
    width: calc(100% + 44px);
    margin: -22px -22px 18px;
  }

  .calendar-weekdays,
  .calendar-grid {
    gap: 5px;
  }

  .calendar-day {
    border-radius: 12px;
    font-size: 0.9rem;
  }

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

  .public-slots-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 2.6rem;
  }

  .eyebrow {
    letter-spacing: 0.13em;
  }

  .calendar-weekdays {
    font-size: 0.68rem;
  }

  .calendar-day {
    min-height: 36px;
    padding: 0;
  }
}
