/* Olivia Giurgiu Hairstyle — stiluri comune */
@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/montserrat.woff') format('woff');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F1E9DD;
  --bg-deep: #E6DACA;
  --surface: #FBF8F3;
  --chip: #E8DCCA;
  --avail: #F0E4D2;
  --line: #E2D4C0;
  --line-soft: #EDE3D5;
  --navy: #1A2340;
  --navy-2: #2E3A63;
  --ink: #2A2A28;
  --muted: #6B5F52;
  --brown: #7A5C3A;
  --gold: #B89668;
  --ok: #2F6B4F;
  --ok-bg: #E3EDE5;
  --bad: #9A3324;
  --bad-bg: #F5E1DC;
  --off: #B3A694;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --shadow: 0 14px 32px -22px rgba(96, 72, 40, 0.45);
  --tabbar-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--ink);
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--navy); }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2.5px solid var(--navy); outline-offset: 2px; border-radius: 8px; }
h1:focus, h1:focus-visible { outline: none; }

.shell {
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
}
@media (min-width: 520px) {
  .shell { box-shadow: 0 0 60px -20px rgba(96, 72, 40, 0.35); }
}
.view { padding: calc(env(safe-area-inset-top, 0px) + 6px) 0 calc(28px + var(--safe-b)); }
.view.has-tabbar { padding-bottom: calc(var(--tabbar-h) + 28px + var(--safe-b)); }

/* tipografie */
.eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.h2 { font-size: 18px; font-weight: 600; color: var(--navy); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.pad { padding: 0 22px; }
.slogan { font-size: 11.5px; letter-spacing: 0.18em; line-height: 1.8; text-align: center; color: var(--ink); }
.link { color: var(--brown); font-weight: 600; text-decoration: none; font-size: 13px; }
.link:hover { text-decoration: underline; }
.linkbtn {
  background: none; border: 0; padding: 6px 4px; min-height: 44px;
  color: var(--brown); font-weight: 600; font-size: 13px; letter-spacing: 0.02em;
}
.linkbtn.danger { color: var(--bad); }
.check .linkbtn { min-height: 0; padding: 0; text-decoration: underline; }

/* butoane */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 0 22px; border-radius: 999px;
  border: 1.5px solid transparent; text-decoration: none;
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  transition: transform 0.12s ease, background-color 0.15s ease, opacity 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--navy); color: var(--surface); }
.btn-primary:hover { background: var(--navy-2); }
.btn-primary:disabled { background: #D8C7AE; color: #5E5245; cursor: default; transform: none; }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: rgba(26, 35, 64, 0.05); }
.btn-danger { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn-block { width: 100%; }
.btn-caps { text-transform: uppercase; letter-spacing: 0.16em; font-size: 13px; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 13px; }
.icon-btn {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 22px;
  border: 1px solid var(--line); background: var(--surface); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; padding: 0;
}
.icon-btn-plain { border-color: transparent; background: transparent; }
.icon-btn:disabled { color: var(--off); cursor: default; }
.ic { flex-shrink: 0; }
.ic.inline { display: inline; vertical-align: -2px; }

/* carduri */
.card { background: var(--surface); border-radius: var(--r-md); margin: 14px 16px 0; padding: 16px; }
.card-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.ico-circle {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 21px;
  background: var(--chip); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
}
.ico-circle.sm { width: 36px; height: 36px; }
.badge {
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 999px; background: var(--chip); color: var(--muted);
}
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }

/* antet */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 8px; }
.top h1 { font-size: 21px; font-weight: 500; color: var(--navy); margin-top: 3px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 6px; }
.bar h1 { font-size: 16px; font-weight: 600; color: var(--navy); letter-spacing: 0.02em; text-align: center; }
.bar-end { justify-content: flex-end; }
.bar-mono { width: 40px; height: 42px; object-fit: contain; }
.bar-spacer { width: 44px; }

