/* ============================================================
   Upgrade — SEO city & service landing pages
   City hub (/{city}), services list (/{city}/services),
   city+service page (/{city}/{service}).
   Bootstrap 3 base — these pages use self-contained classes
   instead of BS4/5 utilities that do not exist in BS3.
   Brand purple: #7b5ea7 (theme-colors.css tokens).
   ============================================================ */

.seo-page {
    --p:        #7b5ea7;
    --p-dark:   #5d3f8f;
    --p-light:  #9b7ec8;
    --p-xlight: #eae0f8;
    --ink:      #1f1733;
    --ink-soft: #5b5470;
    --line:     rgba(123, 94, 167, .14);
    --star:     #f1a93b;
    font-family: 'Inter', 'Source Sans Pro', Arial, sans-serif;
    color: var(--ink);
}

.seo-page .seo-container {
    max-width: 1120px;
    margin:    0 auto;
    padding:   0 18px;
}

/* ============================================================
   HERO
   ============================================================ */
.seo-hero {
    background:
        radial-gradient(1100px 360px at 12% -40%, rgba(123, 94, 167, .16), transparent 60%),
        linear-gradient(180deg, #faf7ff 0%, #ffffff 100%);
    border-bottom: 1px solid var(--line);
    padding: 28px 0 38px;
}

.seo-breadcrumb {
    display:     flex;
    flex-wrap:   wrap;
    align-items: center;
    gap:         6px;
    margin:      0 0 18px;
    padding:     0;
    list-style:  none;
    font-size:   13px;
    color:       var(--ink-soft);
}
.seo-breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }
.seo-breadcrumb li:not(:last-child)::after {
    content: "/";
    color:   rgba(123, 94, 167, .4);
}
.seo-breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.seo-breadcrumb a:hover { color: var(--p); text-decoration: underline; }
.seo-breadcrumb .is-current { color: var(--ink); font-weight: 600; }

.seo-hero-eyebrow {
    display:        inline-flex;
    align-items:    center;
    gap:            7px;
    margin-bottom:  14px;
    padding:        5px 12px;
    background:     #fff;
    border:         1px solid var(--line);
    border-radius:  999px;
    font-size:      12.5px;
    font-weight:    600;
    letter-spacing: .02em;
    color:          var(--p-dark);
    box-shadow:     0 2px 10px rgba(80, 50, 140, .06);
}
.seo-hero-eyebrow svg { width: 15px; height: 15px; }

