/*
 * taxonomy-cidade.css — Layout e overrides exclusivos do archive cidade
 * Versão: 1.0.0
 *
 * Extraído de: single-especialista.css v1.0.0
 * Escopo: body.tax-cidade (WordPress adiciona automaticamente)
 *
 * Contém APENAS o que é necessário para este template:
 *  - Reset body.tax-cidade
 *  - Hero: grid, breadcrumb, bio (sem foto, sem info cards)
 *  - Nav sticky
 *  - Grid principal + sidebar
 *  - Overrides Elementor Kit escopados em body.tax-cidade
 *  - Todos os @media do layout
 *
 * NÃO contém: foto-wrap, foto-rating, foto-empty, info-cards,
 *             treatments-box, float-wa, form avaliação, CTA WhatsApp hero
 *
 * Enqueue: taxonomy-cidade (depende de mn-tokens, mn-base, esp9-components)
 * Condição: is_tax('cidade')
 */

/* ============================================================
   RESET HELLO ELEMENTOR — escopo desta página
   ============================================================ */
body.tax-cidade {
    background: var(--mn-blue-lav);
    font-family: 'Red Hat Display', system-ui, -apple-system, sans-serif;
    color: var(--mn-ink);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
body.tax-cidade .site-main,
body.tax-cidade .entry-content,
body.tax-cidade main:not(.esp9) {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
}
body.tax-cidade section.esp9-hero-wrap {
    margin-top: 0 !important;
}

/* Reset base do wrapper .esp9 */
body.tax-cidade .esp9 * { box-sizing: border-box; }
body.tax-cidade .esp9 img { max-width: 100%; height: auto; display: block; }
body.tax-cidade .esp9 a { text-decoration: none; transition: color 0.15s; }
body.tax-cidade .esp9 a:focus-visible,
body.tax-cidade .esp9 button:focus-visible {
    outline: 3px solid var(--mn-teal);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Âncoras — compensação da nav sticky */
body.tax-cidade .esp9-anchor { scroll-margin-top: 80px; }

/* ============================================================
   HERO
   ============================================================ */
body.tax-cidade .esp9-hero-wrap {
    width: 100%;
    background: #ffffff;
    padding: 0 0 32px;
    margin-top: 0;
}
body.tax-cidade .esp9-bc-bar {
    background: var(--mn-teal-bg);
    border-top: 1px solid var(--mn-rule-soft);
    border-bottom: 1px solid var(--mn-rule-soft);
    padding: 12px 0;
    margin: 0 0 28px;
}
body.tax-cidade .esp9-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Breadcrumb */
body.tax-cidade .esp9-bc {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--mn-ink-soft);
    margin: 0 auto;
    max-width: 1280px;
    padding: 0 24px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
body.tax-cidade .esp9-bc::-webkit-scrollbar { display: none; }
body.tax-cidade .esp9-bc a { color: var(--mn-teal); text-decoration: none; font-weight: 500; white-space: nowrap; flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; }
body.tax-cidade .esp9-bc a:hover { color: var(--mn-dark); }
body.tax-cidade .esp9-bc .sep { color: var(--mn-rule); flex-shrink: 0; }
body.tax-cidade .esp9-bc .now { color: var(--mn-ink); font-weight: 600; white-space: nowrap; flex-shrink: 0; }

/* Hero grid — coluna única (sem foto) */
body.tax-cidade .esp9-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: start;
    margin-bottom: 28px;
}
body.tax-cidade .esp9-hero-left {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 8px;
    min-width: 0;
}

/* Nome / H1 */
body.tax-cidade .esp9-name {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--mn-ink);
    letter-spacing: -0.018em;
    margin: 0;
    display: block;
    white-space: normal;
}

/* Pills badge */
body.tax-cidade .esp9-spec {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0 0;
    font-size: 0;
}

/* Bio curta — sempre visível (sem toggle desktop/mobile) */
body.tax-cidade .esp9-hero-bio {
    display: block;
    background: var(--mn-teal-bg);
    border-left: 3px solid var(--mn-teal);
    padding: 13px 16px;
    border-radius: 0 10px 10px 0;
    margin: 0 0 18px;
}
body.tax-cidade .esp9-hero-bio p {
    font-size: 14px;
    color: var(--mn-ink-soft);
    line-height: 1.55;
    margin: 0;
    font-style: italic;
}

/* ============================================================
   NAV STICKY
   ============================================================ */
