@font-face {
  font-family: Vazirmatn;
  src: url("./assets/fonts/vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #29202a;
  --muted: #6f5c66;
  --wine: #672e45;
  --wine-dark: #4b1e31;
  --rose: #f3e3e2;
  --cream: #faf6f1;
  --surface: #fffdfb;
  --line: #e6d9d6;
  font-family: Vazirmatn, Tahoma, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #eee7e2;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 260px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { display: block; width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--wine); outline-offset: 4px; }
.shell { max-width: 1080px; min-height: 100vh; margin: auto; background: var(--cream); }
.topbar, .footer { padding-inline: clamp(16px, 4vw, 48px); }
.topbar {
  min-height: 74px; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.06rem; line-height: 1.6; }
.brand small { color: var(--muted); font-size: .7rem; }
.brand-mark { display: grid; place-items: center; color: var(--wine); background: var(--rose); border-radius: 14px; width: 42px; height: 42px; }
.brand-mark svg { width: 26px; height: 26px; }
.preview-tag { color: var(--wine-dark); border: 1px solid var(--line); padding: 6px 10px; border-radius: 999px; font-size: .69rem; }
main { padding: clamp(16px, 4vw, 48px); min-height: 420px; }
main:focus { outline: none; }
h1, h2, p, figure { margin: 0; }
h1 { font-size: clamp(1.52rem, 3.4vw, 2.62rem); line-height: 1.55; }
h2 { font-size: clamp(1.05rem, 2.4vw, 1.35rem); line-height: 1.6; }
p { line-height: 1.85; }
.muted { color: var(--muted); }
.eyebrow { color: var(--wine); font-size: .78rem; font-weight: 700; margin-bottom: 3px; }
.hero {
  display: grid; grid-template-columns: 1.2fr 1fr; overflow: hidden;
  border: 1px solid var(--line); border-radius: 24px; background: var(--surface);
}
.hero { box-shadow: 0 16px 40px #4b1e310d; }
.hero-photo { aspect-ratio: 4 / 3; }
.hero-copy { display: grid; align-content: center; justify-items: start; padding: clamp(18px, 4vw, 38px); }
.hero-copy > p:not(.eyebrow) { margin-top: 6px; }
.hero-copy .primary { margin-top: 18px; }
.photo {
  overflow: hidden; background: radial-gradient(ellipse at 74% 26%, #f4dfdf, #ede1d6);
}
.photo img { height: 100%; object-fit: cover; }
.primary {
  min-height: 44px; padding: 10px 20px; border: 1px solid transparent;
  border-radius: 12px; background: var(--wine); color: white; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-align: center;
}
.primary:hover { background: var(--wine-dark); }
.home-services { margin-top: 23px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 11px; }
.text-link, .back-link { color: var(--wine); font-weight: 700; }
.text-link { font-size: .77rem; }
.text-link:hover, .back-link:hover { text-decoration: underline; }
.home-grid, .service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { display: block; overflow: hidden; border-radius: 17px; background: var(--surface); border: 1px solid var(--line); }
.card:hover { border-color: var(--wine); }
.card { box-shadow: 0 8px 24px #4b1e3109; }
.card .photo { aspect-ratio: 3 / 2; }
.card-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 12px; gap: 4px; }
.card-title { font-weight: 700; }
.card-meta { display: flex; flex-wrap: wrap; gap: 3px 8px; font-size: .76rem; color: var(--muted); }
.card-meta span + span::before { content: "·"; padding-inline-end: 8px; }
.card-arrow { display: none; color: var(--wine); font-size: 1.15rem; }
.screen-intro { margin: 12px 0 18px; }
.screen-intro p { margin-top: 4px; }
.back-link { display: inline-flex; gap: 8px; align-items: center; min-height: 36px; font-size: .8rem; }
.detail { max-width: 620px; margin: auto; }
.detail-photo { border-radius: 20px; aspect-ratio: 16 / 9; margin-bottom: 14px; }
.detail-info { margin-bottom: 16px; }
.detail-info .card-meta { margin-top: 5px; }
.slot-list { display: flex; flex-wrap: wrap; gap: 7px; margin-block: 9px 16px; }
.slot {
  min-height: 44px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--surface); color: var(--ink); cursor: pointer;
}
.slot[aria-pressed="true"] { color: var(--wine-dark); border-color: var(--wine); background: var(--rose); }
.demo-note { color: var(--muted); font-size: .78rem; margin-block: 9px 12px; }
.summary { margin-block: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.recover-card { margin-top: 22px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #f4e9e5; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.recover-card .secondary { color: var(--wine); border: 1px solid var(--wine); padding: 8px 16px; border-radius: 11px; font-weight: 700; }
.footer {
  min-height: 48px; display: flex; justify-content: space-between; align-items: center;
  gap: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: .68rem;
}
@media (max-width: 620px) {
  .hero { display: block; border-radius: 20px; }
  .hero-photo { aspect-ratio: 16 / 10; }
  .hero-copy { padding: 16px; }
  .hero-copy > p:not(.eyebrow) { font-size: .84rem; }
  .hero-copy .primary { width: 100%; margin-top: 12px; }
  .home-grid { gap: 7px; }
  .home-grid .card { border-radius: 12px; }
  .home-grid .card-copy { padding: 8px 3px; text-align: center; font-size: .74rem; }
  .service-grid { grid-template-columns: 1fr; gap: 11px; }
  .service-grid .card { display: grid; grid-template-columns: 109px minmax(0, 1fr) 22px; align-items: center; min-height: 112px; }
  .service-grid .photo { align-self: stretch; aspect-ratio: auto; }
  .service-grid .card-arrow { display: block; }
  .service-grid .card-copy { padding: 10px; }
  .detail .primary { width: 100%; }
}
@media (max-width: 360px) {
  .service-grid .card { grid-template-columns: 82px minmax(0, 1fr) 17px; }
}

.client-app { background: #e9dce0; }
.client-app .shell { max-width: 520px; background: #fcf8f5; box-shadow: 0 8px 40px #4b1e3112; }
.client-app .topbar, .client-app .footer { padding-inline: 20px; }
.client-app .topbar { min-height: 74px; border: 0; }
.client-app .brand-mark { display: none; }
.client-app .brand strong { font-size: 1.55rem; font-weight: 700; }
.client-app .brand small { display: none; }
.client-app .preview-tag { background: #f3e0e5; border: 0; font-size: .78rem; padding: 8px 14px; }
.client-header-actions { display: flex; align-items: center; gap: 6px; }
.client-header-actions button { cursor: pointer; }
.client-app main { padding: 8px 20px 28px; }
.client-app .hero { display: flex; flex-direction: column; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.client-app .hero-photo { position: relative; width: 100%; aspect-ratio: 1.7; border-radius: 22px; }
.hero-badge { position: absolute; inset-block-end: 14px; inset-inline-start: 14px; padding: 7px 12px; border: 1px solid #ffffffaa; border-radius: 999px; background: #fffaf5e8; color: #663248; font-size: .72rem; font-weight: 700; }
.client-app .hero-copy { display: flex; flex-direction: column; align-items: stretch; padding: 14px 0 0; }
.client-app .hero-copy h1 { text-align: center; font-size: clamp(1.3rem, 5.1vw, 1.8rem); line-height: 1.7; }
.client-app .hero-copy .primary { width: 100%; margin-top: 14px; }
.client-app .primary { min-height: 52px; border-radius: 13px; background: #79334f; font-size: 1rem; }
.client-app .primary:hover { background: #58233a; }
.client-app .section-heading { margin-bottom: 12px; }
.client-app .section-heading h2 { font-size: 1.3rem; }
.client-app .home-services { margin-top: 20px; }
.home-categories { margin-top: 28px; }
.home-category-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.home-category { display: flex; min-width: 0; align-items: center; flex-direction: column; gap: 7px; color: var(--ink); font-size: .7rem; text-align: center; font-weight: 700; }
.home-category-icon { display: grid; width: 100%; aspect-ratio: 1; place-items: center; border: 1px solid #ead4d9; border-radius: 19px; background: linear-gradient(145deg, #f9e9e8, #f0dce3); color: #79334f; }
.home-category:nth-child(even) .home-category-icon { background: linear-gradient(145deg, #f4e8de, #f8e4e5); }
.home-category-icon svg { width: 43%; height: 43%; }
.home-category:hover .home-category-icon { border-color: var(--wine); }
.client-app .home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.client-app .home-grid .card { border: 0; border-radius: 14px; background: #f3dfe5; box-shadow: none; }
.client-app .home-grid .photo { aspect-ratio: 1 / 1; border-radius: 14px; }
.client-app .home-grid .card-copy { padding: 10px 3px; align-items: center; text-align: center; font-size: .85rem; }
.client-app .screen-intro { margin: 10px 0 18px; border-radius: 15px; background: #f3dfe5; padding: 10px; text-align: center; }
.client-app .screen-intro h1 { font-size: 1.5rem; }
.client-app .service-grid { grid-template-columns: 1fr; gap: 12px; }
.client-app .category-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 1px 14px; }
.client-app .category-choice { display: flex; min-width: 0; min-height: 76px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 9px 4px; border: 1px solid var(--line); border-radius: 16px; background: #fffaf9; color: var(--ink); font-size: .77rem; line-height: 1.5; text-align: center; overflow-wrap: anywhere; cursor: pointer; }
.client-app .category-choice svg { width: 25px; height: 25px; flex: 0 0 auto; }
.client-app .category-choice[aria-pressed="true"] { background: var(--wine); color: #fff; border-color: var(--wine); }
.client-app .service-grid .card { display: grid; grid-template-columns: minmax(112px, 45%) 1fr 24px; min-height: 135px; padding: 5px; align-items: stretch; border-radius: 17px; background: transparent; box-shadow: none; }
.client-app .service-grid .photo { aspect-ratio: auto; min-height: 124px; border-radius: 13px; }
.client-app .service-grid .card-copy { padding: 10px; align-items: flex-start; gap: 8px; }
.client-app .service-category { display: inline-flex; align-items: center; gap: 5px; color: var(--wine); font-size: .72rem; }
.client-app .service-category svg { width: 20px; height: 20px; }
.client-app .service-grid .card-title { font-size: 1.15rem; }
.client-app .service-grid .card-meta { display: grid; gap: 5px; }
.client-app .service-grid .card-meta span { background: #f3dfe5; color: var(--ink); padding: 4px 9px; border-radius: 9px; }
.client-app .service-grid .card-meta span + span::before { content: none; }
.client-app .service-grid .card-arrow { display: block; align-self: center; }
.client-app .detail-photo { aspect-ratio: 1.8; border-radius: 18px; }
.client-app .booking-intro h1 { font-size: 1.5rem; }
.client-app .detail > .booking-form { background: transparent; padding: 0; border: 0; }
.client-app .booking-form .booking-actions .primary { flex: 1; }
.client-app .booking-form .field-pair { grid-template-columns: 1fr; }
.client-app .picker-field { display: grid; gap: 9px; }
.client-app .staff-picker select { position: absolute; width: 1px !important; height: 1px; min-height: 0 !important; padding: 0 !important; clip-path: inset(50%); overflow: hidden; }
.client-app .staff-choices { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.client-app .date-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.client-app .date-choices .choice { font-size: .78rem; }
.client-app .date-picker select { position: absolute; width: 1px !important; height: 1px; min-height: 0 !important; padding: 0 !important; clip-path: inset(50%); overflow: hidden; }
.persian-calendar { padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fffaf9; }
.calendar-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.calendar-nav { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--wine); cursor: pointer; }
.calendar-nav:disabled { opacity: .35; cursor: default; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.calendar-weekday { padding: 5px 0; color: var(--muted); font-size: .8rem; }
.calendar-day { min-width: 0; aspect-ratio: 1; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; }
.calendar-day:hover:not(:disabled) { background: #f4e8eb; }
.calendar-day[aria-pressed="true"] { background: var(--wine); color: #fff; }
.calendar-day:disabled { opacity: .28; cursor: default; }
.client-app .booking-form :where(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea) { min-height: 52px; background: #fffaf9; }
.client-app .recover-card { margin-top: 24px; }
@media (max-width: 520px) {
  .client-app .shell { box-shadow: none; }
  .client-app .service-grid .card { grid-template-columns: minmax(100px, 45%) 1fr 20px; }
}
@media (max-width: 300px) {
  .client-app .category-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.public-preview-notice { background: #fff1d6; color: #583900; padding: 12px 16px; text-align: center; font-size: 0.9rem; }
