:root{
  --bg:#070a0f;
  --panel: rgba(255,255,255,.06);
  --stroke: rgba(255,255,255,.12);
  --text:#eef7ff;
  --muted: rgba(238,247,255,.70);

  /* Jamaican vibe */
  --green:#22c55e;
  --green2:#16a34a;
  --gold:#e2c160;

  --shadow: 0 18px 55px rgba(0,0,0,.45);
  --radius: 18px;
}

/* ===== GLOBAL SAFE FLUID FIX (prevents sideways scroll) ===== */
*{ box-sizing:border-box; }
html, body{ width:100%; overflow-x:hidden; }
img{ max-width:100%; height:auto; display:block; }

/* ===== OPTIONAL BACKGROUND IMAGE (transparent overlay) =====
   Put your image at: /assets/images/bg-barbers.jpg
   If you don’t want it, delete this whole html::before/html::after section.
*/
html::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  background:url("/assets/images/bg-barbers.jpg") center/cover no-repeat;
  opacity:.28;
  transform:scale(1.03);
}
html::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  background:rgba(0,0,0,.25);
}

/* ===== Page background ===== */
body{
  background:
    radial-gradient(900px 520px at 15% 10%, rgba(34,197,94,.16), transparent 55%),
    radial-gradient(900px 520px at 85% 0%, rgba(226,193,96,.14), transparent 55%),
    radial-gradient(700px 420px at 70% 85%, rgba(124,92,255,.14), transparent 55%),
    var(--bg);
  color:var(--text);
}

/* ===== Header / container ===== */
.container{
  width:min(1600px, 100%);
  margin:0 auto;
  padding:0 18px;
}

.topbar{
  position:sticky;
  top:0;
  z-index:999;
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,.12);
}

.nav, .navWrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
}

