/* =====================================================================
   DEV-154: ARQUITETOS & GABINETES — RESPONSIVIDADE TOTAL (320px - 1440px+)
   Garantia de 0 Overflow Horizontal, Leitura Perfeita e Ajuste Fluido
   ===================================================================== */

/* Tipografia alinhada ao resto do site: Poppins (--font-display) nos títulos,
   Roboto Mono (--font-mono) só em dados técnicos reais (nº OA, ano, área m²).
   --arch-dark/--arch-muted/--arch-border-strong são apenas aliases locais
   para os tokens de cor do DESIGN.md, mantidos para não ter de reescrever
   cada ocorrência abaixo. */
:root {
  --arch-dark: var(--blue-900);
  --arch-muted: var(--gray-500);
  --arch-border-strong: var(--gray-300);
}

/* ── BASE RESPONSIVA & PADDING FIXO ───────────────────────────────── */
.page-arquitetos {
  padding-top: 120px; /* Header fixo da Construir Portugal */
  background-color: #f6f7f9;
  color: var(--gray-900, #0f172a);
  font-family: var(--font-body, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* Previne scroll horizontal em mobile */
  width: 100%;
}

@media (max-width: 767px) {
  .page-arquitetos {
    padding-top: 100px; /* Ajuste para header mobile */
  }
}

/* ── HERO DA SEÇÃO DE ARQUITETURA ────────────────────────────────── */
.arch-hero {
  position: relative;
  /* A camada de fundo era uma foto do images.unsplash.com, domínio fora do
     img-src do CSP: nunca chegava a ser desenhada — só o gradiente por cima é
     que se via — e cada visita registava um erro na consola. Fica o gradiente,
     que é o que já dava a cor ao hero, agora opaco por não haver foto por
     baixo. */
  background:
    linear-gradient(90deg, #0f1a38 0%, #131f42 50%, #1c2a52 100%);
  color: #ffffff !important;
  padding: clamp(32px, 5vh, 68px) 1.25rem clamp(32px, 4vh, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
  width: 100%;
}

.arch-hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  width: 100%;
}

@media (max-width: 991px) {
  .arch-hero-inner {
    grid-template-columns: 1fr;
  }
}

.arch-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: clamp(0.72rem, 1.2vw, 0.8125rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.12);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 18px;
  max-width: 100%;
}

.arch-hero-badge span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange-300);
  flex-shrink: 0;
  animation: arch-badge-blink 2s ease-in-out infinite;
}

@keyframes arch-badge-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.arch-hero h1 {
  font-family: var(--font-display) !important;
  font-size: clamp(1.85rem, 4.5vw, 3.6rem) !important;
  font-weight: 800 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.02em !important;
  color: #ffffff !important;
  margin-bottom: 18px !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.arch-hero h1 em {
  font-style: normal !important;
  color: var(--orange-300) !important;
}

.arch-hero-sub {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem) !important;
  line-height: 1.6 !important;
  color: rgba(255, 255, 255, 0.88) !important;
  max-width: 640px;
  margin-bottom: 24px !important;
}

.arch-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(0.75rem, 1.1vw, 0.82rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.arch-hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.arch-hero-points strong {
  color: #ffffff;
  font-weight: 700;
}

/* Card em Destaque no Hero — mesmo padrão do .prof-hero-feature em
   /servicos: cartão translúcido com ícone laranja, eyebrow e título curto.
   Substitui o antigo cartão com imagem do Unsplash, bloqueada pelo CSP do
   site (img-src não inclui esse domínio): nunca chegava a aparecer e cada
   visita registava dois erros na consola. */
.arch-hero-card {
  position: relative;
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(10px);
  color: #ffffff;
  box-shadow: 0 28px 60px rgba(4, 10, 28, 0.2);
  width: 100%;
  box-sizing: border-box;
}

.arch-hero-card-number {
  position: absolute;
  top: 18px;
  right: 22px;
  color: rgba(255, 255, 255, 0.28);
  font: 600 0.72rem var(--font-mono);
}

.arch-hero-card-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
  background: var(--orange-500);
  color: #ffffff;
  border-radius: var(--radius-md);
}

.arch-hero-card-icon svg {
  width: 26px;
  height: 26px;
}

