:root {
  --bg: #faf6f0;
  --surface: #ffffff;
  --tint: #f3ebe1;
  --ink: #241a12;
  --muted: #7d6c5c;
  --line: #e7dccd;
  --accent: #a95d1f;
  --accent-hover: #8f4d17;
  --accent-soft: #f5e7d8;
  --espresso: #2b1d12;
  --ok: #2e7d32;
  --ok-bg: #e8f5e9;
  --err: #c62828;
  --err-bg: #ffebee;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(43, 29, 18, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1020px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 640px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 12px; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 650;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  padding: 12px 22px;
  min-height: 48px;
  transition: background 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-accent:disabled { opacity: 0.6; cursor: wait; }

.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.5); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-outline { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-outline:hover { background: var(--accent-soft); }

.btn-soft { background: var(--accent-soft); color: var(--accent-hover); align-self: flex-start; min-height: 44px; padding: 9px 16px; font-size: 0.92rem; }
.btn-soft:hover { background: #ecd8c2; }

.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 0.92rem; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 750;
  font-size: 1.02rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand-mark { width: 24px; height: 24px; color: var(--accent); }
.topnav { display: flex; align-items: center; gap: 20px; }
.topnav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.95rem;
}
.topnav a:not(.btn):hover { color: var(--accent); }
@media (max-width: 560px) {
  .topnav a:not(.btn) { display: none; }
}

.lang-switch {
  display: inline-flex;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.lang-switch button {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 7px 10px;
  min-height: 34px;
  cursor: pointer;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.active { background: var(--espresso); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(196, 122, 61, 0.35), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(196, 122, 61, 0.22), transparent 60%),
    linear-gradient(165deg, #3a2818 0%, var(--espresso) 70%);
  color: #fff;
  padding: clamp(56px, 9vw, 104px) 0;
}
.hero-inner { max-width: 640px; }
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e8b98a;
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(2rem, 5.4vw, 3.1rem);
  font-weight: 780;
  margin-bottom: 14px;
}
.hero .sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 28px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.trust-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}
.trust-chips li { display: inline-flex; align-items: center; gap: 7px; }
.trust-chips svg { width: 15px; height: 15px; color: #e8b98a; }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 84px) 0; }
.section-tint { background: var(--tint); }
.section h2 { text-align: center; }
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 36px;
}

/* ---------- Pricing cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.card-featured { border-color: var(--accent); border-width: 1.5px; }
.card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.card-price {
  font-size: 1.7rem;
  font-weight: 780;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.card-price span { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  flex: 1;
  display: grid;
  gap: 8px;
  font-size: 0.94rem;
  color: #4d4034;
}
.card-features li { padding-left: 24px; position: relative; }
.card-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding: 0;
  margin: 40px 0 0;
  text-align: center;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--espresso);
  color: #f0dcc5;
  font-weight: 750;
  margin-bottom: 12px;
}
.steps h3 { font-size: 1.05rem; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* ---------- Form ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 34px);
}

.field { margin-bottom: 20px; display: flex; flex-direction: column; gap: 7px; border: 0; padding: 0; min-width: 0; }
fieldset.field { margin-inline: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

label, legend, .label { font-weight: 620; font-size: 0.93rem; padding: 0; }
.req { color: var(--err); }
.opt { color: var(--muted); font-weight: 400; }

input[type="text"], input[type="tel"], input[type="email"],
select, textarea {
  font: inherit;
  padding: 12px 14px;
  min-height: 48px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  width: 100%;
}
textarea { resize: vertical; min-height: 96px; }
input:focus-visible, select:focus-visible, textarea:focus-visible,
.btn:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.hint { font-size: 0.84rem; color: var(--muted); }

/* Service radio cards */
.service-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 460px) { .service-picker { grid-template-columns: 1fr; } }
.service-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.service-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.service-option:hover .service-box { border-color: #cbb79d; }
.service-option input:checked + .service-box {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent);
}
.service-option input:focus-visible + .service-box {
  box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 1px var(--accent);
}
.service-title { font-weight: 700; }
.service-desc { font-size: 0.84rem; color: var(--muted); }
.service-price { font-weight: 750; color: var(--accent-hover); margin-top: 6px; }

/* Photo dropzone */
.dropzone {
  display: block;
  border: 1.5px dashed #cbb79d;
  border-radius: var(--radius-sm);
  background: #fffdfa;
  cursor: pointer;
  padding: 18px;
  transition: border-color 0.15s ease, background 0.15s ease;
  font-weight: 400;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone input[type="file"] {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
}
.dz-idle {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.dz-idle svg { width: 30px; height: 30px; flex: none; color: var(--accent); }
.dz-idle strong { color: var(--ink); }
.dz-preview { display: flex; align-items: center; gap: 12px; }
.dz-preview img {
  width: 84px; height: 84px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.dz-remove {
  border: none;
  background: var(--err-bg);
  color: var(--err);
  width: 34px; height: 34px;
  border-radius: 50%;
  font-weight: 700;
  cursor: pointer;
}

.form-footnote {
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
  margin: 12px 0 0;
}
.form-status {
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.form-status.ok { background: var(--ok-bg); color: var(--ok); }
.form-status.err { background: var(--err-bg); color: var(--err); }

/* Honeypot — visually hidden but present for bots */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--espresso);
  color: rgba(255, 255, 255, 0.75);
  padding: 40px 0;
  font-size: 0.92rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 64px;
  justify-content: space-between;
}
.footer p { margin: 0 0 6px; }
.brand-footer { color: #fff; margin-bottom: 10px; }

/* ---------- Admin ---------- */
.admin-main { padding-top: 40px; }
.admin-main .panel { margin-bottom: 24px; }
.admin-list { list-style: none; padding: 0; margin: 0 0 16px; }
.admin-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.admin-list li span { flex: 1; }
.admin-list .btn-remove {
  background: var(--err-bg);
  color: var(--err);
  border: none;
  border-radius: 6px;
  padding: 5px 11px;
  cursor: pointer;
  font-weight: 700;
}
.add-row { display: flex; gap: 8px; margin-bottom: 20px; }
.add-row input { flex: 1; }

.table-wrap { overflow-x: auto; }
#appointments-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 12px;
}
#appointments-table th, #appointments-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  white-space: nowrap;
}
#appointments-table td.wrap { white-space: normal; min-width: 180px; }
#appointments-table th { color: var(--muted); font-weight: 600; }
