/* K&S Salon & Barbershop – Custom CSS (clean / modern) */

/* ---------- Local font (placeholder) ----------
   Put your font files into: public/assets/fonts/
   Example:
     public/assets/fonts/Urbanist-Variable.woff2
   Then adjust the src below.
*/
@font-face{
  font-family: "KS-Urbanist";
  src: url("../fonts/KSFont.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root{
  --bg: #0b0b0d;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.04);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.62);
  --brand: #c8b6ff;
  --brand2:#7c5cff;
  --border: rgba(255,255,255,.10);
  --shadow: 0 20px 60px rgba(0,0,0,.55);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--text);
  background:
    radial-gradient(1000px 800px at 20% 0%, rgba(124,92,255,.22), transparent 60%),
    radial-gradient(900px 700px at 90% 20%, rgba(200,182,255,.14), transparent 55%),
    var(--bg);
  font-family: "KS-Urbanist", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

a{color:inherit;text-decoration:none}
a:hover{opacity:.9}

.container{
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px;
}

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(11,11,13,.55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.headerRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}

.brand{
  display:flex; flex-direction:column; gap:2px;
}
.brand h1{
  margin:0;
  letter-spacing:.12em;
  font-weight:800;
  text-transform:uppercase;
  font-size: 18px;
}
.brand .sub{
  font-size: 12px;
  color: var(--muted);
}

.headerRight{
  display:flex;
  align-items:center;
  gap:12px;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
}
.pill small{color:var(--muted)}
.btn{
  cursor:pointer;
  border: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(200,182,255,.22), rgba(124,92,255,.18));
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
}
.btn:hover{filter:brightness(1.05)}
.btn:disabled{opacity:.5; cursor:not-allowed}
.btn.secondary{
  background: rgba(255,255,255,.06);
}

.hero{
  margin-top: 18px;
  border-radius: 20px;
  overflow:hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #111;
}
.hero img{
  display:block;
  width:100%;
  height: 260px;
  object-fit: cover;
  opacity: .92;
}

.grid{
  display:grid;
  grid-template-columns: 1.4fr .6fr;
  gap:18px;
  margin-top: 18px;
}
@media (max-width: 960px){
  .grid{grid-template-columns:1fr}
  .hero img{height: 220px;}
}

.card{
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.card h2{
  margin: 0 0 10px 0;
  font-size: 18px;
}
.card h3{
  margin: 0 0 10px 0;
  font-size: 15px;
  color: var(--muted);
  font-weight: 700;
}

.selectRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 10px;
}
select, input{
  width:100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 10px 12px;
  outline:none;
}
label{display:block; font-size: 12px; color: var(--muted); margin-bottom: 6px;}
.field{margin-bottom: 12px;}