.arch-hero-card-kicker {
  color: var(--orange-300);
  font: 700 0.7rem var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.arch-hero-card-title {
  color: #ffffff;
  font: 700 clamp(1.3rem, 2vw, 1.7rem)/1.2 var(--font-display);
  letter-spacing: -0.025em;
  margin: 0 0 14px;
}

.arch-hero-card-text {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 0;
}

/* ── BARRA DE PESQUISA E FILTROS RESPONSIVA ───────────────────────── */
.arch-search-section {
  max-width: 1240px;
  margin: -24px auto 0;
  padding: 0 1.25rem;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
  width: 100%;
}

.arch-search-card {
  background: #ffffff;
  border-radius: 12px;
  padding: clamp(16px, 2.5vw, 24px);
  box-shadow: 0 8px 30px rgba(15, 26, 56, 0.08);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}

.arch-search-field {
  flex: 1 1 240px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

@media (max-width: 640px) {
  .arch-search-field {
    flex: 1 1 100%;
  }
}

.arch-search-field label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
}

.arch-search-field select,
.arch-search-field input {
  width: 100%;
  min-height: 44px; /* Touch target legível */
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #0f172a;
  background: #f8fafc;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.arch-search-field select:focus,
.arch-search-field input:focus {
  outline: none;
  border-color: #0f1a38;
  background: #ffffff;
}

/* ── GRELHA DE GABINETES DE ARQUITETURA RESPONSIVA ───────────────── */
.arch-main-content {
  max-width: 1240px;
  margin: 36px auto 70px;
  padding: 0 1.25rem;
  box-sizing: border-box;
  width: 100%;
}

.arch-results-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
}

.arch-results-header h2 {
  font-family: var(--font-display) !important;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem) !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 !important;
}

.arch-results-count {
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  background: #e2e8f0;
  padding: 4px 12px;
  border-radius: 100px;
}

/* Sem contagem = sem "pill" cinzento vazio a flutuar no cabeçalho. */
.arch-results-count[hidden] {
  display: none !important;
}

/* BREAKPOINTS DA GRELHA */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}

@media (max-width: 1024px) {
  .arch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .arch-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ── CARD PROFISSIONAL DE GABINETE ───────────────────────────────── */
.arch-gabinete-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  width: 100%;
  box-sizing: border-box;
}

.arch-gabinete-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(15, 26, 56, 0.1);
  border-color: #cbd5e1;
}

.arch-card-banner {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0f1a38;
  width: 100%;
}

.arch-card-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.arch-gabinete-card:hover .arch-card-banner img {
  transform: scale(1.04);
}

/* Sem capa → banner neutro (nada de fotografia de stock). */
.arch-card-banner--placeholder {
  background:
    linear-gradient(135deg, #0f1a38 0%, #1c2a52 100%);
}

.arch-oa-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 26, 56, 0.92);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: calc(100% - 20px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arch-oa-pill svg {
  color: #22c55e;
  flex-shrink: 0;
}

/* Mesma pílula, mas em fluxo normal (usada no hero do perfil do gabinete,
   onde não há banner sobre o qual flutuar). */
.arch-oa-pill--static {
  position: static;
  top: auto;
  left: auto;
  max-width: 100%;
  white-space: normal;
  background: rgba(15, 26, 56, 0.78);
  border-color: rgba(255, 255, 255, 0.28);
}

.arch-card-body-wrapper {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.arch-card-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.arch-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: #e2e8f0;
  flex-shrink: 0;
}

/* Sem avatar → monograma (mesmo padrão honesto de .gabinete-avatar--placeholder). */
.arch-card-avatar--placeholder {
  display: grid;
  place-items: center;
  background: #1c2a52;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.arch-card-title-group {
  min-width: 0;
}

.arch-card-title-group h3 {
  font-family: var(--font-display) !important;
  font-size: 1.24rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.25 !important;
  margin: 0 0 2px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arch-card-headline {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arch-card-desc {
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.arch-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  margin-bottom: 14px;
}

.arch-chip {
  font-size: 0.72rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #334155;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.arch-card-footer-row {
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
  gap: 8px;
}

.arch-card-footer-row span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arch-card-cta-btn {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--arch-dark);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.arch-gabinete-card:hover .arch-card-cta-btn {
  color: var(--orange-600);
}

/* ── BANNER DE ADESÃO DE GABINETES ──────────────────────────────── */
.arch-cta-card {
  max-width: 1240px;
  margin: 50px auto 70px;
  padding: clamp(24px, 4vw, 40px) clamp(20px, 3.5vw, 32px);
  background: linear-gradient(120deg, #0f1a38 0%, #192752 100%);
  color: #ffffff !important;
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 12px 32px rgba(15, 26, 56, 0.15);
  box-sizing: border-box;
  width: 100%;
}

.arch-cta-card h2 {
  font-family: var(--font-display) !important;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem) !important;
  font-weight: 750 !important;
  color: #ffffff !important;
  margin-bottom: 8px !important;
}

.arch-cta-card p {
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem) !important;
  max-width: 640px;
  margin: 0 !important;
}

.arch-cta-action-btn {
  background: var(--orange-500);
  color: #ffffff !important;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 15px 22px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.arch-cta-action-btn:hover {
  background: var(--orange-600);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

/* ── PERFIL GABINETE DIGITAL RESPONSIVO (ARQUITETO.HTML) ─────────── */
.gabinete-hero {
  position: relative;
  background-color: #0f1a38 !important;
  color: #ffffff !important;
  min-height: clamp(340px, 45vh, 420px);
  display: flex;
  align-items: flex-end;
  padding: clamp(24px, 4vw, 40px) 1.25rem clamp(24px, 3.5vw, 36px);
  box-sizing: border-box;
  width: 100%;
}

.gabinete-cover-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
}

.gabinete-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 26, 56, 0.95) 0%, rgba(15, 26, 56, 0.4) 65%, rgba(15, 26, 56, 0.1) 100%);
}

