/* ============================================================
   Klippa — public site styles
   Palette: warm espresso base, antique brass accent, bone text.
   Type: Bricolage Grotesque (display) + Inter (body).
   ============================================================ */

:root {
  --bg:        #1a1512;   /* warm near-black, leather/wood */
  --bg-raised: #241d18;
  --bg-card:   #2b221c;
  --line:      #3a2e26;
  --bone:      #f3ece0;   /* primary text */
  --bone-dim:  #b6a894;   /* muted text */
  --brass:     #c79a4b;   /* antique brass accent */
  --brass-lo:  #a67f36;
  --oxblood:   #8c3b32;   /* sparing warm red */
  --good:      #6f9c6b;

  --radius: 14px;
  --maxw: 1140px;
  --shadow: 0 24px 60px -30px rgba(0,0,0,.75);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--bone);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.brand-logo { height: 30px; width: auto; display: block; }

h1, h2, h3 {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 .4em;
}

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.muted { color: var(--bone-dim); }

/* --- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 14px 26px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn-primary { background: var(--brass); color: #22190f; }
.btn-primary:hover { background: #dcae5c; transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--bone);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--brass); color: var(--brass); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* --- Header ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(26,21,18,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.brand span { color: var(--brass); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--bone-dim); font-size: 15px; transition: color .2s; }
.nav a:hover { color: var(--bone); }

/* --- Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  padding: 90px 0 70px;
  overflow: hidden;
}
.hero::after {   /* soft brass glow, one deliberate accent */
  content: "";
  position: absolute;
  top: -140px; right: -120px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(199,154,75,.16), transparent 68%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(44px, 7vw, 82px);
}
.hero p.lede {
  font-size: 19px;
  color: var(--bone-dim);
  max-width: 46ch;
  margin: 0 0 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-figure {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(26,21,18,0) 40%, rgba(26,21,18,.6)),
    repeating-linear-gradient(135deg, #2c231c 0 22px, #29201a 22px 44px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-end;
  padding: 22px;
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.hero-badge {
  font-size: 14px;
  color: var(--bone-dim);
  background: rgba(0,0,0,.35);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

/* --- Section shell --------------------------------------------------------- */
.section { padding: 76px 0; }
.section-head { margin-bottom: 40px; max-width: 52ch; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); }
.section-head p { color: var(--bone-dim); margin: .5em 0 0; }

/* --- Services -------------------------------------------------------------- */
.services-list {
  display: grid;
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.service-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  background: var(--bg-raised);
}
.service-row .s-name { font-weight: 600; font-size: 19px; }
.service-row .s-desc { color: var(--bone-dim); font-size: 15px; }
.service-row .s-meta { text-align: right; white-space: nowrap; }
.service-row .s-price { color: var(--brass); font-weight: 700; font-size: 19px; }
.service-row .s-dur { color: var(--bone-dim); font-size: 14px; }

/* --- Barbers (team cards) --- */
.barbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.barber-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;                 /* clips the photo to the card */
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  background: var(--bg-card);
}
.barber-card .barber-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;                /* fills the card, never overflows */
  z-index: 1;
}
.barber-photo--empty {
  display: grid;
  place-items: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 84px;
  color: var(--brass-lo);
  background: radial-gradient(circle at 50% 35%, var(--bg-card), var(--bg));
}
.barber-card .barber-overlay {
  position: relative;
  z-index: 2;                       /* sits above the photo */
  width: 100%;
  padding: 22px 20px 20px;
  background: linear-gradient(to top,
      rgba(20,16,13,.96) 8%, rgba(20,16,13,.65) 42%, rgba(20,16,13,0));
}
.barber-overlay h3 { font-size: 22px; margin: 0 0 2px; }
.barber-overlay .role { color: var(--bone-dim); font-size: 14px; margin: 0 0 14px; }
.barber-cta { padding: 9px 20px; font-size: 14px; }

/* --- Booking widget -------------------------------------------------------- */
.booking {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}
.steps { display: grid; gap: 26px; }
.field label {
  display: block;
  font-size: 14px;
  color: var(--bone-dim);
  margin-bottom: 10px;
}
.field input, .field select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--bone);
  font: inherit;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--brass);
}

.choice-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--bone);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.choice:hover { border-color: var(--brass-lo); }
.choice[aria-pressed="true"] {
  border-color: var(--brass);
  background: rgba(199,154,75,.12);
  color: var(--bone);
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
}
.slot {
  padding: 12px 0;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--bone);
  font: inherit;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.slot:hover { border-color: var(--brass-lo); }
.slot[aria-pressed="true"] { border-color: var(--brass); background: var(--brass); color: #22190f; font-weight: 700; }

.hint { color: var(--bone-dim); font-size: 14px; }
.step-title { font-size: 15px; color: var(--brass); font-weight: 600; margin-bottom: 12px; }

.booking-success {
  text-align: center;
  padding: 20px 0;
}
.booking-success .check {
  width: 58px; height: 58px; margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(111,156,107,.18);
  color: var(--good);
  display: grid; place-items: center;
  font-size: 28px;
}
.booking-error {
  background: rgba(140,59,50,.15);
  border: 1px solid var(--oxblood);
  color: #e7b4ae;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 15px;
}
.is-hidden { display: none !important; }

/* --- Booking layout -------------------------------------------------------- */
.book-layout {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 48px;
  align-items: start;
}
.book-summary {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 96px;
}
.summary-line { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.summary-line:last-child { border-bottom: none; }
.summary-line .k { color: var(--bone-dim); }

/* --- Footer ---------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 46px 0;
  color: var(--bone-dim);
  font-size: 15px;
}
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }

/* --- Responsive ------------------------------------------------------------ */
@media (max-width: 860px) {
  .hero-grid, .book-layout { grid-template-columns: 1fr; }
  .hero-figure { display: none; }
  .nav a:not(.btn) { display: none; }
  .book-summary { position: static; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .service-row { flex-direction: column; gap: 6px; }
  .service-row .s-meta { text-align: left; }
  .booking { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}
