/* ===========================
   Nasrin Service Detail (Clean)
   =========================== */

/* Palette */
:root{
  /* Brand colors */
  --ns-bg: #AEA69C;
  /* Use true black for UI highlights (requested: remove bright accent, keep it black) */
  --ns-ink: #000000;
  --ns-white: #ffffff;
  --ns-border: rgba(15,23,42,.14);
  --ns-shadow: 0 22px 40px rgba(0,0,0,.06);

  /* Primary accent */
  --ns-brown: #3F2B12;
  --ns-brown-2: #3F2B12;
  --ns-accent: #3F2B12;
  --ns-gold: #3F2B12; /* legacy var */
}

/* Layout */
.nsd{
  background:var(--ns-bg);
}
.nsd-container{
  max-width:1180px;
  margin:0 auto;
  padding:22px 16px;
  box-sizing:border-box;
}

/* ================= HERO ================= */
.nsd-hero{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:18px;
  align-items:stretch;
  margin-bottom:18px;
}
@media(max-width:980px){
  .nsd-hero{grid-template-columns:1fr}
}

.nsd-breadcrumb{
  font-size:12px;
  opacity:.75;
  display:flex;
  gap:8px;
  align-items:center;
  margin-bottom:8px;
}
.nsd-breadcrumb a{
  text-decoration:none;
  color:inherit;
}

.nsd-title{
  margin:0 0 10px;
  font-size:34px;
  letter-spacing:-.02em;
  color:var(--ns-ink);
}
@media(max-width:980px){
  .nsd-title{font-size:28px}
}

.nsd-content{
  line-height:1.7;
  opacity:.95;
  color:var(--ns-ink);
}

