/* Layouts próprios das páginas de setor. Marca, tipografia e componentes vêm da home. */
.official-sector [hidden] { display: none !important; }
.official-sector :is(main section, #filtros) { scroll-margin-top: 4.5rem; }
html:not(.ident-on) .official-sector .reveal { opacity: 1; transform: none; filter: none; }

.sector-hero {
  isolation: isolate;
  min-height: min(48rem, 100svh);
  padding: clamp(6rem, 10vw, 9rem) 0 clamp(3rem, 7vw, 6rem);
}
.sector-hero .hero__bg { inset: 0 calc((100% - 100vw) / 2) 0; height: auto; border-radius: 0 0 var(--radius-xl) var(--radius-xl); overflow: hidden; background: var(--bg); }
.sector-hero .hero__bg img { width: 100%; height: 100%; object-fit: cover; }
[data-theme="dark"] .sector-hero .hero__bg::after {
  background: linear-gradient(90deg, rgba(10,35,24,.97), rgba(10,35,24,.84) 43%, rgba(10,35,24,.42) 100%),
              linear-gradient(0deg, var(--bg), transparent 60%);
}
.sector-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
}
.sector-hero .hero__brand { --k: 1.7; margin-bottom: 1.3rem; }
.sector-hero .hero__title { font-size: clamp(2.35rem, 4.9vw, 4.4rem); line-height: 1.02; text-wrap: balance; }
.sector-hero .hero__lead { color: var(--text); }
.sector-hero .hero__actions { margin-top: 1.6rem; }
.sector-hero .btn--ghost { background: rgba(10,35,24,.55); }
.sector-film {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--forest-950);
  box-shadow: var(--shadow-lg);
}
.sector-film video { width: 100%; display: block; aspect-ratio: 16 / 9; background: #000; }
.sector-stats .stat:first-child { color: var(--light-green); font-weight: 800; }
.sector-stats .proof-note { margin-top: .9rem; color: var(--text-soft); font-size: .87rem; text-align: center; }

.commercial-section, .field-gallery, .other-sectors, .sector-focus { padding-block: clamp(2.75rem, 6vw, 5rem); }
.commercial-section + .commercial-section, .other-sectors { border-top: 1px solid var(--border); }
.commercial-section > p, .field-gallery > p, .sector-heading > p { color: var(--text-soft); margin-top: 1rem; max-width: 65ch; }
.commercial-grid, .project-grid, .research-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}
.commercial-grid .card { grid-column: auto; min-height: 0; }
.commercial-grid .card h3, .commercial-band h3 { margin-bottom: .65rem; line-height: 1.3; }
.commercial-band, .project-card, .research-notes article, .location-panel, .empty-state {
  min-width: 0;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.commercial-band { margin-top: 1rem; border-left: .25rem solid var(--yellow); }
.commercial-band p, .research-notes p { color: var(--text-soft); }
.commercial-tags { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.commercial-band .commercial-tags li { padding: .4rem .8rem; border: 1px solid var(--border); border-radius: 999px; font-size: .9rem; }
.research-notes article > span { color: var(--yellow); font-weight: 800; }
.research-notes h3 { margin: .5rem 0 .7rem; }
.sector-focus h2, .featured-copy h2 { font: 800 clamp(2rem, 4vw, 3.1rem)/1.07 var(--font-display); letter-spacing: -.025em; }
.featured-section { padding-block: clamp(2.75rem, 6vw, 5rem); background: var(--bg-tint); }
.featured-inner, .contact-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}
.featured-image { overflow: hidden; border-radius: var(--radius-lg); background: var(--forest-950); }
.featured-image img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.featured-image figcaption { color: var(--text-soft); padding: .65rem 1rem; font-size: .88rem; }
.featured-copy > p, .featured-meta, .featured-copy ul { margin-block: 1rem; color: var(--text-soft); }
.featured-meta { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.featured-meta strong { display: block; color: var(--text); }
.featured-copy ul { padding-left: 1.25rem; list-style: disc; }

.portfolio-section, .contact-section { background: var(--bg-tint); padding-block: clamp(2.75rem, 7vw, 6rem); }
.portfolio-section .section-heading { display: grid; grid-template-columns: 1.4fr 1fr; align-items: end; gap: 1.5rem; margin-bottom: 2rem; }
.portfolio-intro p, .location-prompt span, .location-actions p, .location-status, .results-header span { color: var(--text-soft); }
.official-sector .text-link, .reset-filter, .project-details summary, .featured-details summary {
  color: var(--light-green); font-weight: 700; text-decoration: underline; text-underline-offset: .25em;
}
.official-sector .text-link:hover, .reset-filter:hover { color: var(--yellow); }
.portfolio-intro .text-link { display: inline-block; margin-top: .65rem; }
.location-prompt { display: flex; gap: .85rem; align-items: center; margin-bottom: 1rem; }
.location-prompt strong, .location-prompt span { display: block; }
.official-sector .icon, .project-location svg { width: 1.3rem; height: 1.3rem; flex: none; }
.location-prompt .icon, .location-actions .icon, .project-location svg { color: var(--light-green); }
.filter-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.filter-fields label { display: grid; gap: .4rem; font-weight: 700; }
.official-sector select {
  width: 100%; min-width: 0; padding: .72rem .85rem; color: var(--text);
  font: inherit; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2);
}
.official-sector :disabled { cursor: default; opacity: .65; }
.location-actions, .results-header, .project-controls { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem 1.2rem; margin-top: 1rem; }
.location-actions p, .project-controls > span { flex: 1 1 14rem; color: var(--text-soft); font-size: .88rem; }
.location-actions button { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem 0; }
.location-status:not(:empty) { margin-top: .7rem; }
.results-header { justify-content: space-between; margin-top: 2rem; }
.project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; margin-top: 1rem; }
.project-card { overflow-wrap: anywhere; }
.project-card h3 { font-size: 1.2rem; line-height: 1.25; }
.project-meta, .project-location, .project-summary, .project-details p, .featured-details p { color: var(--text-soft); margin-top: .65rem; }
.project-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .35rem .75rem; font-size: .82rem; margin: 0 0 .75rem; }
.project-location { display: flex; align-items: center; gap: .4rem; font-size: .9rem; }
.project-details, .featured-details { border-top: 1px solid var(--border); margin-top: 1rem; padding-top: .8rem; }
.project-details summary, .featured-details summary { cursor: pointer; }
.empty-state { grid-column: 1 / -1; }
.notice { color: var(--text-soft); margin-top: 1rem; }

