/* =========================================================================
   BLIPEI — Design system (inspirado em cotia.sp.gov.br)
   Paleta institucional: azul escuro + âmbar CTA. WCAG AA.
   ========================================================================= */

:root {
    /* Paleta institucional */
    --bp-blue-900: #0f172a;   /* header escuro / texto principal */
    --bp-blue-800: #1e3a8a;
    --bp-blue-700: #1e40af;   /* primária links e botões */
    --bp-blue-600: #2563eb;   /* primária hover */
    --bp-blue-50:  #eff6ff;   /* fundo soft / hover bg */

    --bp-amber-500: #f59e0b;  /* CTA / destaque */
    --bp-amber-600: #d97706;

    --bp-gray-900: #111827;
    --bp-gray-700: #374151;
    --bp-gray-500: #6b7280;
    --bp-gray-300: #d1d5db;
    --bp-gray-200: #e5e7eb;
    --bp-gray-100: #f3f4f6;
    --bp-gray-50:  #f9fafb;
    --bp-white:    #ffffff;

    --bp-success: #15803d;
    --bp-warning: #ca8a04;
    --bp-danger:  #b91c1c;
    --bp-whatsapp: #25D366;
    --bp-info: #0ea5e9;

    /* Tipografia (Cotia-like: Manrope display + Roboto body) */
    --bp-font-display: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --bp-font-body: 'Roboto', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
    --bp-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;

    /* Escala — controlada por a11y toolbar via root font-size */
    --bp-text-xs: 0.75rem;
    --bp-text-sm: 0.875rem;
    --bp-text-base: 1rem;
    --bp-text-lg: 1.125rem;
    --bp-text-xl: 1.25rem;
    --bp-text-2xl: 1.5rem;
    --bp-text-3xl: 1.875rem;
    --bp-text-4xl: 2.25rem;

    /* Espaçamento e radius */
    --bp-radius-sm: 4px;
    --bp-radius: 8px;
    --bp-radius-lg: 12px;

    --bp-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --bp-shadow:    0 4px 12px rgba(15, 23, 42, 0.08);
    --bp-shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.12);

    /* Container */
    --bp-container-max: 1200px;

    /* Backwards-compat com vars antigas usadas pelos templates legados */
    --color-primary: var(--bp-blue-700);
    --color-secondary: var(--bp-amber-500);
    --color-text-dark: var(--bp-gray-900);
    --color-text-light: var(--bp-gray-700);
    --color-background: var(--bp-white);
    --color-background-soft: var(--bp-gray-50);
    --color-border: var(--bp-gray-200);
    --font-primary: var(--bp-font-display);
    --font-secondary: var(--bp-font-body);
}

/* Body global font baseline */
html { font-family: var(--bp-font-body); }
body {
    font-family: var(--bp-font-body);
    color: var(--bp-gray-700);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--bp-font-display);
    color: var(--bp-blue-900);
    letter-spacing: -0.015em;
    line-height: 1.25;
}
input, select, textarea, button { font: inherit; color: inherit; }
input, select, textarea { font-family: var(--bp-font-body); }

