/* base.css: loaded on EVERY page.
   Colors, fonts, nav, buttons, forms and small shared pieces.
   Page-specific styling lives in the file named after the page
   (index.css, item.css, booked.css, login.css, admin.css).
   Order: colors -> reset -> nav -> buttons -> forms -> layout/components -> wider screens. */
:root {
  /* ---- Colors: change the whole look here ---- */
  --bg: #d9c2a0; /* page background (tan, from the brand photos) */
  --panel: #f1e6d8; /* cards, forms, panels (soft cream) */
  --ink: #4a2520; /* main text */
  --maroon: #7a3a2a; /* headings, buttons, links (logo brown) */
  --tag: #fbe9a6; /* price and size pills (butter yellow) */
  --tagink: #5a2a20; /* text on the pills */
  --line: #bfa57f; /* borders */
  --bad: #a02323; /* errors, delete */

  /* ---- Phone safety: keeps content clear of notches and home bars ---- */
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
/* ==========================================================
   RESET AND PAGE DEFAULTS
   ========================================================== */

*,
*:before,
*:after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    16px/1.5 Lato,
    system-ui,
    sans-serif;
}
h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, serif;
  margin: 0;
}
a {
  color: var(--maroon);
}
:focus-visible {
  outline: 3px solid var(--maroon);
  outline-offset: 2px;
}

/* ==========================================================
   TOP NAV (customer pages and admin)
   ========================================================== */

nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  color: var(--maroon);
  text-decoration: none;
}
.nl {
  display: inline-block;
  background: none;
  border: none;
  color: var(--maroon);
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 8px;
  cursor: pointer;
  text-decoration: none;
}

.navbadge {
  display: inline-block;
  min-width: 18px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #7b3b2a;
  color: #f3e9de;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

/* ==========================================================
   BUTTONS (.btn, .btn.pri = filled, .btn.sm = small, .btn.bad = red)
   ========================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1.5px solid var(--maroon);
  background: transparent;
  color: var(--maroon);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}
.btn.pri {
  background: var(--maroon);
  color: var(--panel);
}
.btn.sm {
  min-height: 40px;
  padding: 4px 14px;
  font-size: 14px;
}
.btn.bad {
  border-color: var(--bad);
  color: var(--bad);
}

/* ==========================================================
   FORMS (labels, inputs, checkboxes, rows)
   ========================================================== */

label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin: 12px 0 4px;
}
input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
  min-height: 44px;
  font: inherit;
  font-size: 16px;
  color: inherit;
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
}
input[type="color"] {
  padding: 2px;
  width: 100%;
}
input[type="checkbox"] {
  width: 20px;
  height: 20px;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}
.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.row > * {
  flex: 1;
  min-width: 120px;
}

/* ==========================================================
   LAYOUT AND SMALL COMPONENTS (.wrap page width, .panel card, .msg notice, .pill tag)
   ========================================================== */

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 14px 22px;
}
.wrap h2 {
  font-size: clamp(26px, 4vw, 36px);
  color: var(--maroon);
  margin-bottom: 18px;
}
.panel {
  background: var(--panel);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid var(--line);
}
.msg {
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--panel);
  border-left: 4px solid var(--maroon);
  margin: 10px 0;
}
.pill {
  display: inline-block;
  background: var(--tag);
  color: var(--tagink);
  font-weight: 700;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 12px;
}

/* ==========================================================
   WIDER SCREENS (tablet and up). Phone styles are the defaults above.
   ========================================================== */

@media (min-width: 700px) {
  nav {
    padding: 8px 20px;
  }
  .brand {
    font-size: 20px;
  }
  .nl {
    font-size: 16px;
  }
  .wrap {
    padding: 44px 16px 8px;
  }
  .pill {
    font-size: 12px;
    padding: 2px 10px;
  }
}
