/* ============================================================
   Nobu Services — Frontend CSS v1.2.0
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500&display=swap');

/* ---- GRID ---- */
.nsrv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  font-family: 'DM Sans', sans-serif;
}
.nsrv-col { display: flex; flex-direction: column; gap: 24px; }
.nsrv-col-right { margin-top: 40px; }

/* ============================================================
   CATEGORY LABEL
   Matches reference: dark pill badge + bold title
   ============================================================ */
.nsrv-cat-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 2px;
}
.nsrv-cat-num {
  /* Dark rounded square badge like in reference */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: #0d0d0d;
  border-radius: 12px;
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.nsrv-cat-name {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0d0d0d;
}

/* ============================================================
   GROUP CARD
   ============================================================ */
.nsrv-group {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: box-shadow 0.35s, transform 0.35s;
}
.nsrv-group:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

/* ============================================================
   BASE ITEM
   ============================================================ */
.nsrv-item {
  border-bottom: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
  position: relative;
}
.nsrv-item:last-child { border-bottom: none; }

/* ============================================================
   FEATURED — left border strip
   ============================================================ */
.nsrv-item.nsrv-featured { background: rgba(124,58,237,0.025); }

.nsrv-feat-strip {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: 0 3px 3px 0;
}

/* Featured badge */
.nsrv-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
  line-height: 1;
}
/* On hero: absolute top-right */
.nsrv-hero .nsrv-badge {
  position: absolute;
  top: 12px; right: 52px;
  z-index: 3;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
}
/* On row items: absolute top-right inside the text block */
.nsrv-badge-row {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 2;
}

/* ============================================================
   HERO ITEM
   ============================================================ */
.nsrv-hero .nsrv-hero-inner {
  display: block; position: relative;
  text-decoration: none; cursor: default;
}
a.nsrv-hero-inner { cursor: pointer; }

.nsrv-hero-img {
  width: 100%; height: 200px; overflow: hidden;
  background: #1a1a2e; position: relative;
}
.nsrv-hero-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s cubic-bezier(0.25,0.8,0.25,1);
}
a.nsrv-hero-inner:hover .nsrv-hero-img img { transform: scale(1.04); }
.nsrv-hero-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(0,0,0,0.78) 100%);
  pointer-events: none;
}
.nsrv-hero-text {
  position: absolute; bottom: 0; left: 0; right: 52px; padding: 16px 20px;
}
.nsrv-hero .nsrv-name {
  font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700;
  color: #fff; line-height: 1.25; margin-bottom: 3px;
}
.nsrv-hero .nsrv-desc { font-size: 12px; color: rgba(255,255,255,0.65); font-weight: 300; line-height: 1.4; }
.nsrv-hero .nsrv-price { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 4px; }
.nsrv-hero .nsrv-arr {
  position: absolute; bottom: 16px; right: 16px;
}
.nsrv-hero .nsrv-arr span {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.15); border: 1.5px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; color: #fff;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
a.nsrv-hero-inner:hover .nsrv-arr span {
  background: #1a3fff; border-color: #1a3fff; transform: translateX(3px);
}

/* ============================================================
   ROW ITEM — IMAGE layout
   ============================================================ */