.gabinete-hero-content {
  position: relative;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.gabinete-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

@media (max-width: 640px) {
  .gabinete-brand {
    flex-direction: column;
    align-items: flex-start;
  }
}

.gabinete-avatar {
  width: clamp(64px, 12vw, 90px);
  height: clamp(64px, 12vw, 90px);
  border-radius: 8px;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  background: #e2e8f0;
  flex-shrink: 0;
}

/* Sem avatar carregado → monograma (placeholder honesto, sem foto de stock). */
.gabinete-avatar--placeholder {
  display: grid;
  place-items: center;
  background: #1c2a52;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1;
}

.gabinete-title-area {
  min-width: 0;
}

.gabinete-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.gabinete-title-area h1 {
  font-family: var(--font-display) !important;
  font-size: clamp(1.75rem, 4vw, 3.2rem) !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 6px !important;
  word-wrap: break-word;
}

.gabinete-headline {
  font-size: clamp(0.88rem, 1.4vw, 1.05rem) !important;
  color: rgba(255, 255, 255, 0.88) !important;
}

.gabinete-consult-btn {
  background: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-700) 100%);
  color: #ffffff !important;
  border: none;
  padding: 12px 24px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(209, 124, 43, 0.35);
  white-space: nowrap;
}

.gabinete-consult-btn:hover {
  background: linear-gradient(135deg, var(--orange-600) 0%, var(--orange-900) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(209, 124, 43, 0.45);
}

/* ── CORPO DO GABINETE RESPONSIVO ────────────────────────────────── */
.gabinete-body {
  max-width: 1240px;
  margin: 36px auto 70px;
  padding: 0 1.25rem;
  box-sizing: border-box;
  width: 100%;
}

.gabinete-philosophy {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: clamp(18px, 3vw, 28px);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  margin-bottom: 36px;
}

.gabinete-philosophy-quote {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-style: italic;
  line-height: 1.5;
  color: #0f172a;
  margin-bottom: 12px;
}

/* ── ESPECIALIDADES DO GABINETE (chips reais, não texto corrido) ─── */
.gabinete-specialties {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.gabinete-philosophy > .gabinete-specialties:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.gabinete-specialties-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--arch-muted);
  margin: 0 0 10px;
}

.gabinete-specialties-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── FICHA TÉCNICA DO GABINETE (anos, nº OA, site) ────────────────── */
.gabinete-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--arch-muted);
}

.gabinete-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  word-break: break-word;
}

.gabinete-meta-item svg {
  flex-shrink: 0;
  color: var(--arch-dark);
}

a.gabinete-meta-item {
  color: var(--arch-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--arch-border-strong);
}

a.gabinete-meta-item:hover {
  border-bottom-color: var(--arch-dark);
}

a.gabinete-meta-item:focus-visible {
  outline: 2px solid var(--arch-dark);
  outline-offset: 3px;
}

.gabinete-section-title {
  font-family: var(--font-display) !important;
  font-size: clamp(1.4rem, 2.5vw, 2rem) !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-bottom: 20px !important;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
}

