/* ==========================================================================
   UniSUS Estabelecimentos — Modulo CNES
   Baseado no sistema visual UniSUS, accent: #059142 (verde)
   ========================================================================== */

/* ==========================================================================
   1. FONT-FACE
   ========================================================================== */

@font-face {
  font-family: "Rawline";
  src: url("/assets/fonts/rawline-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rawline";
  src: url("/assets/fonts/rawline-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rawline";
  src: url("/assets/fonts/rawline-600.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   2. CSS VARIABLES (light + dark)
   ========================================================================== */

:root {
  --white-pure: #F8F9FA;
  --light-gray: #D5D8DE;
  --low-opacity-gray: #EDEFF2;
  --highlight-gray: #E0E3E8;
  --gray: #71839B;
  --dark-gray: #71839B;

  --green: #059142;
  --warm-green: #168821;
  --light-blue: #E8F0FE;
  --blue-warm: #1351B4;
  --blue-warm-vivid-05: #EEF2FA;
  --dark-blue: #0C326F;
  --blue-light: #2670E8;
  --bright-red: #e52207;
  --bright-yellow: #fabd10;

  --text-color: #1A1A2E;
  --dark-200: #71839B;
  --dark-300: #1A1A2E;
  --dark-400: #555555;

  --on-dark: #ffffff;
  --dark-blue-bg: #0C326F;

  --shadow-sm: rgba(0, 0, 0, 0.04);
  --shadow-md: rgba(0, 0, 0, 0.08);
  --shadow-lg: rgba(0, 0, 0, 0.12);
  --shadow-xl: rgba(0, 0, 0, 0.15);

  --btn-primary-bg: #059142;
  --btn-primary-text: #ffffff;
  --shadow-blue-sm: rgba(19, 81, 180, 0.04);
  --shadow-blue-md: rgba(19, 81, 180, 0.08);
  --shadow-blue-lg: rgba(19, 81, 180, 0.15);
  --shadow-blue-xl: rgba(19, 81, 180, 0.3);

  /* Cores por modulo */
  --mod-sigtap: #1351B4;
  --mod-cnes: #059142;
  --mod-cid: #9B2FAE;
  --mod-tabnet: #E8590C;
  --mod-cns: #D63384;
  --mod-bpa: #0C8599;
  --mod-cbhpm: #C92A2A;
  --mod-ciap: #5C7CFA;

  /* Accent do modulo */
  --accent: #059142;
  --accent-light: rgba(5, 145, 66, 0.08);
}

[data-theme="dark"] {
  --white-pure: #16162a;
  --light-gray: #3a3a4e;
  --low-opacity-gray: #20203a;
  --highlight-gray: #2a2a40;
  --gray: #9a9aae;
  --dark-gray: #8a8a9e;

  --green: #4ADE80;
  --warm-green: #34D399;
  --light-blue: #1e2d4a;
  --blue-warm: #6BA6FF;
  --blue-warm-vivid-05: #1c2540;
  --dark-blue: #8AC4FF;
  --blue-light: #5B9BF5;
  --bright-red: #ff6b6b;
  --bright-yellow: #ffd93d;

  --on-dark: #ffffff;
  --dark-blue-bg: #111128;

  --text-color: #e4e4ee;
  --dark-200: #b0b0c0;
  --dark-300: #e0e0ee;
  --dark-400: #c0c0d0;

  --shadow-sm: rgba(0, 0, 0, 0.15);
  --shadow-md: rgba(0, 0, 0, 0.25);
  --shadow-lg: rgba(0, 0, 0, 0.35);
  --shadow-xl: rgba(0, 0, 0, 0.45);

  --btn-primary-bg: #4ADE80;
  --btn-primary-text: #111128;
  --shadow-blue-sm: rgba(74, 222, 128, 0.06);
  --shadow-blue-md: rgba(74, 222, 128, 0.12);
  --shadow-blue-lg: rgba(74, 222, 128, 0.2);
  --shadow-blue-xl: rgba(74, 222, 128, 0.35);

  --mod-sigtap: #6BA6FF;
  --mod-cnes: #4ADE80;
  --mod-cid: #D08CED;
  --mod-tabnet: #FF9F5A;
  --mod-cns: #F06CAA;
  --mod-bpa: #3DC9D8;
  --mod-cbhpm: #FF7B7B;
  --mod-ciap: #8FA4FF;

  --accent: #4ADE80;
  --accent-light: rgba(74, 222, 128, 0.1);
}

/* ==========================================================================
   3. GLOBAL RESET & BASE
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
}

html, body {
  font-family: "Rawline", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background-color: var(--white-pure);
  color: var(--text-color);
  transition: background-color 0.2s ease, color 0.2s ease;
}

button, input, textarea, select { font-family: inherit; }
a { text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; padding: 0; margin: 0; }

h1 { font-size: 2.2rem; font-weight: 400; color: var(--dark-300); }
h2 { font-size: 1.5rem; font-weight: 400; }

[id] {
  scroll-margin-top: 80px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   4. LAYOUT
   ========================================================================== */

.main-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  min-height: calc(100vh - 64px - 142px);
  position: relative;
}

/* ==========================================================================
   5. HEADER
   ========================================================================== */

.site-header {
  height: 64px;
  width: 100%;
  padding: 0 3rem;
  border-bottom: 1px solid var(--low-opacity-gray);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--white-pure);
  transition: background-color 0.2s ease;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  width: 100%;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-link:hover { opacity: 0.85; }
.logo { height: 28px; cursor: pointer; }

.header-pipe {
  height: 28px;
  width: 1.5px;
  background-color: var(--light-gray);
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark-300);
}
.brand-accent { color: var(--green); }

.module-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mod-cnes);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--dark-300);
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
}
.theme-toggle:hover {
  color: var(--mod-cnes);
  background-color: var(--accent-light);
}
.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

