/* ─── Design tokens — Light ─────────────────────────────────── */
:root {
  --accent:        #C8102E;
  --accent-dark:   #A50D26;
  --navy:          #111111;
  --navy-link:     #C8102E;
  --border:        #e8e8e8;
  --muted:         #767676;
  --bg:            #ffffff;
  --bg-light:      #f5f5f5;
  --bg-surface:    #ffffff;
  --text:          #1a1a1a;
  --text-secondary:#333333;

  /* Espaçamento entre imagem principal e thumbnails */
  --img-thumb-gap: 24px;
}

/* ─── Design tokens — Dark (Acervo — preto/vermelho) ────────── */
[data-bs-theme="dark"] {
  --border:        #2E2E2E;
  --muted:         #888888;
  --bg:            #0D0D0D;
  --bg-light:      #1A1A1A;
  --bg-surface:    #222222;
  --text:          #F4F4F5;
  --text-secondary:#C8C8C8;
  --navy:          #222222;
  --navy-link:     #E85555;
}

/* ─── Reset / base ──────────────────────────────────────────── */
html {
  overflow-x: clip;
}
body {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
}

a { color: var(--navy-link); }
a:hover { color: var(--navy); }

/* ─── Utility ───────────────────────────────────────────────── */
.text-accent   { color: var(--accent) !important; }
.text-navy     { color: var(--navy)   !important; }
.text-muted    { color: var(--muted)  !important; }
.border-light  { border-color: var(--border) !important; }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn-accent {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.btn-accent:hover,
.btn-accent:focus {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}
.btn-navy {
  background-color: var(--navy);
  border-color: var(--navy);
  color: #fff;
  font-weight: 600;
}
.btn-navy:hover { background-color: #000; border-color: #000; color: #fff; }

/* ─── Navbar ────────────────────────────────────────────────── */
.site-topbar {
  background: var(--bg);
  font-size: 12px;
  color: var(--muted);
  padding: 6px 0;
}
.site-topbar a { color: var(--muted); text-decoration: none; }
.site-topbar a:hover { color: var(--text); }

/* ─── Botão de tema ─────────────────────────────────────────── */
.theme-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  color: var(--muted);
  display: flex;
  align-items: center;
  line-height: 1;
}
.theme-toggle-btn:hover { color: var(--text); }
.theme-toggle-btn::before {
  content: '☀';
  font-size: 15px;
}
[data-bs-theme="dark"] .theme-toggle-btn::before {
  content: '☾';
  font-size: 14px;
}

/* ─── Header principal (logo centralizada) ──────────────────── */
.site-navbar-logo {
  background: var(--bg);
  padding: 16px 0 0;
}
.navbar-brand {
  text-decoration: none;
  display: inline-block;
  line-height: 1;
}
.navbar-logo-home {
  height: 96px;
  width: auto;
  display: block;
}
[data-bs-theme="dark"] .navbar-logo-home {
  filter: brightness(0) invert(1);
}
.navbar-tagline {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

/* ─── Nav + Search combinados ───────────────────────────────── */
.site-header-home {
  margin-bottom: 40px;
}
.navbar-home {
  background: var(--bg);
}
.site-navbar-top {
  margin-bottom: 32px;
  position: relative;
}
.site-navbar-top .navbar-brand {
  margin-top: -20px;
  position: relative;
  z-index: 1;
}
.site-nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  gap: 0;
  flex-wrap: wrap;
  overflow: hidden;
}
.site-nav-links li { display: flex; align-items: center; }
.site-nav-links a {
  font-size: 21px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 0 24px;
  display: block;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.site-nav-links a:hover,
.site-nav-links a.active { color: var(--navy); border-bottom-color: var(--navy); }

/* ─── Search bar dentro do nav-search ───────────────────────── */
.site-home-search {
  max-width: 600px;
  background: rgb(240,240,240);
  border-radius: 4px;
  padding: 8px 16px;
  gap: 8px;
  margin: 0 auto;
}
.site-home-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  width: 100%;
  color: var(--text);
}

/* ─── Navbar compacta (páginas internas) ───────────────────── */
.site-navbar-compact {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.site-navbar-compact .container {
  min-height: 52px;
}
.navbar-brand-compact {
  text-decoration: none;
  flex-shrink: 0;
}
.navbar-logo-compact {
  height: 32px;
  width: auto;
  display: block;
}
[data-bs-theme="dark"] .navbar-logo-compact {
  filter: brightness(0) invert(1);
}
.site-navbar-compact__search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-light);
  border-radius: 4px;
  padding: 6px 12px;
  flex: 0 1 320px;
}
.site-navbar-compact__search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  width: 100%;
  color: var(--text);
}
.site-navbar-compact__links {
  display: flex;
  gap: 4px;
}
.site-navbar-compact__links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 3px;
  white-space: nowrap;
}
.site-navbar-compact__links a:hover { color: var(--navy); background: var(--bg-light); }

