/* =====================================================================
   ANJE — imagens (cards, capas, fundos) e footer (proposta B)
   ===================================================================== */

/* ---- Capas nos cards ---- */
.card.has-media { padding-top: 0; overflow: hidden; }
.card-media { position: relative; margin: 0 -22px 16px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-tint); }
.card.feature.has-media .card-media { margin: 0 -26px 18px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
a.card:hover .card-media img { transform: scale(1.05); }
.card-media.is-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.35)); }
.card-media-tag { position: absolute; left: 12px; top: 12px; z-index: 1; font-size: .68rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); backdrop-filter: blur(6px); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.deadline { font-weight: 700; color: var(--ink-2); }
.deadline.is-soon { color: var(--danger); }

/* Data em destaque nos cards de eventos */
.event-date { position: absolute; right: 14px; top: 12px; width: 52px; text-align: center; background: #fff; border-radius: 12px; box-shadow: 0 6px 16px rgba(0,0,0,.18); padding: 6px 0 5px; z-index: 2; }
.event-date b { display: block; font-size: 1.3rem; line-height: 1; color: var(--brand); }
.event-date span { font-size: .66rem; text-transform: uppercase; font-weight: 700; color: var(--muted); }

/* Lista com miniatura (homepage) */
.card.list-media { display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: center; padding: 12px; }
.card.list-media > img { width: 132px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.card.list-media h3 { font-size: 1.02rem; margin: 0 0 4px; }
.card.list-media p { margin: 0; }
@media (max-width: 480px) { .card.list-media { grid-template-columns: 96px 1fr; } .card.list-media > img { width: 96px; } }

/* Capa de destaque nas páginas de detalhe */
.detail-cover { margin: 0 0 26px; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 9; background: var(--bg-tint); box-shadow: var(--shadow); position: relative; }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-cover figcaption { position: absolute; right: 10px; bottom: 8px; font-size: .68rem; color: #fff; background: rgba(0,0,0,.45); padding: 2px 8px; border-radius: 6px; }
.split > .detail-cover, .split > div > .detail-cover:first-child { grid-column: 1 / -1; }
.wrap.section.split > .detail-cover { grid-column: 1 / -1; margin-bottom: 0; }
.prose .detail-cover, article.prose > .detail-cover { max-width: none; }

/* Empresa: banner do sector + logótipo */
.company-card .company-banner { aspect-ratio: 16 / 6; margin-bottom: 0; }
.company-logo { width: 64px; height: 64px; border-radius: 18px; background: #fff; border: 3px solid #fff; box-shadow: 0 8px 20px -8px rgba(35,26,36,.45); display: grid; place-items: center; overflow: hidden; margin: -32px 0 10px; position: relative; z-index: 1; }
.company-logo img { width: 100%; height: 100%; object-fit: contain; }
.company-logo span { font-weight: 800; font-size: 1.5rem; color: var(--brand); }
.company-name { display: block; font-size: 1.05rem; }
.company-hero { position: relative; margin-top: 24px; }
.company-hero-bg { width: 100%; aspect-ratio: 16 / 4; object-fit: cover; border-radius: var(--radius-lg); display: block; }
.company-logo-lg { width: 110px; height: 110px; border-radius: 26px; margin: -55px 0 0 28px; border-width: 4px; }
.company-logo-lg span { font-size: 2.6rem; }
@media (max-width: 640px) { .company-hero-bg { aspect-ratio: 16 / 7; } .company-logo-lg { width: 84px; height: 84px; margin-top: -42px; } }

/* Avatares com iniciais (mentores) */
.avatar-xl { width: 64px; height: 64px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; font-size: 1.2rem; color: #fff; background: linear-gradient(135deg, var(--brand), #4a1c27); margin-bottom: 10px; box-shadow: 0 0 0 4px var(--brand-50); }

/* ---- Cabeçalhos de página com ilustração ---- */
.page-head { background: url("../img/patterns/capulana-light.svg") repeat, var(--bg-soft); position: relative; overflow: hidden; }
.page-head-in { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.page-head.has-art .page-head-in { grid-template-columns: 1fr minmax(0, 380px); }
.page-head-art { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); transform: rotate(1.5deg); }
@media (max-width: 860px) { .page-head.has-art .page-head-in { grid-template-columns: 1fr; } .page-head-art { aspect-ratio: 16 / 7; transform: none; } }

/* ---- Fundos de secção com padrão ---- */
.section.tint { background: url("../img/patterns/capulana-light.svg") repeat, var(--bg-soft); }
.section.dark { background: url("../img/patterns/capulana-dark.svg") repeat, radial-gradient(900px 400px at 85% 0%, rgba(200,20,42,.35), transparent 60%), var(--ink); }
.newsletter-box { background: url("../img/patterns/capulana-dark.svg") repeat, linear-gradient(120deg, var(--ink), #4a1c27); }

/* Hero com ilustração institucional */
.hero-visual { background: var(--hero-img) center / cover no-repeat, linear-gradient(140deg, #2b1f2c, #4b1a26 55%, var(--brand) 120%); }
.hero-visual::before { background: linear-gradient(180deg, rgba(35,26,36,0) 30%, rgba(35,26,36,.7)); opacity: 1; }
.hero { background: url("../img/patterns/capulana-brand.svg") repeat, radial-gradient(1200px 500px at 85% -10%, rgba(200,20,42,.12), transparent 60%), var(--bg-soft); }

/* =====================================================================
   Footer
   ===================================================================== */
.ft { position: relative; margin-top: 120px; color: #cfc6cb; font-size: var(--fs-sm); }
.ft a { color: #ece4e8; text-decoration: none; }
.ft a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* 1. Cartão de chamada à acção sobreposto */
.ft-cta { position: relative; z-index: 2; margin-bottom: -90px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: 28px; color: #fff; overflow: hidden;
  background: var(--cta-img) right center / cover no-repeat, linear-gradient(120deg, #c8142a, #7a1225); box-shadow: 0 30px 60px -30px rgba(200,20,42,.65); }
.ft-cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(122,18,37,.96) 0%, rgba(122,18,37,.85) 50%, rgba(122,18,37,.35)); }
.ft-cta > * { position: relative; }
.ft-cta h2 { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); margin-bottom: 10px; }
.ft-cta p { color: #f6dfe4; max-width: 56ch; }
.ft-btn-light { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.ft-btn-light:hover { background: rgba(255,255,255,.24); color: #fff; }
.ft-news { display: grid; gap: 8px; background: rgba(255,255,255,.96); color: var(--ink); border-radius: 20px; padding: 20px; box-shadow: var(--shadow-lg); }
.ft-news b { font-size: 1.05rem; }
.ft-news > span, .ft-news small { color: var(--muted); font-size: var(--fs-xs); }
.ft-news small a { color: var(--brand-600); }
.ft-news-row { display: flex; gap: 8px; }
.ft-news-row input { flex: 1; min-width: 0; font: inherit; font-size: var(--fs-sm); padding: 11px 14px; border: 1px solid var(--line); border-radius: 999px; }
.ft-news-row input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(200,20,42,.12); }
@media (max-width: 900px) { .ft-cta { grid-template-columns: 1fr; } }

/* 2. Bloco principal */
.ft-main { background: url("../img/patterns/capulana-dark.svg") repeat, linear-gradient(180deg, #1d151e, #150f16); padding: 140px 0 28px; }
.ft-grid { display: grid; grid-template-columns: 1.1fr 2.4fr 1.2fr; gap: 40px; }
.ft-brand img { height: 60px; width: auto; margin-bottom: 16px; }
.ft-brand p { color: #bfb5ba; max-width: 36ch; }
.ft-social { list-style: none; display: flex; gap: 10px; padding: 0; margin: 18px 0; }
.ft-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); transition: background .15s, transform .15s; }
.ft-social a:hover { background: var(--brand); transform: translateY(-2px); text-decoration: none; }
.ft-social svg { width: 18px; height: 18px; }
.ft-install { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: var(--fs-xs); font-weight: 700; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 9px 14px; cursor: pointer; }
.ft-install svg { width: 16px; height: 16px; }
.ft-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.ft h3 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin: 6px 0 16px; }
.ft-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ft-links a { color: #cfc6cb; }
.ft-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ft-cards li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.ft-cards svg { width: 17px; height: 17px; flex: none; color: #ff8a9a; margin-top: 2px; }
.ft-note { font-size: .7rem; color: #9d9298; margin: 8px 0 0; }
.ft-verify { margin-top: 18px; }
.ft-verify label { display: block; color: #fff; font-weight: 700; font-size: var(--fs-xs); margin-bottom: 6px; }
.ft-verify input { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); color: #fff; }
.ft-verify input::placeholder { color: #a99ea4; }
.ft-provinces { display: flex; align-items: center; gap: 16px; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); flex-wrap: wrap; }
.ft-provinces > span { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #ff8a9a; }
.ft-provinces ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.ft-provinces a { display: inline-block; font-size: .74rem; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.05); color: #cfc6cb; }
.ft-provinces a:hover { background: rgba(255,255,255,.12); text-decoration: none; }
@media (max-width: 1100px) { .ft-grid { grid-template-columns: 1fr 1fr; } .ft-links { grid-column: 1 / -1; order: 3; } }
@media (max-width: 700px) { .ft-grid { grid-template-columns: 1fr; } .ft-links { grid-template-columns: 1fr 1fr; } }

/* 3. Barra legal */
.ft-bottom { background: #0f0a10; font-size: var(--fs-xs); color: #9d9298; }
.ft-bottom-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.ft-bottom nav { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.ft-bottom a { color: #bfb5ba; }
.ft-lock { opacity: .5; display: inline-flex; }
.ft-lock:hover { opacity: 1; }
.ft-lock svg { width: 15px; height: 15px; }
.ft-top { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; font-size: 1.1rem; cursor: pointer; transition: background .15s, transform .15s; }
.ft-top:hover { background: var(--brand); transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) { .card-media img, .ft-social a, .ft-top { transition: none !important; } a.card:hover .card-media img { transform: none; } }
.ft-install[hidden] { display: none; }

/* ---- Fotografias ilustrativas: créditos ---- */
.page-head-fig { position: relative; margin: 0; }
.page-head-fig figcaption { position: absolute; right: 10px; bottom: 10px; font-size: .64rem; color: #fff; background: rgba(0,0,0,.5); padding: 3px 8px; border-radius: 6px; max-width: 90%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform: rotate(1.5deg); }
.page-head-fig figcaption a, .detail-cover figcaption a, .company-hero-credit a { color: #fff; text-decoration: underline; }
.detail-cover figcaption { font-size: .68rem; max-width: 92%; }
.company-hero-credit { position: absolute; right: 12px; top: 12px; font-size: .64rem; color: #fff; background: rgba(0,0,0,.5); padding: 3px 8px; border-radius: 6px; }
.card-media.is-stock img { filter: saturate(1.05) contrast(1.02); }
.credit-card { padding: 0; overflow: hidden; margin: 0; }
.credit-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.credit-card figcaption { padding: 12px 14px; line-height: 1.55; word-break: break-word; }
@media (max-width: 860px) { .page-head-fig figcaption { transform: none; } }

/* ---- Hero: card com fotografia (imagem em cima, texto em baixo) ---- */
.hero-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: linear-gradient(160deg, #2b1f2c, #4a1c27); color: #fff; display: flex; flex-direction: column; }
.hero-photo-img { position: relative; aspect-ratio: 16 / 10; background: var(--hero-img) center 55% / cover no-repeat, #3a2a33; padding: 16px; }
.hero-photo-img::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(180deg, transparent, rgba(43,31,44,.85)); }
.hero-chip { position: relative; z-index: 1; display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: var(--ink); background: rgba(255,255,255,.94); padding: 6px 12px; border-radius: 999px; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.hero-photo-body { padding: 20px 24px 22px; }
.hero-photo-body b { display: block; font-size: clamp(1.1rem, .95rem + .6vw, 1.4rem); line-height: 1.25; letter-spacing: -.01em; }
.hero-photo-body p { margin: 8px 0 14px; color: #e9dfe4; }
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-points a { display: inline-flex; align-items: center; gap: 7px; color: #fff; font-size: var(--fs-xs); font-weight: 700; text-decoration: none; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); transition: background .15s; }
.hero-points a:hover { background: var(--brand); color: #fff; }
.hero-points svg { width: 15px; height: 15px; color: #ffb4bd; flex: none; }
.hero-points a:hover svg { color: #fff; }
.hero-photo .note { margin: -8px 0 0; padding: 0 24px 16px; font-size: .66rem; opacity: .75; }
.hero-photo .note a { color: #fff; }

/* =====================================================================
   Homepage — montra do ecossistema
   ===================================================================== */
.eco-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.eco-head h2 { max-width: 18ch; }
.eco-head p { color: var(--muted); max-width: 60ch; margin: 0; }
.eco-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.eco-sectors { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.eco-sectors a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 8px 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; transition: border-color .15s, background .15s; }
.eco-sectors a:hover { border-color: var(--brand); color: var(--ink); }
.eco-sectors b { min-width: 26px; text-align: center; font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); }
.eco-sectors .eco-sectors-all { border-style: dashed; padding-right: 14px; color: var(--brand-700); }

.eco-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; align-items: stretch; }
@media (max-width: 980px) { .eco-grid { grid-template-columns: 1fr; } }

/* Destaque */
.eco-spot { position: relative; min-height: 520px; border-radius: var(--radius-lg); overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, rgba(25,15,22,.05) 0%, rgba(25,15,22,.25) 35%, rgba(25,15,22,.88) 70%, rgba(25,15,22,.96) 100%), var(--eco-img) center / cover no-repeat, #2b1f2c; }
.eco-spot-top { display: flex; gap: 8px; align-items: center; }
.eco-badge { font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px rgba(200,20,42,.8); }
.eco-spot-id { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.eco-logo { margin: 0; width: 60px; height: 60px; flex: none; }
.eco-spot h3 { color: #fff; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin: 0 0 2px; }
.eco-spot-id p { margin: 0; color: #e3d8de; font-size: var(--fs-sm); }
.eco-spot-desc { color: #f1e9ed; max-width: 56ch; }
.eco-spot-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 0 0 18px; }
.eco-spot-facts div { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 10px 12px; backdrop-filter: blur(6px); }
.eco-spot-facts dt { font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: #ffb4bd; font-weight: 700; }
.eco-spot-facts dd { margin: 2px 0 0; font-size: var(--fs-sm); font-weight: 600; }
.eco-btn-light { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.eco-btn-light:hover { background: rgba(255,255,255,.24); color: #fff; }
.eco-credit { position: absolute; right: 12px; top: 14px; font-size: .62rem; color: #fff; background: rgba(0,0,0,.45); padding: 3px 8px; border-radius: 6px; max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eco-credit a { color: #fff; }

/* Lateral */
.eco-side { display: grid; gap: 16px; grid-template-rows: 1fr auto; }
.eco-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 18px 10px; }
.eco-list h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.eco-list ul { list-style: none; margin: 0; padding: 0; }
.eco-list li + li { border-top: 1px solid var(--line-2); }
.eco-list a { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 4px; text-decoration: none; color: var(--ink); border-radius: 10px; }
.eco-list a:hover { background: var(--bg-soft); }
.eco-list img { width: 64px; height: 48px; object-fit: cover; border-radius: 10px; }
.eco-list b { display: block; font-size: var(--fs-sm); }
.eco-list small { display: block; font-size: var(--fs-xs); color: var(--muted); }
.eco-arrow { color: var(--muted); transition: transform .15s, color .15s; }
.eco-list a:hover .eco-arrow { transform: translateX(3px); color: var(--brand); }
.eco-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-radius: var(--radius-lg); overflow: hidden; background: rgba(255,255,255,.12);
  background: url("../img/patterns/capulana-dark.svg") repeat, linear-gradient(120deg, var(--ink), #4a1c27); color: #fff; }
.eco-stats div { padding: 18px 16px; }
.eco-stats div + div { border-left: 1px solid rgba(255,255,255,.12); }
.eco-stats b { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.eco-stats span { font-size: var(--fs-xs); color: #e3d8de; }
.eco-stats p { grid-column: 1 / -1; margin: 0; padding: 10px 16px; font-size: .66rem; color: #cbbfc5; border-top: 1px solid rgba(255,255,255,.12); }
@media (max-width: 480px) { .eco-list a { grid-template-columns: 52px 1fr auto; } .eco-list .tag { display: none; } .eco-list img { width: 52px; height: 40px; } .eco-stats b { font-size: 1.5rem; } }
