/* ==========================================================
   AGENCY PUBLIC β MASSAGE AGENCY
   FINAL FULL-WIDTH + SIDEBAR ALIGNMENT FIX
========================================================== */

/* ----------------------------------------------------------
   GLOBAL SAFETY
---------------------------------------------------------- */
body.single-massage_agency {
  background: #020617;
  overflow-x: hidden;
}

/* ----------------------------------------------------------
   DESIGN TOKENS
---------------------------------------------------------- */
:root {
  --bg: #020617;
  --surface: #0a0f1c;
  --surface-soft: rgba(255,255,255,0.05);

  --text: #f9fafb;
  --muted: #9ca3af;

  --accent: #e11d48;
  --gold: #facc15;
  --green: #22c55e;
  --red: #ef4444;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;

  --shadow-soft: 0 20px 55px rgba(0,0,0,0.45);
}

/* ----------------------------------------------------------
   BASE
---------------------------------------------------------- */
.single-profile.agency-public {
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
}

.single-profile.agency-public a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================
   MASTER PAGE GRID (THIS FIXES EVERYTHING)
========================================================== */
/* ==========================================================
   MASTER PAGE GRID β HEADER ALIGNED (LEFT + RIGHT)
========================================================== */

.content-grid {
  width: 100%;
  max-width: none; /* π₯ remove centering limit */

  /* MATCH HEADER SIDE PADDING */
  padding-left: 4%;
  padding-right: 4%;
  padding-top: 20px;
  padding-bottom: 40px;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 25px;
  align-items: start;
}


/* Kill any inner width constraints */
.sp-inner,
.sp-details,
.single-profile {
  max-width: none !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}


/* MAIN CONTENT */
.single-profile.agency-public {
  min-width: 0;
}

/* SIDEBAR */
.main-right {
  width: 380px;
  position: sticky;
  top: 40px;
  align-self: start;
}


/* Tablet + Mobile */
@media (max-width: 1100px) {
  .content-grid {
    grid-template-columns: 1fr;
    padding: 28px 20px 60px;
  }

  .main-right {
    width: 100%;
    position: static;
  }
}

/* ==========================================================
   TITLE BAR
========================================================== */
.sp-title-bar {
  background: linear-gradient(180deg, #0a0f1c, transparent);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sp-title-bar .sp-inner {
  padding: 28px 0;
}

.sp-main-title {
  font-size: 2.1rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--gold), #ffe7b0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sp-subline {
  margin-top: 6px;
  color: var(--muted);
}

/* ==========================================================
   CARDS
========================================================== */
.sp-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: var(--shadow-soft);
  padding: 22px;
}

/* ==========================================================
   HERO GRID
========================================================== */
.agency-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 1024px) {
  .agency-top-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   HERO MEDIA
========================================================== */
.agency-hero-media {
  height: 320px;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  position: relative;
  margin-bottom: 18px;
}

.agency-logo-overlay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  max-height: 70px;
  background: #000;
  padding: 6px 10px;
  border-radius: 12px;
}

.agency-badge-top {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, var(--gold), #caa83d);
  color: #000;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
}

/* ==========================================================
   META LIST
========================================================== */
.agency-meta-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
}

.agency-meta-list dt {
  font-size: 13px;
  color: var(--muted);
}

.agency-meta-list dd {
  font-weight: 600;
}

/* ==========================================================
   INFO COLUMNS
========================================================== */
.agency-info-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
}

.reg-section-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 18px;
}

/* ==========================================================
   THERAPISTS GRID
========================================================== */
.agency-therapists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 26px;
}

.therapist-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform .25s ease, box-shadow .25s ease;
}

.therapist-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}

.therapist-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.therapist-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Availability badge */
.availability-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
}

.availability-badge.available {
  background: var(--green);
  color: #022c22;
}

.availability-badge.unavailable {
  background: var(--red);
  color: #fff;
}

/* ==========================================================
   FLOATING WHATSAPP
========================================================== */
.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
  z-index: 999;
}

.agency-therapists-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:24px;
}

.therapist-card{
  background:#0f172a;
  border-radius:16px;
  overflow:hidden;
}

.therapist-card.is-featured{
  outline:2px solid var(--gold);
}

.therapist-photo{
  position:relative;
}

