/* RazorSharp — barbershop site */
:root {
  --bg: #1a1410;          /* warm dark brown */
  --bg-2: #221a14;        /* slightly lighter for alt sections */
  --card: #2a221c;
  --line: #3a2f26;
  --text: #f5eee5;
  --muted: #b5aa9c;
  --text-on-dark: #f5eee5;
  --muted-on-dark: #b5aa9c;
  --accent: #e88736;       /* brighter burnt orange */
  --accent-2: #f0a25e;     /* lighter orange */
  --wine: #6a2940;
  --shadow: 0 10px 30px rgba(0,0,0,0.5);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(26, 20, 16, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center;
  text-decoration: none;
}
.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}
.brand-suffix {
  margin-left: 12px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 1.5px;
  color: var(--accent-2);
  align-self: center;
}
.site-header nav { display: flex; align-items: center; gap: 22px; }
.site-header nav a {
  color: var(--muted); text-decoration: none; font-weight: 500;
  font-size: 14px; letter-spacing: 0.5px;
}
.site-header nav a:hover { color: var(--text); }
.cta-mini {
  background: var(--accent);
  color: #1a0e06 !important;
  padding: 8px 18px; border-radius: 999px;
  font-weight: 700 !important;
}
.cta-mini:hover { background: var(--accent-2); }

/* ----- Hero ----- */
.hero {
  position: relative; overflow: hidden;
  padding: 50px 0 60px;
  color: var(--text-on-dark);
}
.hero h1 { color: var(--text-on-dark); }
.hero .lead { color: var(--muted-on-dark); }
.hero .btn-ghost { color: var(--text-on-dark); border-color: rgba(255,255,255,0.25); }
.hero .btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(217, 122, 44, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(90, 34, 56, 0.45) 0%, transparent 60%),
    linear-gradient(180deg, #1a120c 0%, #0d0a08 100%);
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.eyebrow {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 4px;
  color: var(--accent-2);
  font-size: 18px;
  margin: 0 0 18px 0;
}
.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(44px, 6.5vw, 84px);
  line-height: 0.95;
  margin: 0 0 16px 0;
  letter-spacing: -1px;
}
.lead { font-size: 20px; color: var(--muted); margin: 0 0 30px 0; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.4px;
  text-decoration: none;
  border: 0; cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a0e06;
  box-shadow: 0 6px 18px rgba(217, 122, 44, 0.35);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); }
.btn-block { width: 100%; padding: 16px; font-size: 16px; }

/* ----- Sections ----- */
.section { padding: 50px 0 90px; }
.section-alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 600px; margin: 0 auto 30px; }
.section-head h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: 1px;
  margin: 0 0 12px;
}
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

/* ----- Gallery ----- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.gallery-item:hover { box-shadow: 0 12px 30px rgba(232, 135, 54, 0.25); }
.gallery-item:hover { transform: translateY(-3px); }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .tag {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(8px);
  color: var(--accent-2);
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  padding: 4px 8px; border-radius: 4px;
  text-transform: uppercase;
}
.gallery-item .caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85));
  color: #fff; padding: 20px 12px 10px;
  font-size: 12px;
  opacity: 0; transition: opacity 0.2s;
}
.gallery-item:hover .caption { opacity: 1; }
.loading { color: var(--muted); text-align: center; padding: 40px; grid-column: 1 / -1; }
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 30px;
  background: var(--card);
  border: 2px dashed var(--line);
  border-radius: 18px;
}
.empty-icon {
  font-size: 56px;
  color: var(--accent);
  margin-bottom: 14px;
  transform: rotate(-8deg);
  display: inline-block;
}
.empty-state h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 1px;
  margin: 0 0 10px;
  color: var(--text);
}
.empty-state p {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 16px;
}

/* ----- Forms / cards ----- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.form { display: flex; flex-direction: column; gap: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 540px) { .row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span,
.field > legend {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.field input,
.field select,
.field textarea {
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 14px 14px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--accent);
}

.field-file input[type="file"] { display: none; }
.file-preview {
  background: var(--bg);
  border: 1.5px dashed var(--line);
  border-radius: 10px;
  padding: 30px 14px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.file-preview:hover { border-color: var(--accent); color: var(--accent-2); }
.file-preview.has-file { padding: 0; border-style: solid; overflow: hidden; }
.file-preview.has-file img { width: 100%; max-height: 320px; object-fit: cover; display: block; }

/* Pay buttons */
.pay-block { border: 0; padding: 0; margin: 0; }
.pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 540px) { .pay-grid { grid-template-columns: 1fr; } }
.pay-option input { position: absolute; opacity: 0; pointer-events: none; }
.pay-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 12px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.pay-card:hover { border-color: var(--accent); }
.pay-option input:checked + .pay-card {
  border-color: var(--accent);
  background: rgba(217, 122, 44, 0.1);
}
.pay-icon { font-size: 28px; }
.pay-label { font-size: 13px; font-weight: 600; }