body.tax-cidade .esp9-nav-wrap {
    background: #fff;
    border-bottom: 1px solid var(--mn-rule-soft);
    box-shadow: var(--mn-sh-sm);
    position: sticky;
    top: 0;
    z-index: 50;
}
body.tax-cidade .esp9-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 6px 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
body.tax-cidade .esp9-nav-inner::-webkit-scrollbar { display: none; }
body.tax-cidade .esp9-nav-list {
    display: flex;
    gap: 2px;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: max-content;
}
body.tax-cidade .esp9-nav a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--mn-ink-soft);
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    min-height: 44px;
}
body.tax-cidade .esp9-nav a:hover {
    background: var(--mn-teal-soft);
    color: var(--mn-dark);
}
body.tax-cidade .esp9-nav a.is-active {
    background: var(--mn-teal);
    color: #fff;
    font-weight: 700;
}
body.tax-cidade .esp9-nav a .mn-i { color: var(--mn-teal); }
body.tax-cidade .esp9-nav a.is-active .mn-i { color: #fff; }

/* ============================================================
   GRID PRINCIPAL — conteúdo + sidebar
   ============================================================ */
body.tax-cidade .esp9 {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 24px 160px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}
body.tax-cidade .esp9-main { min-width: 0; }

/* ============================================================
   SIDEBAR
   ============================================================ */
body.tax-cidade .esp9-sidebar {
    position: sticky;
    top: 80px;
    min-width: 0;
}
body.tax-cidade .esp9-side-cta {
    background: #ffffff;
    border: 1px solid var(--mn-rule-soft);
    border-radius: 14px;
    padding: 26px 24px;
    margin-bottom: 14px;
    color: var(--mn-ink);
}
body.tax-cidade .esp9-side-cta-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--mn-ink);
}
body.tax-cidade .esp9-side-cta-text {
    font-size: 14px;
    color: var(--mn-ink-soft);
    margin: 0 0 18px;
    line-height: 1.5;
}
body.tax-cidade .esp9-side-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: var(--mn-teal);
    color: #fff !important;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 800;
    min-height: 52px;
    width: 100%;
    transition: background 0.2s, transform 0.15s;
    text-decoration: none;
}
body.tax-cidade .esp9-side-cta-btn:hover {
    background: var(--mn-dark);
    transform: translateY(-2px);
}
body.tax-cidade .esp9-side-cta-btn svg,
body.tax-cidade .esp9-side-cta-btn path,
body.tax-cidade .esp9-side-cta-btn polygon,
body.tax-cidade .esp9-side-cta-btn circle {
    color: #fff !important;
    fill: currentColor !important;
    stroke: none !important;
}

/* ============================================================
   OVERRIDE — Elementor Kit global (vence h1 do kit)
   ============================================================ */
body.tax-cidade h1.esp9-name,
body.tax-cidade .esp9-hero-wrap h1.esp9-name {
    font-size: 26px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    color: var(--mn-ink) !important;
    letter-spacing: -0.018em !important;
    word-spacing: normal !important;
    white-space: normal !important;
}

/* ============================================================
   TABLET — max 1024px
   ============================================================ */
@media (max-width: 1024px) {
    body.tax-cidade .esp9-name { font-size: 30px; }
    body.tax-cidade .esp9-hero-grid { grid-template-columns: 1fr; }
    body.tax-cidade .esp9 {
        grid-template-columns: 1fr 300px;
        padding: 22px 18px 140px;
    }
    body.tax-cidade .esp9-sidebar { position: static; }
    body.tax-cidade .esp9-areas { grid-template-columns: 1fr; }
    body.tax-cidade .esp9-card { padding: 24px; }

    /* Override h1 tablet */
    body.tax-cidade h1.esp9-name,
    body.tax-cidade .esp9-hero-wrap h1.esp9-name {
        font-size: 24px !important;
    }
}

/* ============================================================
   MOBILE — max 720px
   ============================================================ */
@media (max-width: 720px) {
    body.tax-cidade { font-size: 16.5px; }

    body.tax-cidade .esp9-hero-wrap { padding: 0 0 24px; }
    body.tax-cidade .esp9-hero { padding: 0 16px; }
    body.tax-cidade .esp9-bc { font-size: 12px; }

    /* Hero grid mobile */
    body.tax-cidade .esp9-hero-grid {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 18px;
    }
    body.tax-cidade .esp9-hero-left { padding-top: 0; gap: 10px; }
    body.tax-cidade .esp9-name { font-size: 22px; line-height: 1.2; }

    /* Nav sticky */
    body.tax-cidade .esp9-nav-inner { padding: 6px 12px; }
    body.tax-cidade .esp9-nav a { font-size: 13px; padding: 10px 13px; }

    /* Grid principal */
    body.tax-cidade .esp9 { grid-template-columns: 1fr; padding: 16px 12px 110px; gap: 14px; }
    body.tax-cidade .esp9-card { padding: 20px 18px; }

    body.tax-cidade .esp9-areas { grid-template-columns: 1fr; }

    body.tax-cidade .esp9-anchor { scroll-margin-top: 65px; }

    /* Overrides tipografia mobile */
    body.tax-cidade h1.esp9-name,
    body.tax-cidade .esp9-hero-wrap h1.esp9-name {
        font-size: 30px !important;
        line-height: 1.15 !important;
        white-space: normal !important;
        font-weight: 600 !important;
        letter-spacing: -0.01em !important;
    }
    body.tax-cidade .esp9-head-title {
        font-size: 21px !important;
        font-weight: 600 !important;
        letter-spacing: -0.005em !important;
    }
    body.tax-cidade .esp9-side-h {
        font-weight: 700 !important;
    }
    body.tax-cidade .esp9-area-title {
        font-size: 15px !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
    }
    body.tax-cidade .esp9-area-desc {
        font-size: 12.5px !important;
        line-height: 1.4 !important;
    }
}

/* ============================================================
   NO-HOVER — desliga hover em touchscreen
   ============================================================ */
@media (hover: none) {
    body.tax-cidade .esp9-side-cta-btn:hover { transform: none; }
}