:root {
  --rose: #c9926a;
  --rose-deep: #b07852;
  --blush: #f3e4d8;
  --cream: #faf6f2;
  --ink: #2b211c;
  --muted: #6e5c52;
  --line: #eadfd6;
  --white: #ffffff;
  --ok: #3d7a4a;
  --warn: #b5762a;
  --err: #a33b3b;
  --shadow: 0 18px 50px rgba(43, 33, 28, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Outfit", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
h1, h2, h3, .brand-name, .serif { font-family: "Cormorant Garamond", serif; font-weight: 500; letter-spacing: -0.02em; }
.container { width: min(1100px, calc(100% - 40px)); margin: 0 auto; }

.site-header, .app-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px;
  background: rgba(250,246,242,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,146,106,.15);
}
.public-page .site-header {
  background: #f7f3ef;
  border-bottom: 0;
  padding: 10px 16px 10px 14px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-logo { display: grid; place-items: center; width: 44px; height: 44px; }
.brand-logo img, .brand-logo svg { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.brand-name { font-size: 1.28rem; font-weight: 500; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.link-entrar {
  display: none;
  color: var(--ink);
  text-decoration: none;
  font-size: .9rem;
  padding: 8px 12px;
}
.menu-btn, .icon-btn {
  width: 46px; height: 46px; border-radius: 14px; border: 1px solid #e6d9cf;
  background: #fff; display: grid; place-items: center; gap: 5px; cursor: pointer;
  box-shadow: 0 1px 0 rgba(43,33,28,.04);
}
.menu-btn span { display: block; width: 16px; height: 1.7px; background: #2b211c; border-radius: 2px; }

.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw);
  background: var(--white); z-index: 60; transform: translateX(100%);
  transition: transform .28s ease; box-shadow: var(--shadow);
}
.drawer.open { transform: none; }
.drawer-inner { padding: 72px 28px 32px; display: grid; gap: 8px; }
.drawer-link { text-decoration: none; color: var(--ink); font-family: "Cormorant Garamond", serif; font-size: 1.55rem; padding: 6px 0; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(43,33,28,.35); z-index: 50; opacity: 0; pointer-events: none; }
.drawer-backdrop.show { opacity: 1; pointer-events: auto; }

.hero { position: relative; min-height: 78vh; display: grid; align-items: end; overflow: hidden; }
.public-page .hero { min-height: calc(100vh - 66px); min-height: calc(100dvh - 66px); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: 72% 28%; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40,28,24,.18) 0%, rgba(28,18,14,.55) 48%, rgba(22,14,12,.78) 100%); }
.hero-content { position: relative; z-index: 1; padding: 36px 22px 42px; color: #fff; max-width: 640px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.18); backdrop-filter: blur(10px); font-size: .68rem; letter-spacing: .18em;
  margin-bottom: 22px; font-weight: 500;
}
.hero h1 { font-size: clamp(2.55rem, 9vw, 4.4rem); line-height: 1.04; margin-bottom: 16px; font-weight: 500; }
.hero p { max-width: 430px; color: rgba(255,255,255,.9); margin-bottom: 26px; font-size: 1.02rem; }
.hero-actions { display: grid; gap: 12px; }
.public-page .hero-actions .btn { min-height: 54px; width: 100%; font-size: 1.02rem; }
.public-page .btn-primary { background: #d4a07c; }
.public-page .btn-ghost { background: #f6e6dc; color: #3a2b24; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: 999px; border: 0;
  font: 500 1rem Outfit, sans-serif; cursor: pointer; text-decoration: none; color: inherit;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--rose); color: #fff; }
.btn-ghost { background: #f8ebe3; color: var(--ink); }
.btn-outline { background: transparent; border: 1px solid var(--line); }
.btn-danger { background: #f3d9d9; color: var(--err); }
.btn-sm { min-height: 38px; padding: 0 12px; font-size: .86rem; }
.btn-block { width: 100%; }

.section { padding: 72px 0; }
.public-page .section { padding: 56px 0 64px; background: #faf6f2; }
.kicker { color: var(--rose); letter-spacing: .18em; font-size: .75rem; font-weight: 500; margin-bottom: 10px; }
.public-page .kicker { color: #c9926a; letter-spacing: .2em; font-size: .72rem; }
h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.1; margin-bottom: 10px; }
.public-page h2 { font-size: clamp(2.15rem, 7vw, 2.9rem); color: #241910; }
.lead { color: var(--muted); max-width: 520px; margin-bottom: 28px; }
.public-page .lead { color: #6b5a50; font-size: 1.05rem; max-width: 34rem; }

.grid-2, .card-grid { display: grid; gap: 16px; }
.card, .service-card, .product-card, .hours-card, .panel {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 18px;
}
.service-card img, .product-card img { width: 100%; height: 170px; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }
.service-meta, .row-between { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); }
.price { color: var(--rose-deep); font-weight: 600; }
.price s { color: var(--muted); font-weight: 400; margin-right: 6px; }
.badge { font-size: .72rem; padding: 4px 8px; border-radius: 999px; background: #e8d3c4; text-transform: capitalize; }
.badge.pending { background: #f3e0c8; }
.badge.confirmed { background: #d8e7d6; }
.badge.cancelled { background: #ecd5d5; }
.badge.completed { background: #d5e0ec; }
.badge.unavailable { background: #eadfd6; }

.about { background: var(--white); }
.about-grid, .contact-grid { display: grid; gap: 28px; }
.about-frame { border-radius: 24px; overflow: hidden; height: 340px; }
.about-frame img { width: 100%; height: 100%; object-fit: cover; }
.hours-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.site-footer { background: #231a16; color: #f3e4d8; padding: 36px 0; }
.copy { opacity: .65; font-size: .85rem; }

.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(440px, 100%); background: #fff; border-radius: 22px; padding: 28px 22px; box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 10px; }
label { font-size: .86rem; color: var(--muted); }
input, select, textarea {
  width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; font: inherit; background: var(--cream);
}
textarea { min-height: 90px; resize: vertical; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; }
.muted { color: var(--muted); }
.error { color: var(--err); font-size: .9rem; }
.ok { color: var(--ok); }
.empty { padding: 24px; text-align: center; color: var(--muted); }

.app-shell { display: grid; min-height: 100vh; }
.side {
  display: none; background: #231a16; color: #f3e4d8; padding: 22px 16px;
}
.side a, .side button.nav {
  display: block; width: 100%; text-align: left; background: none; border: 0; color: inherit;
  padding: 10px 12px; border-radius: 10px; text-decoration: none; cursor: pointer; font: inherit;
}
.side a.active, .side button.nav.active, .side a:hover, .side button.nav:hover { background: rgba(201,146,106,.25); }
.app-main { padding: 18px; }
.page { display: none; }
.page.active { display: block; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 16px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; }
th, td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; font-size: .92rem; vertical-align: top; }
.stat-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.stat strong { display: block; font-size: 1.4rem; }
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot, .choice {
  border: 1px solid var(--line); background: var(--cream); border-radius: 12px; padding: 12px; cursor: pointer; font: inherit; text-align: left;
}
.slot.active, .choice.active { border-color: var(--rose); background: #f8ebe3; }
.slot:disabled { opacity: .4; cursor: not-allowed; }
.modal {
  position: fixed; inset: 0; background: rgba(28,20,16,.45); z-index: 80;
  display: none; align-items: flex-end; justify-content: center; padding: 12px;
}
.modal.open { display: flex; }
.modal-panel {
  background: #fff; width: min(720px, 100%); max-height: 92vh; overflow: auto;
  border-radius: 24px 24px 18px 18px; padding: 22px 18px; position: relative;
}
.modal-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--cream); cursor: pointer; font-size: 1.3rem; }
.toast {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%) translateY(120%);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; z-index: 90; max-width: 92vw; transition: transform .25s;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.tabs { display: flex; gap: 6px; overflow: auto; margin: 8px 0 16px; }
.tab { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 12px; cursor: pointer; white-space: nowrap; }
.tab.active { background: var(--rose); color: #fff; border-color: var(--rose); }
.preview-hero { min-height: 220px; border-radius: 16px; overflow: hidden; position: relative; color: #fff; }
.preview-hero .inner { position: absolute; inset: auto 16px 16px; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty input { width: 64px; min-height: 38px; text-align: center; }
.loader { text-align: center; padding: 30px; color: var(--muted); }

.side.open {
  display: block;
  position: fixed;
  inset: 60px auto 0 0;
  width: min(260px, 80vw);
  z-index: 55;
}

@media (min-width: 860px) {
  .hero-actions { grid-template-columns: auto auto; justify-content: start; }
  .public-page .hero-actions { grid-template-columns: 1fr; max-width: 420px; }
  .public-page .link-entrar { display: inline-flex; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr 1fr; align-items: center; }
  .modal { align-items: center; }
  .modal-panel { border-radius: 22px; }
  .app-shell { grid-template-columns: 230px 1fr; }
  .side { display: block; position: static; width: auto; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .hide-desk { display: none !important; }
  .hero-content { padding: 64px 40px 72px; }
}

@media (max-width: 859px) {
  .hero-bg.mobile-swap { background-image: var(--hero-mobile) !important; }
}