.form-status {
  font-size: 14px;
  margin: 0;
  min-height: 20px;
}
.form-status.ok { color: #4ade80; }
.form-status.err { color: #f87171; }

/* ----- Book page layout ----- */
.book-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 880px) { .book-layout { grid-template-columns: 1fr; } }

.book-when, .book-who { max-width: none; }

.step-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--accent-2);
  margin-bottom: 18px;
}

/* Calendar */
.calendar { margin-bottom: 24px; }
.cal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.cal-nav {
  background: var(--bg);
  border: 1.5px solid var(--line);
  color: var(--text);
  width: 36px; height: 36px;
  border-radius: 8px;
  font-size: 20px; cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.cal-nav:hover { border-color: var(--accent); color: var(--accent-2); }
.cal-title { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 1px; }

.cal-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}
.cal-dow span {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-cell {
  aspect-ratio: 1;
  background: var(--bg);
  border: 1.5px solid transparent;
  color: var(--text);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.cal-cell:hover:not(:disabled):not(.cal-selected) {
  border-color: var(--accent);
}
.cal-cell.cal-empty { background: transparent; cursor: default; }
.cal-cell.cal-past { color: var(--line); cursor: not-allowed; }
.cal-cell.cal-today { border-color: var(--accent-2); }
.cal-cell.cal-selected {
  background: var(--accent);
  color: #1a0e06;
  border-color: var(--accent);
  font-weight: 700;
}

/* Slots */
.slot-block { margin-top: 24px; }
.slot-title {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}
.slot-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12px 8px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
  min-height: 60px;
}
.slot-btn:hover:not(:disabled) { border-color: var(--accent); }
.slot-btn .slot-time { font-weight: 600; font-size: 16px; }
.slot-btn .slot-reason { font-size: 10px; color: var(--muted); margin-top: 2px; letter-spacing: 0.5px; text-transform: uppercase; }
.slot-btn.slot-disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.slot-btn.slot-active {
  background: var(--accent);
  color: #1a0e06;
  border-color: var(--accent);
}
.slot-btn.slot-active .slot-reason { color: rgba(26,14,6,0.7); }

/* Booking summary */
.picked-summary {
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 15px;
}
.picked-summary.summary-ready {
  border-color: var(--accent);
  color: var(--text);
}

/* ----- Admin ----- */
.admin-tabs {
  display: flex; gap: 6px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.tab-btn {
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 12px 22px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.tab-active {
  color: var(--accent-2);
  border-bottom-color: var(--accent);
}

.admin-list { display: flex; flex-direction: column; gap: 8px; }
.admin-row {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.admin-row-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.admin-row strong { color: var(--text); font-size: 15px; }
.admin-row .row-time { color: var(--accent-2); font-size: 14px; font-weight: 600; }
.admin-row .row-note { color: var(--muted); font-size: 13px; }
.admin-row .row-id { color: var(--muted); font-size: 12px; font-family: 'Courier New', monospace; }
.btn-icon {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--muted);
  width: 32px; height: 32px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
.btn-icon:hover { color: #f87171; border-color: #f87171; }

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.admin-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.admin-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.admin-card-meta { padding: 10px 12px; }
.admin-card-meta strong { font-size: 13px; }
.admin-card-meta p { color: var(--muted); font-size: 12px; margin: 4px 0; }
.admin-card-meta .row-note { font-size: 11px; }

/* ----- Location page ----- */
.loc-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 880px) { .loc-layout { grid-template-columns: 1fr; } }

.loc-map {
  height: 460px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
}
.loc-map.map-empty {
  display: grid; place-items: center;
  color: var(--muted);
}
.map-placeholder {
  font-size: 16px;
  padding: 30px;
  text-align: center;
}

.loc-info { max-width: none; }
.loc-address {
  font-size: 20px;
  color: var(--text);
  font-weight: 600;
  margin: 0 0 10px;
  line-height: 1.4;
}
.loc-description {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 18px;
}
.loc-updated {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.5px;
  margin: 0 0 20px;
}
.loc-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Custom Leaflet pin */
.custom-pin { background: transparent; border: 0; }
.pin-wrap { position: relative; width: 36px; height: 36px; }
.pin-dot {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 18px; height: 18px;
  background: #e88736;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  z-index: 2;
}
.pin-pulse {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px;
  background: rgba(232, 135, 54, 0.45);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

/* Footer */
.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* Lightbox */
.lightbox[hidden] { display: none !important; }
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 16px;
  padding: 40px 20px;
}
.lightbox img {
  max-width: 90vw; max-height: 80vh;
  border-radius: 8px; box-shadow: var(--shadow);
}
.lightbox-caption {
  color: var(--muted); font-size: 14px; margin: 0; text-align: center;
  max-width: 600px;
}
.lightbox-close {
  position: absolute; top: 20px; right: 20px;
  background: rgba(255,255,255,0.1);
  border: 0; color: white;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 24px; cursor: pointer;
  z-index: 2;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

.lightbox-nav {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 0; color: white;
  width: 56px; height: 56px;
  border-radius: 50%;
  font-size: 36px; line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-counter {
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  margin: 0;
}
@media (max-width: 540px) {
  .lightbox-nav { width: 44px; height: 44px; font-size: 28px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}