/* acasă */
.hero {
  margin-top: 8px; border-radius: var(--r-lg); padding: 26px 20px 22px;
  display: flex; flex-direction: column; align-items: center; gap: 14px; box-shadow: var(--shadow);
}
.hero-logo { width: 220px; height: auto; }
.hero .btn { margin-top: 6px; }
.hero-sm { padding: 22px 20px; gap: 10px; box-shadow: none; }
.hero-sm .hero-logo { width: 170px; }
.next { display: flex; flex-direction: column; gap: 12px; }
.next-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.next-body, .booking-card { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.date-block {
  width: 58px; height: 62px; flex-shrink: 0; border-radius: 16px; background: var(--chip); color: var(--navy);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.db-day { font-size: 22px; font-weight: 600; line-height: 1; }
.db-mon { font-size: 10px; font-weight: 600; letter-spacing: 0.16em; margin-top: 5px; }
.next-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.next-title { font-size: 15px; font-weight: 600; color: var(--navy); }
.section { margin-top: 22px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 22px; margin-bottom: 12px; }
.section-head h2 { font-size: 17px; font-weight: 600; color: var(--navy); }
.hscroll {
  display: flex; gap: 12px; overflow-x: auto; padding: 0 16px 6px; scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.hscroll::-webkit-scrollbar { display: none; }
@media (pointer: fine) {
  .hscroll { scrollbar-width: thin; scrollbar-color: var(--line) transparent; padding-bottom: 10px; }
  .hscroll::-webkit-scrollbar { display: block; height: 6px; }
  .hscroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
}
.hscroll li { scroll-snap-align: start; }
.svc-card {
  width: 150px; height: 100%; background: var(--surface); border-radius: var(--r-md); padding: 14px;
  display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit;
}
.svc-card .ico-circle { width: 40px; height: 40px; }
.svc-name { font-size: 14px; font-weight: 600; color: var(--navy); line-height: 1.3; }
.svc-meta { font-size: 12px; color: var(--muted); margin-top: auto; }
.install { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.install img { border-radius: 12px; }
.install-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.install-title { font-size: 14px; font-weight: 600; color: var(--navy); }

/* programare */
.steps { padding: 6px 22px 0; display: flex; flex-direction: column; gap: 8px; }
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.progress span { height: 3px; border-radius: 2px; background: #DCCBB3; }
.progress span.on { background: var(--navy); }
.booking > .h2 { margin-top: 18px; }
.opts { display: flex; flex-direction: column; gap: 10px; padding: 12px 16px 0; }
.opt {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: var(--surface); border: 1.5px solid transparent; border-radius: var(--r-md); padding: 14px;
}
.opt:hover { border-color: var(--line); }
.opt.is-sel { border-color: var(--navy); }
.opt-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.opt-title { font-size: 15px; font-weight: 600; color: var(--navy); }
.opt-desc { font-size: 13px; color: var(--muted); line-height: 1.4; }
.opt-meta { font-size: 12.5px; font-weight: 600; color: var(--brown); margin-top: 2px; }
.opt-check {
  width: 26px; height: 26px; border-radius: 13px; border: 1.5px solid var(--line); color: transparent;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.opt.is-sel .opt-check { background: var(--navy); border-color: var(--navy); color: var(--surface); }
.row-card { display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 14px; }
.row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.row-title { font-size: 14px; font-weight: 600; color: var(--navy); }

.cal { padding: 10px 12px 12px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding-left: 6px; }
.cal-head h2 { font-size: 15px; font-weight: 600; color: var(--navy); }
.cal-nav { display: flex; gap: 2px; }
.cal-wd, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-wd span { text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); padding: 2px 0 6px; }
.day {
  height: 42px; display: flex; align-items: center; justify-content: center; position: relative;
  font-size: 14px; border: 0; background: none; padding: 0; isolation: isolate;
}
.day::before, .day::after {
  content: ''; position: absolute; width: 36px; height: 36px; border-radius: 18px; z-index: -1;
}
.day::after { display: none; }
.day.is-avail { color: var(--navy); font-weight: 600; }
.day.is-avail::before { background: var(--avail); }
.day.is-avail:hover::before { background: var(--chip); }
.day.is-sel { color: var(--surface); }
.day.is-sel::before { background: var(--navy); }
.day.is-off, .day.is-load { color: var(--off); }
.day.is-load { animation: fade 1.2s ease-in-out infinite alternate; }
.day.is-today::after { display: block; border: 1.5px solid var(--gold); }
.day.is-sel.is-today::after { border-color: var(--navy); }
.slots-wrap { padding: 16px 16px 0; display: flex; flex-direction: column; gap: 10px; }
.slots-title { font-size: 13.5px; font-weight: 600; color: var(--navy); padding-left: 4px; }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.slot {
  height: 44px; border-radius: var(--r-sm); border: 1.5px solid #DCCBB3; background: var(--surface);
  color: var(--navy); font-size: 14px; font-weight: 500; padding: 0;
}
.slot:hover { border-color: var(--navy-2); }
.slot.is-sel { background: var(--navy); border-color: var(--navy); color: var(--surface); font-weight: 600; }
.sticky-cta {
  position: sticky; bottom: 0; z-index: 5;
  padding: 14px 16px calc(14px + var(--safe-b));
  background: linear-gradient(to bottom, rgba(241, 233, 221, 0), var(--bg) 30%);
  margin-top: 8px;
}
.booking { min-height: calc(100vh - 40px); display: flex; flex-direction: column; }
.booking .sticky-cta { margin-top: auto; }

.form { display: flex; flex-direction: column; gap: 14px; padding: 18px 16px 0; flex: 1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; font-weight: 600; color: var(--navy); padding-left: 4px; }
.opt-label { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; border-radius: var(--r-sm); border: 1.5px solid var(--line);
  background: var(--surface); padding: 12px 14px; font-size: 16px; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 84px; line-height: 1.4; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy); }
.field input::placeholder, .field textarea::placeholder { color: #8E8172; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--ink); padding: 4px; }
.check input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--navy); }
.form-error { background: var(--bad-bg); color: var(--bad); font-size: 13.5px; font-weight: 500; padding: 12px 14px; border-radius: var(--r-sm); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .sticky-cta { margin: auto -16px 0; }

/* confirmare */
.confirm { display: flex; flex-direction: column; min-height: calc(100vh - 40px); }
.confirm-head { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 24px; text-align: center; }
.confirm-head img { width: 76px; height: 80px; object-fit: contain; }
.confirm-head .badge { align-self: center; }
.confirm-head h1 { font-size: 27px; font-weight: 500; color: var(--navy); }
.details { padding: 4px 16px; margin-top: 22px; }
.detail { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.detail:last-child { border-bottom: 0; }
.detail > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.detail-label { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.detail-value { font-size: 15px; font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.hint { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin: 16px 24px 0; text-align: center; }
.actions { margin: 14px 16px 0; display: flex; flex-direction: column; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid2 .btn { padding: 0 10px; min-height: 48px; font-size: 13px; }
.confirm .center.small { margin-top: 8px; }
.confirm > p.center { padding: 0 24px; margin-top: 10px; }
.note-box { margin: 16px 16px 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--chip); font-size: 13px; color: var(--ink); text-align: center; }
.confirm-foot { margin-top: auto; padding: 24px 16px 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }

/* listă programări */
.list-title { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 18px 22px 0; }
.stack li .card { margin-top: 10px; }
.booking-card { padding: 14px 10px 14px 14px; }
.booking-card .badge { margin-top: 2px; }
.booking-card.is-muted .date-block { background: var(--line-soft); color: var(--muted); }
.booking-card.is-muted .next-title { color: var(--muted); }
.center-msg {
  min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 40px 28px; text-align: center;
}
.center-msg.empty { min-height: 45vh; }
.splash { min-height: 100vh; }
.splash img { width: 220px; }
.pulse { animation: fade 1.1s ease-in-out infinite alternate; }

/* contact */
.list { padding: 4px 6px 4px 16px; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 12px 8px 12px 0; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line-soft); min-height: 60px; }
.list-row:last-child { border-bottom: 0; }
.list-row .chev { color: var(--muted); }
.hours-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 8px 2px; border-bottom: 1px solid var(--line-soft); }
.hours-row:last-child { border-bottom: 0; }
.hours-row > span:first-child { color: var(--muted); }
.hours-row > span:last-child { font-weight: 600; color: var(--navy); text-align: right; }
.view > .center.small { margin-top: 18px; }
.prose { display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.55; }
.prose h3 { font-size: 14px; font-weight: 600; color: var(--navy); margin-top: 8px; }
.prose .btn { margin-top: 6px; align-self: flex-start; }

/* bară de navigare */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 20;
  width: 100%; max-width: 480px;
  height: calc(var(--tabbar-h) + var(--safe-b)); padding: 6px 6px calc(6px + var(--safe-b));
  background: var(--surface); border-top: 1px solid #E5D9C8;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 500; border-radius: 14px;
}
.tab.is-active { color: var(--navy); font-weight: 600; }
.tab.is-active .ic { stroke-width: 2; }

/* fereastră (dialog) */
.sheet {
  border: 0; padding: 0; width: min(100% - 24px, 460px); max-height: 85vh; border-radius: var(--r-md);
  background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(26, 35, 64, 0.45);
}
.sheet::backdrop { background: rgba(26, 35, 64, 0.35); }
.sheet-inner { padding: 18px 20px 24px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.sheet-head h2 { font-size: 17px; font-weight: 600; color: var(--navy); }

/* notificare */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 18px + var(--safe-b)); z-index: 50;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  width: max-content; max-width: min(92vw, 440px);
  background: var(--navy); color: var(--surface); font-size: 13.5px; font-weight: 500;
  padding: 12px 18px; border-radius: 14px; box-shadow: 0 12px 30px -12px rgba(26, 35, 64, 0.6);
  transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--bad); }

@keyframes fade { from { opacity: 1; } to { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