.field-media { max-width: 54rem; margin: 1.5rem auto 0; }
.field-media figure { position: relative; }
.field-media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.field-media .foto-credit { border-color: var(--yellow); }
.gallery-controls { margin-top: .8rem; display: flex; justify-content: end; flex-wrap: wrap; gap: .55rem; }
.gallery-controls button { width: auto; }
.contact-copy p { margin-block: 1.2rem; color: var(--text-soft); }
.contact-email, .contact-phone { display: block; width: fit-content; overflow-wrap: anywhere; font-weight: 700; }
.contact-email:hover, .contact-phone:hover { color: var(--yellow); }
.contact-form { display: grid; gap: 1rem; min-width: 0; }
.contact-form :is(label, input, textarea) { min-width: 0; }
.form-note { color: var(--text-soft); font-size: .9rem; }
.other-sectors { margin-inline: auto; }
.other-sectors .rail__head { display: flex; padding-inline: 0; }
.other-sectors .section__title { margin-bottom: .65rem; }
.sector-footer .footer__grid { grid-template-columns: 1fr auto; }
.sector-footer .footer__brand { grid-column: auto; }

@media (max-width: 860px) {
  .sector-hero__grid, .portfolio-section .section-heading, .featured-inner, .contact-inner { grid-template-columns: 1fr; }
  .sector-hero { min-height: auto; }
  .sector-hero .hero__brand { --k: 1.35; }
  .sector-film { max-width: 40rem; }
  [data-theme="dark"] .sector-hero .hero__bg::after { background: linear-gradient(180deg, rgba(10,35,24,.92), rgba(10,35,24,.8) 45%, var(--bg)); }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .project-grid, .filter-fields, .sector-footer .footer__grid { grid-template-columns: 1fr; }
  .sector-hero .hero__brand { --k: 1.2; }
  .sector-hero .hero__badges { margin-top: 1.4rem; }
  .official-sector .fab--wa { left: auto; right: 1rem; }
}