/* CTA button */
.cta-button {
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--btn-primary-text);
  background-color: var(--btn-primary-bg);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.2s, box-shadow 0.2s;
}
.cta-button:hover {
  background-color: #047835;
  box-shadow: 0 2px 8px rgba(5, 145, 66, 0.3);
}

/* Nav button */
.nav-button {
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mod-cnes);
  background: transparent;
  border: 1px solid var(--light-gray);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: border-color 0.2s, background-color 0.2s;
}
.nav-button:hover {
  border-color: var(--mod-cnes);
  background-color: var(--accent-light);
}

/* Paginas internas */
.page-section {
  padding: 3rem 2rem;
}
.page-inner {
  max-width: 760px;
  margin: 0 auto;
}
.page-inner h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 0.5rem;
}
.page-lead {
  font-size: 1rem;
  color: var(--dark-200);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}
.page-inner h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 1.25rem;
}

@media (max-width: 767px) {
  .site-header { height: auto; padding: 0 1rem; }
  .header-pipe, .nav-button span { display: none; }
  .module-label { display: none; }
  .nav-button { padding: 0.5rem; border: none; }
  .page-section { padding: 2rem 1rem; }
}

/* ==========================================================================
   6. HERO
   ========================================================================== */

.hero {
  padding: 3rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 700px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mod-cnes);
  background: var(--accent-light);
  padding: 0.35rem 1rem;
  border-radius: 20px;
}

.hero h1 {
  color: var(--dark-blue);
  font-weight: 700;
  text-align: center;
  max-width: 640px;
  font-size: 2rem;
}

.hero-subtitle {
  font-size: 1.0625rem;
  text-align: center;
  color: var(--dark-200);
  max-width: 540px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-btn {
  height: 48px;
  padding: 0 2rem;
  border-radius: 20px;
  font-size: 0.9375rem;
}

/* Product preview mockup */
.hero-preview {
  width: 100%;
  max-width: 720px;
  padding: 0 1rem;
}

.preview-window {
  background: var(--white-pure);
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px var(--shadow-lg), 0 2px 8px var(--shadow-md);
}

.preview-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--low-opacity-gray);
  border-bottom: 1px solid var(--light-gray);
}

.preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--light-gray);
}

.preview-url {
  margin-left: 12px;
  font-size: 0.75rem;
  color: var(--gray);
  font-family: monospace;
}

.preview-content { padding: 1rem; }

.preview-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border: 2px solid var(--light-gray);
  border-radius: 50px;
  margin-bottom: 1rem;
  color: var(--gray);
  font-size: 0.875rem;
}

.preview-results {
  display: flex;
  flex-direction: column;
  transition: opacity 0.3s ease;
}

.preview-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid var(--low-opacity-gray);
  font-size: 0.8125rem;
}
.preview-row:last-child { border-bottom: none; }

.preview-tag {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  flex-shrink: 0;
  color: var(--on-dark);
}
.tag-estab { background: var(--mod-cnes); }