.nsd-image{
  border-radius:18px;
  border:1px solid var(--ns-border);
  background-size:cover;
  background-position:center;
  min-height:280px;
  box-shadow:0 22px 40px rgba(0,0,0,.07);
}
.nsd-image--empty{
  background:linear-gradient(135deg,#f1f5f9,#fff);
}

/* ================= GRID ================= */
.nsd-grid{
  display:grid;
  /* Two-column layout (desktop): main content + booking card.
     IMPORTANT: scoped to .nsd-grid only (no global layout changes). */
  grid-template-columns:minmax(0,1fr) minmax(0,420px);
  justify-content:stretch;
  gap:16px;
  align-items:start;
}

/* Single-card layout (service page currently renders only the booking card).
   Center the card itself without impacting other UI components. */
.nsd-grid--single{
  display:flex;
  justify-content:center;
  width:100%;
}

.nsd-grid--single .nsd-book{
  width:100%;
  max-width:920px;
}
@media(max-width:980px){
  .nsd-grid{grid-template-columns:1fr}
  /* Mobile: disable sticky behavior so it doesn't create weird spacing */
  .nsd-book{ position:static; top:auto; }
}

/* ================= BOOKING CARD ================= */
.nsd-book{
  border:1px solid var(--ns-border);
  background:var(--ns-white);
  border-radius:18px;
  box-shadow:var(--ns-shadow);
  overflow:visible;
}

/* Two-column body inside booking card */
.nsf-book-body{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:14px;
  padding:12px 14px 0;
}
@media(max-width:860px){
  .nsf-book-body{ grid-template-columns:1fr; padding:12px 14px 0; }
}

.nsf-cal-col{
  min-width:0;
}

/* Sticky on desktop */
@media(min-width:980px){
  .nsd-book{
    position:sticky;
    top:92px;
  }
}

.nsd-book-head{
  padding:14px 16px;
  background:linear-gradient(180deg,var(--ns-brown),var(--ns-brown-2));
  color:#fff;
  border-top-left-radius:18px;
  border-top-right-radius:18px;
}
.nsd-book-title{
  font-weight:900;
  font-size:16px;
}
.nsd-book-sub{
  font-size:12px;
  opacity:.85;
  margin-top:4px;
}

/* Month nav */
.nsd-month{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:0 0 10px;
}

.nsf-month{
  font-weight:900;
  color:var(--ns-ink);
}

/* Buttons */
.nsf-btn{
  border:1px solid var(--ns-border)!important;
  border-radius:12px;
  padding:8px 10px;
  background:#fff!important;
  color:var(--ns-gold)!important;
  cursor:pointer;
}
.nsf-btn:hover{
  border-color:rgba(63,43,18,.55)!important;
  box-shadow:0 10px 20px rgba(0,0,0,.06);
}

/* ================= CALENDAR ================= */
.nsf-calendar-wrap{
  position:relative;
}

.nsf-cal-lock{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border: none !important;
  background:rgba(255,255,255,.82);
  color:var(--ns-ink);
  font-weight:800;
  font-size:13px;
  border-radius:0;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:14px;
  cursor:pointer;
  transition:opacity .18s ease;
}

.nsf-cal-lock:focus{
  outline:2px solid rgba(63,43,18,.65);
  outline-offset: none !important;
}


/* Force lock overlay to stay BLACK even if theme styles buttons */
.nsf-cal-lock{
  color:#000000 !important;
  border:2px solid #000000 !important;
  box-shadow:none !important;
  text-decoration:none !important;
}
.nsf-cal-lock:hover,
.nsf-cal-lock:active,
.nsf-cal-lock:focus{
  color:#000000 !important;
  border:none !important;
  outline:none !important;
}

/* In case theme applies pink focus rings on the calendar wrapper */
.nsf-calendar-wrap,
.nsf-calendar-wrap *{
  accent-color:#000000;
}
.nsf-calendar{
  padding:0 0 14px!important;
  box-sizing:border-box;
  overflow:visible!important;
  /* Keep the calendar centered inside the booking card regardless of theme layout styles */
  display:flex;
  flex-direction:column;
  align-items:center;
  transition:opacity .18s ease;
}

.nsf-cal-head,
.nsf-cal-grid{
  display:grid!important;
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  gap:8px;
  width:100%;
  max-width:520px;
  margin-left:auto;
  margin-right:auto;
  box-sizing:border-box;
}

.nsf-cal-head{
  padding:0 0 10px!important;
  font-size:12px;
  font-weight:900;
  opacity:.75;
  color:var(--ns-ink);
}

.nsf-cal-cell{
  min-width:0!important;
  width:100%!important;
  box-sizing:border-box!important;
  border:1px solid var(--ns-border)!important;
  border-radius:14px;
  background:#fff!important;
  min-height:54px;
  padding:10px;
  cursor:pointer;
  color:var(--ns-ink)!important;
}

.nsf-cal-empty{
  border:none!important;
  background:transparent!important;
  cursor:default;
}

.nsf-cal-num{
  font-weight:900;
}

.nsf-cal-day:hover{
  border-color:rgba(63,43,18,.55)!important;
  box-shadow:0 18px 30px rgba(0,0,0,.08);
  transform:translateY(-1px);
}

.nsf-cal-day.is-active{
  border-color:var(--ns-ink)!important;
  background:var(--ns-ink)!important;
  color:#fff!important;
}

.nsf-cal-day.is-disabled{
  opacity:.45;
  cursor:not-allowed;
  background:#fff!important;
}

/* ================= TEAM PICKER ================= */
.nsf-team{
  padding:0;
  border-top:0;
  background:#fff;
  display:flex;
  flex-direction:column;
  align-items:stretch;
}
.nsf-team-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:2px 2px 8px;
}
.nsf-team-label{
  display:block;
  font-weight:900;
  font-size:12px;
  margin:0;
  color:var(--ns-ink);
}
.nsf-team-select{
  width:100%;
  border:1px solid var(--ns-border);
  border-radius:14px;
  padding:10px 12px;
  font-weight:800;
  background:#fff;
  color:var(--ns-ink);
  outline:none;
}
.nsf-team-select:focus{
  border-color:rgba(63,43,18,.55);
  box-shadow:0 0 0 3px rgba(63,43,18,.12);
}
.nsf-team-hint{
  font-size:11px;
  font-weight:900;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(63,43,18,.25);
  background:rgba(63,43,18,.06);
  color:var(--ns-brown);
  opacity:1;
  white-space:nowrap;
}