/* ─── Hero grid (homepage) ──────────────────────────────────── */
.hero-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: 220px 220px;
  gap: 8px;
  margin-bottom: 32px;
}
.hero-grid__main {
  grid-row: 1 / 3;
  position: relative;
  overflow: hidden;
}
.hero-grid__main img,
.hero-grid__side img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.hero-grid__main:hover img,
.hero-grid__side:hover img { transform: scale(1.03); }

.hero-grid__side {
  position: relative;
  overflow: hidden;
}
.hero-grid__side--placeholder {
  background: var(--bg-light);
  display: flex; align-items: center; justify-content: center;
}

.hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 100%);
  color: #fff;
}
.hero-overlay__label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 4px;
}
.hero-overlay__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  text-decoration: none;
}
.hero-overlay__title:hover { color: var(--accent); }
.hero-overlay--small .hero-overlay__title { font-size: 12px; }

/* ─── Category filter pills ─────────────────────────────────── */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}
.category-pill {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.15s;
}
.category-pill:hover { border-color: var(--navy); color: var(--navy); }
.category-pill.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ─── Main + sidebar layout ─────────────────────────────────── */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 992px) {
  .content-layout { grid-template-columns: 1fr; }
}

/* ─── Article card (feed list) ──────────────────────────────── */
.article-card {
  display: flex;
  gap: 0;
  flex-direction: column;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.article-card:last-child { border-bottom: none; }

.article-card__img-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  margin-bottom: var(--img-thumb-gap);
  max-width: 680px;
  cursor: pointer;
}
.article-card__img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}
.article-card__img-wrap:hover img { transform: scale(1.03); }

.article-card__thumbs {
  --thumb-gap: 16px;
  display: flex;
  gap: var(--thumb-gap);
  margin-bottom: 10px;
  max-width: 680px;
}
.article-card__thumb-wrap {
  flex: 1;
  min-width: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}
.article-card__thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.article-card__thumb-wrap:hover .article-card__thumb { transform: scale(1.05); }

/* Última miniatura com fundo escuro + "+N" */
.article-card__thumb-wrap--more .article-card__thumb {
  filter: brightness(0.4);
}
.article-card__thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  pointer-events: none;
}

.article-card__category {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--navy-link);
  text-decoration: none;
  margin-bottom: 4px;
  display: block;
}
.article-card__title {
  font-size: 20px; font-weight: 700; line-height: 1.25;
  margin-bottom: 6px;
}
.article-card__title a { color: var(--text); text-decoration: none; }
.article-card__title a:hover { color: var(--navy); }

.article-card__meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-size: 12px; color: var(--muted);
  margin-bottom: 0;
}
.article-card__meta span { display: flex; align-items: center; gap: 4px; }
.article-card__meta a { color: var(--navy-link); text-decoration: none; }
.article-card__meta a:hover { text-decoration: underline; }

/* ─── Sidebar ───────────────────────────────────────────────── */
.sidebar-section {
  margin-bottom: 32px;
}
.sidebar-section__title {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--muted);
  border-bottom: 2px solid var(--navy);
  padding-bottom: 6px;
  margin-bottom: 14px;
}
.sidebar-card {
  display: flex; gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}
.sidebar-card:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sidebar-card:hover .sidebar-card__title { color: var(--navy); }
.sidebar-card__img {
  width: 72px; height: 56px;
  object-fit: cover; flex-shrink: 0;
}
.sidebar-card__img--placeholder {
  width: 72px; height: 56px;
  background: var(--bg-light); flex-shrink: 0;
}
.sidebar-card__title {
  font-size: 12px; font-weight: 600; line-height: 1.35;
  color: var(--text);
}
.sidebar-card__sub {
  font-size: 11px; color: var(--muted); margin-top: 2px;
}

/* ─── Grid card (used in architect page) ───────────────────── */
.grid-card {
  text-decoration: none; color: inherit;
  display: block;
}
.grid-card:hover .grid-card__title { color: var(--navy); }
.grid-card__img {
  width: 100%; height: 200px;
  object-fit: cover; display: block;
  margin-bottom: 8px;
}
.grid-card__img--placeholder {
  width: 100%; height: 200px;
  background: var(--bg-light); margin-bottom: 8px;
}
.grid-card__title {
  font-size: 14px; font-weight: 700; line-height: 1.3;
  margin-bottom: 2px; color: var(--text);
}
.grid-card__sub { font-size: 12px; color: var(--muted); }

/* ─── Project detail ────────────────────────────────────────── */
.breadcrumb-bar {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
}
.breadcrumb-bar a { color: var(--navy-link); text-decoration: none; }
.breadcrumb-bar a:hover { text-decoration: underline; }
.breadcrumb-bar .sep { color: var(--border); }

