/* Espaço Saúde Mall — tema principal
   Identidade: #049250 | Montserrat + Inter */

:root {
  --esm-green: #049250;
  --esm-green-dark: #037a43;
  --esm-green-deep: #025c33;
  --esm-green-soft: #e8f7ef;
  --esm-green-mist: #f3faf6;
  --esm-black: #0f1411;
  --esm-text: #2c3330;
  --esm-muted: #5c675f;
  --esm-gray: #e6e6e6;
  --esm-gray-bg: #f4f6f5;
  --esm-white: #ffffff;
  --esm-header-h: 92px;
  --esm-radius: 4px;
  --esm-radius-lg: 16px;
  --esm-shadow: 0 18px 50px rgba(15, 20, 17, 0.1);
  --esm-shadow-soft: 0 8px 28px rgba(4, 146, 80, 0.12);
  --esm-container: 1140px;
  --esm-font-display: "Montserrat", sans-serif;
  --esm-font-body: "Inter", sans-serif;
  --esm-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--esm-text);
  background: var(--esm-white);
  font-family: var(--esm-font-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--esm-green);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.25s var(--esm-ease), box-shadow 0.25s ease;
}

a:hover { color: var(--esm-green-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--esm-font-display);
  color: var(--esm-black);
  line-height: 1.2;
  margin: 0 0 0.55em;
  font-weight: 700;
}

p { margin: 0 0 1em; }

.container {
  width: min(100% - 2.5rem, var(--esm-container));
  margin-inline: auto;
}

.narrow { width: min(100% - 2.5rem, 820px); }
.center { text-align: center; }

.screen-reader-text,
.skip-link { position: absolute; left: -9999px; }

.skip-link:focus {
  left: 1rem; top: 1rem; z-index: 10000;
  background: var(--esm-white); color: var(--esm-black); padding: 0.75rem 1rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(4, 146, 80, 0.08);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(15, 20, 17, 0.08);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem 1.5rem;
  min-height: var(--esm-header-h);
  padding-block: 0.65rem;
}

.site-logo,
.custom-logo { width: min(190px, 40vw); height: auto; }

.nav-primary {
  display: flex;
  justify-content: center;
  position: relative;
}

.btn-header-cta {
  padding: 0.7rem 1.1rem;
  font-size: 0.82rem;
  white-space: nowrap;
  box-shadow: none;
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem 1.5rem;
  flex-wrap: wrap;
}

.menu-list a {
  font-family: var(--esm-font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--esm-black);
  letter-spacing: 0.01em;
  padding: 0.35rem 0;
  position: relative;
}

.menu-list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--esm-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--esm-ease);
}

.menu-list a:hover,
.menu-list .current-menu-item > a { color: var(--esm-green); }

.menu-list a:hover::after,
.menu-list .current-menu-item > a::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent; padding: 10px; cursor: pointer;
}

.nav-toggle-bar {
  display: block; height: 3px; margin: 5px 0;
  background: var(--esm-black); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Buttons / CTAs ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--esm-font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 1.1rem 1.55rem;
  border-radius: var(--esm-radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--esm-green);
  color: var(--esm-white);
  border-color: var(--esm-green);
  box-shadow: 0 10px 24px rgba(4, 146, 80, 0.25);
}

.btn-primary:hover {
  background: var(--esm-green-dark);
  border-color: var(--esm-green-dark);
  color: var(--esm-white);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(4, 146, 80, 0.3);
}

.btn-light {
  background: var(--esm-white);
  color: var(--esm-green);
  border-color: var(--esm-white);
}

.btn-light:hover {
  background: var(--esm-green-soft);
  color: var(--esm-green-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--esm-green-deep);
  border-color: rgba(4, 146, 80, 0.28);
}

.btn-ghost:hover {
  background: var(--esm-green-soft);
  color: var(--esm-green-deep);
  border-color: var(--esm-green);
}