.gabinete-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 1024px) {
  .gabinete-projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .gabinete-projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.gabinete-project-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
}

.gabinete-project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 26, 56, 0.08);
}

.gabinete-project-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #0f1a38;
}

/* Projeto sem capa → caixa neutra com ícone, nunca uma foto de stock. */
.gabinete-project-img--placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0f1a38 0%, #1c2a52 100%);
  color: rgba(255, 255, 255, 0.5);
}

.gabinete-project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gabinete-project-card:hover .gabinete-project-img img {
  transform: scale(1.05);
}

.gabinete-project-meta {
  padding: 16px;
}

.gabinete-project-title {
  font-family: var(--font-display) !important;
  font-size: 1.22rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-bottom: 4px !important;
}

.gabinete-project-specs {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ── MODAIS E LIGHTBOX RESPONSIVOS ───────────────────────────────── */
.arch-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 26, 56, 0.92);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  box-sizing: border-box;
}

.arch-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.arch-modal-content {
  background: #ffffff;
  max-width: 1050px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 12px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .arch-modal-content {
    grid-template-columns: 1.35fr 1fr;
  }
}

.arch-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 26, 56, 0.85);
  color: #ffffff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arch-modal-gallery {
  padding: 1.25rem;
  background: #0f1a38;
}

.arch-modal-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.arch-modal-info {
  padding: clamp(16px, 3vw, 28px);
}

.arch-modal-title {
  font-family: var(--font-display) !important;
  font-size: clamp(1.5rem, 3vw, 2rem) !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-bottom: 0.75rem !important;
}

.arch-modal-specs-list {
  font-size: 0.85rem;
  color: #475569;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: #f8fafc;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.arch-modal-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 1.25rem;
}

.arch-modal-credit {
  font-size: 0.8rem;
  color: #64748b;
  font-style: italic;
}

/* ── FORMULÁRIOS RESPONSIVOS ─────────────────────────────────────── */
.arch-form-group {
  margin-bottom: 1.2rem;
}

.arch-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #0f172a;
}

.arch-form-group input,
.arch-form-group select,
.arch-form-group textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.92rem;
  font-family: inherit;
  background: #f8fafc;
  box-sizing: border-box;
}

.arch-form-group textarea {
  min-height: 100px;
}

.arch-form-group input:focus,
.arch-form-group select:focus,
.arch-form-group textarea:focus {
  outline: none;
  border-color: #0f1a38;
  background: #ffffff;
}

/* ── Preferência de canal (rádios em cartão) no pedido de reunião ── */
.arch-form-group .arch-form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #0f172a;
}

.arch-choice-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.arch-choice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  margin: 0;
  font-weight: 400;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.arch-choice:hover { border-color: var(--orange-300); }

.arch-form-group .arch-choice input[type="radio"] {
  width: 15px;
  min-height: 0;
  height: 15px;
  padding: 0;
  margin: 3px 0 0;
  flex: 0 0 auto;
  accent-color: var(--orange-500);
}

.arch-choice:has(input:checked) {
  border-color: var(--orange-500);
  background: var(--orange-50);
}

.arch-choice > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.arch-choice strong { font-size: 0.82rem; color: var(--blue-900); line-height: 1.3; }
.arch-choice small { font-size: 0.72rem; color: var(--gray-500); line-height: 1.35; }

.arch-form-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.76rem;
  color: var(--gray-500);
}

@media (max-width: 560px) {
  .arch-choice-group { grid-template-columns: 1fr; }
}

/* ── Feedback dentro do modal de pedido de reunião ── */
.arch-form-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 1rem;
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.86rem;
  line-height: 1.45;
}
.arch-form-error[hidden] { display: none; }
.arch-form-error svg { flex: 0 0 auto; margin-top: 2px; }