.therapist-photo img{
  width:100%;
  aspect-ratio:3/4;
  object-fit:cover;
}

.availability-badge{
  position:absolute;
  bottom:10px;
  left:10px;
  font-size:12px;
  padding:4px 8px;
  border-radius:999px;
}

.availability-badge.available{
  background:#16a34a;
  color:#fff;
}

.availability-badge.unavailable{
  background:#374151;
  color:#e5e7eb;
}

.therapist-body{
  padding:14px;
}

/* ================================
   THERAPIST TILE GRID
================================ */
.therapist-tiles-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:26px;
}

/* ================================
   TILE
================================ */
.therapist-tile{
  background:linear-gradient(180deg,#0f172a,#0b1220);
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 20px 45px rgba(0,0,0,.45);
  transition:transform .25s ease, box-shadow .25s ease;
}

.therapist-tile:hover{
  transform:translateY(-4px);
  box-shadow:0 26px 60px rgba(0,0,0,.6);
}

.therapist-tile-link{
  display:block;
  text-decoration:none;
  color:inherit;
}

/* ================================
   IMAGE
================================ */
.therapist-image-wrap{
  position:relative;
  aspect-ratio:3/4;
  overflow:hidden;
}

.therapist-image-wrap img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* availability badge (subtle) */
.tile-availability{
  position:absolute;
  bottom:12px;
  left:12px;
  font-size:12px;
  padding:5px 10px;
  border-radius:999px;
  background:rgba(22,163,74,.9);
  color:#fff;
}

/* ================================
   BODY
================================ */
.therapist-tile-body{
  padding:18px 16px 20px;
  text-align:center;
}

.therapist-name{
  font-size:16px;
  font-weight:700;
  letter-spacing:.08em;
  margin-bottom:12px;
  text-transform:uppercase;
}

/* ================================
   SERVICE PILLS
================================ */
.therapist-services-pills{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
}

.service-pill{
  font-size:12px;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid rgba(242,201,76,.6);
  color:#f2c94c;
  background:rgba(242,201,76,.08);
  white-space:nowrap;
}

/* ================================
   FEATURED
================================ */
.therapist-tile.is-featured{
  outline:2px solid rgba(242,201,76,.7);
}


/* ============================================================
   HARD RESET  THERAPIST CARD & PILLS
   (kills all old conflicting styles)
============================================================ */

.therapist-tiles-grid *,
.therapist-tile *,
.therapist-services-stack *,
.service-row *,
.service-pill{
  box-sizing:border-box;
  float:none !important;
  position:static !important;
  transform:none !important;
}

/* ============================================================
   THERAPIST GRID
============================================================ */

.therapist-tiles-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:32px;
  align-items:stretch;
}

/* ============================================================
   CARD
============================================================ */

.therapist-tile{
  background:linear-gradient(180deg,#0f172a,#0b1220);
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 18px 42px rgba(0,0,0,.45);
}

.therapist-tile.is-featured{
  outline:2px solid rgba(242,201,76,.6);
}

.therapist-tile-link{
  display:block;
  text-decoration:none;
  color:inherit;
}

/* ============================================================
   IMAGE
============================================================ */

.therapist-image-wrap{
  position:relative;
  width:100%;
  aspect-ratio:3/4;
  overflow:hidden;
}

.therapist-image-wrap img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.tile-availability{
  position:absolute;
  left:12px;
  bottom:12px;
  padding:5px 10px;
  font-size:12px;
  border-radius:999px;
  background:rgba(22,163,74,.92);
  color:#fff;
}

/* ============================================================
   BODY
============================================================ */

.therapist-tile-body{
  padding:18px 16px 22px;
  text-align:center;
}

.therapist-name{
  margin:0 0 14px;
  font-size:16px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}

/* ============================================================
   SERVICES  EXACT REPLICA (NO OVERLAP GUARANTEED)
============================================================ */

.therapist-services-stack{
  display:flex !important;
  flex-direction:column;
  align-items:center;
  gap:10px;
  width:100%;
}

/* each row */
.service-row{
  display:flex !important;
  justify-content:center;
  align-items:center;
  gap:10px;
  width:100%;
}

/* FIRST ROW: 2 pills max */
.service-row:first-child .service-pill{
  max-width:45%;
}

/* SECOND ROW: single pill */
.service-row:nth-child(2) .service-pill{
  max-width:70%;
}

/* pill itself */
.service-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  width:auto;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;

  padding:6px 14px;
  font-size:12px;
  line-height:1.1;

  border-radius:999px;
  border:1px solid rgba(242,201,76,.6);
  color:#f2c94c;
  background:rgba(242,201,76,.08);
}