.btn-on-dark {
  background: transparent;
  color: var(--esm-white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-on-dark:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--esm-white);
  border-color: var(--esm-white);
}

.btn-cta { min-width: min(100%, 280px); }

/* ---------- Hero (place / full-bleed) ---------- */
.hero--place {
  position: relative;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: flex-end;
  padding: 0;
  overflow: hidden;
  color: var(--esm-white);
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(6, 42, 24, 0.88) 0%, rgba(6, 42, 24, 0.55) 48%, rgba(4, 146, 80, 0.28) 100%),
    linear-gradient(0deg, rgba(6, 42, 24, 0.55) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 4rem;
  max-width: 40rem;
  margin-left: max(1.25rem, calc((100% - var(--esm-container)) / 2));
  margin-right: auto;
  width: min(100% - 2.5rem, 40rem);
}

.hero-brand {
  font-family: var(--esm-font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  color: #fff;
  animation: fadeUp 0.7s var(--esm-ease) both;
}

.hero-title {
  font-size: clamp(1.75rem, 3.8vw, 2.85rem);
  font-weight: 700;
  margin-bottom: 0.9rem;
  letter-spacing: -0.025em;
  color: #fff;
  animation: fadeUp 0.7s var(--esm-ease) 0.08s both;
}

.hero-lead {
  font-family: var(--esm-font-body);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.75rem;
  max-width: 34rem;
  animation: fadeUp 0.7s var(--esm-ease) 0.14s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: fadeUp 0.7s var(--esm-ease) 0.2s both;
}

/* ---------- Sections ---------- */
.section { padding: 4.25rem 0; }

.section-green {
  background: var(--esm-green);
  color: var(--esm-white);
}

.section-green .section-intro,
.section-green .listing-title,
.section-green .listings-heading,
.section-green .card-title,
.section-green .card-more,
.section-green .card-specialty,
.section-green .carousel-empty,
.section-green .section-kicker {
  color: var(--esm-white);
}

.section-kicker {
  text-align: center;
  font-family: var(--esm-font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 0.65rem;
}

.section-kicker.dark { color: var(--esm-green); }

.section-intro {
  text-align: center;
  font-family: var(--esm-font-body);
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  font-weight: 400;
  margin: 0 auto 2rem;
  max-width: 36rem;
  opacity: 0.92;
}

.listings-header { margin-bottom: 1.75rem; }

.listings-heading {
  text-align: center;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: #fff;
}

.section-heading {
  text-align: center;
  color: var(--esm-green);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

/* ---------- Tabs ---------- */
.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 0.35rem;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  width: fit-content;
  margin-inline: auto;
}

.tab-btn {
  font-family: var(--esm-font-display);
  font-size: 0.9rem;
  font-weight: 700;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.tab-btn:hover { color: #fff; }

.tab-btn.is-active {
  background: #fff;
  color: var(--esm-green-deep);
}

.tab-panel[hidden] { display: none !important; }

.home-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.home-grid .card-item {
  flex: none;
  width: auto;
  min-width: 0;
}

.tabs-cta {
  text-align: center;
  margin-top: 2rem;
}

/* Páginas Espaço Saúde / Empresas (clone do bloco verde da home) */
.listings--page {
  min-height: 70vh;
  padding-top: 4.25rem;
  padding-bottom: 4.25rem;
}

.listings-page-tabs .tab-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.card-item.is-hidden { display: none; }

.listings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.75rem;
}

.listing-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1.35rem;
  text-align: center;
}

.listing-block { text-align: center; }
.listing-block .btn { margin-top: 1.6rem; }

/* ---------- Cards / Carousel ---------- */
.card-carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.4rem 0.15rem 1rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar { display: none; }

.card-item {
  flex: 0 0 min(230px, 72%);
  scroll-snap-align: start;
  text-align: left;
}

.archive-grid .card-item { flex: none; }

.card-link { display: block; color: inherit; height: 100%; }

.card-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  margin-bottom: 0.75rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transition: transform 0.55s var(--esm-ease);
}

.card-link:hover .card-image img { transform: scale(1.06); }

.card-image--logo {
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(15, 20, 17, 0.06);
}

.card-image--logo img {
  object-fit: contain;
  object-position: center;
  padding: 12%;
  transform: none !important;
}

.card-item--logo .card-link:hover .card-image img {
  transform: scale(1.03) !important;
}

.card-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  font-family: var(--esm-font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--esm-white);
  background: rgba(0, 0, 0, 0.12);
}