.arch-consult-success { text-align: center; padding: 8px 4px 0; }
.arch-consult-success[hidden] { display: none; }
.arch-consult-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  animation: archPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes archPop { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.arch-consult-success h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--blue-900);
  margin: 0 0 10px;
}
.arch-consult-success p { color: var(--gray-600); font-size: 0.95rem; line-height: 1.6; margin: 0 0 12px; }
.arch-consult-success-list {
  list-style: none;
  margin: 0 auto 14px;
  padding: 0;
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.arch-consult-success-list li {
  padding: 8px 14px;
  border: 1px solid var(--orange-100);
  border-radius: 8px;
  background: var(--orange-50);
  color: var(--blue-900);
  font-size: 0.9rem;
}
.arch-consult-success-note {
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  font-size: 0.86rem !important;
  margin-bottom: 18px !important;
}
.arch-consult-success .arch-submit-btn { max-width: 260px; margin: 0 auto; }
@media (prefers-reduced-motion: reduce) { .arch-consult-success-icon { animation: none; } }

.arch-submit-btn {
  width: 100%;
  min-height: 48px;
  background: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-700) 100%);
  color: #ffffff;
  border: none;
  padding: 12px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(209, 124, 43, 0.35);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.arch-submit-btn:hover {
  background: linear-gradient(135deg, var(--orange-600) 0%, var(--orange-900) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(209, 124, 43, 0.45);
}

/* =====================================================================
   BARRA DE CONFIANÇA (arquitetos.html)
   ===================================================================== */
.arch-trustbar {
  background: #ffffff;
  border-top: 1px solid rgba(15, 26, 56, 0.06);
  border-bottom: 1px solid rgba(15, 26, 56, 0.08);
  margin-top: 36px;
  width: 100%;
  box-sizing: border-box;
}

.arch-trustbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  box-sizing: border-box;
}

.arch-trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 28px;
  border-right: 1px solid #e2e8f0;
  min-width: 0;
}

.arch-trust-item:first-child {
  padding-left: 0;
}

.arch-trust-item:last-child {
  border-right: 0;
  padding-right: 0;
}

.arch-trust-index {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--orange-500);
  flex-shrink: 0;
}

.arch-trust-item div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.arch-trust-item strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--arch-dark);
}

.arch-trust-item div span {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
}

@media (max-width: 991px) {
  .arch-trustbar-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .arch-trust-item,
  .arch-trust-item:first-child {
    padding: 0;
    border-right: 0;
  }
}

/* =====================================================================
   TIPOLOGIAS PROCURADAS — FILTROS RÁPIDOS
   ===================================================================== */
.arch-popular {
  background: #ffffff;
  padding: clamp(28px, 4vw, 44px) 0;
  border-bottom: 1px solid rgba(15, 26, 56, 0.08);
  width: 100%;
  box-sizing: border-box;
}

.arch-popular-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
  width: 100%;
}

.arch-popular-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.arch-popular-heading > p {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0;
  max-width: 420px;
}

.arch-section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange-600);
  margin: 0 0 6px;
}

.arch-popular-heading h2 {
  font-family: var(--font-display) !important;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem) !important;
  font-weight: 750 !important;
  color: #0f172a !important;
  margin: 0 !important;
}

.arch-popular-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 991px) {
  .arch-popular-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .arch-popular-grid {
    grid-template-columns: 1fr;
  }
}

.arch-popular-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.arch-popular-card:hover {
  transform: translateY(-4px);
  border-color: rgba(229, 158, 61, 0.5);
  box-shadow: 0 14px 32px rgba(15, 26, 56, 0.1);
}

.arch-popular-card:focus-visible {
  outline: 2px solid var(--arch-dark);
  outline-offset: 2px;
}

.arch-popular-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eef2f9;
  color: var(--arch-dark);
}

.arch-popular-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.arch-popular-card > span:nth-child(2) {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.arch-popular-card strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--arch-dark);
  line-height: 1.25;
}

.arch-popular-card small {
  font-size: 0.74rem;
  color: #64748b;
}

.arch-popular-card b {
  color: var(--orange-500);
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.arch-popular-card:hover b {
  transform: translateX(4px);
}

/* =====================================================================
   CABEÇALHO DE RESULTADOS — META + LIMPAR FILTROS
   ===================================================================== */
.arch-results-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.arch-clear-filters {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--arch-border-strong);
  color: var(--arch-muted);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 0;
  border-radius: 0;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.arch-clear-filters:hover {
  color: var(--orange-600);
  border-color: var(--orange-500);
}

.arch-clear-filters:focus-visible {
  outline: 2px solid var(--arch-dark);
  outline-offset: 2px;
}

/* =====================================================================
   ESTADO VAZIO (sem resultados / diretório vazio)
   ===================================================================== */
.arch-empty {
  grid-column: 1 / -1; /* ocupa a largura toda quando vive dentro de uma grelha */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: clamp(40px, 7vw, 72px) 1.25rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
  width: 100%;
}

.arch-empty-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef2f9;
  color: var(--arch-dark);
}