/* Team picker (cards – no dropdown) */
.nsf-team-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:0;
  overflow:visible;
  padding-bottom:0;
  width:100%;
  box-sizing:border-box;
}
.nsf-team-card{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  border:1px solid var(--ns-border)!important;
  background:#fff!important;
  border-radius:14px;
  padding:0;
  cursor:pointer;
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  min-width:0;
  overflow:hidden;
  width:100%;
}
.nsf-team-card:hover{
  border-color:rgba(63,43,18,.45)!important;
  box-shadow:0 14px 26px rgba(0,0,0,.08);
  transform:translateY(-1px);
}
.nsf-team-card.is-active{
  border:4px solid var(--ns-brown)!important;
  box-shadow:0 0 0 3px rgba(63,43,18,.12), 0 14px 26px rgba(0,0,0,.08);
}
.nsf-team-avatar{
  width:100%;
  height:110px;
  border-radius:14px 14px 0 0;
  object-fit:cover;
  /* Keep faces from being cropped from the top */
  object-position:50% 8%;
  border:0;
  display:block;
  background:linear-gradient(180deg, rgba(63,43,18,.12), rgba(63,43,18,.06));
}
.nsf-team-avatar[data-empty="1"]{
  opacity:.9;
}
.nsf-team-name{
  font-weight:900;
  font-size:13px;
  color:var(--ns-ink);
  padding:10px 12px;
  text-align:center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

@media(max-width:520px){
  .nsf-team-list{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .nsf-team-avatar{ height:104px; }
}

/* ================= SLOTS ================= */
.nsd-slots{
  padding:14px 16px;
  border-top:1px solid var(--ns-border);
  background:#fff;
  border-bottom-left-radius:18px;
  border-bottom-right-radius:18px;
}

.nsf-result-title{
  font-weight:900;
  margin-bottom:8px;
  color:var(--ns-ink);
}

.nsf-slots{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:10px 0;
}

.nsf-slot{
  border:1px solid var(--ns-border)!important;
  border-radius:999px;
  padding:8px 10px;
  background:#fff!important;
  cursor:pointer;
  font-weight:900;
  font-size:12px;
  color:var(--ns-ink)!important;
}
.nsf-slot:hover{
  border-color:rgba(63,43,18,.55)!important;
}
.nsf-slot.is-active{
  border-color:var(--ns-ink)!important;
  background:var(--ns-ink)!important;
  color:#fff!important;
}

/* Visible-but-disabled past time slots */
.nsf-slot.is-disabled{
  opacity:.45;
  cursor:not-allowed;
}

.nsf-msg{
  font-size:12px;
  opacity:.85;
  margin-top:6px;
  color:var(--ns-ink);
}

/* Primary button */
.nsf-book-btn{
  width:100%;
  margin-top:10px;
  border:none!important;
  border-radius:14px;
  padding:12px 14px;
  background:linear-gradient(180deg,var(--ns-brown),var(--ns-brown-2))!important;
  color:#fff!important;
  font-weight:900;
  cursor:pointer;
}
.nsf-book-btn:disabled{
  opacity:.5;
  cursor:not-allowed;
}

/* ================= MODAL ================= */
.nsf-modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:999999 !important;
}
.nsf-modal.is-open{display:block}

.nsf-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(2,6,23,.55);
}

.nsf-modal-card{
  position:relative;
  width:min(640px,calc(100% - 24px));
  margin:55px auto;
  background:#fff;
  border-radius:18px;
  overflow:hidden;
}

.nsf-modal-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 16px;
  background:linear-gradient(180deg,var(--ns-brown),var(--ns-brown-2));
  color:#fff;
}

.nsf-modal-title{font-weight:900}
.nsf-modal-sub{
  font-size:12px;
  opacity:.85;
  margin-top:4px;
}

.nsf-modal-body{padding:16px}

.nsf-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
@media(max-width:620px){
  .nsf-row{grid-template-columns:1fr}
}

.nsf-col label{
  display:block;
  font-weight:900;
  font-size:12px;
  margin-bottom:6px;
  color:var(--ns-ink);
}

.nsf-inp{
  width:100%;
  border:1px solid var(--ns-border);
  border-radius:12px;
  padding:10px 12px;
  box-sizing:border-box;
}

.nsf-hp{
  position:absolute;
  left:-9999px;
  opacity:0;
}