.preview-code {
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--mod-cnes);
  background: var(--accent-light);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.preview-name {
  flex: 1;
  color: var(--text-color);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-val {
  font-weight: 600;
  color: var(--mod-cnes);
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .hero { padding: 1.5rem 1rem; gap: 1.5rem; }
  .hero h1 { font-size: 1.5rem; }
  .hero-subtitle { font-size: 0.9375rem; }
  .preview-name { display: none; }
}

/* ==========================================================================
   7. STATS STRIP
   ========================================================================== */

.stats-strip {
  width: 100%;
  background-color: var(--mod-cnes);
  color: var(--on-dark);
  padding: 1.5rem 2rem;
}

.stats-inner {
  display: flex;
  justify-content: center;
  gap: 4rem;
  max-width: 700px;
  margin: 0 auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--on-dark);
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}

@media (max-width: 767px) {
  .stats-inner { gap: 2rem; }
  .stat-value { font-size: 1.35rem; }
}

/* ==========================================================================
   8. ABOUT SECTION
   ========================================================================== */

.about-section {
  width: 100%;
  padding: 3rem 2rem;
  background: var(--low-opacity-gray);
}

.about-inner {
  max-width: 860px;
  margin: 0 auto;
}

.about-main h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 1.5rem;
}

.about-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.about-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--on-dark);
  background: var(--mod-cnes);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.75rem;
}

.about-block p {
  font-size: 0.9375rem;
  color: var(--dark-200);
  line-height: 1.7;
}

@media (max-width: 767px) {
  .about-section { padding: 2rem 1rem; }
  .about-pair { grid-template-columns: 1fr; }
}

/* ==========================================================================
   9. AUDIENCE SECTION
   ========================================================================== */

.audience-section {
  width: 100%;
  padding: 3rem 2rem;
}

.audience-inner {
  max-width: 960px;
  margin: 0 auto;
}

.audience-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark-blue);
  text-align: center;
  margin-bottom: 2rem;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.audience-card {
  padding: 1.25rem;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  background: var(--white-pure);
  transition: border-color 0.2s;
}
.audience-card:hover {
  border-color: var(--mod-cnes);
}

.audience-card svg {
  color: var(--mod-cnes);
  margin-bottom: 0.75rem;
}

.audience-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--dark-300);
  margin-bottom: 0.35rem;
}

.audience-card p {
  font-size: 0.8125rem;
  color: var(--dark-200);
  line-height: 1.55;
}

@media (max-width: 767px) {
  .audience-section { padding: 2rem 1rem; }
  .audience-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .audience-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   10. NEWSLETTER / CTA SECTION
   ========================================================================== */

.newsletter-section {
  width: 100%;
  padding: 3rem 2rem;
  background-color: var(--mod-cnes);
  color: var(--on-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  text-align: center;
}

.newsletter-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--on-dark) !important;
  max-width: 540px;
}

.newsletter-text {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  max-width: 480px;
}

.newsletter-cta-button {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: 20px;
  background-color: var(--on-dark);
  color: var(--mod-cnes);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: opacity 0.2s;
}
.newsletter-cta-button:hover {
  opacity: 0.9;
}

@media (max-width: 767px) {
  .newsletter-section { padding: 2rem 1rem; }
  .newsletter-title { font-size: 1.375rem; }
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */

.site-footer {
  width: 100%;
  background-color: var(--dark-blue-bg);
  color: var(--on-dark);
}

.footer-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.footer-logo-container a {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.footer-logo-container a:hover { opacity: 0.85; }
.footer-logo {
  height: 36px;
  filter: brightness(1.6);
}

.footer-text-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding-block: 1.5rem;
  color: var(--on-dark);
}

.footer-text-container span,
.footer-text-container strong {
  font-size: 14px;
  width: fit-content;
}

.footer-text-container span:first-child {
  padding-inline: 1rem;
  text-align: center;
}

.footer-redirect-link {
  color: var(--on-dark);
  padding-top: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-redirect-link:hover {
  color: var(--light-blue);
}

.footer-link-group {
  display: flex;
  gap: 2rem;
  padding-top: 0.5rem;
}

@media (max-width: 767px) {
  .footer-link-group { flex-direction: column; gap: 0; text-align: center; }
}

/* ==========================================================================
   12. HOMEPAGE SEARCH BOX
   ========================================================================== */

.search-box-home {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 600px;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  border: 2px solid var(--light-gray);
  border-radius: 50px;
  background: var(--white-pure);
  transition: border-color 0.2s;
}
.search-box-home:focus-within {
  border-color: var(--mod-cnes);
}
.search-box-home .search-icon {
  flex-shrink: 0;
  color: var(--gray);
}
.search-input-home {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.9375rem;
  color: var(--text-color);
  min-width: 0;
}
.search-input-home::placeholder { color: var(--gray); }
.search-button {
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 50px;
  background: var(--mod-cnes);
  color: var(--on-dark);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.2s;
  flex-shrink: 0;
}
.search-button:hover { background: #047835; }

.advanced-search-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--mod-cnes);
  text-decoration: none;
  font-weight: 600;
}
.advanced-search-link:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .search-box-home { border-radius: 12px; padding: 0.5rem; }
  .search-button { padding: 0.5rem 1rem; }
}