/* ============================================================
   MOBILE SAFETY
============================================================ */

@media (max-width: 480px){
  .service-row:first-child .service-pill{
    max-width:42%;
  }

  .service-row:nth-child(2) .service-pill{
    max-width:85%;
  }
}

/* ============================================================
   SECTION BREATHING  AGENCY PAGE
   (targeted, no layout side effects)
============================================================ */

/* space BEFORE each major section */
.agency-services-card,
.agency-coverage-card,
.agency-rates-card,
.agency-therapists-card,
.agency-contact-card{
  margin-top:64px;
}

/* space AFTER section headings */
.agency-services-card .reg-section-title,
.agency-coverage-card .reg-section-title,
.agency-rates-card .reg-section-title,
.agency-therapists-card .reg-section-title,
.agency-contact-card .reg-section-title{
  margin-bottom:28px;
}

/* soften inner spacing so cards dont feel cramped */
.agency-services-card,
.agency-coverage-card,
.agency-rates-card,
.agency-therapists-card,
.agency-contact-card{
  padding-top:36px;
  padding-bottom:40px;
}

/* mobile tuning */
@media (max-width: 768px){
  .agency-services-card,
  .agency-coverage-card,
  .agency-rates-card,
  .agency-therapists-card,
  .agency-contact-card{
    margin-top:40px;
    padding-top:26px;
    padding-bottom:30px;
  }

  .agency-services-card .reg-section-title,
  .agency-coverage-card .reg-section-title,
  .agency-rates-card .reg-section-title,
  .agency-therapists-card .reg-section-title,
  .agency-contact-card .reg-section-title{
    margin-bottom:20px;
  }
}
/* =========================================
   SUBTLE SECTION DIVIDER
========================================= */

.agency-services-card,
.agency-coverage-card,
.agency-rates-card,
.agency-therapists-card,
.agency-contact-card{
  position:relative;
}

/* divider line */
.agency-services-card::before,
.agency-coverage-card::before,
.agency-rates-card::before,
.agency-therapists-card::before,
.agency-contact-card::before{
  content:'';
  position:absolute;
  top:-32px;
  left:50%;
  transform:translateX(-50%);
  width:70%;
  height:1px;
  background:rgba(255,255,255,.08);
}

/* =========================================
   GRADIENT FADE SEPARATOR (LUXURY)
========================================= */

.agency-services-card::after,
.agency-coverage-card::after,
.agency-rates-card::after,
.agency-therapists-card::after,
.agency-contact-card::after{
  content:'';
  position:absolute;
  top:-34px;
  left:50%;
  transform:translateX(-50%);
  width:50%;
  height:1px;
  background:linear-gradient(
    90deg,
    transparent,
    rgba(242,201,76,.35),
    transparent
  );
}

/* =========================================
   SCROLL REVEAL  BASE STATE
========================================= */

.reveal-section{
  opacity:0;
  transform:translateY(40px);
  transition:
    opacity .9s ease,
    transform .9s cubic-bezier(.22,.61,.36,1);
}

.reveal-section.is-visible{
  opacity:1;
  transform:translateY(0);
}
/* ============================================================
   REDUCED SECTION SPACING  AGENCY PAGE
============================================================ */

/* bring sections closer together */
.agency-services-card,
.agency-coverage-card,
.agency-rates-card,
.agency-therapists-card,
.agency-contact-card{
  margin-top:40px;        /* was ~64px */
  padding-top:28px;      /* was ~36px */
  padding-bottom:32px;   /* was ~40px */
}

/* tighten heading spacing */
.agency-services-card .reg-section-title,
.agency-coverage-card .reg-section-title,
.agency-rates-card .reg-section-title,
.agency-therapists-card .reg-section-title,
.agency-contact-card .reg-section-title{
  margin-bottom:20px;    /* was ~28px */
}