.nsf-submit{
  width:100%;
  margin-top:12px;
  border:none!important;
  border-radius:14px;
  padding:12px 14px;
  background:linear-gradient(180deg,var(--ns-brown),var(--ns-brown-2))!important;
  color:#fff!important;
  font-weight:900;
  cursor:pointer;
}

.nsf-submit-msg{
  margin-top:10px;
  font-weight:900;
  color:var(--ns-ink);
}

.nsf-submit-msg.is-success,
.nsf-msg.is-success{
  margin-top:12px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(34,197,94,.25);
  background:rgba(34,197,94,.10);
  color:#0f5132;
}
.nsf-submit-msg.is-error,
.nsf-msg.is-error{
  margin-top:12px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(239,68,68,.25);
  background:rgba(239,68,68,.10);
  color:#7f1d1d;
}


/* Focus ring */
.nsf-cal-day:focus,
.nsf-slot:focus,
.nsf-btn:focus,
.nsf-book-btn:focus,
.nsf-submit:focus{
  outline:none!important;
  box-shadow:0 0 0 3px rgba(63,43,18,.25)!important;
}

/* ===========================
   NS Services Grid (Premium)
   =========================== */

.nsf-wrap{
  /* Hard safety so themes/flex parents can't squeeze this section */
  width:100%!important;
  max-width:1180px;
  margin:0 auto;
  padding:22px 16px;
  box-sizing:border-box;
  display:block;
  flex:1 1 auto;
  min-width:0;
  overflow-x:hidden;
}

/* Brand skin (black/gold) */
.nsf-wrap{
  background:transparent;
}

.nsf-cat{margin:28px 0 0;}
.nsf-cat:first-child{margin-top:0;}

.nsf-cat-title{
  margin:0 0 12px;
  font-size:28px;
  letter-spacing:-.02em;
  color:#fff;
}
@media(max-width:640px){
  .nsf-cat-title{font-size:24px}
}

.nsf-cat-desc{
  margin-top:6px;
  color:rgba(255,255,255,.72);
}

/* Service cards (reference layout) */
.nsf-svc-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  width:100%!important;
  max-width:100%!important;
  margin:0 auto;
  box-sizing:border-box;
}
@media(max-width:900px){
  .nsf-svc-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }
}

/* Hard clamp for mobile/tablet: make each service a centered "box" and never overflow */
@media(max-width:900px){
  .nsf-svc-card{
    max-width:100%!important;
    margin:0!important;
  }
}

.nsf-svc-card{
  border:1px solid rgba(255,255,255,.10);
  background: var(--ns-gold) ;
  border-radius:14px;
  padding:18px 18px 14px;
  box-shadow:0 22px 40px rgba(0,0,0,.35);
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box;
  min-width:0;
  overflow:hidden;
}

.nsf-svc-title{
  display:block;
  text-decoration:none;
  color:#fff;
  font-weight:800;
  font-size:14px;
  line-height:1.3;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.nsf-svc-title:hover{
  color:var(--ns-gold);
}

.nsf-svc-desc{
  margin-top:10px;
  color:rgba(255,255,255,.72);
  font-size:13px;
  line-height:1.55;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.nsf-svc-foot{
  margin-top:16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  min-width:0;
}

.nsf-svc-book{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-weight:900;
  font-size:12px;
  color:#fff;
  padding:10px 12px;
  border-radius:14px;
  background:linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.08));
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 12px 22px rgba(0,0,0,.14);
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.nsf-svc-book:hover{
  transform:translateY(-1px);
  filter:brightness(1.05);
  box-shadow:0 18px 30px rgba(0,0,0,.18);
  text-decoration:none;
  color:#fff;
}

.nsf-svc-right{
  display:flex;
  align-items:center;
  gap:10px;
  color:rgba(255,255,255,.85);
  font-size:13px;
  /* Prevent right side (price/time) from overflowing outside the card */
  margin-left:auto;
  max-width:100%;
  flex:1 1 auto;
  justify-content:flex-end;
  white-space:normal;
  min-width:0;
}

/* Ensure price/time never escapes the card even on extreme widths */
.nsf-svc-right > *{
  min-width:0;
  max-width:100%;
  overflow-wrap:anywhere;
  word-break:break-word;
}

@media(max-width:520px){
  .nsf-svc-right{
    flex-wrap:wrap;
    row-gap:6px;
  }
}

/* Mobile fixes: prevent overflow and make the service rows breathe */
@media(max-width:520px){
  .nsf-wrap{ padding:16px 10px; }
  .nsf-svc-foot{ flex-direction:row; align-items:center; }
  .nsf-svc-right{ width:auto; flex:0 0 auto; justify-content:flex-end; }
}

/* Extra hard mobile safety: ensure cards never exceed viewport width even inside odd theme containers */
@media(max-width:640px){
  .nsf-wrap{ max-width:100%!important; }
  .nsf-svc-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px;
  }
  .nsf-svc-card{
    border-radius:16px;
    padding:12px 12px 10px;
  }
  .nsf-svc-title{ font-size:12px; }
  .nsf-svc-desc{
    font-size:11px;
    line-height:1.4;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }
  .nsf-svc-foot{ margin-top:10px; gap:8px; }
  .nsf-svc-book{ padding:8px 10px; border-radius:12px; }
  .nsf-svc-right{ font-size:12px; gap:8px; }
}

