/* =====================================================================
   BlogNoticiasEstudo — assets/style-v2.css
   Redesign 2026 (a partir do Claude Design "Notícias Da Vinci — Final").
   Tema CLARO + Hanken Grotesk + cores por categoria (oklch).
   Usado SÓ por index.php + noticia.php. admin.php mantém-se em style.css
   (ferramenta interna, não faz parte deste redesign) — por isso este
   ficheiro é standalone e não depende de assets/style.css.
   ===================================================================== */

:root {
    --ink:           #0E1726;
    --ink-soft:      #4b5568;
    --muted:         #7a8496;
    --bg:            #ffffff;
    --bg-soft:       #fafbfc;
    --chip-bg:       #f1f2f6;
    --border:        #eef0f4;
    --border-strong: #e3e6ec;
    --navy:          #0E1726;
    --purple:        oklch(0.6 0.17 300);
    --purple-deep:   oklch(0.48 0.17 300);
    --accent:        #1ab8c8;
    --accent-bright: #2dd0e0;
    --brand:         #0f8ba6;
    --shadow-card:   0 20px 46px -22px rgba(14,23,38,0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Hanken Grotesk', -apple-system, system-ui, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: var(--purple); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--purple-deep); }
img, svg { max-width: 100%; display: block; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 1.2rem; }
body { position: relative; }
body > section, .site-footer { position: relative; z-index: 1; }

/* ============== HEADER ============== */
.site-header {
    background: rgba(255,255,255,0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    position: sticky; top: 0; z-index: 50;
    border-bottom: 1px solid var(--border);
}
.site-header .row1 { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 0; gap: 1rem; }
.site-header .brand { flex-direction: row; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); }
.brand-logo { height: 42px; width: auto; display: block; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; font-size: 1.02rem; font-weight: 800; letter-spacing: -0.2px; }
.brand-text small { font-size: 0.66rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; margin-top: 3px; font-weight: 600; }
.site-header nav { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.site-header nav a {
    color: var(--ink-soft); font-weight: 700; font-size: 0.92rem;
    padding: 0.55rem 0.9rem; border-radius: 30px; transition: background 0.18s, color 0.18s;
}
.site-header nav a:hover, .site-header nav a.is-active { background: var(--chip-bg); color: var(--ink); }
.site-header nav a.badge-pill {
    background: var(--navy); color: #fff;
    padding: 0.55rem 1rem; border-radius: 30px; font-size: 0.85rem; font-weight: 700;
    transition: transform 0.18s;
}
.site-header nav a.badge-pill:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
@media (max-width: 680px) { .brand-logo { height: 34px; } .brand-text { font-size: 0.9rem; } }

/* ============== BUTTONS ============== */
.btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--navy); color: #fff;
    font-weight: 700; font-size: 0.92rem;
    padding: 0.85rem 1.5rem;
    border-radius: 14px; border: 0;
    cursor: pointer; transition: transform 0.18s;
    text-decoration: none;
}
.btn:hover { transform: translateY(-2px); color: #fff; }
.btn-outline {
    background: var(--purple); color: #fff; border: 0;
}
.btn-outline:hover { background: var(--purple-deep); color: #fff; }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.82rem; }

/* ============== HERO ============== */
.hero { padding: 4.4rem 0 3.2rem; }
.hero-chips { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hero-chips .chip {
    padding: 0.45rem 0.95rem; border-radius: 30px;
    color: #fff; font-weight: 700; font-size: 0.82rem;
    animation: davFloat 4.4s ease-in-out infinite;
}
.hero-chips .chip:nth-child(1) { --r: -3deg; animation-delay: 0s; }
.hero-chips .chip:nth-child(2) { --r: 2deg;  animation-delay: .3s; }
.hero-chips .chip:nth-child(3) { --r: -2deg; animation-delay: .6s; }
.hero-chips .chip:nth-child(4) { --r: 3deg;  animation-delay: .2s; }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.8rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--purple); }
.breadcrumb .sep { margin: 0 0.5rem; opacity: 0.5; }
.hero h1 {
    font-size: clamp(2.3rem, 5.2vw, 4.4rem);
    font-weight: 800; line-height: 1; margin: 0 0 1rem;
    letter-spacing: -0.02em; color: var(--ink);
}
.hero h1 span { color: var(--purple); }
.hero .lead { color: var(--ink-soft); font-size: 1.1rem; line-height: 1.55; max-width: 62ch; font-weight: 500; }
.hero .hero-buttons { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.6rem; }

/* ============== STAT BAR ============== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.4rem; }
.stat-item { padding: 1.5rem; border-radius: 20px; background: color-mix(in srgb, var(--c, var(--purple)) 12%, #fff); }
.stat-item:nth-child(1) { --c: oklch(0.64 0.19 32); }
.stat-item:nth-child(2) { --c: oklch(0.6 0.17 300); }
.stat-item:nth-child(3) { --c: oklch(0.66 0.15 150); }
.stat-item:nth-child(4) { --c: oklch(0.6 0.16 250); }
.stat-ic { display: none; }
.stat-num { font-size: 2.4rem; font-weight: 800; color: var(--c, var(--purple)); line-height: 1; }
.stat-label { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.4rem; font-weight: 700; }
@media (max-width: 680px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ============== FILTERS / SEARCH ============== */
.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1.5rem 0 1rem; }
.filter-btn {
    background: var(--chip-bg); border: 0;
    color: var(--ink-soft); padding: 0.6rem 1.15rem;
    border-radius: 30px; font-size: 0.85rem; cursor: pointer; font-family: inherit; font-weight: 700;
    transition: all 0.18s; text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem;
}
.filter-btn:hover { background: var(--border-strong); color: var(--ink); }
.filter-btn.is-active { background: var(--navy); color: #fff; }

.search-bar { position: relative; max-width: 460px; margin-bottom: 1.5rem; display: block; }
.search-bar i { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-bar input[type="search"] {
    width: 100%; padding: 0.75rem 6.5rem 0.75rem 2.7rem;
    background: var(--chip-bg); border: 0;
    color: var(--ink); border-radius: 30px; font-family: inherit; font-size: 0.92rem;
    outline: none; transition: box-shadow 0.2s;
}
.search-bar input:focus { box-shadow: 0 0 0 2px var(--purple); }
.search-bar input::placeholder { color: var(--muted); }
.search-bar .search-go {
    position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
    border: 0; cursor: pointer; font-family: inherit; font-size: 0.85rem; font-weight: 700;
    background: var(--navy); color: #fff;
    padding: 0.55rem 1rem; border-radius: 30px; transition: background 0.15s;
}
.search-bar .search-go:hover { background: var(--purple); }

/* ============== CARDS: featured + grid ============== */
.featured-article {
    background: #fff;
    border: 1.5px solid color-mix(in srgb, var(--c, var(--purple)) 26%, #fff);
    box-shadow: 0 0 0 1px transparent;
    border-radius: 26px;
    overflow: hidden;
    display: grid; grid-template-columns: 1.15fr 1fr;
    margin-bottom: 2.6rem;
    text-decoration: none; color: inherit;
    transition: transform 0.25s, box-shadow 0.25s;
}
.featured-article:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 56px -26px color-mix(in srgb, var(--c, var(--purple)) 55%, transparent);
}
.featured-article-img {
    height: 100%; min-height: 320px;
    background-size: cover; background-position: center;
    background-color: var(--bg-soft);
}
.featured-article-body { padding: 2rem 2.4rem; display: flex; flex-direction: column; justify-content: center; }
.blog-card-cat {
    display: inline-flex; align-items: center; gap: 0.3rem;
    background: var(--navy); color: #fff;
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em;
    padding: 0.35rem 0.85rem; border-radius: 30px;
}
.featured-article h2 { font-size: 1.7rem; font-weight: 800; line-height: 1.15; margin: 0.6rem 0 0.7rem; color: var(--ink); }
.featured-article p { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.6; margin: 0 0 1rem; }
.featured-article .meta {
    display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap;
    font-size: 0.82rem; color: var(--muted);
}
.featured-article .meta i { color: var(--purple); margin-right: 0.3rem; }
@media (max-width: 680px) {
    .featured-article { grid-template-columns: 1fr; }
    .featured-article-img { min-height: 220px; }
    .featured-article-body { padding: 1.5rem; }
}

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 1000px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
    background: #fff;
    border: 1.5px solid color-mix(in srgb, var(--c, var(--purple)) 22%, #fff);
    border-radius: 22px;
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform 0.22s, box-shadow 0.22s;
    text-decoration: none; color: inherit;
    height: 100%;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 50px -24px color-mix(in srgb, var(--c, var(--purple)) 50%, transparent);
}
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; position: relative; background: var(--bg-soft); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card .pill {
    position: absolute; bottom: 0.7rem; left: 0.7rem;
    color: #fff; font-size: 0.68rem; font-weight: 800;
    padding: 0.32rem 0.75rem; border-radius: 30px;
    text-transform: uppercase; letter-spacing: 0.06em;
    box-shadow: 0 4px 14px rgba(0,0,0,0.22);
}
.blog-card .pill.locality {
    left: auto; right: 0.7rem;
    background: var(--navy); color: #fff;
}
.blog-card-body { padding: 1.3rem 1.3rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.blog-card h3 { font-size: 1.04rem; font-weight: 800; line-height: 1.3; color: var(--ink); margin: 0 0 0.5rem; }
.blog-card p {
    color: var(--ink-soft); font-size: 0.87rem; line-height: 1.55;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    margin: 0 0 0.7rem;
}
.blog-card .meta {
    display: flex; gap: 0.7rem; align-items: center; flex-wrap: wrap;
    font-size: 0.75rem; color: var(--muted);
    margin-top: auto; padding-top: 0.7rem;
    border-top: 1px solid var(--border);
}
.blog-card .meta i { color: var(--purple); margin-right: 0.25rem; }

/* ============== TAGS (tema / localidade) ============== */
.tag {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.74rem; font-weight: 700;
    padding: 0.3rem 0.75rem; border-radius: 30px;
    color: #fff;
}
.tag.locality { background: var(--navy); }

/* ============== PAGINATION ============== */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.4rem; margin-top: 2.5rem; }
.pagination .page-link {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.5rem; height: 2.5rem; padding: 0 0.75rem;
    border: 0; border-radius: 30px;
    background: var(--chip-bg); color: var(--ink-soft);
    font-weight: 700; text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.pagination a.page-link:hover { background: var(--border-strong); color: var(--ink); }
.pagination .page-link.is-current { background: var(--navy); color: #fff; cursor: default; }
.pagination .page-link.is-disabled { opacity: 0.35; pointer-events: none; }
.pagination .page-ellipsis { color: var(--muted); padding: 0 0.25rem; }

/* ============== MISC ============== */
.row-2col-50 { display: grid; grid-template-columns: 1fr 320px; gap: 2.4rem; }
@media (max-width: 980px) { .row-2col-50 { grid-template-columns: 1fr; } }
.text-muted { color: var(--muted); }
.text-accent { color: var(--purple); }
.divider { height: 1px; background: var(--border); margin: 2rem 0; }

.empty-state {
    background: var(--bg-soft); border: 1px dashed var(--border-strong);
    border-radius: 20px; padding: 3rem 1.5rem; text-align: center; margin: 2rem 0;
}
.empty-state h3 { color: var(--ink); font-weight: 800; margin: 0 0 0.5rem; }
.empty-state p { color: var(--ink-soft); margin: 0; }
.empty-state .icon { font-size: 2.6rem; color: var(--purple); margin-bottom: 0.7rem; opacity: 0.6; }

/* ============== ARTICLE VIEW (noticia.php) ============== */
.article-hero { padding: 2.6rem 0 2rem; background: var(--bg); }
.article-hero .article-meta { color: var(--muted); }
.article-hero h1 {
    font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; line-height: 1.2;
    color: var(--ink); margin: 0.6rem 0 0.7rem;
}
.article-hero-img {
    width: 100%; border-radius: 22px; margin: 1.4rem 0 0.4rem;
    max-height: 440px; object-fit: cover;
}
.article-body { padding: 1rem 0 4rem; }
.article-content { color: var(--ink); line-height: 1.85; font-size: 1.02rem; max-width: 720px; }
.article-content p { margin-bottom: 1.2rem; color: var(--ink-soft); }
.article-content h2 {
    color: var(--ink); font-size: 1.4rem; font-weight: 800;
    margin: 2.4rem 0 1rem; padding-left: 0.8rem;
    border-left: 3px solid var(--purple);
}
.article-content h3 { color: var(--ink); font-size: 1.1rem; font-weight: 700; margin: 2rem 0 0.6rem; }
.article-content a { color: var(--purple); }
.article-content a:hover { color: var(--purple-deep); text-decoration: underline; }
.article-content a.btn, .article-content a.btn:hover { color: #fff; text-decoration: none; }
.article-content ul, .article-content ol { padding-left: 1.4rem; margin-bottom: 1.2rem; color: var(--ink-soft); }
.article-content li { margin-bottom: 0.4rem; }
.article-content img { margin: 1.6rem auto; border-radius: 14px; }
.article-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.92rem; overflow-x: auto; display: block; }
.article-content th, .article-content td { padding: 0.7rem 1rem; border: 1px solid var(--border); text-align: left; }
.article-content th { background: var(--bg-soft); color: var(--ink); font-weight: 700; }

.article-meta { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: 0.84rem; color: var(--muted); margin-top: 1rem; }
.article-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.article-meta i { color: var(--purple); }

.source-box {
    background: var(--bg-soft); border: 1px solid var(--border);
    border-radius: 16px; padding: 1.2rem 1.5rem; margin: 2rem 0; font-size: 0.92rem; color: var(--ink-soft);
}
.source-box strong { color: var(--ink); }
.source-box a { color: var(--purple); }

.cta-box {
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, #fff), color-mix(in srgb, var(--purple) 8%, #fff));
    border: 1px solid var(--border-strong);
    border-radius: 20px; padding: 2rem; text-align: center; margin: 2.5rem 0;
}
.cta-box h3 { color: var(--ink); font-weight: 800; margin: 0 0 0.4rem; }

.widget-side {
    background: var(--bg-soft); border: 1px solid var(--border);
    border-radius: 18px; padding: 1.4rem; margin-bottom: 1.4rem;
}
.widget-side h4 {
    font-size: 0.92rem; font-weight: 800; margin: 0 0 0.9rem; color: var(--ink);
    padding-bottom: 0.6rem; border-bottom: 1px solid var(--border);
}
.widget-side ul { list-style: none; padding: 0; margin: 0; }
.widget-side li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.widget-side li:last-child { border-bottom: none; }
.widget-side a {
    color: var(--ink-soft); font-size: 0.85rem; text-decoration: none; line-height: 1.45;
    display: flex; align-items: flex-start; gap: 0.45rem;
}
.widget-side a i { color: var(--purple); flex-shrink: 0; margin-top: 2px; }
.widget-side a:hover { color: var(--purple); }

.promo-box-logo { height: 26px; margin: 0 auto 1.1rem; display: block; }
.promo-box-lead { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 1.4rem; }
.promo-box-img { width: 100%; border-radius: 14px; margin: 0 0 1.4rem; }

.widget-unit-lead { font-size: 0.85rem; color: var(--ink-soft); margin: 0 0 0.7rem; }
.widget-unit-line { font-size: 0.82rem; color: var(--muted); margin: 0 0 0.5rem; }
.widget-unit-line a { color: var(--purple); text-decoration: none; }
.widget-unit-line a:hover { color: var(--purple-deep); }
.widget-side a.widget-side-btn {
    width: 100%; justify-content: center; margin-top: 0.3rem;
    background: #fff; color: var(--purple-deep); border: 1px solid var(--border-strong);
}
.widget-side a.widget-side-btn:hover { background: #fff; color: var(--purple-deep); }

.widget-promo { text-align: center; }
.widget-promo-img { width: 100%; border-radius: 12px; margin-bottom: 0.9rem; }
.widget-promo-badge {
    font-size: 0.76rem; font-weight: 800; color: var(--purple-deep);
    text-transform: uppercase; letter-spacing: 0.03em; margin: 0 0 0.8rem;
}

@media (max-width: 980px) { .article-hero { padding: 2rem 0 1.4rem; } }

/* ============== MAPA (dark island dentro da página clara) ============== */
.map-section { padding: 3.5rem 0 5rem; position: relative; z-index: 2; }
.map-layout {
    background: var(--navy); border-radius: 30px; padding: 3.4rem;
    display: grid; grid-template-columns: minmax(280px, 0.82fr) 1.18fr;
    gap: 2.8rem; align-items: center; color: #fff;
}
.map-intro .eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; color: color-mix(in srgb, var(--purple) 60%, #fff); margin: 0 0 0.7rem; font-weight: 700; }
.map-intro h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; line-height: 1.08; margin: 0 0 1rem; letter-spacing: -0.01em; color: #fff; }
.map-lead { color: rgba(255,255,255,0.72); max-width: 40ch; margin: 0 0 1.7rem; }
.map-cta { margin: 0 0 2rem; }
.map-cta .btn { background: #fff; color: var(--navy); }
.map-cta .btn:hover { background: #fff; color: var(--navy); }
.map-highlight {
    display: inline-flex; align-items: center; gap: 1rem;
    padding: 0.9rem 1.4rem 0.9rem 1rem; border-radius: 16px;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
}
.map-highlight .mh-num { font-size: 2.4rem; font-weight: 900; line-height: 1; color: var(--accent-bright); letter-spacing: -0.02em; }
.map-highlight .mh-label { font-size: 0.9rem; font-weight: 700; line-height: 1.2; color: #fff; }
.map-highlight .mh-label span { color: rgba(255,255,255,0.6); font-weight: 500; }

.map-wrap { position: relative; }
.map-badges { position: absolute; top: 14px; right: 14px; z-index: 500; display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-end; pointer-events: none; }
.map-legend, .map-count {
    display: inline-flex; align-items: center; gap: 0.45rem;
    background: rgba(0,0,0,0.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.18); border-radius: 999px;
    padding: 0.4rem 0.85rem; font-size: 0.8rem; font-weight: 600; color: #fff;
}
.map-legend .ml-dot {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--brand); color: #fff; font-size: 0.7rem; font-weight: 800;
    border: 2px solid rgba(255,255,255,0.85);
}
.map-count strong { color: var(--accent-bright); font-weight: 800; }

#bn-map {
    height: 480px; border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.14);
    background: #0A1520;
}
@media (max-width: 900px) {
    .map-layout { grid-template-columns: 1fr; gap: 1.8rem; padding: 2.2rem; }
    .map-intro { text-align: center; }
    .map-lead { margin-left: auto; margin-right: auto; }
}
@media (max-width: 680px) { #bn-map { height: 340px; } }

.davinci-marker-wrap { background: transparent; border: 0; }
.davinci-marker {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--brand); color: #fff; font-weight: 800; font-size: 0.85rem;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid rgba(255,255,255,0.85);
    box-shadow: 0 0 0 4px rgba(15,139,166,0.30), 0 4px 12px rgba(0,0,0,0.5);
    transition: transform 0.15s;
}
.davinci-marker:hover { transform: scale(1.18); }

/* ============== CTA "Queres apoio ao estudo?" (painel roxo) ============== */
.cta-support { padding: 0 0 5rem; }
.cta-card {
    display: grid; grid-template-columns: 1.05fr 0.95fr;
    align-items: stretch; border-radius: 30px; overflow: hidden;
    background: linear-gradient(135deg, var(--purple), var(--purple-deep));
}
.cta-text { padding: 3.2rem 3.2rem 3.2rem 3.4rem; display: flex; flex-direction: column; justify-content: center; color: #fff; }
.cta-text h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; line-height: 1.1; margin: 0 0 0.9rem; letter-spacing: -0.01em; color: #fff; }
.cta-text h2 span { color: #fff; }
.cta-text p { color: rgba(255,255,255,0.85); font-size: 1.05rem; line-height: 1.6; margin: 0 0 1.7rem; max-width: 46ch; }
.cta-text .btn { align-self: flex-start; background: #fff; color: var(--purple-deep); }
.cta-text .btn:hover { background: #fff; color: var(--purple-deep); }
.cta-img { background-size: cover; background-position: center; min-height: 320px; position: relative; }
.cta-img::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--purple) 0%, rgba(140,92,208,0.25) 22%, rgba(140,92,208,0) 55%); }
@media (max-width: 820px) {
    .cta-card { grid-template-columns: 1fr; }
    .cta-text { padding: 2.2rem 1.8rem; text-align: center; }
    .cta-text .btn { align-self: center; }
    .cta-text p { margin-left: auto; margin-right: auto; }
    .cta-img { min-height: 220px; order: -1; }
    .cta-img::before { background: linear-gradient(0deg, var(--purple) 0%, rgba(140,92,208,0) 55%); }
}

/* ============== FOOTER ============== */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 3rem 0 2rem; margin-top: 4rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 2fr 1fr 1fr 1fr; }
.footer-grid h6 { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin: 0 0 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: 0.25rem 0; }
.footer-grid a { color: var(--muted); font-size: 0.88rem; }
.footer-grid a:hover { color: var(--purple); }
.footer-tagline { color: var(--muted); font-size: 0.85rem; margin: 0.8rem 0; }
.footer-logo { height: 40px; width: auto; margin-bottom: 0.9rem; }
.social-icons { display: flex; gap: 0.7rem; margin-top: 1.1rem; }
.social-icons a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--chip-bg); color: var(--ink-soft); font-size: 1.05rem; transition: all 0.2s;
}
.social-icons a:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.footer-servicos { columns: 2; column-gap: 1.5rem; }
.footer-servicos li { break-inside: avoid; }
.footer-meta {
    margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
    color: var(--muted); font-size: 0.82rem;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-meta a { color: var(--muted); }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .footer-grid { grid-template-columns: 1fr; } .footer-servicos { columns: 1; } }

/* ============== FX (fx.js): linha de scroll + progresso + reveal ======== */
.bn-scroll-line { position: absolute; top: 0; left: 0; width: 100%; z-index: 0; pointer-events: none; opacity: 0.4; }
.bn-scroll-line circle { transition: opacity 0.3s; }
.site-header { position: sticky; z-index: 50; }
.bn-read-progress {
    position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
    background: linear-gradient(90deg, var(--brand), var(--accent), var(--purple));
    transform: scaleX(0); transform-origin: left; pointer-events: none;
    box-shadow: 0 0 12px rgba(26,184,200,0.4);
}
.bn-reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; will-change: opacity, transform; }
.bn-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .bn-reveal { opacity: 1; transform: none; transition: none; } }

/* ============== Animações (do Claude Design) ============== */
@keyframes davFadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes davPop { 0% { opacity: 0; transform: translateY(14px) scale(.9); } 60% { transform: translateY(0) scale(1.02); } 100% { opacity: 1; transform: scale(1); } }
@keyframes davFloat { 0%,100% { transform: translateY(0) rotate(var(--r,0deg)); } 50% { transform: translateY(-8px) rotate(var(--r,0deg)); } }
