/* MAG Moveis Corporativos - homepage publica */
.page-index {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(250, 248, 246, .88), rgba(250, 248, 246, .94)),
    url("https://magmoveiscorporativos.com.br/wp-content/uploads/2025/09/Gemini_Generated_Image_7pqq227pqq227pqq.png") center center / cover no-repeat fixed;
}

.page-index .main,
.page-index .main__content,
.page-index .wrapper,
.page-index .content,
.page-index .container,
.page-index .contr {
  background: transparent !important;
}

.page-index .footer,
.page-index footer {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, .88);
}

.mag-header-logo {
  display: inline-flex !important;
  align-items: center;
  gap: 28px;
  min-width: 0;
  color: #991c18 !important;
  text-decoration: none !important;
}

.mag-header-logo img {
  display: block;
  width: clamp(132px, 10vw, 170px);
  max-height: 92px;
  object-fit: contain;
}

.mag-header-logo span {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding-left: 28px;
  border-left: 1px solid rgba(153, 28, 24, .22);
  color: #991c18;
  font-size: clamp(18px, 1.35vw, 24px);
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.mag-home {
  max-width: 1220px;
  margin: 0 auto;
  padding: 42px 20px 76px;
  color: #313132;
}

.mag-home-panel {
  max-width: 1180px;
  margin: 42px auto 48px;
  padding: 44px 44px 46px;
  border: 1px solid rgba(120, 31, 31, .10);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 30px rgba(55, 45, 45, .06);
  text-align: center;
}

.mag-admin-link {
  margin: 0 0 24px;
  text-align: right;
}

.mag-admin-link a {
  color: #8f1d1d;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.mag-admin-link a:hover {
  text-decoration: underline;
}

.mag-home-heading h1 {
  margin: 0;
  color: #231f20;
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
}

.mag-home-heading p {
  max-width: 700px;
  margin: 14px auto 0;
  color: #4f484a;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.5;
}

.mag-sector-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
}

.mag-sector-card {
  display: flex;
  position: relative;
  align-items: center;
  gap: 14px;
  min-height: 98px;
  padding: 18px 48px 18px 22px;
  overflow: hidden;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  background: #ffffff;
  color: #231f20;
  text-align: left;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(31, 41, 55, .035);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}

.mag-sector-card:hover,
.mag-sector-card:focus {
  border-color: rgba(35, 31, 32, .18);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 24px rgba(31, 41, 55, .07);
  transform: translateY(-1px);
  outline: none;
}

.mag-sector-card--disabled {
  cursor: not-allowed;
  opacity: .72;
}

.mag-sector-card--disabled:hover,
.mag-sector-card--disabled:focus {
  border-color: #E5E7EB;
  box-shadow: 0 6px 18px rgba(31, 41, 55, .035);
  transform: none;
}

.mag-sector-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(150, 25, 20, .18), 0 10px 24px rgba(31, 41, 55, .07);
}

.mag-sector-accent {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--sector-color);
}

.mag-sector-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--sector-color);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(31, 41, 55, .10);
}

.mag-sector-icon .icon {
  width: 19px;
  height: 19px;
  color: currentColor;
  fill: currentColor !important;
  stroke: currentColor;
  stroke-width: 0;
}

.mag-sector-icon .icon * {
  fill: currentColor !important;
  stroke: currentColor;
}

.mag-sector-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.mag-sector-title {
  color: #161616;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
}

.mag-sector-description {
  color: #6B7280;
  font-size: 13px;
  line-height: 1.35;
}

.mag-sector-action {
  position: absolute;
  right: 20px;
  color: #9CA3AF;
  font-size: 20px;
  line-height: 1;
  transition: color .16s ease, transform .16s ease;
}

.mag-sector-card:hover .mag-sector-action,
.mag-sector-card:focus .mag-sector-action {
  color: var(--sector-color);
  transform: translateX(2px);
}

.mag-home-secondary {
  margin-top: 24px;
}

.mag-home-secondary a {
  color: #8f1d1d;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.mag-home-secondary a:hover {
  text-decoration: underline;
}