.nsf-svc-price{
  color:#fff;
  font-weight:900;
}

.nsf-svc-time{
  color:rgba(255,255,255,.75);
}

/* Page background helpers */
body .nsf-wrap,
body .nse-wrap,
body .nst{
  color:#fff;
}

.nsf-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
@media(max-width:980px){
  .nsf-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  .nsf-grid{grid-template-columns:1fr}
}

.nsf-card{
  border:1px solid rgba(15,23,42,.14);
  background:rgba(255,255,255,.88);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 18px 34px rgba(0,0,0,.05);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  backdrop-filter: blur(6px);
}

.nsf-card:hover{
  transform:translateY(-3px);
  box-shadow:0 26px 50px rgba(0,0,0,.10);
  border-color:rgba(63,43,18,.45);
}

.nsf-media{
  display:block;
  position:relative;
  text-decoration:none;
}

.nsf-thumb{
  height:220px;
  background-size:cover;
  background-position:center;
  transform:scale(1);
  transition:transform .35s ease;
}
@media(max-width:640px){
  .nsf-thumb{height:210px}
}

.nsf-card:hover .nsf-thumb{
  transform:scale(1.04);
}

.nsf-thumb--empty{
  background:linear-gradient(135deg,#f1f5f9,#fff);
}

.nsf-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.02) 0%, rgba(0,0,0,.55) 100%),
    radial-gradient(circle at 18% 18%, rgba(63,43,18,.18), transparent 55%);
  pointer-events:none;
}

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

.nsf-title{
  margin:0;
  font-size:15px;
  font-weight:900;
  letter-spacing:-.01em;
  color:#0b1220;
  line-height:1.2;
}