.card-meta { padding: 0 0.1rem; }

.card-specialty {
  display: block;
  font-family: var(--esm-font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 0.25rem;
}

.card-title {
  font-size: 1rem;
  margin: 0 0 0.35rem;
  font-weight: 700;
}

.card-more {
  font-size: 0.84rem;
  font-weight: 700;
  color: inherit;
  opacity: 0.95;
}

.card-more::after { content: " →"; }

.carousel-nav {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  color: var(--esm-white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.carousel-nav:hover { background: rgba(255, 255, 255, 0.32); }

.archive-content .card-image,
.listing-page .card-image,
.profile-related .card-image {
  background: var(--esm-gray);
  box-shadow: var(--esm-shadow-soft);
}

.archive-content .card-title,
.listing-page .card-title,
.profile-related .card-title { color: var(--esm-black); }

.archive-content .card-more,
.listing-page .card-more,
.profile-related .card-more { color: var(--esm-green); }

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.75rem;
}

.listing-header { margin-bottom: 2.5rem; }

.listing-kicker {
  text-align: center;
  font-family: var(--esm-font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--esm-green);
  margin-bottom: 0.65rem;
}

.listing-intro {
  max-width: 720px;
  margin: 0 auto 0.5rem;
  color: var(--esm-muted);
}

/* ---------- About ---------- */
.section-about { background: var(--esm-white); }

.about-intro {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.about-brand { width: min(100%, 520px); margin-inline: auto; }

.about-intro p {
  font-size: 1.02rem;
  color: var(--esm-muted);
  margin: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.feature {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 12px;
  background: var(--esm-green-mist);
  border: 1px solid rgba(4, 146, 80, 0.08);
}

.feature h3 {
  color: var(--esm-green);
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}

.feature p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--esm-muted);
}

/* ---------- Gallery ---------- */
.section-gallery { background: var(--esm-white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  aspect-ratio: 4 / 3;
  transition: transform 0.5s var(--esm-ease);
}

.gallery-item:hover img { transform: scale(1.04); }

/* ---------- CTA home ---------- */
.section-cta {
  background: linear-gradient(180deg, #eef2f0 0%, #e4ebe7 100%);
  border-top: 5px solid var(--esm-green);
  padding-bottom: 4.25rem;
}

.cta-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
  background: #fff;
  border: 1px solid rgba(4, 146, 80, 0.14);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(15, 20, 17, 0.08);
}

.cta-copy {
  text-align: left;
  padding: 2.35rem 2rem 2.35rem 2.35rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cta-kicker {
  font-family: var(--esm-font-display);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--esm-green);
  margin: 0 0 0.5rem;
}

.cta-eyebrow {
  font-family: var(--esm-font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--esm-black);
  margin-bottom: 0.75rem;
}

.cta-logo {
  width: min(260px, 72%);
  margin: 0 0 1rem;
}

.cta-text {
  max-width: 34rem;
  margin: 0 0 1.25rem;
  color: var(--esm-muted);
}

.cta-points {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.cta-points li {
  position: relative;
  padding-left: 1.2rem;
  color: #334139;
  font-size: 0.95rem;
}

.cta-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--esm-green);
}

.cta-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cta-media {
  position: relative;
  min-height: 100%;
  background:
    linear-gradient(160deg, rgba(4, 146, 80, 0.08) 0%, rgba(4, 146, 80, 0.02) 45%, transparent 70%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.cta-media img {
  width: min(100%, 420px);
  max-height: 520px;
  object-fit: contain;
  object-position: center bottom;
  display: block;
}

/* =========================================================
   PROFILE — médicos / empresas (layout sofisticado)
   ========================================================= */
.profile-page {
  background: var(--esm-white);
}

.profile-hero {
  position: relative;
  padding: 3.5rem 0 4rem;
  background:
    radial-gradient(ellipse 55% 70% at 100% 0%, rgba(4, 146, 80, 0.1), transparent 60%),
    linear-gradient(165deg, #f7fbf8 0%, #ffffff 48%, #eef7f2 100%);
  overflow: hidden;
}

.profile-hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(4, 146, 80, 0.25), transparent);
}

.profile-hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.profile-photo {
  margin: 0;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--esm-green-soft);
  box-shadow:
    0 30px 60px rgba(15, 20, 17, 0.14),
    0 0 0 1px rgba(4, 146, 80, 0.08);
}

.profile-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(4, 100, 55, 0.18) 100%);
  pointer-events: none;
}