/* ==========================================================================
   13. TYPE SHORTCUTS
   ========================================================================== */

.type-shortcuts {
  padding: 3rem 2rem;
  background: var(--white-pure);
}
.type-inner {
  max-width: 960px;
  margin: 0 auto;
}
.type-inner h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark-blue);
  text-align: center;
  margin-bottom: 2rem;
}
.type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-color);
  transition: border-color 0.2s, box-shadow 0.2s;
  text-align: center;
}
.type-card:hover {
  border-color: var(--mod-cnes);
  box-shadow: 0 4px 16px var(--shadow-md);
}
.type-card svg { color: var(--mod-cnes); }
.type-card span {
  font-weight: 700;
  font-size: 0.9375rem;
}
.type-card small {
  font-size: 0.75rem;
  color: var(--gray);
}

@media (max-width: 767px) {
  .type-shortcuts { padding: 2rem 1rem; }
  .type-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .type-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   14. POPULAR / FEATURED SECTION
   ========================================================================== */

.popular-section {
  padding: 3rem 2rem;
  background: var(--low-opacity-gray);
}
.popular-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark-blue);
  text-align: center;
  margin-bottom: 2rem;
}
.popular-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto;
}
.popular-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  background: var(--white-pure);
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-color);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.popular-card:hover {
  border-color: var(--mod-cnes);
  box-shadow: 0 2px 12px var(--shadow-md);
}
.popular-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.popular-type {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  background: var(--mod-cnes);
  color: var(--on-dark);
}
.popular-cnes {
  font-size: 0.75rem;
  font-family: monospace;
  color: var(--gray);
}
.popular-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark-300);
  line-height: 1.3;
}
.popular-location {
  font-size: 0.8rem;
  color: var(--dark-200);
}
.popular-leitos {
  font-size: 0.75rem;
  color: var(--mod-cnes);
  font-weight: 600;
}

@media (max-width: 767px) {
  .popular-section { padding: 2rem 1rem; }
  .popular-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .popular-list { grid-template-columns: 1fr; }
}

/* ==========================================================================
   15. FAQ SECTION
   ========================================================================== */

.faq-section {
  padding: 3rem 2rem;
  background: var(--white-pure);
}
.faq-title-heading {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark-blue);
  text-align: center;
  margin-bottom: 2rem;
}
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--dark-300);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.faq-item summary::before {
  content: "+";
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--mod-cnes);
  flex-shrink: 0;
  width: 1.5rem;
  text-align: center;
}
.faq-item[open] summary::before { content: "-"; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
  padding: 0 1.25rem 1rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--dark-200);
}
.faq-item p a {
  color: var(--mod-cnes);
  text-decoration: underline;
}

@media (max-width: 767px) {
  .faq-section { padding: 2rem 1rem; }
}

/* ==========================================================================
   16. SEARCH / LISTING PAGE
   ========================================================================== */

.search-controls {
  margin-bottom: 2rem;
}
.search-box-page {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--light-gray);
  border-radius: 12px;
  background: var(--white-pure);
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}
.search-box-page:focus-within { border-color: var(--mod-cnes); }
.search-box-page .search-icon { flex-shrink: 0; color: var(--gray); }
.search-input-page {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  color: var(--text-color);
}
.search-input-page::placeholder { color: var(--gray); }

.filter-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 150px;
}
.filter-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dark-200);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.filter-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  background: var(--white-pure);
  color: var(--text-color);
  font-size: 0.875rem;
  cursor: pointer;
}
.filter-select:focus {
  border-color: var(--mod-cnes);
  outline: none;
}

.results-count {
  font-size: 0.875rem;
  color: var(--gray);
  margin-bottom: 1rem;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.result-card {
  display: block;
  padding: 1rem 1.25rem;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  background: var(--white-pure);
  text-decoration: none;
  color: var(--text-color);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.result-card:hover {
  border-color: var(--mod-cnes);
  box-shadow: 0 2px 12px var(--shadow-md);
}
.result-top {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.25rem;
}
.result-type-tag {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  background: var(--mod-cnes);
  color: var(--on-dark);
}
.result-cnes {
  font-size: 0.75rem;
  font-family: monospace;
  color: var(--gray);
}
.result-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark-300);
  margin-bottom: 0.15rem;
}
.result-location {
  font-size: 0.8125rem;
  color: var(--dark-200);
  margin-bottom: 0.35rem;
}
.result-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--gray);
  flex-wrap: wrap;
}
.badge-sus-sm {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  background: var(--mod-cnes);
  color: var(--on-dark);
}