.nsf-btn-book{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  white-space:nowrap;
  padding:10px 12px;
  border-radius:14px;
  text-decoration:none;
  background:linear-gradient(180deg,#4b3312,#2f1e08);
  color:#fff;
  font-weight:900;
  font-size:12px;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 12px 22px rgba(0,0,0,.12);
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.nsf-btn-book:hover{
  transform:translateY(-1px);
  filter:brightness(1.03);
  box-shadow:0 18px 30px rgba(0,0,0,.18);
}

/* ======================================================
   MODAL ALWAYS ON TOP (fix footer/navbar/google maps)
   ====================================================== */

.nsf-modal{
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important; /* top-most */
  isolation: isolate !important;  /* new stacking context */
}

.nsf-modal-backdrop{
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
}

.nsf-modal-card{
  position: relative !important;
  z-index: 1 !important;
}

/* ===========================
   Employees / Team
   =========================== */

.nse-wrap{
  max-width:1180px;
  margin:0 auto;
  padding:22px 16px;
  box-sizing:border-box;
}

.nse-grid{
  display:grid;
  gap:16px;
}

.nse-cols-1{grid-template-columns:1fr;}
.nse-cols-2{grid-template-columns:repeat(2,minmax(0,1fr));}
.nse-cols-3{grid-template-columns:repeat(3,minmax(0,1fr));}
.nse-cols-4{grid-template-columns:repeat(4,minmax(0,1fr));}
@media(max-width:980px){
  .nse-cols-4{grid-template-columns:repeat(3,minmax(0,1fr));}
  .nse-cols-3{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:640px){
  .nse-grid{grid-template-columns:1fr !important;}
}

.nse-card{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(10,10,14,.72);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 22px 40px rgba(0,0,0,.35);
}

.nse-top{
  display:block;
  text-decoration:none;
}

.nse-photo{
  width:100%;
  height:220px;
  object-fit:cover;
  display:block;
}
.nse-photo--empty{
  width:100%;
  height:220px;
  background:radial-gradient(circle at 30% 20%, rgba(63,43,18,.18), transparent 58%),
             linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
}

.nse-name{
  padding:14px 14px 12px;
  color:#fff;
  font-weight:900;
  font-size:15px;
}

.nse-actions{
  padding:0 14px 16px;
  display:flex;
  gap:10px;
}

.nse-btn{
  flex:1;
  text-align:center;
  text-decoration:none;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
  font-weight:900;
  font-size:12px;
}

.nse-btn--primary{
  background:linear-gradient(180deg, rgba(63,43,18,.18), rgba(63,43,18,.08));
  color:var(--ns-gold);
}

.nse-btn:hover{
  border-color:rgba(63,43,18,.35);
}

/* Team single */
.nst{
  width:100%;
}
.nst-container{
  max-width:1180px;
  margin:0 auto;
  padding:24px 16px;
  box-sizing:border-box;
}

.nst-head{
  display:grid;
  grid-template-columns:180px 1fr;
  gap:18px;
  align-items:start;
  margin-bottom:18px;
}
@media(max-width:740px){
  .nst-head{grid-template-columns:1fr;}
}

.nst-avatar img,
.nst-avatar-empty{
  width:180px;
  height:180px;
  border-radius:22px;
  object-fit:cover;
  display:block;
  border:1px solid rgba(255,255,255,.10);
}
.nst-avatar-empty{
  background:radial-gradient(circle at 30% 20%, rgba(63,43,18,.18), transparent 58%),
             linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
}

.nst-kicker{
  font-size:11px;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:rgba(255,255,255,.6);
}
.nst-title{
  margin:8px 0 0;
  color:#fff;
  font-size:34px;
  letter-spacing:-.02em;
}
@media(max-width:640px){
  .nst-title{font-size:28px;}
}

.nst-bio{
  margin-top:10px;
  color:rgba(255,255,255,.75);
  line-height:1.7;
}

.nst-actions{
  margin-top:14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.nst-btn{
  text-decoration:none;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
  font-weight:900;
  font-size:12px;
}
.nst-btn--primary{
  background:linear-gradient(180deg, rgba(63,43,18,.18), rgba(63,43,18,.08));
  color:var(--ns-gold);
}

.nst-empty{
  margin-top:14px;
  padding:16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(10,10,14,.55);
  color:rgba(255,255,255,.75);
}

/* Keep sticky headers under modal */
.elementor-sticky,
.elementor-location-header,
header, .site-header{
  z-index: 9999 !important;
}

/* If maps/iframes create overlay layers, keep them below */
iframe[src*="google.com/maps"],
iframe[src*="googleusercontent.com/maps"]{
  position: relative !important;
  z-index: 0 !important;
}

/* Prevent embedded media inside modal from interfering */
.nsf-modal iframe,
.nsf-modal object,
.nsf-modal embed{
  display:none !important;
}


/* Modal must always be top */
.nsf-modal { position: fixed; inset: 0; z-index: 9999999; display: none; }
.nsf-modal[aria-hidden="false"] { display: block; }

/* Lock scroll when modal open */
body.nsf-modal-open { overflow: hidden !important; }

/* Ensure modal backdrop covers everything */
.nsf-modal-backdrop { position:absolute; inset:0; background: rgba(2,6,23,.65); }


/* =========================
   NS Services Grid (Premium)
   Matches the screenshot style
   ========================= */

/* Wrapper */
.nsf-wrap{
  /* Keep same behavior as the primary .nsf-wrap definition above */
  width:100%!important;
  max-width:1180px;
  margin:0 auto;
  padding:22px 16px;
  box-sizing:border-box;
  display:block;
  flex:1 1 auto;
  min-width:0;
  overflow-x:hidden;
}

/* Grid */
.nsf-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 1100px){
  .nsf-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .nsf-grid{ grid-template-columns: 1fr; }
}

/* Card */
.nsf-card{
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;

  border-radius: 14px;
  overflow: hidden;

  /* deep brown premium */
  background: linear-gradient(180deg, #5a4425 0%, #3b2a14 100%);
  border: 1px solid rgba(255,255,255,.14);

  padding: 18px 18px 16px;

  box-shadow: 0 18px 35px rgba(0,0,0,.30);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  min-height: 240px;
}

.nsf-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 26px 55px rgba(0,0,0,.38);
  border-color: rgba(255,255,255,.22);
}

/* Thumbnail (photo) */
.nsf-thumb{
  height: 120px;               /* adjust if you want taller image */
  border-radius: 12px;
  margin-bottom: 14px;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10);
}

.nsf-thumb--empty{
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(0,0,0,.12));
}

/* Body */
.nsf-body{
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

/* Title (uppercase, premium serif like screenshot) */
.nsf-title{
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  line-height: 1.2;
  font-size: 18px;

  /* use your theme font if you want,
     but this serif stack gives the same vibe */
  font-family: Georgia, "Times New Roman", Times, serif;
}

/* Excerpt */
.nsf-excerpt{
  color: rgba(255,255,255,.92);
  font-size: 14px;
  line-height: 1.7;

  /* pushes button to bottom like screenshot */
  flex: 1;
}

/* CTA styled like button */
.nsf-cta{
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  width: fit-content;
  padding: 12px 16px;

  border-radius: 10px;
  background: #3b2a14;
  border: 1px solid rgba(255,255,255,.14);

  color: #fff;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 12px;

  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}

.nsf-card:hover .nsf-cta{
  background: #2f220f;
  border-color: rgba(255,255,255,.22);
  transform: translateY(-1px);
}

/* Accessibility */
.nsf-card:focus,
.nsf-card:focus-visible{
  outline: none;
}
.nsf-card:focus-visible{
  box-shadow: 0 0 0 3px rgba(255,255,255,.18), 0 26px 55px rgba(0,0,0,.38);
}



/* ===========================
   Services Shortcode: Categories
   =========================== */
.nsf-cat{
  margin: 18px 0 26px;
  padding: 14px;
  background: rgba(255,255,255,.55);
  border: 1px solid var(--ns-border);
  border-radius: 18px;
  box-shadow: var(--ns-shadow);
}
.nsf-cat-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 12px;
}
.nsf-cat-title{
  margin:0;
  font-size: 16px;
  font-weight: 900;
  letter-spacing:.2px;
  color: var(--ns-brown-2);
}
.nsf-cat-desc{
  font-size: 12px;
  color: rgba(11,18,32,.72);
  max-width: 420px;
  text-align:right;
}
@media (max-width: 720px){
  .nsf-cat-head{ align-items:flex-start; flex-direction:column; }
  .nsf-cat-desc{ text-align:left; max-width: 100%; }
}


/* ===========================
   FINAL OVERRIDES (Black & Gold)
   =========================== */

/* Services categories section */
.nsf-wrap{
  background: #AEA69C;
  border-radius:20px;
  padding: 25px !important;
  width: 1400px;
}

.nsf-cat{
  margin:28px 0 0 !important;
  padding:0 !important;
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
}
.nsf-cat-head{
  margin-bottom:12px !important;
}
.nsf-cat-title{
  color:#fff !important;
  font-size:28px !important;
  font-weight:900 !important;
}

/* Employees grid */
.nse-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
@media(max-width:980px){
  .nse-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:640px){
  .nse-grid{grid-template-columns:1fr;}
}

.nse-card{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(10,10,14,.72);
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 22px 40px rgba(0,0,0,.35);
}

.nse-top{
  display:block;
  text-decoration:none;
  color:#fff;
}

.nse-photo{
  width:100%;
  height:240px;
  object-fit:cover;
  display:block;
}
@media(max-width:640px){
  .nse-photo{height:210px;}
}

.nse-photo--empty{
  height:240px;
  background:radial-gradient(circle at 30% 20%, rgba(63,43,18,.22), transparent 55%),
             linear-gradient(135deg, rgba(255,255,255,.08), rgba(0,0,0,.12));
}

.nse-name{
  padding:14px 14px 0;
  font-size:16px;
  font-weight:900;
}

.nse-actions{
  padding:14px;
  display:flex;
  gap:10px;
}

.nse-btn{
  flex:1;
  text-align:center;
  text-decoration:none;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
  font-weight:800;
  font-size:12px;
  background:rgba(255,255,255,.06);
}

.nse-btn--primary{
  background:linear-gradient(180deg,#4b3312,#2f1e08);
  border-color:rgba(255,255,255,.14);
  color:#fff;
}

.nse-btn:hover{
  border-color:rgba(63,43,18,.45);
}

/* Team single header */
.nst{
  padding:22px 0;
}
.nst-container{
  max-width:1180px;
  margin:0 auto;
  padding:0 16px;
  box-sizing:border-box;
}
.nst-head{
  display:grid;
  grid-template-columns:160px 1fr;
  gap:18px;
  align-items:start;
  margin-bottom:18px;
}
@media(max-width:740px){
  .nst-head{grid-template-columns:1fr;}
}

.nst-avatar img,
.nst-avatar-empty{
  width:160px;
  height:160px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  overflow:hidden;
  display:block;
  object-fit:cover;
}

.nst-avatar-empty{
  background:radial-gradient(circle at 30% 20%, rgba(63,43,18,.22), transparent 55%),
             linear-gradient(135deg, rgba(255,255,255,.08), rgba(0,0,0,.12));
}

.nst-kicker{
  font-size:11px;
  letter-spacing:.26em;
  text-transform:uppercase;
  color:rgba(255,255,255,.72);
}

.nst-title{
  margin:6px 0 8px;
  font-size:34px;
  letter-spacing:-.02em;
  color:#fff;
}
@media(max-width:640px){
  .nst-title{font-size:28px;}
}

.nst-bio{
  color:rgba(255,255,255,.78);
  line-height:1.7;
}

.nst-actions{
  margin-top:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.nst-btn{
  text-decoration:none;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:#fff;
  font-weight:800;
  font-size:12px;
}

.nst-btn--primary{
  background:linear-gradient(180deg,#4b3312,#2f1e08);
}

/* Success popup */
.nsf-success-pop{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.55);
  z-index:999999;
  padding:18px;
  animation:nsfFadeIn .18s ease-out both;
}

.nsf-success-card{
  width:min(420px, 100%);
  background:#ffffff;
  border-radius:18px;
  box-shadow:0 18px 60px rgba(0,0,0,.25);
  padding:18px 18px 16px;
  text-align:center;
  transform:translateY(8px) scale(.98);
  animation:nsfPopIn .22s ease-out both;
}

.nsf-success-icon{
  width:84px;
  height:84px;
  margin:6px auto 8px;
}

.nsf-success-icon svg{
  width:100%;
  height:100%;
}

.nsf-success-circle{
  stroke:#22c55e;
  stroke-width:3.5;
  stroke-dasharray:160;
  stroke-dashoffset:160;
  animation:nsfStroke .55s ease-out .05s forwards;
}

.nsf-success-check{
  stroke:#22c55e;
  stroke-width:4.2;
  stroke-linecap:round;
  stroke-linejoin:round;
  stroke-dasharray:60;
  stroke-dashoffset:60;
  animation:nsfStroke .35s ease-out .52s forwards;
}

.nsf-success-title{
  font-weight:900;
  font-size:18px;
  color:#0f172a;
  margin-top:2px;
}

.nsf-success-text{
  margin-top:6px;
  color:#334155;
  font-size:14px;
  line-height:1.45;
}

@keyframes nsfFadeIn{
  from{opacity:0;}
  to{opacity:1;}
}

@keyframes nsfPopIn{
  from{opacity:0; transform:translateY(12px) scale(.96);}
  to{opacity:1; transform:translateY(0) scale(1);}
}

@keyframes nsfStroke{
  to{stroke-dashoffset:0;}
}