.profile-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.profile-photo--empty {
  display: grid;
  place-items: center;
  font-family: var(--esm-font-display);
  font-size: 5rem;
  font-weight: 800;
  color: var(--esm-green);
}

.profile-info { max-width: 36rem; }

.profile-eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  font-family: var(--esm-font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--esm-green);
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(4, 146, 80, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.profile-name {
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 0.75rem;
  color: var(--esm-black);
}

.profile-registration {
  font-family: var(--esm-font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--esm-green-deep);
  letter-spacing: 0.02em;
  margin: 0 0 1.35rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(4, 146, 80, 0.15);
}

.profile-block { margin-bottom: 1.75rem; }

.profile-block-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--esm-muted);
  margin: 0 0 0.65rem;
}

.profile-body {
  font-size: 1.05rem;
  color: var(--esm-muted);
  margin-bottom: 0;
}

.profile-body p { margin-bottom: 0.7rem; }
.profile-body p:last-child { margin-bottom: 0; }

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.profile-sticky-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(4, 146, 80, 0.12);
  box-shadow: 0 -10px 30px rgba(15, 20, 17, 0.08);
  transform: translateY(110%);
  transition: transform 0.3s var(--esm-ease);
}

.profile-sticky-cta.is-visible { transform: translateY(0); }

.profile-sticky-cta .btn {
  width: 100%;
  box-shadow: 0 8px 20px rgba(4, 146, 80, 0.28);
}

.profile-related {
  background: var(--esm-gray-bg);
  border-top: 1px solid rgba(4, 146, 80, 0.08);
}

.related-head { margin-bottom: 1.75rem; }

.related-label {
  text-align: center;
  font-family: var(--esm-font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--esm-muted);
  margin-bottom: 0.4rem;
}

.related-heading { margin-bottom: 0; }

.related-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

/* =========================================================
   ESPAÇO SAÚDE / EMPRESAS — grid moderno
   ========================================================= */
.saude-page {
  background: #fff;
  padding: 3rem 0 4rem;
  min-height: 55vh;
}

.saude-page-head {
  text-align: center;
  margin-bottom: 1.75rem;
}

.saude-page-title {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--esm-black);
  margin: 0 0 0.65rem;
}

.saude-page-intro {
  max-width: 38rem;
  margin: 0 auto;
  color: var(--esm-muted);
}

.saude-page-intro p { margin: 0; }

/* Tarja verde moderna */
.saude-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto 1.75rem;
  max-width: 920px;
  padding: 1rem 1.5rem;
  border-radius: 14px;
  background:
    linear-gradient(105deg, var(--esm-green) 0%, #036b3d 55%, var(--esm-green-deep) 100%);
  box-shadow: 0 14px 34px rgba(4, 146, 80, 0.28);
  color: #fff;
}