.serviceList{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.serviceItem{
  display:grid;
  grid-template-columns: 1fr auto auto;
  gap:12px;
  align-items:center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
}
.serviceItem .name{font-weight:800}
.serviceItem .meta{color:var(--muted); font-size: 12px; white-space:nowrap}
.serviceItem .price{font-weight:800; white-space:nowrap}

.serviceItem button{
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(200,182,255,.14);
  color: var(--text);
  cursor:pointer;
  font-weight: 800;
}
.serviceItem button:hover{filter:brightness(1.05)}

.cart{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.cartItem{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.cartItem .title{font-weight:800}
.cartItem .sub{color:var(--muted); font-size:12px}
.iconBtn{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-radius: 12px;
  padding: 6px 10px;
  cursor:pointer;
}
.iconBtn:hover{filter:brightness(1.08)}

.kpi{
  display:flex; gap:10px; flex-wrap:wrap;
}
.kpi .box{
  flex:1;
  min-width: 160px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.kpi .box strong{display:block; font-size: 14px}
.kpi .box span{color:var(--muted); font-size: 12px}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: 12px;
}

.slots{
  margin-top: 10px;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:10px;
}
@media (max-width: 900px){
  .slots{grid-template-columns: repeat(3, 1fr)}
}
@media (max-width: 520px){
  .slots{grid-template-columns: repeat(2, 1fr)}
}
.slot{
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  cursor:pointer;
  text-align:center;
  font-weight: 800;
}
.slot small{display:block; font-weight:700; color:var(--muted)}
.slot.disabled{
  opacity:.35;
  cursor:not-allowed;
  filter: grayscale(1);
}
.slot.active{
  outline: 2px solid rgba(200,182,255,.55);
  background: rgba(200,182,255,.12);
}

.hr{height:1px;background:rgba(255,255,255,.10);margin:14px 0}

.footer{
  margin-top: 26px;
  padding: 18px 0 30px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
}
.footer a{color:var(--text)}
.footerRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

.notice{
  border-left: 3px solid rgba(200,182,255,.7);
  padding: 12px;
  border-radius: 14px;
  background: rgba(200,182,255,.08);
  border: 1px solid rgba(200,182,255,.18);
  color: var(--text);
}

.small{font-size:12px;color:var(--muted)}

/* =========================================================
   Modern Select + Input Styling (K&S UI)
   - works for <select>, <input>, <textarea>
   - glass/dark style, custom arrow, focus glow
   ========================================================= */

/* Optional: tweak these variables to match your theme */
:root{
  --ui-bg: rgba(16, 18, 24, 0.72);
  --ui-bg-2: rgba(16, 18, 24, 0.55);
  --ui-border: rgba(255,255,255,.10);
  --ui-border-2: rgba(255,255,255,.16);
  --ui-text: rgba(255,255,255,.92);
  --ui-muted: rgba(255,255,255,.62);
  --ui-placeholder: rgba(255,255,255,.42);
  --ui-focus: rgba(130, 87, 255, .55);     /* accent glow */
  --ui-focus-2: rgba(130, 87, 255, .22);   /* soft ring */
  --ui-radius: 14px;
  --ui-pad-y: 12px;
  --ui-pad-x: 14px;
  --ui-shadow: 0 10px 30px rgba(0,0,0,.28);
}

/* Base field style */
.ks-field,
select.ks-field,
input.ks-field,
textarea.ks-field,
select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea{
  width: 100%;
  color: var(--ui-text);
  background: linear-gradient(180deg, var(--ui-bg), var(--ui-bg-2));
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  padding: var(--ui-pad-y) var(--ui-pad-x);
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Placeholder */
input::placeholder,
textarea::placeholder{
  color: var(--ui-placeholder);
}

/* Hover */
.ks-field:hover,
select:hover,
input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
input[type="password"]:hover,
textarea:hover{
  border-color: var(--ui-border-2);
}

/* Focus */
.ks-field:focus,
select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
textarea:focus{
  border-color: rgba(130, 87, 255, .75);
  box-shadow:
    0 0 0 4px var(--ui-focus-2),
    0 14px 40px rgba(0,0,0,.35);
}

/* Disabled */
.ks-field:disabled,
select:disabled,
input:disabled,
textarea:disabled{
  opacity: .55;
  cursor: not-allowed;
  filter: grayscale(.12);
}

/* =========================================================
   Select: custom arrow + remove native styling
   ========================================================= */

select,
select.ks-field{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* room for arrow */
  padding-right: 44px;

  /* subtle "arrow" background (SVG) */
  background-image:
    linear-gradient(180deg, var(--ui-bg), var(--ui-bg-2)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='rgba(255,255,255,0.65)' d='M5.6 7.7a1 1 0 0 1 1.4 0L10 10.7l3-3a1 1 0 1 1 1.4 1.4l-3.7 3.7a1 1 0 0 1-1.4 0L5.6 9.1a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position:
    0 0,
    right 14px center;
  background-size:
    100% 100%,
    18px 18px;
}

/* Firefox fix: remove dotted focus outline */
select:-moz-focusring{
  color: transparent;
  text-shadow: 0 0 0 var(--ui-text);
}

/* Option styling (limited by browsers, but improves some) */
select option{
  color: #111;
}

/* If you have labels above fields */
.ks-label,
label{
  display: inline-block;
  margin: 0 0 8px 2px;
  color: var(--ui-muted);
  font-size: .92rem;
  letter-spacing: .2px;
}

/* Small helper text under fields */
.ks-help,
.form-text{
  margin-top: 6px;
  color: var(--ui-muted);
  font-size: .88rem;
}

/* =========================================================
   Optional: "select wrapper" (if you use a container div)
   <div class="ks-select"><select>...</select></div>
   ========================================================= */
.ks-select{
  position: relative;
}
.ks-select select{
  width: 100%;
}

/* =========================================================
   Consistent sizing in compact rows (if used)
   ========================================================= */
.ks-field--sm{
  padding: 10px 12px;
  border-radius: 12px;
  font-size: .95rem;
}

/* =========================================================
   RESPONSIVE FIX PACK (append at END of style.css)
   - Better mobile header (no ugly oval pill)
   - Service cards + cart + slots become touch-friendly
   - Keeps dark overlay consistent down the page
   ========================================================= */

/* 1) Make page background/overlay consistent (no “stops”) */
html, body { height: auto; min-height: 100%; }
body { min-height: 100vh; }

/* subtle dark overlay over whole page (consistent foreground) */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 700px at 50% -10%, rgba(0,0,0,.18), transparent 65%),
    linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.22) 35%, rgba(0,0,0,.30));
}
body > *{ position: relative; z-index: 1; }

/* 2) General mobile spacing */
.container{
  padding: 18px;
}

/* 3) Header: wrap nicely + better pill on mobile */
.headerRow{
  flex-wrap: wrap;
  align-items: flex-start;
}

/* allow the right side to wrap/stack */
.headerRight{
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* pill: not super-oval on small screens, allow wrapping */
.pill{
  border-radius: 14px;
  max-width: 100%;
  white-space: normal;
  line-height: 1.2;
}

/* if the address is a link inside pill, let it wrap */
.pill a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* 4) Service rows: collapse to a clean mobile layout */
.serviceItem{
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "name price"
    "meta meta"
    "btn  btn";
  row-gap: 10px;
}

.serviceItem .name{ grid-area: name; }
.serviceItem .price{ grid-area: price; justify-self: end; }
.serviceItem .meta{ grid-area: meta; white-space: normal; }
.serviceItem button{
  grid-area: btn;
  width: 100%;
}

/* 5) Cart: improve touch layout */
.cartItem{
  flex-direction: column;
  gap: 10px;
}
.cartItem .sub{ margin-top: 4px; }
.iconBtn{
  align-self: flex-end;
}

/* 6) Slots: better grid on phones + bigger tap targets */
.slot{
  padding: 12px 10px;
  min-height: 56px;
}

/* 7) Inputs/select: avoid overflow, consistent sizes */
select, input{
  max-width: 100%;
}

/* 8) Footer: stack nicely */
.footerRow{
  flex-direction: column;
  align-items: flex-start;
}

/* =========================
   Breakpoints
   ========================= */

@media (max-width: 960px){
  .grid{ grid-template-columns: 1fr; }
  .hero img{ height: 220px; }
}

@media (max-width: 680px){
  .container{ padding: 14px; }

  .brand h1{ font-size: 16px; }
  .brand .sub{ font-size: 12px; }

  .headerRight{
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  /* address pill becomes full width, looks “card-like” instead of oval */
  .pill{
    width: 100%;
    padding: 10px 12px;
  }

  /* buttons also wrap nicely */
  .btn{
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* slots: reduce columns */
  .slots{ grid-template-columns: repeat(2, 1fr); }

  /* service item spacing */
  .serviceItem{ padding: 12px; }
}

@media (max-width: 420px){
  .hero img{ height: 190px; }

  /* even tighter spacing */
  .card{ padding: 14px; border-radius: 16px; }

  /* slots 1 column on very small devices */
  .slots{ grid-template-columns: 1fr; }

  /* small typography tweaks */
  .serviceItem .name{ font-size: 14px; }
  .serviceItem .meta{ font-size: 12px; }
}

select option{
  color: rgba(255,255,255,.92);
  background: #0b0b0d;
}