.arch-empty-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.arch-empty-sub {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--arch-muted);
  max-width: 460px;
  margin: 0;
}

.arch-empty-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  border: 2px solid var(--orange-500);
  background: transparent;
  color: var(--orange-600);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.arch-empty-action:hover {
  background: var(--orange-50);
}

.arch-empty-action--join {
  background: var(--orange-500);
  border-color: var(--orange-500);
  color: #ffffff;
}

.arch-empty-action--join:hover {
  background: var(--orange-600);
  border-color: var(--orange-600);
  color: #ffffff;
}

.arch-empty-action:focus-visible {
  outline: 2px solid var(--arch-dark);
  outline-offset: 2px;
}

/* =====================================================================
   ESTADO DE ERRO (rede / servidor)
   ===================================================================== */
.arch-error {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: clamp(40px, 7vw, 72px) 1.25rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-sizing: border-box;
}

.arch-error-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--orange-50);
  color: var(--orange-500);
}

.arch-error-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.arch-error-msg {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--arch-muted);
  max-width: 440px;
  margin: 0;
}

.arch-error-retry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--orange-500);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.arch-error-retry:hover {
  background: var(--orange-600);
  transform: translateY(-1px);
}

.arch-error-retry:focus-visible {
  outline: 2px solid var(--orange-500);
  outline-offset: 2px;
}

/* =====================================================================
   SKELETONS DE CARREGAMENTO (espelham .arch-gabinete-card)
   ===================================================================== */
.arch-skeleton {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  width: 100%;
  box-sizing: border-box;
}

.arch-skel {
  background: linear-gradient(90deg, #eef1f6 25%, #e2e8f0 37%, #eef1f6 63%);
  background-size: 400% 100%;
  animation: arch-skel-shimmer 1.4s ease-in-out infinite;
  border-radius: 6px;
}

@keyframes arch-skel-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.arch-skel-banner {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 0;
}

.arch-skel-body {
  padding: 18px;
}

.arch-skel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.arch-skel-avatar {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  flex-shrink: 0;
}

.arch-skel-lines {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.arch-skel-h1 {
  height: 15px;
  width: 70%;
}

.arch-skel-h2 {
  height: 11px;
  width: 45%;
}

.arch-skel-line {
  height: 11px;
  width: 100%;
  margin-bottom: 8px;
}

.arch-skel-line-short {
  height: 11px;
  width: 65%;
  margin-bottom: 14px;
}

.arch-skel-chips {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.arch-skel-chip {
  height: 20px;
  width: 84px;
  border-radius: 4px;
}

.arch-skel-footer {
  height: 13px;
  width: 100%;
  margin-top: 12px;
}

/* ── SKELETON DO PERFIL DO GABINETE (hero navy + corpo) ───────────── */
.gabinete-skel-hero {
  background: var(--arch-dark);
  min-height: clamp(340px, 45vh, 420px);
  display: flex;
  align-items: flex-end;
  padding: clamp(24px, 4vw, 40px) 1.25rem clamp(24px, 3.5vw, 36px);
  box-sizing: border-box;
  width: 100%;
}

.gabinete-skel-hero-inner {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.gabinete-skel-hero-lines {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Variante do shimmer para fundo escuro (o .arch-skel cinzento
   desapareceria contra o navy do hero). */
.gabinete-skel-on-dark {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.07) 25%,
    rgba(255, 255, 255, 0.17) 37%,
    rgba(255, 255, 255, 0.07) 63%
  );
  background-size: 400% 100%;
  animation: arch-skel-shimmer 1.4s ease-in-out infinite;
  border-radius: 6px;
}

.gabinete-skel-avatar {
  width: clamp(64px, 12vw, 90px);
  height: clamp(64px, 12vw, 90px);
  border-radius: 8px;
  flex-shrink: 0;
}

.gabinete-skel-title {
  height: clamp(28px, 4vw, 44px);
  width: min(420px, 62%);
}

.gabinete-skel-sub {
  height: 14px;
  width: min(260px, 40%);
}

@media (prefers-reduced-motion: reduce) {
  .arch-skel,
  .gabinete-skel-on-dark,
  .arch-hero-badge span {
    animation: none;
  }

  .arch-popular-card,
  .arch-popular-card b,
  .arch-gabinete-card {
    transition: none;
  }
}