.seo-hero h1.page-title,
.seo-page h1.page-title {
    margin:      0 0 12px;
    font-size:   clamp(26px, 4.4vw, 40px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.015em;
    color:       var(--ink);
}

.seo-hero .seo-lead {
    max-width:   720px;
    margin:      0 0 22px;
    font-size:   17px;
    line-height: 1.55;
    color:       var(--ink-soft);
}

/* Stat chips (trust signals: providers, rating, price) */
.seo-stats {
    display:   flex;
    flex-wrap: wrap;
    gap:       12px;
    margin:    0 0 24px;
}
.seo-stat {
    display:       flex;
    flex-direction: column;
    min-width:     132px;
    padding:       12px 16px;
    background:    #fff;
    border:        1px solid var(--line);
    border-radius: 14px;
    box-shadow:    0 4px 16px rgba(80, 50, 140, .05);
}
.seo-stat-value {
    font-size:      22px;
    font-weight:    700;
    line-height:    1.1;
    color:          var(--p-dark);
    font-variant-numeric: tabular-nums;
}
.seo-stat-value .seo-star { color: var(--star); }
.seo-stat-label {
    margin-top: 3px;
    font-size:  12.5px;
    color:      var(--ink-soft);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.seo-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.seo-btn {
    display:         inline-flex;
    align-items:     center;
    justify-content: center;
    gap:             8px;
    min-height:      48px;
    padding:         0 24px;
    border-radius:   12px;
    font-size:       15px;
    font-weight:     600;
    line-height:     1;
    text-decoration: none !important;
    cursor:          pointer;
    transition:      transform .15s ease, background .2s ease, box-shadow .2s ease;
    border:          1px solid transparent;
}
.seo-btn svg { width: 18px; height: 18px; }

.seo-btn-primary {
    background:  var(--p);
    color:       #fff !important;
    box-shadow:  0 8px 22px rgba(123, 94, 167, .28);
}
.seo-btn-primary:hover,
.seo-btn-primary:focus {
    background: var(--p-dark);
    color:      #fff !important;
    transform:  translateY(-1px);
    box-shadow: 0 12px 26px rgba(123, 94, 167, .34);
}

.seo-btn-ghost {
    background:    #fff;
    color:        var(--p-dark) !important;
    border-color: var(--line);
}
.seo-btn-ghost:hover,
.seo-btn-ghost:focus {
    border-color: var(--p-light);
    color:        var(--p-dark) !important;
    background:    #faf7ff;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.seo-body-wrap { padding: 36px 0 56px; }

.seo-section { margin-top: 40px; }
.seo-section:first-child { margin-top: 0; }

.seo-section-head {
    display:        flex;
    align-items:    baseline;
    justify-content: space-between;
    flex-wrap:      wrap;
    gap:            8px;
    margin-bottom:  18px;
}
.seo-section-title {
    margin:      0;
    font-size:   22px;
    font-weight: 700;
    letter-spacing: -.01em;
    color:       var(--ink);
}
.seo-section-link {
    font-size:   14px;
    font-weight: 600;
    color:       var(--p);
    text-decoration: none;
}
.seo-section-link:hover { text-decoration: underline; color: var(--p-dark); }

.seo-section > p { font-size: 16px; line-height: 1.6; color: var(--ink-soft); }

/* ============================================================
   VALUE PROPS
   ============================================================ */
.seo-values {
    display:               grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap:                   14px;
}
.seo-value {
    display:       flex;
    gap:           13px;
    padding:       18px;
    background:    #fff;
    border:        1px solid var(--line);
    border-radius: 14px;
}
.seo-value-icon {
    flex:            0 0 42px;
    width:           42px;
    height:          42px;
    display:         flex;
    align-items:     center;
    justify-content: center;
    border-radius:   11px;
    background:      var(--p-xlight);
    color:          var(--p-dark);
}
.seo-value-icon svg { width: 22px; height: 22px; }
.seo-value-title { margin: 2px 0 4px; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.seo-value-text  { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }

/* ============================================================
   CARD GRID (salons / masters / providers)
   ============================================================ */
.seo-grid {
    display:               grid;
    grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
    gap:                   18px;
}
.seo-card {
    display:         flex;
    flex-direction:  column;
    background:      #fff;
    border:          1px solid var(--line);
    border-radius:   16px;
    overflow:        hidden;
    transition:      transform .16s ease, box-shadow .2s ease, border-color .2s ease;
}
.seo-card:hover {
    transform:    translateY(-3px);
    box-shadow:   0 14px 32px rgba(80, 50, 140, .14);
    border-color: var(--p-light);
}
.seo-card-media {
    position:    relative;
    min-height:   150px;          /* fallback if aspect-ratio unsupported */
    aspect-ratio: 4 / 3;          /* reserve space → no layout shift */
    background:   linear-gradient(135deg, var(--p-xlight), #fff);
    overflow:     hidden;
}
.seo-card-media img {
    width:      100%;
    height:     100%;
    object-fit: cover;
    display:    block;
}
.seo-card-media-placeholder {
    position:        absolute;
    inset:           0;
    display:         flex;
    align-items:     center;
    justify-content: center;
    color:           var(--p-light);
}
.seo-card-media-placeholder svg { width: 40px; height: 40px; opacity: .7; }

.seo-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.seo-card-title { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.25; }
.seo-card-title a { color: var(--ink); text-decoration: none; }
.seo-card-title a:hover { color: var(--p); }
.seo-card-meta { margin: 0; font-size: 13px; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; }
.seo-rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--ink); }
.seo-star { color: var(--star); }
.seo-card-cta {
    margin-top:  auto;
    padding-top: 6px;
    font-size:   13.5px;
    font-weight: 600;
    color:       var(--p);
    text-decoration: none;
}
.seo-card-cta:hover { text-decoration: underline; }

/* ============================================================
   SERVICE CHIPS / LINK LIST
   ============================================================ */
.seo-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.seo-chip {
    display:         inline-flex;
    align-items:     center;
    justify-content: space-between;
    gap:             10px;
    min-height:      44px;
    padding:         0 16px;
    background:      #fff;
    border:          1px solid var(--line);
    border-radius:   999px;
    font-size:       14.5px;
    font-weight:     500;
    color:           var(--ink) !important;
    text-decoration: none !important;
    transition:      background .18s, border-color .18s, color .18s, transform .12s;
}
.seo-chip:hover {
    background:    var(--p);
    border-color: var(--p);
    color:        #fff !important;
    transform:    translateY(-1px);
}
.seo-chip .seo-chip-count {
    font-size:    12px;
    font-weight:  600;
    color:        var(--ink-soft);
}
.seo-chip:hover .seo-chip-count { color: rgba(255, 255, 255, .85); }

/* Services list (rows with provider counts) */
.seo-service-rows { display: flex; flex-direction: column; gap: 10px; }
.seo-service-row {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    gap:             12px;
    min-height:      56px;
    padding:         10px 18px;
    background:      #fff;
    border:          1px solid var(--line);
    border-radius:   14px;
    text-decoration: none !important;
    transition:      border-color .18s, box-shadow .18s, transform .12s;
}
.seo-service-row:hover {
    border-color: var(--p-light);
    box-shadow:   0 8px 22px rgba(80, 50, 140, .1);
    transform:    translateY(-1px);
}
.seo-service-row-name { font-size: 16px; font-weight: 600; color: var(--ink); }
.seo-service-row:hover .seo-service-row-name { color: var(--p-dark); }
.seo-badge {
    flex-shrink:   0;
    padding:       5px 11px;
    background:    var(--p-xlight);
    color:         var(--p-dark);
    border-radius: 999px;
    font-size:     12.5px;
    font-weight:   600;
    white-space:   nowrap;
}

/* ============================================================
   REVIEWS / UGC
   ============================================================ */
.seo-rating-summary {
    display:       inline-flex;
    align-items:   center;
    gap:           10px;
    padding:       10px 16px;
    background:    #fff;
    border:        1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 16px;
}
.seo-rating-summary .seo-rating-big {
    font-size:   26px;
    font-weight: 700;
    color:       var(--p-dark);
    font-variant-numeric: tabular-nums;
}
.seo-rating-summary .seo-rating-sub { font-size: 13px; color: var(--ink-soft); }

.seo-highlights { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 18px; padding: 0; list-style: none; }
.seo-highlights li {
    display:       inline-flex;
    align-items:   center;
    gap:           7px;
    padding:       7px 13px;
    background:    #f4eefc;
    border-radius: 999px;
    font-size:     13.5px;
    color:         var(--p-dark);
    font-weight:   500;
}
.seo-highlights li svg { width: 14px; height: 14px; flex-shrink: 0; }

.seo-reviews {
    display:               grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap:                   14px;
}
.seo-review {
    padding:       18px;
    background:    #fff;
    border:        1px solid var(--line);
    border-radius: 14px;
}
.seo-review-text { margin: 0 0 12px; font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.seo-review-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.seo-review-author { font-weight: 600; color: var(--ink); }

/* ============================================================
   PROSE BODY (page->body HTML)
   ============================================================ */
.seo-prose { font-size: 16px; line-height: 1.7; color: #36304a; }
.seo-prose h2, .seo-prose h3 { color: var(--ink); font-weight: 700; margin: 28px 0 12px; }
.seo-prose h2 { font-size: 22px; }
.seo-prose h3 { font-size: 18px; }
.seo-prose p  { margin: 0 0 14px; }
.seo-prose ul, .seo-prose ol { margin: 0 0 14px; padding-left: 22px; }
.seo-prose li { margin-bottom: 6px; }
.seo-prose a  { color: var(--p); }

/* ============================================================
   FAQ
   ============================================================ */
.seo-faq { display: flex; flex-direction: column; gap: 10px; }
.seo-faq-item {
    background:    #fff;
    border:        1px solid var(--line);
    border-radius: 13px;
    overflow:      hidden;
}
.seo-faq-q {
    width:           100%;
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    gap:             14px;
    padding:         16px 18px;
    background:      none;
    border:          none;
    text-align:      left;
    font-size:       16px;
    font-weight:     600;
    color:           var(--ink);
    cursor:          pointer;
}
.seo-faq-q:hover { color: var(--p-dark); }
.seo-faq-q .seo-faq-icon {
    flex-shrink: 0;
    width:       20px;
    height:      20px;
    transition:  transform .2s ease;
    color:       var(--p);
}
.seo-faq-q[aria-expanded="true"] .seo-faq-icon { transform: rotate(45deg); }
.seo-faq-a { padding: 0 18px; max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; }
.seo-faq-a.is-open { padding: 0 18px 18px; max-height: 600px; }
.seo-faq-a p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }

/* ============================================================
   FINAL CTA BAND
   ============================================================ */
.seo-cta-band {
    margin-top:    48px;
    padding:       34px 28px;
    border-radius: 20px;
    background:
        radial-gradient(600px 240px at 85% -20%, rgba(255, 255, 255, .22), transparent 60%),
        linear-gradient(135deg, var(--p) 0%, var(--p-dark) 100%);
    color:         #fff;
    text-align:    center;
}
.seo-cta-band h2 { margin: 0 0 8px; font-size: 25px; font-weight: 700; color: #fff; }
.seo-cta-band p  { margin: 0 auto 20px; max-width: 560px; font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, .9); }
.seo-cta-band .seo-actions { justify-content: center; }
.seo-cta-band .seo-btn-primary {
    background: #fff;
    color:      var(--p-dark) !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
}
.seo-cta-band .seo-btn-primary:hover { background: #f3eefb; color: var(--p-dark) !important; }
.seo-cta-band .seo-btn-ghost {
    background:    transparent;
    border-color: rgba(255, 255, 255, .55);
    color:        #fff !important;
}
.seo-cta-band .seo-btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff !important; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.seo-empty {
    padding:       28px;
    background:    #faf7ff;
    border:        1px dashed var(--line);
    border-radius: 14px;
    text-align:    center;
    color:         var(--ink-soft);
    font-size:     15px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media screen and (max-width: 768px) {
    .seo-hero { padding: 20px 0 28px; }
    .seo-stat { min-width: calc(50% - 6px); flex: 1; }
    .seo-section-title { font-size: 20px; }
    .seo-cta-band { padding: 28px 18px; margin-top: 36px; }
    .seo-actions { flex-direction: column; }
    .seo-actions .seo-btn { width: 100%; }
}