.saude-banner-label {
  font-family: var(--esm-font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.saude-banner-count {
  font-family: var(--esm-font-display);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  white-space: nowrap;
}

.saude-banner--empresas {
  background:
    linear-gradient(105deg, #036b3d 0%, #025230 60%, #0a2e1a 100%);
}

/* Categorias — chips compactos, alinhados */
.saude-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  max-width: 820px;
  margin: 0 auto 2.25rem;
  padding: 0.7rem 0.8rem;
  background: var(--esm-green-mist);
  border: 1px solid rgba(4, 146, 80, 0.1);
  border-radius: 18px;
}

.saude-cat {
  font-family: var(--esm-font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 0.48rem 0.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #fff;
  color: #2a3830;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15, 20, 17, 0.04);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.saude-cat:hover {
  border-color: rgba(4, 146, 80, 0.35);
  color: var(--esm-green-deep);
}

.saude-cat.is-active {
  background: var(--esm-green);
  border-color: var(--esm-green);
  color: #fff;
  box-shadow: 0 6px 14px rgba(4, 146, 80, 0.22);
}

/* Grid 4 colunas */
.saude-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem 1.15rem;
}

.saude-card {
  margin: 0;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  border: 1px solid rgba(15, 20, 17, 0.06);
  box-shadow: 0 10px 28px rgba(15, 20, 17, 0.05);
  transition: transform 0.3s var(--esm-ease), box-shadow 0.3s ease;
}

.saude-card.is-hidden { display: none; }

.saude-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(4, 146, 80, 0.14);
}

.saude-card-link {
  display: block;
  color: inherit;
  height: 100%;
}

.saude-card-photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #e8efe9;
}

.saude-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 14%;
  transition: transform 0.5s var(--esm-ease);
}

.saude-card:hover .saude-card-img {
  transform: scale(1.04);
}

.saude-card-photo--logo {
  aspect-ratio: 1;
  background: #f4f7f5;
  display: grid;
  place-items: center;
  padding: 1.1rem;
}

.saude-card-photo--logo .saude-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0;
}

.saude-card--logo:hover .saude-card-img {
  transform: scale(1.03);
}

.saude-card-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  font-family: var(--esm-font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--esm-green);
}

.saude-card-body {
  padding: 0.95rem 1rem 1.15rem;
  text-align: center;
}

.saude-card-spec {
  display: block;
  font-family: var(--esm-font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--esm-green);
  margin-bottom: 0.35rem;
}

.saude-card-name {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.55rem;
  color: var(--esm-black);
  line-height: 1.25;
}

.saude-card-cta {
  font-family: var(--esm-font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--esm-green-deep);
}

.saude-card-cta::after { content: " →"; }

.saude-card:hover .saude-card-cta { color: var(--esm-green); }

.saude-empty {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
  color: var(--esm-muted);
}

.saude-empty.is-visible { display: block; }

.roster-cta-band {
  background: #062a18;
  color: #fff;
  padding: 2.75rem 0;
}

.roster-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.roster-cta-inner h2 {
  color: #fff;
  font-size: 1.45rem;
  margin: 0 0 0.4rem;
}

.roster-cta-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  max-width: 36rem;
}

