/* Major Frisur booking app: shared base. Tokens from the main site (../../DESIGN.md). */

@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("fonts/cinzel-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --bg: #fbf0e1;
  --paper: #fffaf2;
  --sand: #f3e4cd;
  --ink: #1d1712;
  --ink-soft: #2a221b;
  --muted: #5e5246;
  --gold: #b8913f;
  --gold-deep: #765622;
  --gold-light: #e2c27d;
  --line: #e6d3b3;
  --ok: #1f7a4d;
  --warn: #8a5a00;
  --error: #9b2c1f;
  --whatsapp: #1f7a4d;

  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --caps: "Cinzel", "Trajan Pro", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --s1: .5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s5: 3rem;
  --radius: 18px;
  --radius-s: 12px;
  --tap: 44px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-deep); text-underline-offset: .2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 var(--s2); text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.7rem + 3vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }
h1 em, h2 em { font-style: italic; color: var(--gold-deep); }
p { margin: 0 0 var(--s2); }
code { font-size: .9em; background: var(--sand); padding: .1em .35em; border-radius: 4px; }

.wrap { width: min(100% - 2rem, 1080px); margin-inline: auto; }
@media (min-width: 760px) { .wrap { width: min(100% - 4rem, 1080px); } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--s2); top: -4rem; z-index: 100; background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { top: var(--s2); color: var(--paper); }
.muted { color: var(--muted); }
.fine { font-size: .875rem; color: var(--muted); margin: var(--s1) 0 0; }

.eyebrow {
  display: flex; align-items: center; gap: .8rem;
  font-family: var(--caps); font-size: .74rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: var(--s1);
}
.eyebrow::before { content: ""; width: 2rem; height: 1px; background: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.4rem;
  border-radius: 999px; border: 1px solid transparent;
  font: 500 1rem/1.1 var(--sans); letter-spacing: .02em; text-decoration: none; text-align: center;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: progress; transform: none; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-soft); color: var(--paper); box-shadow: 0 10px 24px -12px rgb(29 23 18 / .6); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-small { min-height: var(--tap); padding: .5rem 1.05rem; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--s3); }
.btn-row .btn { flex: 1 1 12rem; }

/* Header */
.site-header, .admin-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid rgb(230 211 179 / .8); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; min-height: var(--tap); text-decoration: none; color: var(--ink); }
.brand img { border-radius: 50%; }
.brand-name { display: flex; flex-direction: column; line-height: 1; font-family: var(--caps); }
.brand-name b { font-size: 1.1rem; letter-spacing: .14em; }
.brand-name small { font-size: .58rem; letter-spacing: .5em; color: var(--gold-deep); margin-top: .3rem; }

/* Panels, notices */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3); }
.panel-center { max-width: 40rem; margin: var(--s4) auto; }
.narrow { max-width: 28rem; margin-inline: auto; }
.notice { padding: .8rem 1rem; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--paper); }
.notice-ok { border-color: rgb(31 122 77 / .4); background: #eef7f1; color: #14532f; }
.notice-warn { border-color: rgb(138 90 0 / .35); background: #fdf3df; color: #5c3c00; }
.notice-error { border-color: rgb(155 44 31 / .4); background: #fbecea; color: #7a2015; }

/* Forms */
.form { display: grid; gap: var(--s2); }
.field { display: grid; gap: .35rem; margin: 0; min-width: 0; }
fieldset.field { border: 1px solid var(--line); border-radius: var(--radius-s); padding: var(--s2); }
legend { font-weight: 500; padding: 0 .4rem; }
label { font-weight: 500; }
.hint { font-weight: 400; color: var(--muted); font-size: .9em; }
input[type="text"], input[type="tel"], input[type="email"], input[type="password"], input[type="number"],
input[type="date"], input[type="time"], select, textarea {
  width: 100%; min-height: 48px; padding: .65rem .85rem;
  font: 400 1rem/1.4 var(--sans); color: var(--ink);
  background: #fff; border: 1px solid #cdb795; border-radius: 10px;
}
textarea { resize: vertical; min-height: 6rem; }
select {
  -webkit-appearance: none; appearance: none; padding-right: 2.4rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23765622' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right .9rem center;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 1px; border-color: var(--gold-deep); }
[aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: .9rem; margin: 0; }
.field-check { grid-template-columns: auto 1fr; align-items: start; column-gap: .7rem; }
.field-check input { width: 24px; height: 24px; margin: .1rem 0 0; accent-color: var(--ink); }
.field-check label { font-weight: 400; }
.field-check .field-error { grid-column: 1 / -1; }
.check-inline { display: inline-flex; align-items: center; gap: .55rem; min-height: var(--tap); margin-right: var(--s2); font-weight: 400; }
.check-inline input { width: 22px; height: 22px; accent-color: var(--ink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.pill { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font: 500 .78rem/1.5 var(--sans); background: var(--gold-light); color: var(--ink); vertical-align: middle; }
.pill-muted { background: var(--sand); color: var(--muted); }
.pill-ok { background: #e2f1e8; color: #14532f; }
.pill-warn { background: #fbe9c7; color: #5c3c00; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .btn:hover { transform: none; }
}