.project-title { font-size: 28px; font-weight: 800; line-height: 1.2; margin-bottom: 6px; }
.project-architect-link { font-size: 14px; color: var(--navy-link); text-decoration: none; }
.project-architect-link:hover { text-decoration: underline; }


.project-meta-tagline {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.project-meta-tagline a {
  color: var(--navy-link);
  text-decoration: none;
}
.project-meta-tagline a:hover { text-decoration: underline; }

.project-meta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.project-meta-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
  padding: 6px 0;
}
.project-meta-list li svg { color: var(--muted); flex-shrink: 0; }
.project-meta-list__label { color: var(--muted); }
.project-meta-list__value { font-weight: 600; color: var(--text); }
.project-meta-list a.project-meta-list__value { color: var(--navy-link); text-decoration: none; }
.project-meta-list a.project-meta-list__value:hover { text-decoration: underline; }

.project-description {
  font-size: 14px; line-height: 1.8;
  color: var(--text-secondary);
  font-style: italic;
  border-left: 3px solid var(--border);
  padding-left: 16px;
  margin-bottom: 28px;
}

.project-section-img {
  width: 100%; display: block;
  margin-bottom: 3px;
}

/* ─── Architect list ────────────────────────────────────────── */
.architect-item {
  display: flex; gap: 14px; align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
}
.architect-item:last-child { border-bottom: none; }
.architect-item:hover .architect-item__name { color: var(--navy); }
.architect-item__avatar {
  width: 60px; height: 60px;
  border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.architect-item__avatar-placeholder {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: var(--muted);
  flex-shrink: 0;
}
.architect-item__name { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.architect-item__location { font-size: 12px; color: var(--muted); }
.architect-item__link { font-size: 12px; color: var(--navy-link); margin-left: auto; white-space: nowrap; }

/* ─── Section titles ────────────────────────────────────────── */
.section-title {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--navy);
}

/* ─── Architect profile header ──────────────────────────────── */
.architect-profile {
  display: flex; gap: 20px; align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.architect-profile__avatar {
  width: 90px; height: 90px;
  border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.architect-profile__avatar-placeholder {
  width: 90px; height: 90px; border-radius: 50%;
  background: var(--bg-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; color: var(--muted); flex-shrink: 0;
}
.architect-profile__name { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.architect-profile__location { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.architect-profile__bio { font-size: 14px; color: var(--text-secondary); max-width: 60ch; }

/* ─── Auth pages ────────────────────────────────────────────── */
.auth-card {
  max-width: 420px;
  margin: 40px auto;
  padding: 32px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
}
.auth-card__title { font-size: 22px; font-weight: 800; margin-bottom: 24px; }
.architect-account__avatar-placeholder {
  width: 80px; height: 80px;
  background: var(--bg-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; color: var(--muted);
}

/* ─── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 32px 0 20px;
  margin-top: auto;
  font-size: 13px;
}
.site-footer a { color: rgba(255,255,255,0.6); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.footer-logo-icon {
  height: 32px;
  width: auto;
}
.site-footer__copy { text-align: center; margin-top: 20px; font-size: 12px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; }

/* ─── Alerts ────────────────────────────────────────────────── */
.alert { border-radius: 2px; font-size: 13px; }

/* ─── 3D Viewer ─────────────────────────────────────────────── */
.viewer-wrap {
  position: relative;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  background: #1c1c1e;
  box-shadow: 0 4px 32px rgba(0,0,0,0.18);
  margin-bottom: 28px;
}
#viewer {
  width: 100%;
  height: 520px;
  display: block;
}
.viewer-wrap:-webkit-full-screen { border-radius: 0; }
.viewer-wrap:fullscreen { border-radius: 0; }
.viewer-wrap:fullscreen #viewer { height: 100vh; }

.viewer-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
}
.viewer-bar__left  { display: flex; align-items: center; gap: 10px; }
.viewer-bar__right { display: flex; align-items: center; gap: 8px; }
.viewer-bar__hint  { font-size: 11px; color: rgba(255,255,255,0.45); }

.viewer-btn {
  background: rgba(255,255,255,0.08);
  border: none; color: #fff;
  width: 34px; height: 34px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.viewer-btn:hover { background: rgba(255,255,255,0.18); }

/* ─── Accordion ─────────────────────────────────────────────── */
.accordion {
  --bs-accordion-active-bg: var(--bs-body-bg);
  --bs-accordion-active-color: var(--bs-body-color);
  --bs-accordion-btn-active-icon: var(--bs-accordion-btn-icon);
}
.accordion-button:not(.collapsed) { box-shadow: none; }
.accordion-button:focus { box-shadow: none; }

/* ─── Dual-range slider ─────────────────────────────────────── */
.dual-range {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
}
.dual-range__track {
  position: absolute;
  left: 0; right: 0;
  height: 4px;
  background: var(--border, #333841);
  border-radius: 2px;
  pointer-events: none;
}
.dual-range__fill {
  position: absolute;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}
.dual-range__thumb {
  position: absolute;
  width: 100%;
  height: 4px;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  pointer-events: none;
  outline: none;
  margin: 0;
}
.dual-range__thumb::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.4);
  pointer-events: all;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.dual-range__thumb::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.4);
  pointer-events: all;
  cursor: pointer;
}
.dual-range__thumb:disabled::-webkit-slider-thumb {
  background: var(--muted, #767676);
  cursor: default;
}
.dual-range__thumb:disabled::-moz-range-thumb {
  background: var(--muted, #767676);
  cursor: default;
}
.dual-range__thumb:disabled ~ .dual-range__track .dual-range__fill {
  background: var(--muted, #767676);
}

/* ─── Project carousel ──────────────────────────────────────── */
.project-carousel {
  background: #111;
  margin-bottom: var(--img-thumb-gap);
  border-radius: 4px;
  overflow: hidden;
}
.project-carousel__img {
  height: 500px;
  object-fit: cover;
  display: block;
}
.project-carousel__title-slide {
  background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
}
.project-carousel__title-inner {
  height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}
.project-carousel__section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.project-carousel__section-title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin: 0;
}
.project-carousel__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
  color: #fff;
}
.project-carousel__counter {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  pointer-events: none;
}
@media (max-width: 576px) {
  .project-carousel__img          { height: 280px; }
  .project-carousel__title-inner  { height: 280px; padding: 24px; }
  .project-carousel__section-title { font-size: 22px; }
}

/* ─── Responsive tweaks ─────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 240px 140px 140px;
  }
  .hero-grid__main { grid-row: 1; }
  .project-title { font-size: 22px; }
  .article-card__title { font-size: 17px; }
}

/* ─── Navbar compacta: hambúrguer mobile ────────────────────── */
.navbar-toggler-compact {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text);
  display: flex;
  align-items: center;
  line-height: 1;
}
.navbar-toggler-compact:hover { color: var(--navy); }

.compact-mobile-menu {
  padding: 12px 0 16px;
  border-top: 1px solid var(--border);
}
.compact-mobile-menu__search {
  max-width: 100%;
  flex: 1;
  margin-bottom: 12px;
}
.compact-mobile-menu__links {
  display: flex;
  flex-direction: column;
  margin-bottom: 4px;
}
.compact-mobile-menu__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.compact-mobile-menu__links a:hover { color: var(--navy); }
.compact-mobile-menu__auth {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  font-size: 13px;
}
.compact-mobile-menu__auth a {
  color: var(--muted);
  text-decoration: none;
}
.compact-mobile-menu__auth a:hover { color: var(--text); }

/* ─── Responsive: mobile geral ──────────────────────────────── */
@media (max-width: 576px) {
  /* Nav links home — fonte menor, sem wrap lateral */
  .site-nav-links a {
    font-size: 14px;
    padding: 8px 10px;
    white-space: normal;
  }

  /* Auth card — menos padding */
  .auth-card {
    padding: 24px 20px;
    margin: 24px auto;
  }

  /* Perfil arquiteto — empilha no mobile */
  .architect-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .architect-profile__bio { max-width: 100%; }

  /* Viewer 3D — altura reduzida */
  #viewer { height: 300px; }

  /* Hero grid rows menores */
  .hero-grid {
    grid-template-rows: 200px 120px 120px;
  }

  /* Thumbnails: gap menor */
  .article-card__thumbs { --thumb-gap: 6px; }

  /* Topbar home — centraliza o auth */
  .site-topbar .container {
    justify-content: flex-end;
  }
}

/* ─── Auth overlay (login / signup) ─────────────────────────── */
.auth-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
}
.auth-overlay.active {
  display: flex;
}
body.auth-open > *:not(.auth-overlay) {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
  transition: filter 0.15s;
}
.auth-modal {
  position: relative;
  background: var(--bg);
  border-radius: 8px;
  padding: 40px;
  width: 100%;
  max-width: 560px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}
.auth-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 0;
}
.auth-modal__close:hover { color: var(--text); }
.auth-modal__logo-link {
  display: block;
  text-align: center;
  margin-bottom: 28px;
}
.auth-modal__logo {
  height: 80px;
  width: auto;
  display: inline-block;
}
[data-bs-theme="dark"] .auth-modal__logo {
  filter: brightness(0) invert(1);
}
.auth-modal__title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}
.auth-modal__subtitle {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 28px;
}

@media (min-width: 1200px) {
  .container, .container-lg, .container-md, .container-sm, .container-xl {
    max-width: 1040px;
  }
  .site-header-home .container,
  .site-navbar-compact .container {
    max-width: 1320px;
  }
}