/* Dark mode (toggle via botão na topbar; persiste em localStorage 'bp-dark') */
html.bp-dark {
    --bp-white: #0f172a;
    --bp-gray-50: #1e293b;
    --bp-gray-100: #1f2937;
    --bp-gray-200: #374151;
    --bp-gray-300: #4b5563;
    --bp-gray-500: #9ca3af;
    --bp-gray-600: #d1d5db;
    --bp-gray-700: #e5e7eb;
    --bp-gray-900: #f3f4f6;
    --bp-blue-50: #1e3a8a;
    color-scheme: dark;
}
html.bp-dark body { background: #0f172a; color: #f3f4f6; }
html.bp-dark .bp-card { background: #1e293b; color: #f3f4f6; border-color: #374151; }
html.bp-dark .bp-header, html.bp-dark .bp-header-nav-row { background: #1e293b; }
html.bp-dark .bp-header-nav-row { background: #0f172a; }
html.bp-dark .bp-search { background: #1e293b; border-color: #374151; }
html.bp-dark .bp-search input { color: #f3f4f6; }
html.bp-dark .bp-nav a { color: #e5e7eb; }
html.bp-dark .bp-nav a:hover, html.bp-dark .bp-nav a[aria-current="page"] { background: #1e3a8a; color: #fff; }
html.bp-dark img:not([src*=".svg"]):not(.bp-no-dark-filter) { opacity: 0.92; }
html.bp-dark .leaflet-tile { filter: invert(1) hue-rotate(180deg) brightness(0.95); }

/* High-contrast mode (toggle via a11y toolbar) — escopo restrito p/ não quebrar mapa, iframes, imagens */
html.bp-contrast {
    --bp-blue-900: #000000;
    --bp-blue-700: #0000ee;
    --bp-blue-600: #0000ee;
    --bp-amber-500: #ffd000;
    --bp-gray-900: #000000;
    --bp-gray-700: #000000;
    --bp-gray-500: #000000;
    --bp-gray-200: #000000;
    --bp-gray-100: #ffffff;
    --bp-gray-50:  #ffffff;
    --bp-white:    #ffffff;
}
html.bp-contrast body { background: #ffffff !important; color: #000000 !important; }
html.bp-contrast :is(header, footer, main, section, article, aside, nav, div, p, span, h1, h2, h3, h4, h5, h6, li, dl, dt, dd, td, th, label, figure, figcaption, time, em, strong, code, blockquote, hr, ul, ol):not(.leaflet-container *):not(.leaflet-container):not(iframe):not([class*="commerce-marker"]):not([class*="user-location-marker"]) {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #000000 !important;
    box-shadow: none !important;
}
html.bp-contrast a, html.bp-contrast a * { color: #0000ee !important; text-decoration: underline !important; }
html.bp-contrast button:not(.bp-a11y-btn),
html.bp-contrast .bp-btn-primary,
html.bp-contrast .bp-btn-outline {
    background: #000000 !important; color: #ffffff !important; border: 2px solid #000000 !important;
}
html.bp-contrast .bp-btn-cta, html.bp-contrast .bp-cta {
    background: #ffd000 !important; color: #000000 !important; border: 2px solid #000000 !important;
}
html.bp-contrast img, html.bp-contrast iframe, html.bp-contrast .leaflet-container,
html.bp-contrast .leaflet-tile-pane * { filter: none !important; }

/* Highlight links / titles modes */
html.bp-highlight-links a {
    background: var(--bp-amber-500) !important;
    color: var(--bp-blue-900) !important;
    text-decoration: underline !important;
    padding: 0 2px;
}
html.bp-highlight-titles h1,
html.bp-highlight-titles h2,
html.bp-highlight-titles h3 {
    background: var(--bp-blue-50) !important;
    border-left: 4px solid var(--bp-blue-700) !important;
    padding-left: 12px !important;
}

/* Reduce motion mode */
html.bp-no-motion *,
html.bp-no-motion *::before,
html.bp-no-motion *::after {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
}

/* Spacing mode (WCAG 1.4.12 — leitura confortável p/ ADHD/dislexia) */
html.bp-spacing :is(p, li, dd, span, h1, h2, h3, h4, h5, h6) {
    letter-spacing: 0.12em !important;
    word-spacing: 0.16em !important;
    line-height: 1.85 !important;
}
html.bp-spacing p { max-width: 70ch; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Readable font (Atkinson Hyperlegible) */
html.bp-readable,
html.bp-readable body,
html.bp-readable * {
    font-family: 'Atkinson Hyperlegible', 'Verdana', system-ui, sans-serif !important;
    letter-spacing: 0.02em;
}

/* Focus ring acessível em todo elemento focável */
:focus-visible {
    outline: 3px solid var(--bp-amber-500);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Skip-to-content */
.bp-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    background: var(--bp-blue-900);
    color: #fff;
    padding: 12px 20px;
    font-weight: 700;
    text-decoration: none;
}
.bp-skip:focus { left: 8px; top: 8px; }

/* =========================================================================
   HEADER ESTILO COTIA
   ========================================================================= */
.bp-topbar {
    background: var(--bp-blue-900);
    color: #fff;
    font-size: var(--bp-text-sm);
    padding: 6px 0;
}
.bp-topbar-inner {
    max-width: var(--bp-container-max);
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.bp-topbar a {
    color: #fff;
    text-decoration: none;
    margin-left: 12px;
    opacity: 0.9;
}
.bp-topbar a:hover { opacity: 1; text-decoration: underline; }
.bp-topbar .bp-region {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.bp-header {
    background: var(--bp-white);
    border-bottom: 4px solid var(--bp-blue-700);
    box-shadow: var(--bp-shadow-sm);
    position: sticky;
    top: 0;
    z-index: 999;
}
.bp-header-inner {
    max-width: var(--bp-container-max);
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.25rem;
}
.bp-header-top {
    max-width: var(--bp-container-max);
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: grid;
    grid-template-columns: auto minmax(0, 600px) auto;
    align-items: center;
    gap: 1.5rem;
    justify-content: space-between;
}
.bp-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}
.bp-header-nav-row {
    border-top: 1px solid var(--bp-gray-100);
    background: var(--bp-gray-50);
}
.bp-header-nav-row .bp-nav {
    max-width: var(--bp-container-max);
    margin: 0 auto;
    padding: 0.4rem 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.bp-header-nav-row .bp-nav { overflow-x: visible; }
.bp-header-nav-row .bp-nav a { white-space: nowrap; }

/* Dropdown "Mais" */
.bp-nav-more { position: relative; display: inline-block; }
.bp-nav-more > summary {
    list-style: none;
    cursor: pointer;
    padding: 10px 14px;
    font-weight: 700;
    font-size: var(--bp-text-sm);
    border-radius: var(--bp-radius);
    color: var(--bp-gray-900);
    transition: background 0.2s;
    user-select: none;
}
.bp-nav-more > summary::-webkit-details-marker { display: none; }
.bp-nav-more > summary:hover { background: var(--bp-blue-50); color: var(--bp-blue-700); }
.bp-nav-more[open] > summary { background: var(--bp-blue-50); color: var(--bp-blue-700); }
.bp-nav-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid var(--bp-gray-200);
    border-radius: 10px;
    box-shadow: var(--bp-shadow-lg);
    padding: 6px;
    min-width: 220px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
}
.bp-nav-dropdown a {
    padding: 10px 14px;
    border-radius: 6px;
    color: var(--bp-gray-900);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--bp-text-sm);
    display: flex;
    align-items: center;
    gap: 10px;
}
.bp-nav-dropdown a i { width: 18px; text-align: center; color: var(--bp-blue-700); }
.bp-nav a i { margin-right: 6px; color: var(--bp-blue-700); }
.bp-nav-more > summary i { margin-left: 4px; font-size: 0.7em; }
.bp-nav-dropdown a:hover, .bp-nav-dropdown a[aria-current="page"] {
    background: var(--bp-blue-50);
    color: var(--bp-blue-700);
}
html.bp-dark .bp-nav-dropdown { background: #1e293b; border-color: #374151; }
html.bp-dark .bp-nav-dropdown a { color: #f3f4f6; }
html.bp-dark .bp-nav-dropdown a:hover { background: #1e3a8a; color: #fff; }
.bp-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.bp-logo img,
.bp-logo svg {
    height: 48px;
    width: auto;
    display: block;
}
.bp-wordmark {
    font-family: var(--bp-font-display);
    font-weight: 900;
    font-size: 1.875rem;
    color: var(--bp-blue-700);
    letter-spacing: -0.025em;
    line-height: 1;
    display: inline-block;
}
.bp-wordmark-light { color: #ffffff; font-size: 1.5rem; }
.bp-footer-brand .bp-wordmark { display: block; margin-bottom: 0.75rem; }
@media (max-width: 480px) {
    .bp-wordmark { font-size: 1.5rem; max-width: 60vw; }
}

/* Inputs/selects/textareas globais — width 100% em TODOS os types
   (atributo seletor pega text/email/tel/password/date/time/datetime-local/month/week/url/number/search) */
.bp-input,
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]):not([type="hidden"]):not([type="color"]):not([type="range"]),
select,
textarea {
    padding: 10px 14px;
    border: 1px solid var(--bp-gray-300);
    border-radius: var(--bp-radius);
    background: #fff;
    color: var(--bp-gray-900);
    line-height: 1.4;
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: block;
}
input[type="file"] {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    border: 1px dashed var(--bp-gray-300);
    border-radius: var(--bp-radius);
    background: var(--bp-gray-50);
}
input[type="checkbox"], input[type="radio"] {
    width: auto !important;
    display: inline-block;
}
.bp-input:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--bp-blue-700);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
    outline: none;
}

/* Password input com toggle de olho */
.bp-password-wrap { position: relative; }
.bp-password-wrap input { padding-right: 44px !important; }
.bp-password-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: var(--bp-gray-500);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--bp-radius);
    font-size: 16px;
    padding: 0;
}
.bp-password-toggle:hover { color: var(--bp-blue-700); background: var(--bp-gray-100); }
.bp-password-toggle:focus-visible { outline: 2px solid var(--bp-blue-700); outline-offset: 2px; }

/* Indicador de força de senha */
.bp-password-strength {
    margin-top: 6px;
    font-size: var(--bp-text-xs);
    color: var(--bp-gray-500);
}
.bp-password-bars { display: flex; gap: 3px; margin-top: 4px; }
.bp-password-bars span {
    flex: 1; height: 4px; background: var(--bp-gray-200); border-radius: 2px; transition: background 0.2s;
}
.bp-password-bars[data-strength="1"] span:nth-child(-n+1) { background: var(--bp-danger); }
.bp-password-bars[data-strength="2"] span:nth-child(-n+2) { background: var(--bp-warning); }
.bp-password-bars[data-strength="3"] span:nth-child(-n+3) { background: var(--bp-info); }
.bp-password-bars[data-strength="4"] span { background: var(--bp-success); }

/* Match de confirmação */
.bp-password-match {
    margin-top: 4px;
    font-size: var(--bp-text-xs);
    font-weight: 700;
    min-height: 16px;
}
.bp-password-match.is-ok { color: var(--bp-success); }
.bp-password-match.is-bad { color: var(--bp-danger); }

/* Grid utilities responsivos (forms) */
.bp-form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.bp-form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.bp-form-row-cep { display: grid; grid-template-columns: 1fr 2fr; gap: 1rem; }
.bp-form-row-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
@media (max-width: 600px) {
    .bp-form-row-2, .bp-form-row-3, .bp-form-row-cep { grid-template-columns: 1fr !important; }
}

/* Tabela responsiva */
.bp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bp-table { width: 100%; min-width: 420px; border-collapse: collapse; }

/* select com seta custom (consistência com inputs) */
select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px !important;
}
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }

/* Hover em cards só em devices que SUPORTAM hover (não mobile touch) */
@media (hover: none) {
    .bp-card:hover { transform: none; box-shadow: var(--bp-shadow-sm); }
}

/* Topbar oculta em mobile pequeno (libera espaço vertical) */
@media (max-width: 600px) {
    .bp-topbar { display: none; }
}

/* Card flex-row em mobile: empilha */
@media (max-width: 560px) {
    .bp-mc-row { grid-template-columns: 1fr !important; }
    .bp-mc-row > div:last-child { min-width: 0 !important; }
}

/* Hero menor em mobile */
@media (max-width: 560px) {
    .bp-hero { padding: 2rem 0 2.5rem; }
    .bp-section { padding: 2rem 0; }
}

/* Paginação com tap target 44px */
.bp-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 2rem 0;
    flex-wrap: wrap;
}
.bp-pagination a, .bp-pagination span {
    min-width: 44px;
    min-height: 44px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--bp-radius);
    text-decoration: none;
    font-weight: 700;
    border: 1px solid var(--bp-gray-200);
    color: var(--bp-blue-700);
    background: #fff;
}
.bp-pagination a:hover { background: var(--bp-blue-50); border-color: var(--bp-blue-700); }
.bp-pagination a[aria-current="page"] {
    background: var(--bp-blue-700);
    color: #fff;
    border-color: var(--bp-blue-700);
}
.bp-pagination a[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }
.bp-pagination .bp-page-ellipsis { border: 0; color: var(--bp-gray-500); cursor: default; }
.bp-search {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border: 0;
    border-radius: 10px;
    padding: 0 6px;
    width: 100%;
    height: 42px;
    margin: 0;
    transition: border-color .15s, box-shadow .15s;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>");
    background-repeat: no-repeat;
    background-position: 14px center;
    padding-left: 42px;
}
.bp-search:focus-within {
    background: #fff;
    box-shadow: 0 0 0 2px var(--bp-blue-700);
}
.bp-search input {
    flex: 1;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0 8px;
    height: 100%;
    font: inherit;
    font-size: 0.95rem;
    color: var(--bp-gray-900);
    outline: none;
    min-width: 0;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}
.bp-search input::placeholder { color: var(--bp-gray-400); }
.bp-search input::-webkit-search-decoration,
.bp-search input::-webkit-search-cancel-button,
.bp-search input::-webkit-search-results-button,
.bp-search input::-webkit-search-results-decoration { display: none; }
.bp-search button {
    flex-shrink: 0;
    background: var(--bp-blue-700);
    color: #fff;
    border: 0;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: background .15s, transform .1s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.bp-search button:hover { background: var(--bp-blue-600); }
.bp-search button:active { transform: scale(0.97); }
.bp-search button i { font-size: 0.875rem; }

.bp-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.bp-nav a {
    color: var(--bp-gray-900);
    text-decoration: none;
    padding: 10px 14px;
    font-weight: 700;
    font-size: var(--bp-text-sm);
    border-radius: var(--bp-radius);
    transition: background 0.2s, color 0.2s;
}
.bp-nav a:hover,
.bp-nav a[aria-current="page"] {
    background: var(--bp-blue-50);
    color: var(--bp-blue-700);
}
.bp-cta {
    background: var(--bp-amber-500);
    color: var(--bp-blue-900);
    padding: 10px 16px;
    border-radius: var(--bp-radius);
    font-weight: 700;
    font-size: var(--bp-text-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}
.bp-cta:hover { background: var(--bp-amber-600); color: #fff; }
.bp-nav a.bp-cta { padding: 10px 16px; }

.bp-menu-toggle {
    display: none;
    background: var(--bp-blue-700);
    color: #fff;
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: var(--bp-radius);
    cursor: pointer;
    font-size: 22px;
    align-items: center;
    justify-content: center;
}
.bp-menu-toggle:hover { background: var(--bp-blue-600); }

@media (max-width: 960px) {
    .bp-header-top {
        grid-template-columns: auto 1fr auto;
        gap: 0.5rem;
    }
    .bp-search { display: none; }
    .bp-header-actions .bp-cta { display: none; }
    .bp-menu-toggle { display: inline-flex; }
    .bp-header-nav-row { display: none; }
    .bp-header-nav-row.is-open { display: block; }
    .bp-header-nav-row.is-open .bp-nav {
        flex-direction: column;
        align-items: stretch;
        overflow-x: visible;
        padding: 0.5rem;
    }
    .bp-header-nav-row.is-open .bp-nav a { padding: 14px; font-size: var(--bp-text-base); white-space: normal; }
}

/* =========================================================================
   HERO + LAYOUTS
   ========================================================================= */
.bp-container {
    max-width: var(--bp-container-max);
    margin: 0 auto;
    padding: 0 1rem;
}
.bp-section { padding: 3rem 0; }
.bp-section-title {
    font-family: var(--bp-font-display);
    font-weight: 900;
    color: var(--bp-blue-900);
    font-size: clamp(1.5rem, 3.5vw, 1.875rem);
    margin: 0 0 0.5rem;
    line-height: 1.2;
}
.bp-section-subtitle {
    color: var(--bp-gray-700);
    font-size: var(--bp-text-lg);
    margin: 0 0 2rem;
    max-width: 720px;
}

.bp-hero {
    background: linear-gradient(135deg, var(--bp-blue-700) 0%, var(--bp-blue-900) 100%);
    color: #fff;
    padding: 4rem 0 5rem;
    position: relative;
    overflow: hidden;
}
.bp-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 90% 20%, rgba(245,158,11,0.18), transparent 40%);
    pointer-events: none;
}
.bp-hero h1 {
    font-family: var(--bp-font-display);
    font-weight: 900;
    font-size: clamp(2.25rem, 6vw, 3.5rem);
    margin: 0 0 1rem;
    line-height: 1.1;
    color: #ffffff;
}
.bp-hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 680px;
    margin: 0 0 2rem;
    opacity: 0.95;
}
.bp-hero .bp-cta {
    background: var(--bp-amber-500);
    color: var(--bp-blue-900);
    padding: 14px 28px;
    border-radius: var(--bp-radius);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    box-shadow: var(--bp-shadow);
}
.bp-hero .bp-cta:hover { background: var(--bp-amber-600); color: #fff; }

/* Cards grid */
.bp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}
.bp-card {
    background: #fff;
    border: 1px solid var(--bp-gray-200);
    border-radius: var(--bp-radius-lg);
    padding: 1.25rem;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-sizing: border-box;
    overflow-wrap: break-word;
    min-width: 0;
}
.bp-card .bp-btn { box-sizing: border-box; max-width: 100%; }
.bp-card * { min-width: 0; }
.bp-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bp-shadow);
    border-color: var(--bp-blue-700);
}
.bp-card .bp-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bp-blue-50);
    color: var(--bp-blue-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.bp-card h3 {
    font-family: var(--bp-font-display);
    font-weight: 700;
    font-size: var(--bp-text-lg);
    color: var(--bp-blue-900);
    margin: 0;
}
.bp-card p {
    color: var(--bp-gray-700);
    font-size: var(--bp-text-sm);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Botões utilitários */
.bp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--bp-radius);
    font-weight: 700;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    font-size: var(--bp-text-base);
    transition: background 0.2s, color 0.2s, transform 0.1s;
    white-space: nowrap;
    line-height: 1.2;
    text-align: center;
    box-sizing: border-box;
}
/* Em containers estreitos (cards laterais) permite wrap pra texto longo */
.bp-card .bp-btn { white-space: normal; }
.bp-btn:active { transform: translateY(1px); }
.bp-btn-primary { background: var(--bp-blue-700); color: #fff; }
.bp-btn-primary:hover { background: var(--bp-blue-600); color: #fff; }
.bp-btn-cta { background: var(--bp-amber-500); color: var(--bp-blue-900); }
.bp-btn-cta:hover { background: var(--bp-amber-600); color: #fff; }
.bp-btn-outline {
    background: transparent;
    color: var(--bp-blue-700);
    border: 2px solid var(--bp-blue-700);
}
.bp-btn-outline:hover { background: var(--bp-blue-700); color: #fff; }

/* Breadcrumb */
.bp-breadcrumb {
    background: var(--bp-gray-50);
    border-bottom: 1px solid var(--bp-gray-200);
    padding: 0.75rem 0;
    font-size: var(--bp-text-sm);
}
.bp-breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.bp-breadcrumb a { color: var(--bp-blue-700); text-decoration: none; }
.bp-breadcrumb a:hover { text-decoration: underline; }
.bp-breadcrumb li + li::before {
    content: "›";
    color: var(--bp-gray-500);
    margin-right: 6px;
}

/* =========================================================================
   FOOTER ESTILO COTIA
   ========================================================================= */
.bp-footer {
    background: var(--bp-blue-900);
    color: #cbd5e1;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}
.bp-footer-grid {
    max-width: var(--bp-container-max);
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2rem;
}
.bp-footer h4 {
    color: #fff;
    font-family: var(--bp-font-display);
    font-weight: 700;
    font-size: var(--bp-text-base);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bp-amber-500);
    display: inline-block;
}
.bp-footer ul { list-style: none; padding: 0; margin: 0; }
.bp-footer li { margin: 0 0 0.5rem; }
.bp-footer a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: var(--bp-text-sm);
}
.bp-footer a:hover { color: var(--bp-amber-500); text-decoration: underline; }
.bp-footer-brand p {
    margin: 0 0 1rem;
    font-size: var(--bp-text-sm);
    line-height: 1.6;
}
.bp-footer-brand img,
.bp-footer-brand svg { max-width: 200px; height: auto; margin: 0 0 1rem; filter: brightness(0) invert(1); }
.bp-footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}
.bp-footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
}
.bp-footer-social a:hover { background: var(--bp-amber-500); color: var(--bp-blue-900); }
.bp-footer-bottom {
    max-width: var(--bp-container-max);
    margin: 2rem auto 0;
    padding: 1.5rem 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: var(--bp-text-sm);
}

@media (max-width: 900px) {
    .bp-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .bp-footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .bp-section { padding: 2rem 0; }
}

/* =========================================================================
   A11Y TOOLBAR
   ========================================================================= */
.bp-a11y-fab {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 9998;
    background: var(--bp-blue-700);
    color: #fff;
    border: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--bp-shadow-lg);
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.bp-a11y-fab:hover { background: var(--bp-blue-600); }
.bp-a11y-panel {
    position: fixed;
    right: 16px;
    bottom: 84px;
    z-index: 9999;
    background: #fff;
    color: var(--bp-gray-900);
    border-radius: var(--bp-radius-lg);
    box-shadow: var(--bp-shadow-lg);
    padding: 1rem;
    width: 280px;
    display: none;
    border: 2px solid var(--bp-blue-700);
}
.bp-a11y-panel.is-open { display: block; }
.bp-a11y-panel h3 {
    margin: 0 0 0.75rem;
    font-size: var(--bp-text-base);
    color: var(--bp-blue-900);
}
.bp-a11y-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.bp-a11y-btn {
    background: var(--bp-gray-100);
    border: 1px solid var(--bp-gray-200);
    color: var(--bp-gray-900);
    padding: 10px 8px;
    border-radius: var(--bp-radius);
    cursor: pointer;
    font-size: var(--bp-text-xs);
    text-align: center;
    line-height: 1.3;
    transition: background 0.2s, border-color 0.2s;
}
.bp-a11y-btn:hover { background: var(--bp-blue-50); border-color: var(--bp-blue-700); }
.bp-a11y-btn[aria-pressed="true"] {
    background: var(--bp-blue-700);
    color: #fff;
    border-color: var(--bp-blue-700);
}
.bp-a11y-btn .bp-a11y-icon {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
}
.bp-a11y-reset {
    grid-column: 1 / -1;
    background: var(--bp-amber-500);
    color: var(--bp-blue-900);
    font-weight: 700;
    margin-top: 4px;
}
.bp-a11y-reset:hover { background: var(--bp-amber-600); color: #fff; border-color: var(--bp-amber-600); }

/* Helpers */
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}
img.bp-lazy { background: var(--bp-gray-100); min-height: 80px; }