/* reduce divider offset */
.agency-services-card::before,
.agency-coverage-card::before,
.agency-rates-card::before,
.agency-therapists-card::before,
.agency-contact-card::before{
  top:-22px;             /* was -32px */
}

.agency-services-card::after,
.agency-coverage-card::after,
.agency-rates-card::after,
.agency-therapists-card::after,
.agency-contact-card::after{
  top:-24px;             /* was -34px */
}

/* mobile fine-tune */
@media (max-width: 768px){
  .agency-services-card,
  .agency-coverage-card,
  .agency-rates-card,
  .agency-therapists-card,
  .agency-contact-card{
    margin-top:28px;
    padding-top:22px;
    padding-bottom:26px;
  }

  .agency-services-card .reg-section-title,
  .agency-coverage-card .reg-section-title,
  .agency-rates-card .reg-section-title,
  .agency-therapists-card .reg-section-title,
  .agency-contact-card .reg-section-title{
    margin-bottom:16px;
  }
}
/* ============================================================
   TITLE BAR  CENTER ALIGN
============================================================ */

.sp-title-bar{
  text-align:center;
}

/* center inner layout */
.sp-title-bar .agency-dashboard-header{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:18px;
}

/* remove left bias if any */
.sp-title-bar .agency-dashboard-header > div{
  text-align:center;
}

/* center button */
.sp-title-bar .btn-pill{
  margin-top:6px;
}

/* ============================================================
   TITLE BAR  SUBTLE DIVIDER
============================================================ */

.sp-title-bar .sp-inner{
  position:relative;
}

.sp-title-bar .sp-inner::after{
  content:'';
  display:block;
  width:120px;
  height:1px;
  margin:18px auto 0;
  background:linear-gradient(
    90deg,
    transparent,
    rgba(242,201,76,.55),
    transparent
  );
}
/* ============================================================
   TITLE LOAD ANIMATION
============================================================ */

.sp-main-title,
.sp-subline,
.sp-title-bar .btn-pill{
  opacity:0;
  transform:translateY(18px);
}

.sp-title-bar.is-visible .sp-main-title{
  animation:titleFadeUp .9s ease forwards;
}

.sp-title-bar.is-visible .sp-subline{
  animation:titleFadeUp .9s ease .15s forwards;
}

.sp-title-bar.is-visible .btn-pill{
  animation:titleFadeUp .9s ease .3s forwards;
}

@keyframes titleFadeUp{
  from{
    opacity:0;
    transform:translateY(18px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* ============================================================
   PREMIUM SECTION HEADING  ANIMATED UNDERLINE
============================================================ */

.reg-section-title{
  position:relative;
  display:inline-block;
  padding-bottom:12px;
}

/* base underline (hidden) */
.reg-section-title::after{
  content:'';
  position:absolute;
  left:50%;
  bottom:0;
  transform:translateX(-50%) scaleX(0);
  transform-origin:center;
  width:72px;
  height:2px;

  background:linear-gradient(
    90deg,
    transparent,
    rgba(242,201,76,.85),
    transparent
  );

  transition:transform .7s cubic-bezier(.22,.61,.36,1);
}

/* when section becomes visible */
.reveal-section.is-visible .reg-section-title::after{
  transform:translateX(-50%) scaleX(1);
}

/* subtle glow for premium feel */
.reveal-section.is-visible .reg-section-title::after{
  box-shadow:0 0 14px rgba(242,201,76,.35);
}

.reg-section-title::after{
  content:'';
  position:absolute;
  left:50%;
  bottom:0;
  transform:translateX(-50%) scaleX(0);
  width:80px;
  height:1px;

  background:linear-gradient(
    90deg,
    transparent,
    rgba(242,201,76,.9),
    transparent
  );

  transition:transform .6s ease;
}

.reg-section-title::before{
  content:'';
  position:absolute;
  left:50%;
  bottom:-2px;
  transform:translateX(-50%) scaleX(0);
  width:60px;
  height:3px;

  background:radial-gradient(
    ellipse at center,
    rgba(242,201,76,.35),
    transparent 70%
  );

  transition:transform .8s ease .15s;
}

.reveal-section.is-visible .reg-section-title::after,
.reveal-section.is-visible .reg-section-title::before{
  transform:translateX(-50%) scaleX(1);
}