.no-results {
  text-align: center;
  color: var(--gray);
  font-size: 1rem;
  padding: 3rem 0;
}

/* ==========================================================================
   17. ESTABLISHMENT DETAIL PAGE
   ========================================================================== */

.breadcrumb {
  margin-bottom: 1.5rem;
}
.breadcrumb-list {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--gray);
  flex-wrap: wrap;
}
.breadcrumb-list li::after {
  content: "/";
  margin-left: 0.35rem;
  color: var(--light-gray);
}
.breadcrumb-list li:last-child::after { content: ""; }
.breadcrumb-list a {
  color: var(--mod-cnes);
  text-decoration: none;
}
.breadcrumb-list a:hover { text-decoration: underline; }

.estab-header {
  margin-bottom: 2rem;
}
.estab-type-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--on-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}
.estab-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark-blue);
  line-height: 1.3;
}
.estab-alias {
  font-size: 1.1rem;
  color: var(--dark-200);
  margin-top: 0.25rem;
}
.estab-location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9375rem;
  color: var(--dark-200);
  margin-top: 0.5rem;
}
.estab-location svg { color: var(--mod-cnes); }

.estab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.estab-card {
  padding: 1.25rem;
  border: 1px solid var(--light-gray);
  border-radius: 10px;
  background: var(--white-pure);
}
.estab-card h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--low-opacity-gray);
}
.estab-card h2 svg { color: var(--mod-cnes); }

.estab-dl {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.dl-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--low-opacity-gray);
  gap: 1rem;
}
.dl-row:last-child { border-bottom: none; }
.dl-row dt {
  font-size: 0.8125rem;
  color: var(--gray);
  flex-shrink: 0;
  min-width: 110px;
}
.dl-row dd {
  font-size: 0.875rem;
  color: var(--dark-300);
  text-align: right;
  word-break: break-word;
}
.dl-row dd a {
  color: var(--mod-cnes);
  text-decoration: none;
}
.dl-row dd a:hover { text-decoration: underline; }

.badge-sus {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: var(--mod-cnes);
  color: var(--on-dark);
}
.badge-no-sus {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: var(--highlight-gray);
  color: var(--gray);
}

.leitos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.leito-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1rem;
  background: var(--accent-light);
  border-radius: 8px;
}
.leito-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--mod-cnes);
}
.leito-label {
  font-size: 0.75rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag-item {
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  background: var(--accent-light);
  color: var(--mod-cnes);
  font-weight: 600;
}
.tag-equip {
  background: var(--blue-warm-vivid-05);
  color: var(--blue-warm);
}

.estab-map-placeholder {
  grid-column: 1 / -1;
}
.map-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: var(--low-opacity-gray);
  border-radius: 8px;
  border: 2px dashed var(--light-gray);
}
.map-placeholder-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray);
  font-size: 0.9375rem;
}
.map-placeholder-text small {
  font-size: 0.75rem;
  font-family: monospace;
}

.estab-updated {
  font-size: 0.75rem;
  color: var(--gray);
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--low-opacity-gray);
}

@media (max-width: 767px) {
  .estab-grid { grid-template-columns: 1fr; }
  .estab-header h1 { font-size: 1.35rem; }
  .leitos-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   18. LEGAL PAGES
   ========================================================================== */

.legal-page {
  padding: 3rem 2rem;
}
.legal-page .page-inner {
  max-width: 760px;
  margin: 0 auto;
}
.legal-page h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 0.5rem;
}
.legal-updated {
  font-size: 0.8125rem;
  color: var(--gray);
  margin-bottom: 2rem;
}
.legal-content h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin: 2rem 0 0.75rem;
}
.legal-content p {
  font-size: 0.9375rem;
  color: var(--dark-200);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}
.legal-content li {
  font-size: 0.9375rem;
  color: var(--dark-200);
  line-height: 1.7;
  margin-bottom: 0.35rem;
}
.legal-content a {
  color: var(--mod-cnes);
  text-decoration: underline;
}

@media (max-width: 767px) {
  .legal-page { padding: 2rem 1rem; }
}

/* ==========================================================================
   19. SCROLL TO TOP
   ========================================================================== */

.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--mod-cnes);
  color: var(--on-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--shadow-lg);
  transition: background-color 0.2s;
  z-index: 50;
}
.scroll-top-btn:hover { background: #047835; }