.logo{
  width:42px;
  height:42px;
  border-radius:14px;
  background:linear-gradient(135deg, #16a34a, #e2c160);
  box-shadow:0 14px 30px rgba(0,0,0,.45);
}

.brandText{ display:flex; flex-direction:column; line-height:1.1; }
.brandName{ color:#fff; font-weight:950; font-size:1.06rem; letter-spacing:.3px; }
.brandSub{ color:rgba(255,255,255,.78); font-weight:700; font-size:.86rem; margin-top:3px; }

.navlinks{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.navlinks a{
  padding:10px 14px;
  border-radius:999px;
  color:rgba(255,255,255,.86);
  font-weight:850;
  text-decoration:none;
  background:rgba(0,0,0,.18);
  border:1px solid transparent;
  transition:.18s ease;
}

.navlinks a:hover{
  border-color:rgba(226,193,96,.25);
  background:rgba(0,0,0,.28);
  color:#fff;
}

.navlinks a.active{
  background:rgba(22,163,74,.25);
  border-color:rgba(22,163,74,.55);
  color:#fff;
}

.navActions{
  display:flex;
  gap:10px;
  align-items:center;
}

/* ===== Mobile hamburger (toggles .navlinks.show) ===== */
.menuBtn{
  display:none;
  width:44px;
  height:44px;
  border-radius:12px;
  border:1px solid rgba(226,193,96,.35);
  background:rgba(0,0,0,.35);
  cursor:pointer;
}
.menuBtn span{
  display:block;
  height:2px;
  width:22px;
  margin:5px auto;
  background:#fff;
  border-radius:2px;
}

@media (max-width: 860px){
  .menuBtn{ display:block; }

  /* Turn navlinks into a dropdown panel */
  .navlinks{
    position:absolute;
    top:72px;
    right:18px;
    flex-direction:column;
    gap:8px;
    padding:14px;
    border-radius:18px;
    background:rgba(0,0,0,.85);
    backdrop-filter:blur(12px);
    border:1px solid rgba(226,193,96,.25);
    box-shadow:0 18px 45px rgba(0,0,0,.6);
    display:none;
    z-index:999;
  }
  .navlinks.show{ display:flex; }
  .navlinks a{ width:100%; text-align:center; }
}

/* ========================= HERO SPLIT (IMAGE + STATS) ========================= */
.heroSplitSimple{
  display:grid;
  grid-template-columns:minmax(0, 1.25fr) minmax(0, 1fr);
  gap:18px;
  align-items:stretch;
  margin:18px auto 16px;
  max-width:1600px;
}

/* HERO IMAGE CARD (NO CROPPING) */
.heroImageCard{
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid var(--stroke);
  box-shadow:var(--shadow);
  background:rgba(0,0,0,.25);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px;
  min-height:340px;
}

.heroImageCard img{
  width:100%;
  height:auto;
  max-height:520px;
  object-fit:contain; /* prevents cropping */
  display:block;
}

.heroStatsCard{
  border-radius:var(--radius);
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.05);
  box-shadow:var(--shadow);
  padding:18px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(34,197,94,.35);
  background:rgba(34,197,94,.12);
  color:rgba(195,255,221,.92);
  font-weight:900;
  letter-spacing:.5px;
  text-transform:uppercase;
  font-size:.78rem;
  margin-bottom:10px;
}

.heroStatsTop h1{
  margin:8px 0 10px;
  font-size:clamp(1.7rem, 3.0vw, 2.4rem);
  line-height:1.08;
  letter-spacing:-.3px;
}

.sub{
  color:rgba(255,255,255,.88);
  max-width:72ch;
  line-height:1.65;
  font-weight:650;
}

.heroStatGrid{ margin-top:10px; }

.help{
  margin-top:12px;
  color:rgba(238,247,255,.68);
  font-size:.92rem;
  line-height:1.55;
}

/* ===== Stats ===== */
.statGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
@media (max-width: 520px){
  .statGrid{ grid-template-columns:1fr; }
}

.stat{
  background:rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  padding:12px;
}
.stat .label{
  display:block;
  color:rgba(238,247,255,.72);
  font-size:.86rem;
  font-weight:800;
}
.stat .value{
  display:block;
  margin-top:6px;
  font-size:1.35rem;
  font-weight:950;
}

/* ===== Panel ===== */
.panel{
  background:rgba(255,255,255,.05);
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:var(--shadow);
  margin:16px auto 0;
  width:100%;
  max-width:1600px;
}

.panelHead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
  min-width:0;
}

.panelHead h2{
  color:rgba(34,197,94,.95);
  font-weight:950;
  letter-spacing:.2px;
}

.panelHead p{
  color:rgba(34,197,94,.80);
  font-weight:800;
}

/* ===== Search row ===== */
.searchRow{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:10px 0 12px;
  min-width:0;
}
.searchCentered{ justify-content:center; }

.input{
  flex:1;
  min-width:220px;
  padding:12px 12px;
  border-radius:14px;
  border:2px solid rgba(34,197,94,.75);
  background:rgba(0,0,0,.22);
  color:rgba(195,255,221,.92);
  font-weight:900;
  outline:none;
}

.searchCentered .input{ max-width:520px; }

.input::placeholder{
  color:rgba(34,197,94,.75);
  font-weight:800;
}

.input:focus{
  box-shadow:0 0 0 3px rgba(34,197,94,.22);
}

/* ===== Barber list cards ===== */
.list{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}

.item{
  background:rgba(0,0,0,.28);
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  padding:14px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  transition:transform .16s ease, border-color .16s ease, background .16s ease;
  min-width:0;
}

.item:hover{
  transform:translateY(-2px);
  border-color:rgba(226,193,96,.28);
  background:rgba(255,255,255,.06);
}

.item strong{
  font-size:1.08rem;
  font-weight:950;
  letter-spacing:.1px;
  overflow-wrap:anywhere;
}

.item small{
  display:block;
  margin-top:4px;
  color:rgba(238,247,255,.72);
  font-weight:700;
  overflow-wrap:anywhere;
}

/* ===== Badges ===== */
.badges{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
  min-width:0;
  max-width:100%;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:rgba(238,247,255,.78);
  font-weight:800;
  font-size:.85rem;
  white-space:nowrap;
}

.badge.good{
  border-color:rgba(34,197,94,.35);
  background:rgba(34,197,94,.10);
  color:rgba(195,255,221,.92);
}
.badge.gold{
  border-color:rgba(226,193,96,.35);
  background:rgba(226,193,96,.12);
  color:rgba(255,241,205,.92);
}

/* ===== Reviews ===== */
.reviewsLayout{
  display:grid;
  grid-template-columns:minmax(0, 360px) minmax(0, 1fr);
  gap:16px;
  margin-top:12px;
  width:100%;
  max-width:1600px;
  margin-left:auto;
  margin-right:auto;
  min-width:0;
}

.reviewForm{
  background:rgba(0,0,0,.20);
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  padding:14px;
  min-width:0;
}

.reviewForm .input{
  width:100%;
  max-width:100%;
  margin-bottom:10px;
  padding:10px 12px;
  min-width:0;
  font-size:.95rem;
}

.reviewForm textarea.input{
  min-height:92px;
  resize:vertical;
}

.goldBtn{
  background:linear-gradient(135deg, var(--gold), rgba(185,151,47,.75));
  border:1px solid rgba(226,193,96,.55);
  color:#120e05;
  font-weight:950;
  padding:10px 12px;
  border-radius:14px;
}

.reviewList{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
}

.reviewItem{
  background:rgba(0,0,0,.20);
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  padding:12px;
  min-width:0;
}

.reviewItemTop{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  margin-bottom:6px;
}

.reviewItemName{ font-weight:950; color:#fff; }
.reviewItemStars{ color:var(--gold); letter-spacing:1px; }
.reviewItemMsg{ color:rgba(255,255,255,.84); line-height:1.45; overflow-wrap:anywhere; }

/* ===== FORCE the barbers section visible ===== */
#barbersList{ display:block; width:100%; }
#barberList{ display:grid; gap:12px; width:100%; }

.barberAvatarFallback{
  width:38px;
  height:38px;
  border-radius:999px;
  background:linear-gradient(135deg, #16a34a, #e2c160);
  border:2px solid rgba(247,201,72,.6);
  box-shadow:0 10px 18px rgba(0,0,0,.25);
  flex:0 0 auto;
}

/* ===== Mobile polish ===== */
@media (max-width: 980px){
  .heroSplitSimple{ grid-template-columns:1fr; }
  .heroImageCard{ min-height:220px; padding:10px; }
  .heroImageCard img{ max-height:none; }
  .heroStatsCard{ text-align:center; }
}

@media (max-width: 860px){
  .reviewsLayout{ grid-template-columns:1fr; }
}

@media (max-width: 680px){
  .item{ align-items:flex-start; flex-direction:column; }
  .badges{ width:100%; justify-content:flex-start; }
}

/* ========================= MOBILE INPUT FIXES (no iOS zoom + same heights) ========================= */
@media (max-width: 860px){
  input, select, textarea{ font-size:16px !important; }

  /* Stack fields cleanly and match widths */
  .searchRow{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    width:100%;
    gap:10px;
  }

  .searchRow .input,
  .searchRow select{
    width:100% !important;
    max-width:100% !important;
    flex:0 0 100%;
    height:52px;
    padding:0 14px;
    border-radius:14px;
    min-width:0;
  }

  .searchRow .input{ line-height:52px; }

  .searchRow select{
    line-height:normal;
    padding-right:42px;
    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;
    background-image:
      linear-gradient(45deg, transparent 50%, rgba(255,255,255,.9) 50%),
      linear-gradient(135deg, rgba(255,255,255,.9) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
    background-size:6px 6px, 6px 6px;
    background-repeat:no-repeat;
  }
}