.mag-demand-select {
  max-width: 980px;
  margin: 28px auto 0;
  text-align: left;
}

.mag-demand-select__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.mag-demand-select__head p {
  margin: 0;
  color: #6B7280;
  font-size: 14px;
  line-height: 1.4;
}

.mag-demand-select__badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--sector-color);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.mag-demand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mag-demand-card {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 16px 46px 16px 18px;
  overflow: hidden;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  background: #ffffff;
  color: #161616;
  text-decoration: none !important;
  box-shadow: 0 5px 14px rgba(31, 41, 55, .035);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.mag-demand-card:hover,
.mag-demand-card:focus {
  border-color: rgba(35, 31, 32, .18);
  box-shadow: 0 10px 24px rgba(31, 41, 55, .07);
  transform: translateY(-1px);
  outline: none;
}

.mag-demand-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(150, 25, 20, .18), 0 10px 24px rgba(31, 41, 55, .07);
}

.mag-demand-card__accent {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--sector-color);
}

.mag-demand-card__title {
  color: #161616;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.mag-demand-card__action {
  position: absolute;
  right: 18px;
  color: #9CA3AF;
  font-size: 19px;
  line-height: 1;
  transition: color .16s ease, transform .16s ease;
}

.mag-demand-card:hover .mag-demand-card__action,
.mag-demand-card:focus .mag-demand-card__action {
  color: var(--sector-color);
  transform: translateX(2px);
}

.mag-demand-empty {
  max-width: 520px;
  margin: 34px auto 0;
  padding: 24px;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  background: #ffffff;
  text-align: center;
}

.mag-demand-empty p {
  margin: 0 0 16px;
  color: #4B5563;
  font-size: 15px;
}

.mag-sector-page .article__heading--form .icon-in-circle,
.mag-ticket-heading .icon-in-circle {
  background: var(--sector-color) !important;
}

.mag-ticket-heading {
  gap: 10px;
  border-bottom: 3px solid var(--sector-color);
  padding-bottom: 14px;
}

.mag-sector-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--sector-color);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.mag-form-context {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border-left: 5px solid var(--sector-color);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 8px 22px rgba(49, 49, 50, .06);
  text-align: left;
}

.mag-form-context strong {
  flex: 0 0 auto;
  color: var(--sector-color);
  font-size: 15px;
}

.mag-form-context span {
  color: #4f4f51;
  font-size: 14px;
  line-height: 1.4;
}

.mag-sector-page .ticket-create {
  border-top: 5px solid var(--sector-color);
}

.mag-sector-page .ticket-create .btn-full,
.mag-sector-page .ticket-create button[type="submit"] {
  background: var(--sector-color) !important;
  border-color: var(--sector-color) !important;
}

.page-index .article {
  position: relative;
  z-index: 2;
  margin-top: 28px;
  background: rgba(255, 255, 255, .9);
}

@media (max-width: 768px) {
  .page-index {
    background:
      linear-gradient(180deg, rgba(250, 248, 246, .92), rgba(250, 248, 246, .96)),
      url("https://magmoveiscorporativos.com.br/wp-content/uploads/2025/09/Gemini_Generated_Image_7pqq227pqq227pqq.png") center center / cover no-repeat;
  }

  .mag-home {
    padding: 24px 16px 56px;
  }

  .mag-header-logo {
    gap: 16px;
  }

  .mag-header-logo img {
    width: 118px;
  }

  .mag-header-logo span {
    min-height: 42px;
    padding-left: 16px;
    font-size: 17px;
    white-space: normal;
  }

  .mag-home-panel {
    margin: 28px auto;
    padding: 34px 22px;
    border-radius: 14px;
  }

  .mag-admin-link {
    text-align: center;
  }

  .mag-sector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .mag-sector-card {
    min-height: 98px;
    padding: 18px 46px 18px 20px;
  }

  .mag-form-context {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .mag-sector-grid {
    grid-template-columns: 1fr;
  }

  .mag-demand-grid {
    grid-template-columns: 1fr;
  }

  .mag-demand-select__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .mag-sector-card {
    min-height: 92px;
  }
}