.nsrv-layout-image .nsrv-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  align-items: center;
  text-decoration: none; cursor: default;
  transition: background 0.18s;
  gap: 0;
  position: relative;
}
a.nsrv-layout-image .nsrv-row,
.nsrv-layout-image a.nsrv-row { cursor: pointer; }
.nsrv-layout-image a.nsrv-row:hover { background: #fafaf9; }
.nsrv-featured.nsrv-layout-image .nsrv-row { padding-left: 4px; }

.nsrv-img {
  width: 88px; height: 74px; overflow: hidden; flex-shrink: 0;
  background: #efefef; position: relative;
}
.nsrv-img.nsrv-no-img { background: linear-gradient(135deg, rgba(26,63,255,0.07), rgba(26,63,255,0.03)); }
.nsrv-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s cubic-bezier(0.25,0.8,0.25,1);
}
a.nsrv-layout-image .nsrv-row:hover .nsrv-img img,
.nsrv-layout-image a.nsrv-row:hover .nsrv-img img { transform: scale(1.08); }
/* Gradient fade image→text */
.nsrv-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 50%, #ffffff 100%);
  pointer-events: none;
}
.nsrv-layout-image a.nsrv-row:hover .nsrv-img::after { background: linear-gradient(90deg, transparent 50%, #fafaf9 100%); }

/* ============================================================
   ROW ITEM — ICON layout (matches reference)
   ============================================================ */
.nsrv-layout-icon .nsrv-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  text-decoration: none; cursor: default;
  padding: 14px 16px;
  gap: 14px;
  transition: background 0.18s;
  position: relative;
}
a.nsrv-layout-icon .nsrv-row,
.nsrv-layout-icon a.nsrv-row { cursor: pointer; }
.nsrv-layout-icon a.nsrv-row:hover { background: #fafaf9; }
.nsrv-featured.nsrv-layout-icon .nsrv-row { padding-left: 20px; }

.nsrv-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.nsrv-layout-icon a.nsrv-row:hover .nsrv-icon-wrap { transform: scale(1.08) rotate(-3deg); }

.nsrv-emoji { font-size: 26px; line-height: 1; display: block; }
.nsrv-icon-wrap svg { width: 26px; height: 26px; }

/* ============================================================
   TEXT (shared)
   ============================================================ */
.nsrv-layout-image .nsrv-text { padding: 12px 14px 12px 14px; min-width: 0; position: relative; }
.nsrv-layout-icon  .nsrv-text { padding: 0; min-width: 0; position: relative; }

.nsrv-name {
  font-family: 'Syne', sans-serif;
  font-size: 14px; font-weight: 700;
  color: #0d0d0d; line-height: 1.3; margin-bottom: 4px;
  transition: color 0.18s;
}
/* When featured: give name right padding so badge doesn't overlap on desktop */
.nsrv-featured .nsrv-layout-image .nsrv-name,
.nsrv-featured .nsrv-layout-icon .nsrv-name { padding-right: 0; }
.nsrv-layout-image a.nsrv-row:hover .nsrv-name,
.nsrv-layout-icon  a.nsrv-row:hover .nsrv-name { color: #1a3fff; }

.nsrv-desc {
  font-size: 12px; color: #777; font-weight: 300; line-height: 1.45;
}
.nsrv-price { font-size: 12px; color: #1a3fff; font-weight: 500; margin-top: 4px; }

/* ============================================================
   ARROW
   ============================================================ */
.nsrv-layout-image .nsrv-arr { padding-right: 16px; flex-shrink: 0; }
.nsrv-layout-icon  .nsrv-arr { flex-shrink: 0; }

.nsrv-arr span {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.1); color: #aaa;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.22s, border-color 0.22s, color 0.22s, transform 0.22s;
  flex-shrink: 0;
}
.nsrv-layout-image a.nsrv-row:hover .nsrv-arr span,
.nsrv-layout-icon  a.nsrv-row:hover .nsrv-arr span {
  background: #1a3fff; border-color: #1a3fff; color: #fff; transform: translateX(2px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .nsrv-grid { grid-template-columns: 1fr; }
  .nsrv-col-right { margin-top: 0; }
}
@media (max-width: 600px) {
  .nsrv-layout-image .nsrv-row { grid-template-columns: 72px 1fr auto; }
  .nsrv-img { width: 72px; height: 62px; }
  .nsrv-hero-img { height: 160px; }
  .nsrv-layout-icon .nsrv-row { padding: 12px 14px; gap: 12px; }
  .nsrv-icon-wrap { width: 46px; height: 46px; border-radius: 12px; }
  .nsrv-emoji { font-size: 22px; }
  .nsrv-cat-num { width: 34px; height: 34px; border-radius: 10px; font-size: 11px; }
  .nsrv-cat-name { font-size: 17px; }
}

/* ============================================================
   FEATURED BADGE — mobile fix
   Badge is absolute inside .nsrv-text.
   Name gets right padding to never overlap with badge.
   ============================================================ */
.nsrv-featured .nsrv-name {
  padding-right: 110px; /* space for badge */
}
/* On very small screens badge wraps to its own line if needed */
@media (max-width: 420px) {
  .nsrv-badge-row {
    font-size: 9px;
    padding: 3px 8px;
  }
  .nsrv-featured .nsrv-name {
    padding-right: 90px;
  }
}
