/* =============================================================
   Fresh Cuts Barbershop — clean & bright theme
   ⭐ To re-colour for a new client, change the variables below.
   ============================================================= */
:root {
  --brand: #2563eb;          /* main accent (blue) */
  --brand-dark: #1d4ed8;
  --brand-soft: #eff4ff;     /* light tint of the accent */
  --bg: #ffffff;
  --bg-soft: #f6f8fb;        /* light section band */
  --text: #0f172a;           /* near-black slate */
  --muted: #64748b;          /* grey text */
  --border: #e6eaf0;
  --shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

h1, h2, h3 { line-height: 1.2; }
a { color: var(--brand); text-decoration: none; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.accent { color: var(--brand); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, transform .05s ease;
}
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--text); font-size: 1.1rem; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--brand-soft); color: var(--brand); font-size: 1.1rem;
}
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--text); font-weight: 500; }
.nav-links a:hover { color: var(--brand); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--brand-soft), var(--bg));
  padding: 84px 24px 72px;
  text-align: center;
}
.hero-inner { max-width: 720px; margin: 0 auto; }
.eyebrow {
  display: inline-block; background: #fff; border: 1px solid var(--border);
  color: var(--muted); border-radius: 999px; padding: 6px 14px; font-size: .85rem;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 18px auto 28px; max-width: 560px; }

/* ---------- Sections ---------- */
.section { max-width: 1040px; margin: 0 auto; padding: 64px 24px; }
.section-soft { max-width: none; background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-soft > * { max-width: 1040px; margin-left: auto; margin-right: auto; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: 2rem; font-weight: 800; }
.section-head .muted { margin-top: 6px; }

.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.service-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(15,23,42,.10); }
.service-card h3 { font-size: 1.15rem; }
.service-card .price { color: var(--brand); font-size: 1.5rem; font-weight: 800; margin: 6px 0 2px; }

/* ---------- Booking form ---------- */
.booking-wrap { max-width: 620px; margin: 0 auto; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select {
  width: 100%; padding: 12px 14px; font-size: 1rem;
  border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text);
  font-family: inherit;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.slot {
  padding: 9px 0; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; color: var(--text); font-size: .92rem; cursor: pointer; font-family: inherit;
  transition: all .12s ease;
}
.slot:hover { border-color: var(--brand); color: var(--brand); }
.slot.selected { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

.confirm { margin-top: 22px; border-color: #bbf7d0; background: #f0fdf4; }
.confirm h3 { color: #15803d; }
.confirm ul { margin: 12px 0; padding-left: 20px; }
.confirm li { margin: 4px 0; }

/* ---------- Hours / location ---------- */
.hours-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.hours-list { list-style: none; margin-top: 10px; }
.hours-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.hours-list li:last-child { border-bottom: none; }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 40px 24px; border-top: 1px solid var(--border); }
.footer p { margin: 4px 0; }

/* ---------- Owner / bookings page ---------- */
.owner-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.owner-actions { display: flex; gap: 10px; }
.btn-ghost { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-danger { background: #fff; color: #dc2626; border: 1px solid #fecaca; }
.btn-danger:hover { background: #fef2f2; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { background: var(--bg-soft); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
tr:last-child td { border-bottom: none; }

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  .nav { padding: 12px 16px; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.btn) { display: none; }   /* keep only the Book button on small screens */
  .section { padding: 48px 18px; }
  .hero { padding: 60px 18px 52px; }
}