.roster-cta-band .btn-primary {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

/* ---------- About page ---------- */
.about-hero {
  position: relative;
  min-height: min(52vh, 460px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.about-hero-bg,
.about-hero-overlay {
  position: absolute;
  inset: 0;
}

.about-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.about-hero-overlay {
  background:
    linear-gradient(180deg, rgba(6, 42, 24, 0.35) 0%, rgba(6, 42, 24, 0.78) 100%);
}

.about-hero-content {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 3.25rem;
  max-width: none;
  text-align: left;
}

.about-hero-kicker {
  font-family: var(--esm-font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 0.75rem;
  text-align: left;
}

.about-hero-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0 0 0.85rem;
  color: #fff;
  text-align: left;
  max-width: 40rem;
}

.about-hero-lead {
  margin: 0;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  max-width: 34rem;
  text-align: left;
}

.about-story { background: #fff; }

.about-story-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.about-section-title {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--esm-black);
  margin: 0 0 1.15rem;
  line-height: 1.2;
}

.about-story-copy p {
  color: var(--esm-muted);
  font-size: 1.05rem;
  margin: 0 0 1rem;
}

.about-invite {
  color: var(--esm-green) !important;
  font-family: var(--esm-font-display);
  font-weight: 700;
  font-size: 1.08rem !important;
  margin-top: 0.5rem !important;
}

.about-story-media {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(15, 20, 17, 0.1);
}

.about-story-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
}

.about-stats {
  background: var(--esm-green);
  color: #fff;
  padding: 2.75rem 0;
}

.about-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.about-stat strong {
  display: block;
  font-family: var(--esm-font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.55rem;
}

.about-stat span {
  display: block;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 11rem;
  margin-inline: auto;
  line-height: 1.35;
}

.about-pillars { background: #f7faf8; }

.about-pillars-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.about-pillars-intro {
  margin: 0.25rem auto 0;
  color: var(--esm-muted);
  font-size: 1.05rem;
}

.about-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 1.75rem;
}

.about-pillar {
  padding: 1.35rem 1.25rem;
  background: #fff;
  border: 1px solid rgba(4, 146, 80, 0.14);
  border-radius: 14px;
}

.about-pillar-num {
  display: block;
  font-family: var(--esm-font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--esm-green);
  margin-bottom: 0.85rem;
}

.about-pillar h3 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--esm-black);
  margin: 0 0 0.55rem;
}

.about-pillar p {
  margin: 0;
  color: var(--esm-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.about-gallery { background: #fff; }

.about-gallery .about-section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.about-gallery .section-kicker {
  text-align: center;
}

.about-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.about-gallery-item {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.about-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s var(--esm-ease);
}

.about-gallery-item:hover img {
  transform: scale(1.04);
}

@media (max-width: 992px) {
  .about-story-grid,
  .about-pillars-grid,
  .about-stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .about-story-media img { min-height: 320px; }

  .about-gallery-grid { grid-template-columns: 1fr 1fr; }
  .about-gallery-item {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 600px) {
  .about-hero { min-height: 420px; }
  .about-hero-content { padding: 4.5rem 0 2.5rem; }

  .about-story-grid,
  .about-pillars-grid,
  .about-stats-row {
    grid-template-columns: 1fr;
  }

  .about-story-media { order: -1; }
  .about-story-media img { min-height: 260px; }

  .about-stats { padding: 2.25rem 0; }
  .about-stat { padding: 0.35rem 0; }
}

.page-title {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  color: var(--esm-green);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.page-thumb {
  margin-bottom: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
}

.entry-content {
  font-size: 1.05rem;
  color: var(--esm-text);
}

.entry-content > *:last-child { margin-bottom: 0; }

.pagination {
  margin-top: 2rem;
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #062a18;
  color: rgba(255, 255, 255, 0.88);
}

.footer-main { padding: 3rem 0 2rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.2fr;
  gap: 2rem;
}

.footer-title {
  color: var(--esm-white);
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.footer-info {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: inherit;
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
}

.footer-info:hover { color: #b7f0d0; }

.footer-hours {
  margin: 1rem 0 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
}

.footer-hours p { margin: 0 0 0.25rem; }

.footer-hours strong {
  color: #fff;
  margin-right: 0.4rem;
}

.footer-icon {
  flex-shrink: 0;
  color: var(--esm-green);
  margin-top: 0.15rem;
}

.footer-logo {
  width: 180px;
  margin-top: 1.25rem;
  filter: brightness(0) invert(1);
}

.footer-nav .footer-menu,
.footer-nav .menu-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav .footer-menu li,
.footer-nav .menu-list li {
  margin: 0;
  padding: 0;
  width: 100%;
}

.footer-nav .footer-menu a,
.footer-nav .menu-list a {
  display: block;
  color: #fff;
  font-family: var(--esm-font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.15rem 0;
  text-decoration: none;
}

.footer-nav .footer-menu a::after,
.footer-nav .menu-list a::after {
  display: none;
}

.footer-nav .footer-menu a:hover,
.footer-nav .menu-list a:hover,
.footer-nav .footer-menu .current-menu-item > a,
.footer-nav .menu-list .current-menu-item > a {
  color: #b7f0d0;
}

.footer-map iframe {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: 8px;
  filter: grayscale(0.15);
}

.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-bar p { margin: 0; }

/* ---------- Motion ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--esm-ease), transform 0.7s var(--esm-ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.profile-photo,
.profile-info {
  animation: fadeUp 0.75s var(--esm-ease) both;
}

.profile-info { animation-delay: 0.12s; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .header-inner { grid-template-columns: auto 1fr auto; gap: 0.5rem; }
  .btn-header-cta { padding: 0.55rem 0.75rem; font-size: 0.72rem; }
  .nav-primary { justify-content: flex-end; order: 3; }
  .nav-toggle { display: block; }

  .menu-list {
    display: none;
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    width: min(280px, 80vw);
    background: var(--esm-white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem;
    border-radius: 10px;
    box-shadow: var(--esm-shadow);
  }

  .menu-list.is-open { display: flex; }
  .menu-list a { display: block; padding: 0.75rem 0.85rem; }
  .menu-list a::after { display: none; }

  .hero--place { min-height: min(70vh, 580px); }
  .hero-content { padding: 4.5rem 0 3rem; margin-left: 1.25rem; }

  .home-grid { grid-template-columns: repeat(2, 1fr); }
  .saude-grid { grid-template-columns: repeat(3, 1fr); }

  .listings-grid,
  .about-intro,
  .cta-card,
  .footer-grid,
  .profile-hero-grid {
    grid-template-columns: 1fr;
  }

  .features-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid,
  .gallery-grid--compact { grid-template-columns: 1fr 1fr; }

  .profile-photo-wrap { max-width: 380px; margin-inline: auto; }
  .profile-info { text-align: center; max-width: none; }
  .profile-actions { justify-content: center; }
  .profile-body { text-align: left; }
  .profile-registration { text-align: center; }

  .profile-sticky-cta { display: block; }
  body.single-post { padding-bottom: 5.5rem; }

  .cta-media {
    order: -1;
    min-height: 280px;
    max-height: 360px;
  }

  .cta-media img {
    max-height: 360px;
  }

  .cta-copy {
    padding: 1.75rem 1.5rem 2rem;
  }

  .footer-nav .footer-menu,
  .footer-nav .menu-list {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: auto;
    box-shadow: none;
    background: transparent;
    padding: 0;
  }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .gallery-grid,
  .gallery-grid--compact { grid-template-columns: 1fr; }
  .home-grid { grid-template-columns: 1fr 1fr; gap: 0.85rem; }

  .btn-header-cta { display: inline-flex; }

  .section { padding: 3rem 0; }
  .profile-hero { padding: 2.25rem 0 3rem; }
  .profile-actions--desktop { flex-direction: column; }
  .profile-actions--desktop .btn { width: 100%; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .cta-copy { text-align: center; padding: 1.5rem 1.15rem 1.75rem; }
  .cta-logo { margin-inline: auto; }
  .cta-text { margin-inline: auto; }
  .cta-points { text-align: left; }
  .cta-actions { justify-content: center; }

  .saude-page { padding: 2.25rem 0 3rem; }
  .saude-grid { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
  .saude-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.15rem;
  }
  .saude-cats {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: none;
    margin: 0 -1.25rem 1.5rem;
    padding: 0.7rem 1.25rem;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .saude-cats::-webkit-scrollbar { display: none; }
  .saude-cat { flex: 0 0 auto; }
  .roster-cta-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .roster-cta-inner .btn { width: 100%; }
}
